Kit download
Download the kit from our SFTP server (please ask us connection credentials if you have no access) and extract all files in a dedicated folder, "C:\Charon
" for example.
The kit contains the following files:
File | Description |
---|---|
charon_cleanshutdown.ps1 | Powershell main script |
charon_cleanshutdown_Windows.exp | Expect script, launched by the Powershell script if 'expect' is selected |
rsh.exe | Used if 'rsh' mode is selected |
template.ini | Used to facilitate the creation of a customized configuration file for the CHARON instance |
Shutdown command
Depending on the guest operating system running on the CHARON instance, the following commands are executed to perform a clean shutdown:
Tru64 |
for all modes except 'expect' followed by:
|
---|---|
OpenVMS | Depending on the method selected (described in more detail below), one of the following commands is executed: Either
or the script detailed below if 'expect' is not used. |
Requirements
Powershell V4.0 or newer is recommended. The execution of Powershell scripts must have been enabled.
See Powershell version, upgrade, enabling scripts execution, tips and tricks.
Available methods
Four methods are available to perform the remote shutdown. For all methods except 'expect', the CHARON host must be able to communicate via TCP/IP with the guest operating system(s) running on the CHARON instance(s).
Please select the method that is best suited to your configuration:
Mode | Description | Requirements | Notes | |
---|---|---|---|---|
telnet | Telnet to the guest operating system using credentials stored in an encrypted clixml file. | This mode requires the Windows telnet client to be installed. This can be done using the following command:
|
| |
expect | Simulates an interactive connection to the console of the CHARON instance and performs the necessary actions. | Restrictions Expect is supported only on Windows 2008 R2 and Windows 7. Windows 2012 R2 and 8.1 are not supported.
|
| |
rsh | Executes a remote command on the guest operating system (TCP/IP is required). On Tru64 the .rhosts file must be configured and on OpenVMS the rexec/rsh services must have been enabled and a proxy must have been created. | The 'rsh.exe ' file is included in the kit. Copy it to a folder of your choice ("C:\Bin " or "C:\Charon " for example). |
| |
ssh | Executes a remote command on the guest operating system over a secure connection (TCP/IP is required). | Download and install OpenSSH from this site: https://sourceforge.net/projects/opensshwindows/. The installation is menu driven, use the default options. |
|
If the CHARON instance is running OpenVMS and the mode is not 'expect', the CHARON_SHUTDOWN.COM
script is required, see below.
OpenVMS shutdown script
Copy/paste this script on your OpenVMS system, it will be used to issue the shutdown command for all modes except 'expect':
|