Import from Clearcase LIV_TRC6500_V2.2.3
[debian6500.git] / install / scripts / stopTRC6500.bat
1 @echo off
2
3 set machine_user=root
4 REM machine cible
5 set machine_IP=10.133.28.160
6 REM mdp cible
7 set machine_pwd=thales
8 REM repertoire outil plink
9 set pc_chemin_plink="C:\Program Files\KenBIT\Putty"
10
11 @set script_demarrage_linux=/opt/trc6500/script/stop_trc6500.sh
12 set script_demarrage_linux=/opt/trc6500/script/stop_trc6500.sh
13
14 set cmde_plink=%pc_chemin_plink%\plink -ssh %machine_user%@%machine_IP% -pw %machine_pwd%
15
16 echo Stop TRC6500 request...
17
18 ping -n 1 %machine_IP% | find "TTL" > NUL
19 if errorlevel 1 goto unreachable_target
20
21 %cmde_plink% %script_demarrage_linux%
22
23
24 pause
25 exit
26
27
28
29
30
31 :unreachable_target
32 echo.
33 echo Erreur : (%machine_IP%) unreachable
34 echo.
35 pause
36 exit 1