Move install/* to .
[debian6500.git] / scripts / stopTRC6500.bat
diff --git a/scripts/stopTRC6500.bat b/scripts/stopTRC6500.bat
new file mode 100644 (file)
index 0000000..0445be3
--- /dev/null
@@ -0,0 +1,36 @@
+@echo off\r
+\r
+set machine_user=root\r
+REM machine cible\r
+set machine_IP=10.133.28.160\r
+REM mdp cible\r
+set machine_pwd=thales\r
+REM repertoire outil plink\r
+set pc_chemin_plink="C:\Program Files\KenBIT\Putty"\r
+\r
+@set script_demarrage_linux=/opt/trc6500/script/stop_trc6500.sh\r
+set script_demarrage_linux=/opt/trc6500/script/stop_trc6500.sh\r
+\r
+set cmde_plink=%pc_chemin_plink%\plink -ssh %machine_user%@%machine_IP% -pw %machine_pwd%\r
+\r
+echo Stop TRC6500 request...\r
+\r
+ping -n 1 %machine_IP% | find "TTL" > NUL\r
+if errorlevel 1 goto unreachable_target\r
+\r
+%cmde_plink% %script_demarrage_linux% \r
+\r
+\r
+pause\r
+exit\r
+\r
+\r
+\r
+\r
+\r
+:unreachable_target\r
+echo.\r
+echo Erreur : (%machine_IP%) unreachable\r
+echo.\r
+pause\r
+exit 1\r