c:\Windows\system32>C:\ Charon>powershell -file charon\charon_cleanshutdown.ps1 -config C:\charon\myds20vms.ini Name -check
Charon clean shutdown
Name Value
---- -----
mode rsh
servicename myds20vms
guestsystem windowheight 50
openconsolecmd C:\Program Files\CHARON\Build_20203\x64\putty
servicename ds20vms
username system
waitbeforestop 10
guestsystem 10.0.0.3
waitbeforestop 10
os VMS
username system
rshbin os VMS
openconsolearg -load OPA0 -P 10003
mode rsh
windowwidth 132
rshbin C:\bin\rsh.exe
logfile logfile C:\Charon\myds20vms_shutdown.log
2016080817:13425629:13 [INFO :0: ] Using 'C:\Charon\myds20vms_shutdown.log' as log file / append
20160808:134256:INFO :0: 17:29:13 [INFO ] Execution date : 27-avr.-2020 17:29:13
17:29:13 [INFO ] Script version : 27-Apr-20 V2.0 (MD5: 4BA97792A105C9E0E484850B88B866F8 )
17:29:13 [INFO ] Powershell version : 5.1.14409.1018
17:29:13 [INFO ] Computer name : WIN2008BM
17:29:13 [INFO ] Username : Administrateur
17:29:14 [INFO ] Windows version : Microsoft Windows Server 2008 R2 Standard
17:29:14 [INFO ] Administrator mode : True
17:29:14 [INFO ]
17:29:14 [INFO ] 'rsh' will be used
2016080817:13425629:14 [INFO :0: ] Service 'myds20vmsds20vms' is Running (Display name: myds20vmsds20vms)
2016080817:13425629:14 [INFO :0: ] Testing guest system '10.0.0.3' response
2016080817:13425929:17 [INFO :0: ] Opening console.
17:29:17 [INFO ] Invoking 'rsh' command and executing shutdown...
2016080817:13425929:17 [INFO ] C:\bin\rsh.exe -l system 10.0.0.3 '@SYS$MANAGER:CHARON_SHUTDOWN.COM'
17:29:17 [INFO ] Output results:
2016080817:13425929:INFO :0: $ 17 [INFO ] $ PURGE /KEEP=20 SYS$MANAGER:CHARON_SHUTDOWN.LOG
2016080817:13425929:INFO :0: 20160808:134259:INFO :0: $ 17 [INFO ] $ RUN /DETACH SYS$SYSTEM:LOGINOUT.EXE /INPUT=SYS$MANAGER:CHARON_SHUTDOWN -
2016080817:13425929:INFO :0: 20160808:134259:INFO :0: 17 [INFO ] /OUTPUT=SYS$MANAGER:CHARON_SHUTDOWN.LOG /UIC=[1,4]
2016080817:13425929:INFO :0: 20160808:134259:INFO :0: 17 [INFO ] %RUN-S-PROC_ID, identification of created process is 0000014A00000122
2016080817:13425929:INFO :0: 20160808:134259:INFO :0: 17 [INFO ] $ ENDIF
17:29:17 [INFO ] $ ENDIF
2016080817:13425929:INFO :0: 20160808:134259:INFO :0: 17 [INFO ] $ EXIT
2016080817:13425929:INFO :0:
20160808:134259:INFO :0: $
20160808:134259:INFO :0:
20160808:134259:INFO :0: $ !
20160808:134259:INFO :0:
20160808:134259:INFO :0: 17 [INFO ] $
17:29:17 [INFO ] $ !
17:29:17 [INFO ] $ ! Force any output to the standard output socket.
2016080817:13425929:INFO :0: 20160808:134259:INFO :0: 17 [INFO ] $ ! Most useful when client is Un*x.
2016080817:13425929:INFO :0: 20160808:134259:INFO :0: 17 [INFO ] $ !
2016080817:13425929:INFO :0: 20160808:134259:INFO :0: $ 17 [INFO ] $ WRITE SYS$OUTPUT ""
2016080817:13425929:INFO :0:
20160808:134259:INFO :0:
20160808:134259:INFO :0:
20160808:134259:INFO :0: $
20160808:134259:INFO :0:
20160808:134259:INFO :0: $ 17 [INFO ] $
17:29:17 [INFO ] $ IF (RSHD$ERROR .NES. RSHD$INPUT_OUTPUT)
2016080817:13425929:INFO :0:
20160808:134259:INFO :0: $ ENDIF
20160808:134259:INFO :0:
20160808:134259:INFO :0: $
20160808:134259:INFO :0:
20160808:134259:INFO :0: 17 [INFO ] $ ENDIF
17:29:17 [INFO ] $
17:29:17 [INFO ] $ ! SS_NORMAL, RSH was succcessful, command should send its error over net.
2016080817:13425929:INFO :0: 20160808:134259:INFO :0: $ 17 [INFO ] $ EXIT 1
2016080817: 13425929:18 [INFO :0: ] Command successfully completed. 2016080817:13430229:20 [INFO :0: ] Testing connection to '10.0.0.3' = True
2016080817:13432529:43 [INFO :0: ] Testing connection to '10.0.0.3' = False
2016080817:13433529:53 [INFO :0: ] Sleeping for 10 seconds...
2016080817:13434530:03 [INFO :0: ] Stopping service myds20vmsds20vms 20160808
17: 13434530:04 [INFO :0: ] Service ds20vms is Stopped
2016080817:13434530:INFO :0: Done04 [INFO ] Script ended.
|