From 130e7b6107d29bfae63d8be567a8618f943628cb Mon Sep 17 00:00:00 2001 From: "marco.locatelli@steamware.net" Date: Fri, 5 Dec 2025 12:53:21 +0100 Subject: [PATCH 01/11] Nuovo script: GitlabDELETEMirrors --- ApiGit/ApiGitResources/ApiScriptsConfig.ps1 | 2 +- ApiGit/Mirrors/GitlabCreateMissingMirrors.ps1 | 11 +-- ApiGit/Mirrors/GitlabDELETEMirrors.ps1 | 88 +++++++++++++++++++ 3 files changed, 95 insertions(+), 6 deletions(-) create mode 100644 ApiGit/Mirrors/GitlabDELETEMirrors.ps1 diff --git a/ApiGit/ApiGitResources/ApiScriptsConfig.ps1 b/ApiGit/ApiGitResources/ApiScriptsConfig.ps1 index f64f29a..8d70be1 100644 --- a/ApiGit/ApiGitResources/ApiScriptsConfig.ps1 +++ b/ApiGit/ApiGitResources/ApiScriptsConfig.ps1 @@ -25,7 +25,7 @@ $tokenNembro = "glpat--9NqsusKLmHdF8z1kU9t" #access token per autenticazione gitlab-nembro $nembroHead = @{"PRIVATE-TOKEN" = "$($tokenNembro)" } -#### CONF gitea.steamware.net #### +#### CONF gitea-nembro.steamware.net #### #destinazione mirror per gitea $giteaNembro = "gitea-nembro.steamware.net" #nome utente gitea che effettua i mirror push diff --git a/ApiGit/Mirrors/GitlabCreateMissingMirrors.ps1 b/ApiGit/Mirrors/GitlabCreateMissingMirrors.ps1 index 44bdba9..1373334 100644 --- a/ApiGit/Mirrors/GitlabCreateMissingMirrors.ps1 +++ b/ApiGit/Mirrors/GitlabCreateMissingMirrors.ps1 @@ -62,6 +62,7 @@ for ($projectCount = $startProj; $projectCount -le $endProj; $projectCount++) { #chiamo funzione per creare mirror verso gitea-steamware FreshMirrorCreation $projectCount $giteaSteamwUser $giteaSteamwPass $giteaSteamw $simplePath } + #se la risposta non contiene "gitea-nembro" procedo a creare mirror relativo if ($gitlabResponse.Content -inotmatch "gitea-nembro.steamware.net") { #chiamo funzione per creare mirror verso gitea-nembro FreshMirrorCreation $projectCount $giteaNembroUser $giteaNembroPass $giteaNembro $simplePath @@ -71,16 +72,16 @@ for ($projectCount = $startProj; $projectCount -le $endProj; $projectCount++) { #chiamo funzione per creare mirror verso gogs FreshMirrorCreation $projectCount $gogsUser $gogsPass $gogsDestination $simplePath } - #se la risposta non contiene "gitlab-nembro" procedo a creare mirror relativo - if ($gitlabResponse.Content -inotmatch "gitlab-nembro") { - #chiamo funzione per creare mirror verso gitlab-nembro - FreshMirrorCreation $projectCount $userName $tokenNembro $destinationNembro $simplePath - } #se la risposta non contiene "gitlab-azzano" procedo a creare mirror relativo if ($gitlabResponse.Content -inotmatch "gitlab-azzano") { #chiamo funzione per creare mirror verso gitlab-azzano FreshMirrorCreation $projectCount $userName $tokenAzzano $destinationAzzano $simplePath } + #OLD: se la risposta non contiene "gitlab-nembro" procedo a creare mirror relativo + #if ($gitlabResponse.Content -inotmatch "gitlab-nembro") { + # #chiamo funzione per creare mirror verso gitlab-nembro + # FreshMirrorCreation $projectCount $userName $tokenNembro $destinationNembro $simplePath + #} } #scrivo se trovo un errore durante il try/catch catch { diff --git a/ApiGit/Mirrors/GitlabDELETEMirrors.ps1 b/ApiGit/Mirrors/GitlabDELETEMirrors.ps1 new file mode 100644 index 0000000..5c280a3 --- /dev/null +++ b/ApiGit/Mirrors/GitlabDELETEMirrors.ps1 @@ -0,0 +1,88 @@ +###Gitlab: delete mirrors### + +#Questo script passa in rassegna tutti i progetti esistenti sul gitlab aziendale e per ognuno può cancellare i mirror desiderati + +#IMPORTANTE: SCRIPT PERICOLOSO. TOGLIERE COMMENTO A RIGA 60 PER CANCELLARE. + +#importo file contenente configurazioni +. .\ApiGit\ApiGitResources\ApiScriptsConfig.ps1 +#importo file contenente funzioni +. .\ApiGit\ApiGitResources\ApiScriptsFunctions.ps1 + +#rilevo time per log inizio analisi +$startTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") +# avvio stopwatch +$mainStopWatch = [system.diagnostics.stopwatch]::StartNew() +#contatore ciclo do while +$startProj = 1 +#numero massimo di progetti da analizzare +$endProj = 250 +#nome file di log +$logFile = "MirrorsDelete.log" +#nome file di log old +$oldLogFile = "MirrorsDelete.old" +#stringa da cercare per cancellare il mirror +$mirrorToDelete = "gitlab-nembro" + +#creazione folder di Log se non esiste +CheckLogFolder + +#rotazione vecchio logFile da .log a .old se esiste +RotateOldLog + +#scrivo intestazione e inizio analisi +WriteLogOutput $logFile 0 "--------------------" +Switch ($logLevel) { + 0 { WriteLogOutput $logFile 0 "LOG SINTETICO DELETE MIRROR" } + 1 { WriteLogOutput $logFile 0 "LOG ERRORI DELETE MIRROR" } + 2 { WriteLogOutput $logFile 0 "LOG FULL DELETE MIRROR" } + 3 { WriteLogOutput $logFile 0 "LOG AMPOLLOSO DELETE MIRROR" } +} +WriteLogOutput $logFile 0 "" +WriteLogOutput $logFile 0 "Percorso log: $logFolder" +WriteLogOutput $logFile 0 "" +WriteLogOutput $logFile 0 "Inizio Esecuzione Script: $startTime" + +#ciclo principale for che cicla da 1 a N projectNumber +for ($projectCount = $startProj; $projectCount -le $endProj; $projectCount++) { + $callUrl = "https://gitlab.steamware.net/api/v4/projects/" + $projectCount + "/remote_mirrors" + try { + $gitlabResponse = Invoke-WebRequest -URI $callUrl -Headers $gitlabHead -ContentType "application/json" -UseBasicParsing + $parsedGitlabResponse = $gitlabResponse.Content | ConvertFrom-Json + #scrivo il numero del progetto nel terminale e su file + WriteLogOutput $logFile 1 "" + WriteLogOutput $logFile 1 "--------------------" + WriteLogOutput $logFile 1 "**PROGETTO $projectCount**" + foreach ($gitResponse IN $parsedGitlabResponse){ + if ($gitResponse -match $mirrorToDelete) { + #Cancello mirror verso gitlab-nembro + $deleteUrl = "https://gitlab.steamware.net/api/v4/projects/" + $projectCount + "/remote_mirrors/" + $gitResponse.id + #Invoke-WebRequest -URI $deleteUrl -Method DELETE -Headers $gitlabHead -ContentType "application/json" -UseBasicParsing + WriteLogOutput $logFile 1 "Eliminato mirror: $gitResponse" + } + } + } + #scrivo se trovo un errore durante il try/catch + catch { + $parsedError = $_ | ConvertFrom-Json + WriteLogOutput $logFile 3 "" + WriteLogOutput $logFile 3 "--------------------" + WriteLogOutput $logFile 3 "**ERRORE NEL PROGETTO $projectCount**" + WriteLogOutput $logFile 3 $($parsedError.message) + } +} +#fine ciclo principale + +# fermo stopwatch e calcolo durata script +$mainStopWatch.Stop() +$durataScript = $mainStopWatch.Elapsed.TotalSeconds + +#rilevo time per log fine analisi +$endTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") + +#scrivo a video le statistiche +WriteLogOutput $logFile 0 "" +WriteLogOutput $logFile 0 "Fine Esecuzione Script: $endTime" +WriteLogOutput $logFile 0 "" +WriteLogOutput $logFile 0 "Durata Esecuzione Script: $durataScript secondi" +WriteLogOutput $logFile 0 "" \ No newline at end of file From 9d479d67aedd11668140ab633b5793a1734a1fce Mon Sep 17 00:00:00 2001 From: "marco.locatelli@steamware.net" Date: Fri, 5 Dec 2025 13:24:01 +0100 Subject: [PATCH 02/11] fix e utilizzo script creazione repos e mirror --- ApiGit/Mirrors/GitlabForcePushMirror.ps1 | 2 +- ApiGit/ReposCreation/ReposCreationAzzanoNembro.ps1 | 6 +++--- ApiGit/ReposCreation/ReposCreationGitea.ps1 | 8 ++++---- ApiGit/ReposCreation/ReposCreationGogs.ps1 | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ApiGit/Mirrors/GitlabForcePushMirror.ps1 b/ApiGit/Mirrors/GitlabForcePushMirror.ps1 index 83e67fb..e2825a3 100644 --- a/ApiGit/Mirrors/GitlabForcePushMirror.ps1 +++ b/ApiGit/Mirrors/GitlabForcePushMirror.ps1 @@ -12,7 +12,7 @@ $startTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") # avvio stopwatch $mainStopWatch = [system.diagnostics.stopwatch]::StartNew() #contatore ciclo do while -$startProj = 1 +$startProj = 200 #numero massimo di progetti da analizzare $endProj = 250 #conteggio progetti trovati diff --git a/ApiGit/ReposCreation/ReposCreationAzzanoNembro.ps1 b/ApiGit/ReposCreation/ReposCreationAzzanoNembro.ps1 index 4c6e7e2..6fa40aa 100644 --- a/ApiGit/ReposCreation/ReposCreationAzzanoNembro.ps1 +++ b/ApiGit/ReposCreation/ReposCreationAzzanoNembro.ps1 @@ -13,7 +13,7 @@ $startTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") # avvio stopwatch $mainStopWatch = [system.diagnostics.stopwatch]::StartNew() #contatore ciclo do while -$startProj = 1 +$startProj = 200 #numero massimo di progetti da analizzare $endProj = 250 #nome file di log @@ -28,8 +28,8 @@ CheckLogFolder RotateOldLog #specifica quale installazione di gitlab va controllata -$remote = "Nembro" -#$remote = "Azzano" +#$remote = "Nembro" +$remote = "Azzano" if ($remote -eq "Nembro"){ $gitlabIstance = $destinationNembro diff --git a/ApiGit/ReposCreation/ReposCreationGitea.ps1 b/ApiGit/ReposCreation/ReposCreationGitea.ps1 index db0cab1..99940e2 100644 --- a/ApiGit/ReposCreation/ReposCreationGitea.ps1 +++ b/ApiGit/ReposCreation/ReposCreationGitea.ps1 @@ -12,7 +12,7 @@ $startTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") # avvio stopwatch $mainStopWatch = [system.diagnostics.stopwatch]::StartNew() #contatore ciclo do while -$startProj = 1 +$startProj = 200 #numero massimo di progetti da analizzare $endProj = 250 #nome file di log @@ -21,8 +21,8 @@ $logFile = "GiteaReposCreation.log" $oldLogFile = "GiteaReposCreation.old" #gitea di destinazione -#$target = "steamware" -$target = "nembro" +$target = "steamware" +#$target = "nembro" #creazione folder di Log se non esiste CheckLogFolder @@ -40,7 +40,7 @@ $giteaPass = $giteaSteamwPass #access token per autenticazione gitea Steamw da profilo replica $giteaHead = $giteaSteamwHead } -if ($target = "nembro"){ +elseif ($target = "nembro") { #destinazione mirror per gitea nembro $giteaDestination = $giteaNembro #nome utente gitea nembro che effettua i mirror push diff --git a/ApiGit/ReposCreation/ReposCreationGogs.ps1 b/ApiGit/ReposCreation/ReposCreationGogs.ps1 index 1095932..0f985bc 100644 --- a/ApiGit/ReposCreation/ReposCreationGogs.ps1 +++ b/ApiGit/ReposCreation/ReposCreationGogs.ps1 @@ -12,9 +12,9 @@ $startTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") # avvio stopwatch $mainStopWatch = [system.diagnostics.stopwatch]::StartNew() #contatore ciclo do while -$startProj = 1 +$startProj = 200 #numero massimo di progetti da analizzare -$endProj = 250 +$endProj = 300 #nome file di log $logFile = "GogsReposCreation.log" #nome file di log old From d4d8fdc80c54ba4f34532a02ad7b6c812d9c861c Mon Sep 17 00:00:00 2001 From: "marco.locatelli@steamware.net" Date: Thu, 18 Dec 2025 12:06:26 +0100 Subject: [PATCH 03/11] update token azzano gennaio 2026 --- ApiGit/ApiGitResources/ApiScriptsConfig.ps1 | 5 ++++- ApiGit/Mirrors/GitlabForcePushMirror.ps1 | 2 +- ApiGit/Mirrors/GitlabRenewTokensMirrors.ps1 | 10 +++++----- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ApiGit/ApiGitResources/ApiScriptsConfig.ps1 b/ApiGit/ApiGitResources/ApiScriptsConfig.ps1 index 8d70be1..68cc3ac 100644 --- a/ApiGit/ApiGitResources/ApiScriptsConfig.ps1 +++ b/ApiGit/ApiGitResources/ApiScriptsConfig.ps1 @@ -13,7 +13,10 @@ $userName = "replica" #destinazione mirror per azzano $destinationAzzano = "gitlab-azzano.steamware.net" #token autenticazione utente replica azzano -$tokenAzzano = "glpat-tCyVnkDQb3uB_yFywQtK" +#token 2025:$tokenAzzano = "glpat-tCyVnkDQb3uB_yFywQtK" + +#token autenticazione utente replica azzano Gennaio 2026: +$tokenAzzano = "glpat-xbCbgalMbPwJ9MDvZTU3rW86MQp1OnAH.01.0w17pjo4t" #access token per autenticazione gitlab-azzano $azzanoHead = @{"PRIVATE-TOKEN" = "$($tokenAzzano)" } diff --git a/ApiGit/Mirrors/GitlabForcePushMirror.ps1 b/ApiGit/Mirrors/GitlabForcePushMirror.ps1 index e2825a3..83e67fb 100644 --- a/ApiGit/Mirrors/GitlabForcePushMirror.ps1 +++ b/ApiGit/Mirrors/GitlabForcePushMirror.ps1 @@ -12,7 +12,7 @@ $startTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") # avvio stopwatch $mainStopWatch = [system.diagnostics.stopwatch]::StartNew() #contatore ciclo do while -$startProj = 200 +$startProj = 1 #numero massimo di progetti da analizzare $endProj = 250 #conteggio progetti trovati diff --git a/ApiGit/Mirrors/GitlabRenewTokensMirrors.ps1 b/ApiGit/Mirrors/GitlabRenewTokensMirrors.ps1 index 6fc0723..a7396c2 100644 --- a/ApiGit/Mirrors/GitlabRenewTokensMirrors.ps1 +++ b/ApiGit/Mirrors/GitlabRenewTokensMirrors.ps1 @@ -69,11 +69,11 @@ for ($projectCount = $startProj; $projectCount -le $endProj; $projectCount++){ $mirrorDestination = "@gitlab-azzano.steamware.net" } #controllo se l'url del mirror contiene nembro, riscrivo mirror - elseif ($item.url.Contains("nembro")) { - $doExecute = "true" - $destinationToken = $tokenNembro - $mirrorDestination = "@gitlab-nembro.steamware.net" - } + #elseif ($item.url.Contains("nembro")) { + # $doExecute = "true" + # $destinationToken = $tokenNembro + # $mirrorDestination = "@gitlab-nembro.steamware.net" + #} #verifico se devo effettuare cancellazione e creazione nuovo mirror if ($doExecute -eq "true") { #salvo id mirror e url mirror From 5170c62ad485ee883fe6341ac598777e4e75a176 Mon Sep 17 00:00:00 2001 From: "marco.locatelli@steamware.net" Date: Tue, 13 Jan 2026 10:58:05 +0100 Subject: [PATCH 04/11] update zabbix sender recipient (proxy e non server) --- ApiGit/ApiGitResources/ApiScriptsConfig.ps1 | 4 +++- ApiGit/Mirrors/CheckGitlabMirroring.ps1 | 14 +++++++------- ApiGit/Misc/CheckGitlabProtectedBranches.ps1 | 18 +++--------------- 3 files changed, 13 insertions(+), 23 deletions(-) diff --git a/ApiGit/ApiGitResources/ApiScriptsConfig.ps1 b/ApiGit/ApiGitResources/ApiScriptsConfig.ps1 index 68cc3ac..bb098a1 100644 --- a/ApiGit/ApiGitResources/ApiScriptsConfig.ps1 +++ b/ApiGit/ApiGitResources/ApiScriptsConfig.ps1 @@ -4,7 +4,9 @@ #access token per autenticazione gitlab da profilo marco.locatelli@egalware.com con scadenza 31 dicembre 2024 #$gitlabHead2024 = @{"PRIVATE-TOKEN" = "glpat-VjT_SAsBk3s-yWE1LDUF" } #access token per autenticazione gitlab da profilo marco.locatelli@egalware.com con scadenza 31 dicembre 2025 -$tokenGitlab = "glpat-AGzz46yrxj7rTjzSVYCH" +#$tokenGitlab = "glpat-AGzz46yrxj7rTjzSVYCH" +#access token per autenticazione gitlab da profilo marco.locatelli@egalware.com con scadenza 31 dicembre 2026 +$tokenGitlab = "glpat-CnHov-GaFjozv34MsnRx8m86MQp1OjgH.01.0w1or5g5w" $gitlabHead = @{"PRIVATE-TOKEN" = "$($tokenGitlab)" } #nome utente che effettua i mirror push $userName = "replica" diff --git a/ApiGit/Mirrors/CheckGitlabMirroring.ps1 b/ApiGit/Mirrors/CheckGitlabMirroring.ps1 index 2582eeb..bd962c8 100644 --- a/ApiGit/Mirrors/CheckGitlabMirroring.ps1 +++ b/ApiGit/Mirrors/CheckGitlabMirroring.ps1 @@ -98,13 +98,13 @@ $endTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") #invio a zabbix le metriche rilevate tramite zabbix_sender.exe WriteLogOutput $logFile 0 "" -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabbix.egalware -s "IIS04" -k Gitlab.Projects -o $existingProjects -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabbix.egalware -s "IIS04" -k Gitlab.TotalMirror -o $mirrorCount -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabbix.egalware -s "IIS04" -k Gitlab.SuccessMirror -o $mirrorSuccessCount -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabbix.egalware -s "IIS04" -k Gitlab.ErrorsMirror -o $mirrorErrorsCount -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabbix.egalware -s "IIS04" -k Gitlab.SuccessMirrorPercent -o $mirrorSuccessPercentage -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabbix.egalware -s "IIS04" -k Gitlab.ErrorsMirrorPercent -o $mirrorErrorsPercentage -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabbix.egalware -s "IIS04" -k Gitlab.CheckMirrorDuration -o $durataScript +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.Projects -o $existingProjects +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.TotalMirror -o $mirrorCount +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.SuccessMirror -o $mirrorSuccessCount +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ErrorsMirror -o $mirrorErrorsCount +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.SuccessMirrorPercent -o $mirrorSuccessPercentage +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ErrorsMirrorPercent -o $mirrorErrorsPercentage +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.CheckMirrorDuration -o $durataScript #scrivo a video le statistiche WriteLogOutput $logFile 0 "" diff --git a/ApiGit/Misc/CheckGitlabProtectedBranches.ps1 b/ApiGit/Misc/CheckGitlabProtectedBranches.ps1 index 6e587a1..9846e44 100644 --- a/ApiGit/Misc/CheckGitlabProtectedBranches.ps1 +++ b/ApiGit/Misc/CheckGitlabProtectedBranches.ps1 @@ -14,7 +14,7 @@ $mainStopWatch = [system.diagnostics.stopwatch]::StartNew() #contatore ciclo do while $startProj = 1 #numero massimo di progetti da analizzare -$endProj = 250 +$endProj = 300 #conteggio progetti trovati $existingProjects = 0 #conteggio progetti trovati @@ -45,18 +45,8 @@ WriteLogOutput $logFile 0 "Percorso log: $logFolder" WriteLogOutput $logFile 0 "" WriteLogOutput $logFile 0 "Inizio Esecuzione Script: $startTime" -$locations = @('Nembro','Azzano') - -#ciclo for per lavorare su gitlab nembro e poi su gitlab azzano -foreach ($remote in $locations){ - if ($remote -eq "Nembro"){ - $gitlabIstance = $destinationNembro - $head = $nembroHead - } - elseif ($remote -eq "Azzano"){ - $gitlabIstance = $destinationAzzano - $head = $azzanoHead - } +$gitlabIstance = $destinationAzzano +$head = $azzanoHead #ciclo principale for che cicla da startProj a endProj for ($projectCount = $startProj; $projectCount -le $endProj; $projectCount++) { #chiamata api che restituisce informazioni sullo stato dei mirror @@ -91,8 +81,6 @@ foreach ($remote in $locations){ } #fine ciclo dei progetti } -#fine ciclo remote nembro/azzano -} # fermo stopwatch e calcolo durata script $mainStopWatch.Stop() $durataScript = $mainStopWatch.Elapsed.TotalSeconds From c6de62fe2c94bf45345e57d905a414b2e902882d Mon Sep 17 00:00:00 2001 From: "marco.locatelli@steamware.net" Date: Mon, 19 Jan 2026 16:33:21 +0100 Subject: [PATCH 05/11] Nuovi script per import e export pool truenas scale --- TruenasScale24.10 Scripts/export_pool.sh | 62 +++++++++++++++++++ TruenasScale24.10 Scripts/import_pool.sh | 79 ++++++++++++++++++++++++ 2 files changed, 141 insertions(+) create mode 100644 TruenasScale24.10 Scripts/export_pool.sh create mode 100644 TruenasScale24.10 Scripts/import_pool.sh diff --git a/TruenasScale24.10 Scripts/export_pool.sh b/TruenasScale24.10 Scripts/export_pool.sh new file mode 100644 index 0000000..9dc93b5 --- /dev/null +++ b/TruenasScale24.10 Scripts/export_pool.sh @@ -0,0 +1,62 @@ +#!/bin/bash + +if [ $# -ne 1 ]; then + echo "Usage: $0 " + exit 1 +fi + +pool_name=$1 + +# Function to check if a pool is imported and available +check_pool_imported() { + local name=$1 + response=$(midclt call pool.query) + echo "$response" | grep -q "\"name\": \"${name}\"" +} + +# Function to get the pool ID by name +get_pool_id() { + local name=$1 + midclt call pool.query '[["name", "=", "'"${name}"'"]]' | jq -r '.[0].id' +} + +# Check if the pool is imported and available +if ! check_pool_imported "$pool_name"; then + echo "Pool '${pool_name}' is not imported and available." + exit 1 +fi + +echo "Starting export of pool '${pool_name}'..." + +# Get pool ID for export +pool_id=$(get_pool_id "$pool_name") + +# Start the pool export job +export_job_id=$(midclt call pool.export "$pool_id") +echo "Started pool export job with ID: $export_job_id" + +# Poll until the export job is complete +while true; do + echo "Checking export job status..." + export_job_status=$(midclt call core.get_jobs "[[\"id\", \"=\", ${export_job_id}]]" | jq -r '.[0]') + export_state=$(echo $export_job_status | jq -r '.state') + echo "Export job state: $export_state" + + if [ "$export_state" == "SUCCESS" ]; then + echo "Export job succeeded." + break + elif [ "$export_state" == "FAILED" ]; then + echo "Export job failed" + exit 1 + fi + sleep 1 +done + +# After export, double-check if the pool is no longer available +if check_pool_imported "$pool_name"; then + echo "Pool '${pool_name}' still found after export attempt. Error!" + exit 1 +else + echo "Pool '${pool_name}' successfully exported and no longer available." + exit 0 +fi \ No newline at end of file diff --git a/TruenasScale24.10 Scripts/import_pool.sh b/TruenasScale24.10 Scripts/import_pool.sh new file mode 100644 index 0000000..3cd6114 --- /dev/null +++ b/TruenasScale24.10 Scripts/import_pool.sh @@ -0,0 +1,79 @@ +#!/bin/bash + +if [ $# -ne 1 ]; then + echo "Usage: $0 " + exit 1 +fi + +pool_name=$1 + +# Function to check if a pool is already imported +check_pool_imported() { + local name=$1 + response=$(midclt call pool.query) + echo "$response" | grep -q "\"name\": \"${name}\"" +} + +# Check if the pool is already imported +if check_pool_imported "$pool_name"; then + echo "Pool '${pool_name}' is already imported and available." + exit 0 +fi + +# Start the import_find job and get the job ID +job_id=$(midclt call pool.import_find) +#echo "Started import_find job with ID: $job_id" + +# Poll until the job is complete +while true; do + echo "Checking import job status..." + job_status=$(midclt call core.get_jobs '[["id", "=", '"$job_id"']]' | jq -r '.[0]') + state=$(echo $job_status | jq -r '.state') + echo "Import job state: $state" + if [ "$state" == "SUCCESS" ]; then + echo "Import job succeeded." + break + elif [ "$state" == "FAILED" ]; then + echo "Import job failed" + exit 1 + fi + sleep 1 +done + +# Extract the job result once it's complete +pools=$(echo $job_status | jq -r '.result') + +# Find and import the pool with the specified name +found_pool="" +imported_pool="" + +# Process each pool result using jq and a while loop +echo "$pools" | jq -c '.[]' | while read -r pool; do + name=$(echo "$pool" | jq -r '.name') + guid=$(echo "$pool" | jq -r '.guid') + if [ "$name" == "$pool_name" ]; then + found_pool=$name + import_job_id=$(midclt call pool.import_pool "{\"guid\": \"$guid\"}") + + # Poll until the import job is complete + while true; do + import_job_status=$(midclt call core.get_jobs '[["id", "=", '"$import_job_id"']]' | jq -r '.[0]') + import_state=$(echo $import_job_status | jq -r '.state') + if [ "$import_state" == "SUCCESS" ]; then + break + elif [ "$import_state" == "FAILED" ]; then + exit 1 + fi + sleep 1 + done + fi +done + +# Final check if the pool is imported +if check_pool_imported "$pool_name"; then + echo "Successfully imported pool: $pool_name" + exit 0 +else + echo "Pool with name $pool_name not found or not imported" + exit 1 +fi \ No newline at end of file From 9b8a7c3b4e65d1b64b5b3927c77b5c17e248eab8 Mon Sep 17 00:00:00 2001 From: "marco.locatelli@steamware.net" Date: Mon, 19 Jan 2026 16:44:32 +0100 Subject: [PATCH 06/11] aggiunto breve readme a script truenas scale --- TruenasScale24.10 Scripts/export_pool.sh | 3 +++ TruenasScale24.10 Scripts/import_pool.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/TruenasScale24.10 Scripts/export_pool.sh b/TruenasScale24.10 Scripts/export_pool.sh index 9dc93b5..5d4f687 100644 --- a/TruenasScale24.10 Scripts/export_pool.sh +++ b/TruenasScale24.10 Scripts/export_pool.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Read me: prima di esecuzione fare chmod +x export_pool.sh +# Per l'utilizzo: ./export_pool.sh pool_name + if [ $# -ne 1 ]; then echo "Usage: $0 " exit 1 diff --git a/TruenasScale24.10 Scripts/import_pool.sh b/TruenasScale24.10 Scripts/import_pool.sh index 3cd6114..7730887 100644 --- a/TruenasScale24.10 Scripts/import_pool.sh +++ b/TruenasScale24.10 Scripts/import_pool.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Read me: prima di esecuzione fare chmod +x import_pool.sh +# Per l'utilizzo: ./import_pool.sh pool_name + if [ $# -ne 1 ]; then echo "Usage: $0 " exit 1 From 04de457e274848ae13ff6e7988e43398e3d84b08 Mon Sep 17 00:00:00 2001 From: "marco.locatelli@steamware.net" Date: Mon, 19 Jan 2026 17:03:56 +0100 Subject: [PATCH 07/11] minor fix --- TruenasScale24.10 Scripts/export_pool.sh | 2 ++ TruenasScale24.10 Scripts/import_pool.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/TruenasScale24.10 Scripts/export_pool.sh b/TruenasScale24.10 Scripts/export_pool.sh index 5d4f687..87cf078 100644 --- a/TruenasScale24.10 Scripts/export_pool.sh +++ b/TruenasScale24.10 Scripts/export_pool.sh @@ -2,6 +2,8 @@ # Read me: prima di esecuzione fare chmod +x export_pool.sh # Per l'utilizzo: ./export_pool.sh pool_name +# Per refreshare dischi (se dopo collegamento o rimozione il kernel non si aggiorna): +# echo "- - -" | sudo tee /sys/class/scsi_host/host*/scan if [ $# -ne 1 ]; then echo "Usage: $0 " diff --git a/TruenasScale24.10 Scripts/import_pool.sh b/TruenasScale24.10 Scripts/import_pool.sh index 7730887..14d583b 100644 --- a/TruenasScale24.10 Scripts/import_pool.sh +++ b/TruenasScale24.10 Scripts/import_pool.sh @@ -2,6 +2,8 @@ # Read me: prima di esecuzione fare chmod +x import_pool.sh # Per l'utilizzo: ./import_pool.sh pool_name +# Per refreshare dischi (se dopo collegamento o rimozione il kernel non si aggiorna): +# echo "- - -" | sudo tee /sys/class/scsi_host/host*/scan if [ $# -ne 1 ]; then echo "Usage: $0 " From 9c1585a22a0f374b5fbeac78f484218fed5d5e63 Mon Sep 17 00:00:00 2001 From: "marco.locatelli@steamware.net" Date: Tue, 20 Jan 2026 09:47:22 +0100 Subject: [PATCH 08/11] nuovo script truenas: update device --- TruenasScale24.10 Scripts/update_device.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 TruenasScale24.10 Scripts/update_device.sh diff --git a/TruenasScale24.10 Scripts/update_device.sh b/TruenasScale24.10 Scripts/update_device.sh new file mode 100644 index 0000000..e69de29 From bb5bc6d9fb34bbedb52a1fcdd45b9d0c3a3ee167 Mon Sep 17 00:00:00 2001 From: "marco.locatelli@steamware.net" Date: Tue, 20 Jan 2026 09:48:13 +0100 Subject: [PATCH 09/11] minor fix --- TruenasScale24.10 Scripts/export_pool.sh | 2 -- TruenasScale24.10 Scripts/import_pool.sh | 2 -- TruenasScale24.10 Scripts/update_device.sh | 4 ++++ 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/TruenasScale24.10 Scripts/export_pool.sh b/TruenasScale24.10 Scripts/export_pool.sh index 87cf078..5d4f687 100644 --- a/TruenasScale24.10 Scripts/export_pool.sh +++ b/TruenasScale24.10 Scripts/export_pool.sh @@ -2,8 +2,6 @@ # Read me: prima di esecuzione fare chmod +x export_pool.sh # Per l'utilizzo: ./export_pool.sh pool_name -# Per refreshare dischi (se dopo collegamento o rimozione il kernel non si aggiorna): -# echo "- - -" | sudo tee /sys/class/scsi_host/host*/scan if [ $# -ne 1 ]; then echo "Usage: $0 " diff --git a/TruenasScale24.10 Scripts/import_pool.sh b/TruenasScale24.10 Scripts/import_pool.sh index 14d583b..7730887 100644 --- a/TruenasScale24.10 Scripts/import_pool.sh +++ b/TruenasScale24.10 Scripts/import_pool.sh @@ -2,8 +2,6 @@ # Read me: prima di esecuzione fare chmod +x import_pool.sh # Per l'utilizzo: ./import_pool.sh pool_name -# Per refreshare dischi (se dopo collegamento o rimozione il kernel non si aggiorna): -# echo "- - -" | sudo tee /sys/class/scsi_host/host*/scan if [ $# -ne 1 ]; then echo "Usage: $0 " diff --git a/TruenasScale24.10 Scripts/update_device.sh b/TruenasScale24.10 Scripts/update_device.sh index e69de29..730af72 100644 --- a/TruenasScale24.10 Scripts/update_device.sh +++ b/TruenasScale24.10 Scripts/update_device.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# Per refreshare dischi (se dopo collegamento o rimozione il kernel non si aggiorna) +echo "- - -" | sudo tee /sys/class/scsi_host/host*/scan \ No newline at end of file From afc5aa990de9f167d0dfb9da2a7ce54fcceb373c Mon Sep 17 00:00:00 2001 From: "marco.locatelli@steamware.net" Date: Wed, 21 Jan 2026 09:55:56 +0100 Subject: [PATCH 10/11] spostamento script truenas in repo dedicato --- TruenasScale24.10 Scripts/export_pool.sh | 65 ----------------- TruenasScale24.10 Scripts/import_pool.sh | 82 ---------------------- TruenasScale24.10 Scripts/update_device.sh | 4 -- 3 files changed, 151 deletions(-) delete mode 100644 TruenasScale24.10 Scripts/export_pool.sh delete mode 100644 TruenasScale24.10 Scripts/import_pool.sh delete mode 100644 TruenasScale24.10 Scripts/update_device.sh diff --git a/TruenasScale24.10 Scripts/export_pool.sh b/TruenasScale24.10 Scripts/export_pool.sh deleted file mode 100644 index 5d4f687..0000000 --- a/TruenasScale24.10 Scripts/export_pool.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash - -# Read me: prima di esecuzione fare chmod +x export_pool.sh -# Per l'utilizzo: ./export_pool.sh pool_name - -if [ $# -ne 1 ]; then - echo "Usage: $0 " - exit 1 -fi - -pool_name=$1 - -# Function to check if a pool is imported and available -check_pool_imported() { - local name=$1 - response=$(midclt call pool.query) - echo "$response" | grep -q "\"name\": \"${name}\"" -} - -# Function to get the pool ID by name -get_pool_id() { - local name=$1 - midclt call pool.query '[["name", "=", "'"${name}"'"]]' | jq -r '.[0].id' -} - -# Check if the pool is imported and available -if ! check_pool_imported "$pool_name"; then - echo "Pool '${pool_name}' is not imported and available." - exit 1 -fi - -echo "Starting export of pool '${pool_name}'..." - -# Get pool ID for export -pool_id=$(get_pool_id "$pool_name") - -# Start the pool export job -export_job_id=$(midclt call pool.export "$pool_id") -echo "Started pool export job with ID: $export_job_id" - -# Poll until the export job is complete -while true; do - echo "Checking export job status..." - export_job_status=$(midclt call core.get_jobs "[[\"id\", \"=\", ${export_job_id}]]" | jq -r '.[0]') - export_state=$(echo $export_job_status | jq -r '.state') - echo "Export job state: $export_state" - - if [ "$export_state" == "SUCCESS" ]; then - echo "Export job succeeded." - break - elif [ "$export_state" == "FAILED" ]; then - echo "Export job failed" - exit 1 - fi - sleep 1 -done - -# After export, double-check if the pool is no longer available -if check_pool_imported "$pool_name"; then - echo "Pool '${pool_name}' still found after export attempt. Error!" - exit 1 -else - echo "Pool '${pool_name}' successfully exported and no longer available." - exit 0 -fi \ No newline at end of file diff --git a/TruenasScale24.10 Scripts/import_pool.sh b/TruenasScale24.10 Scripts/import_pool.sh deleted file mode 100644 index 7730887..0000000 --- a/TruenasScale24.10 Scripts/import_pool.sh +++ /dev/null @@ -1,82 +0,0 @@ -#!/bin/bash - -# Read me: prima di esecuzione fare chmod +x import_pool.sh -# Per l'utilizzo: ./import_pool.sh pool_name - -if [ $# -ne 1 ]; then - echo "Usage: $0 " - exit 1 -fi - -pool_name=$1 - -# Function to check if a pool is already imported -check_pool_imported() { - local name=$1 - response=$(midclt call pool.query) - echo "$response" | grep -q "\"name\": \"${name}\"" -} - -# Check if the pool is already imported -if check_pool_imported "$pool_name"; then - echo "Pool '${pool_name}' is already imported and available." - exit 0 -fi - -# Start the import_find job and get the job ID -job_id=$(midclt call pool.import_find) -#echo "Started import_find job with ID: $job_id" - -# Poll until the job is complete -while true; do - echo "Checking import job status..." - job_status=$(midclt call core.get_jobs '[["id", "=", '"$job_id"']]' | jq -r '.[0]') - state=$(echo $job_status | jq -r '.state') - echo "Import job state: $state" - if [ "$state" == "SUCCESS" ]; then - echo "Import job succeeded." - break - elif [ "$state" == "FAILED" ]; then - echo "Import job failed" - exit 1 - fi - sleep 1 -done - -# Extract the job result once it's complete -pools=$(echo $job_status | jq -r '.result') - -# Find and import the pool with the specified name -found_pool="" -imported_pool="" - -# Process each pool result using jq and a while loop -echo "$pools" | jq -c '.[]' | while read -r pool; do - name=$(echo "$pool" | jq -r '.name') - guid=$(echo "$pool" | jq -r '.guid') - if [ "$name" == "$pool_name" ]; then - found_pool=$name - import_job_id=$(midclt call pool.import_pool "{\"guid\": \"$guid\"}") - - # Poll until the import job is complete - while true; do - import_job_status=$(midclt call core.get_jobs '[["id", "=", '"$import_job_id"']]' | jq -r '.[0]') - import_state=$(echo $import_job_status | jq -r '.state') - if [ "$import_state" == "SUCCESS" ]; then - break - elif [ "$import_state" == "FAILED" ]; then - exit 1 - fi - sleep 1 - done - fi -done - -# Final check if the pool is imported -if check_pool_imported "$pool_name"; then - echo "Successfully imported pool: $pool_name" - exit 0 -else - echo "Pool with name $pool_name not found or not imported" - exit 1 -fi \ No newline at end of file diff --git a/TruenasScale24.10 Scripts/update_device.sh b/TruenasScale24.10 Scripts/update_device.sh deleted file mode 100644 index 730af72..0000000 --- a/TruenasScale24.10 Scripts/update_device.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -# Per refreshare dischi (se dopo collegamento o rimozione il kernel non si aggiorna) -echo "- - -" | sudo tee /sys/class/scsi_host/host*/scan \ No newline at end of file From 370530efd57641b120bd3f6d58ad033886d2e55a Mon Sep 17 00:00:00 2001 From: "marco.locatelli@steamware.net" Date: Tue, 24 Feb 2026 16:21:16 +0100 Subject: [PATCH 11/11] update zabbix host per zabbix sender (script check gitlab) --- ApiGit/ApiGitResources/ApiScriptsConfig.ps1 | 2 +- .../UNFINISHED_CheckGitlabJobArtifact.ps1 | 14 +++++++------- ApiGit/Mirrors/CheckGitlabCommits.ps1 | 16 ++++++++-------- ApiGit/Mirrors/CheckGitlabMirroring.ps1 | 16 ++++++++-------- ApiGit/Mirrors/GitlabCreateMissingMirrors.ps1 | 4 ++-- ApiGit/Mirrors/GitlabForcePushMirror.ps1 | 2 +- ApiGit/Mirrors/GitlabRefreshMirrorToGitea.ps1 | 2 +- ApiGit/Pipelines/CheckGitlabAzzanoPipelines.ps1 | 14 +++++++------- ApiGit/Pipelines/CheckGitlabNembroPipelines.ps1 | 14 +++++++------- ApiGit/Pipelines/CheckGitlabPipelines.ps1 | 14 +++++++------- .../ReposCreation/ReposCreationAzzanoNembro.ps1 | 2 +- ApiGit/ReposCreation/ReposCreationGitea.ps1 | 8 ++++---- GPW/GPW_CheckProj_office.ps1 | 2 +- GPW/GPW_CheckScadenzeLic.ps1 | 2 +- GPW/GPW_CheckTimb_office.ps1 | 2 +- GPW/GPW_StartApps_office.ps1 | 2 +- Generic/TEST_SENDER.ps1 | 2 +- Generic/WDC_SyncWebCompo.ps1 | 4 ++-- 18 files changed, 61 insertions(+), 61 deletions(-) diff --git a/ApiGit/ApiGitResources/ApiScriptsConfig.ps1 b/ApiGit/ApiGitResources/ApiScriptsConfig.ps1 index bb098a1..0e8324e 100644 --- a/ApiGit/ApiGitResources/ApiScriptsConfig.ps1 +++ b/ApiGit/ApiGitResources/ApiScriptsConfig.ps1 @@ -36,7 +36,7 @@ $giteaNembro = "gitea-nembro.steamware.net" #nome utente gitea che effettua i mirror push $giteaNembroUser = "replica" #autenticazione replica gitea -$giteaNembroPass = "vpsad24068" +$giteaNembroPass = "IXQkDchDwMah8E" #token autenticazione utente replica gitea $tokenGiteaNembro = "c58a2fdf6493bb690e8c39b393e06a121f8a6761" #access token per autenticazione gitea da profilo replica diff --git a/ApiGit/JobArtifacts/UNFINISHED_CheckGitlabJobArtifact.ps1 b/ApiGit/JobArtifacts/UNFINISHED_CheckGitlabJobArtifact.ps1 index f39d450..af7b0a1 100644 --- a/ApiGit/JobArtifacts/UNFINISHED_CheckGitlabJobArtifact.ps1 +++ b/ApiGit/JobArtifacts/UNFINISHED_CheckGitlabJobArtifact.ps1 @@ -96,13 +96,13 @@ $endTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") #invio a zabbix le metriche rilevate tramite zabbix_sender.exe #WriteLogOutput $logFile 0 "" -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.Projects -o $existingProjects -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.TotalJobArtifacts -o $JobArtifactsCount -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.SuccessJobArtifacts -o $JobArtifactsSuccessCount -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ErrorsJobArtifacts -o $JobArtifactsErrorsCount -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.SuccessJobArtifactsPercent -o $JobArtifactsSuccessPercentage -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ErrorsJobArtifactsPercent -o $JobArtifactsErrorsPercentage -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.CheckJobArtifactsDuration -o $durataScript +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.Projects -o $existingProjects +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.TotalJobArtifacts -o $JobArtifactsCount +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.SuccessJobArtifacts -o $JobArtifactsSuccessCount +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.ErrorsJobArtifacts -o $JobArtifactsErrorsCount +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.SuccessJobArtifactsPercent -o $JobArtifactsSuccessPercentage +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.ErrorsJobArtifactsPercent -o $JobArtifactsErrorsPercentage +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.CheckJobArtifactsDuration -o $durataScript #scrivo a video le statistiche WriteLogOutput $logFile 0 "" diff --git a/ApiGit/Mirrors/CheckGitlabCommits.ps1 b/ApiGit/Mirrors/CheckGitlabCommits.ps1 index 3d86a7f..d806b9c 100644 --- a/ApiGit/Mirrors/CheckGitlabCommits.ps1 +++ b/ApiGit/Mirrors/CheckGitlabCommits.ps1 @@ -104,14 +104,14 @@ $endTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") #invio a zabbix le metriche rilevate tramite zabbix_sender.exe WriteLogOutput $logFile 0 "" -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ProjectsFound -o $projectsFound -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.LastDaysCommits -o $lastDays -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.RecentCommits -o $recentCommits -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ProjectWithCommits -o $projectWithCommits -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ProjectWithNoCommits -o $projectWithNoCommits -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ProjectWithCommitsPercentage -o $projectWithCommitsPercentage -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ProjectWithNoCommitsPercentage -o $projectWithNoCommitsPercentage -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.CheckCommitsDuration -o $durataScript +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.ProjectsFound -o $projectsFound +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.LastDaysCommits -o $lastDays +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.RecentCommits -o $recentCommits +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.ProjectWithCommits -o $projectWithCommits +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.ProjectWithNoCommits -o $projectWithNoCommits +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.ProjectWithCommitsPercentage -o $projectWithCommitsPercentage +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.ProjectWithNoCommitsPercentage -o $projectWithNoCommitsPercentage +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.CheckCommitsDuration -o $durataScript #scrivo a video le statistiche WriteLogOutput $logFile 0 "" diff --git a/ApiGit/Mirrors/CheckGitlabMirroring.ps1 b/ApiGit/Mirrors/CheckGitlabMirroring.ps1 index bd962c8..cda058d 100644 --- a/ApiGit/Mirrors/CheckGitlabMirroring.ps1 +++ b/ApiGit/Mirrors/CheckGitlabMirroring.ps1 @@ -15,7 +15,7 @@ $mainStopWatch = [system.diagnostics.stopwatch]::StartNew() #contatore ciclo do while $startProj = 1 #numero massimo di progetti da analizzare -$endProj = 250 +$endProj = 300 #conteggio progetti trovati $existingProjects = 0 #conteggio mirroring in errore @@ -98,13 +98,13 @@ $endTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") #invio a zabbix le metriche rilevate tramite zabbix_sender.exe WriteLogOutput $logFile 0 "" -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.Projects -o $existingProjects -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.TotalMirror -o $mirrorCount -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.SuccessMirror -o $mirrorSuccessCount -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ErrorsMirror -o $mirrorErrorsCount -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.SuccessMirrorPercent -o $mirrorSuccessPercentage -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ErrorsMirrorPercent -o $mirrorErrorsPercentage -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.CheckMirrorDuration -o $durataScript +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.Projects -o $existingProjects +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.TotalMirror -o $mirrorCount +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.SuccessMirror -o $mirrorSuccessCount +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.ErrorsMirror -o $mirrorErrorsCount +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.SuccessMirrorPercent -o $mirrorSuccessPercentage +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.ErrorsMirrorPercent -o $mirrorErrorsPercentage +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.CheckMirrorDuration -o $durataScript #scrivo a video le statistiche WriteLogOutput $logFile 0 "" diff --git a/ApiGit/Mirrors/GitlabCreateMissingMirrors.ps1 b/ApiGit/Mirrors/GitlabCreateMissingMirrors.ps1 index 1373334..91e02dc 100644 --- a/ApiGit/Mirrors/GitlabCreateMissingMirrors.ps1 +++ b/ApiGit/Mirrors/GitlabCreateMissingMirrors.ps1 @@ -13,9 +13,9 @@ $startTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") # avvio stopwatch $mainStopWatch = [system.diagnostics.stopwatch]::StartNew() #contatore ciclo do while -$startProj = 1 +$startProj = 200 #numero massimo di progetti da analizzare -$endProj = 250 +$endProj = 300 #nome file di log $logFile = "NewMirrorsCreation.log" #nome file di log old diff --git a/ApiGit/Mirrors/GitlabForcePushMirror.ps1 b/ApiGit/Mirrors/GitlabForcePushMirror.ps1 index 83e67fb..a4eb2ac 100644 --- a/ApiGit/Mirrors/GitlabForcePushMirror.ps1 +++ b/ApiGit/Mirrors/GitlabForcePushMirror.ps1 @@ -14,7 +14,7 @@ $mainStopWatch = [system.diagnostics.stopwatch]::StartNew() #contatore ciclo do while $startProj = 1 #numero massimo di progetti da analizzare -$endProj = 250 +$endProj = 300 #conteggio progetti trovati $existingProjects = 0 #contatore mirror trovati diff --git a/ApiGit/Mirrors/GitlabRefreshMirrorToGitea.ps1 b/ApiGit/Mirrors/GitlabRefreshMirrorToGitea.ps1 index 7f0a42a..9623d95 100644 --- a/ApiGit/Mirrors/GitlabRefreshMirrorToGitea.ps1 +++ b/ApiGit/Mirrors/GitlabRefreshMirrorToGitea.ps1 @@ -14,7 +14,7 @@ $mainStopWatch = [system.diagnostics.stopwatch]::StartNew() #contatore ciclo do while $startProj = 1 #numero massimo di progetti da analizzare -$endProj = 250 +$endProj = 300 #inizializzo variabili vuote $mirrorId = "" $mirrorUrl = "" diff --git a/ApiGit/Pipelines/CheckGitlabAzzanoPipelines.ps1 b/ApiGit/Pipelines/CheckGitlabAzzanoPipelines.ps1 index 12623a1..043ef1c 100644 --- a/ApiGit/Pipelines/CheckGitlabAzzanoPipelines.ps1 +++ b/ApiGit/Pipelines/CheckGitlabAzzanoPipelines.ps1 @@ -96,13 +96,13 @@ $endTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") #invio a zabbix le metriche rilevate tramite zabbix_sender.exe #WriteLogOutput $logFile 0 "" -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ProjectsWithPipeline -o $projectsWithPipeline -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.TotalPipeline -o $pipelineCount -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.SuccessPipeline -o $pipelineSuccessCount -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ErrorsPipeline -o $pipelineErrorsCount -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.SuccessPipelinePercent -o $pipelineSuccessPercentage -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ErrorsPipelinePercent -o $pipelineErrorsPercentage -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.CheckPipelineDuration -o $durataScript +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.ProjectsWithPipeline -o $projectsWithPipeline +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.TotalPipeline -o $pipelineCount +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.SuccessPipeline -o $pipelineSuccessCount +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.ErrorsPipeline -o $pipelineErrorsCount +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.SuccessPipelinePercent -o $pipelineSuccessPercentage +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.ErrorsPipelinePercent -o $pipelineErrorsPercentage +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.CheckPipelineDuration -o $durataScript #scrivo a video le statistiche WriteLogOutput $logFile 0 "" diff --git a/ApiGit/Pipelines/CheckGitlabNembroPipelines.ps1 b/ApiGit/Pipelines/CheckGitlabNembroPipelines.ps1 index 0580d22..6ecc5e2 100644 --- a/ApiGit/Pipelines/CheckGitlabNembroPipelines.ps1 +++ b/ApiGit/Pipelines/CheckGitlabNembroPipelines.ps1 @@ -96,13 +96,13 @@ $endTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") #invio a zabbix le metriche rilevate tramite zabbix_sender.exe #WriteLogOutput $logFile 0 "" -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ProjectsWithPipeline -o $projectsWithPipeline -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.TotalPipeline -o $pipelineCount -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.SuccessPipeline -o $pipelineSuccessCount -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ErrorsPipeline -o $pipelineErrorsCount -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.SuccessPipelinePercent -o $pipelineSuccessPercentage -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ErrorsPipelinePercent -o $pipelineErrorsPercentage -#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.CheckPipelineDuration -o $durataScript +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.ProjectsWithPipeline -o $projectsWithPipeline +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.TotalPipeline -o $pipelineCount +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.SuccessPipeline -o $pipelineSuccessCount +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.ErrorsPipeline -o $pipelineErrorsCount +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.SuccessPipelinePercent -o $pipelineSuccessPercentage +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.ErrorsPipelinePercent -o $pipelineErrorsPercentage +#& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.CheckPipelineDuration -o $durataScript #scrivo a video le statistiche WriteLogOutput $logFile 0 "" diff --git a/ApiGit/Pipelines/CheckGitlabPipelines.ps1 b/ApiGit/Pipelines/CheckGitlabPipelines.ps1 index ad9473a..874f1d9 100644 --- a/ApiGit/Pipelines/CheckGitlabPipelines.ps1 +++ b/ApiGit/Pipelines/CheckGitlabPipelines.ps1 @@ -99,13 +99,13 @@ $endTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") #invio a zabbix le metriche rilevate tramite zabbix_sender.exe WriteLogOutput $logFile 0 "" -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ProjectsWithPipeline -o $projectsWithPipeline -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.TotalPipeline -o $pipelineCount -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.SuccessPipeline -o $pipelineSuccessCount -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ErrorsPipeline -o $pipelineErrorsCount -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.SuccessPipelinePercent -o $pipelineSuccessPercentage -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ErrorsPipelinePercent -o $pipelineErrorsPercentage -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.CheckPipelineDuration -o $durataScript +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.ProjectsWithPipeline -o $projectsWithPipeline +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.TotalPipeline -o $pipelineCount +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.SuccessPipeline -o $pipelineSuccessCount +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.ErrorsPipeline -o $pipelineErrorsCount +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.SuccessPipelinePercent -o $pipelineSuccessPercentage +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.ErrorsPipelinePercent -o $pipelineErrorsPercentage +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gitlab.CheckPipelineDuration -o $durataScript #scrivo a video le statistiche WriteLogOutput $logFile 0 "" diff --git a/ApiGit/ReposCreation/ReposCreationAzzanoNembro.ps1 b/ApiGit/ReposCreation/ReposCreationAzzanoNembro.ps1 index 6fa40aa..a004752 100644 --- a/ApiGit/ReposCreation/ReposCreationAzzanoNembro.ps1 +++ b/ApiGit/ReposCreation/ReposCreationAzzanoNembro.ps1 @@ -15,7 +15,7 @@ $mainStopWatch = [system.diagnostics.stopwatch]::StartNew() #contatore ciclo do while $startProj = 200 #numero massimo di progetti da analizzare -$endProj = 250 +$endProj = 300 #nome file di log $logFile = "AzzanoNembroReposCreation.log" #nome file di log old diff --git a/ApiGit/ReposCreation/ReposCreationGitea.ps1 b/ApiGit/ReposCreation/ReposCreationGitea.ps1 index 99940e2..7c1cb3b 100644 --- a/ApiGit/ReposCreation/ReposCreationGitea.ps1 +++ b/ApiGit/ReposCreation/ReposCreationGitea.ps1 @@ -14,15 +14,15 @@ $mainStopWatch = [system.diagnostics.stopwatch]::StartNew() #contatore ciclo do while $startProj = 200 #numero massimo di progetti da analizzare -$endProj = 250 +$endProj = 260 #nome file di log $logFile = "GiteaReposCreation.log" #nome file di log old $oldLogFile = "GiteaReposCreation.old" #gitea di destinazione -$target = "steamware" -#$target = "nembro" +#$target = "steamware" +$target = "nembro" #creazione folder di Log se non esiste CheckLogFolder @@ -40,7 +40,7 @@ $giteaPass = $giteaSteamwPass #access token per autenticazione gitea Steamw da profilo replica $giteaHead = $giteaSteamwHead } -elseif ($target = "nembro") { +if ($target = "nembro") { #destinazione mirror per gitea nembro $giteaDestination = $giteaNembro #nome utente gitea nembro che effettua i mirror push diff --git a/GPW/GPW_CheckProj_office.ps1 b/GPW/GPW_CheckProj_office.ps1 index 071508f..a32ce5e 100644 --- a/GPW/GPW_CheckProj_office.ps1 +++ b/GPW/GPW_CheckProj_office.ps1 @@ -104,6 +104,6 @@ else { # fermo stopwatch e conteggio... $stopwatch.Stop() $durata = $stopwatch.Elapsed.TotalSeconds - & "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gpw.Proj -o $durata + & "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gpw.Proj -o $durata LogWrite("Durata esecuzione: $durata") } diff --git a/GPW/GPW_CheckScadenzeLic.ps1 b/GPW/GPW_CheckScadenzeLic.ps1 index 33db487..ac73c6d 100644 --- a/GPW/GPW_CheckScadenzeLic.ps1 +++ b/GPW/GPW_CheckScadenzeLic.ps1 @@ -65,5 +65,5 @@ finally # fermo stopwatch e conteggio... $stopwatch.Stop() $durata = $stopwatch.Elapsed.TotalSeconds -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k LiMan.Lic -o $durata +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k LiMan.Lic -o $durata LogWrite("Durata esecuzione: $durata") diff --git a/GPW/GPW_CheckTimb_office.ps1 b/GPW/GPW_CheckTimb_office.ps1 index b1f7da9..0fa1348 100644 --- a/GPW/GPW_CheckTimb_office.ps1 +++ b/GPW/GPW_CheckTimb_office.ps1 @@ -104,5 +104,5 @@ finally # fermo stopwatch e conteggio... $stopwatch.Stop() $durata = $stopwatch.Elapsed.TotalSeconds -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gpw.Timb -o $durata +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gpw.Timb -o $durata LogWrite("Durata esecuzione: $durata") \ No newline at end of file diff --git a/GPW/GPW_StartApps_office.ps1 b/GPW/GPW_StartApps_office.ps1 index 3f3067e..e21f3d9 100644 --- a/GPW/GPW_StartApps_office.ps1 +++ b/GPW/GPW_StartApps_office.ps1 @@ -80,5 +80,5 @@ finally # fermo stopwatch e conteggio... $stopwatch.Stop() $durata = $stopwatch.Elapsed.TotalSeconds -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gpw.Core -o $durata +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "W2022-IIS04" -k Gpw.Core -o $durata LogWrite("Durata esecuzione: $durata") \ No newline at end of file diff --git a/Generic/TEST_SENDER.ps1 b/Generic/TEST_SENDER.ps1 index 8aab6a9..d3a825d 100644 --- a/Generic/TEST_SENDER.ps1 +++ b/Generic/TEST_SENDER.ps1 @@ -34,4 +34,4 @@ Remove-Variable * -ErrorAction SilentlyContinue # pulisco variabili x ISE $durata = 5 -& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabbix.ufficio -s "IIS04" -k TESTER -o $durata \ No newline at end of file +& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabbix.ufficio -s "W2022-IIS04" -k TESTER -o $durata \ No newline at end of file diff --git a/Generic/WDC_SyncWebCompo.ps1 b/Generic/WDC_SyncWebCompo.ps1 index 624d182..40dbe3c 100644 --- a/Generic/WDC_SyncWebCompo.ps1 +++ b/Generic/WDC_SyncWebCompo.ps1 @@ -28,9 +28,9 @@ $sourceFolder = "U:\NextCloud\ABH\Compo" #folder destination per robocopy $destFolder = "U:\WebDoorSync\NewComp\Compo" -# ex IIS04 +# ex W2022-IIS04 #$sourceFolder = "\\stor01\TEAM DRIVES\30_Clienti\ABH\DataImport\Compo" -#$destFolder = "\\IIS04\WebDoorSync\NewComp\Compo" +#$destFolder = "\\W2022-IIS04\WebDoorSync\NewComp\Compo" ####FINE DICHIARAZIONE VARIABILI####