Contents
Required parameters
Parameter | Value | Example |
---|---|---|
logfile | Full path to the logfile that will be used to log the script output. | logfile=C:\Charon\myds20vms_shutdown.log |
waitbeforestop | Number of seconds to wait before stopping the service once the guest operating system no longer responds to 'ping'. If not set, default value = 60. | waitbeforestop=10 |
servicename | CHARON instance service name | servicename=myds20vms |
| Server name or IP address |
|
os | VMS or Tru64 | os=VMS |
mode | 'rsh' | mode=rsh |
rshbin | Defines the location of the "rsh.exe" program. | rshbin=C:\bin\rsh.exe |
username | Defines the remote username that will be used to connect to the guest operating system via rsh. |
|
openconsolecmd | Optional parameter used to open the console program while executing the script. It is recommended to define this parameter in case of integration with Windows shutdown | openconsolecmd=C:\Program Files\CHARON\Build_20203\x64\putty |
openconsolearg | Optional parameter defining the parameters of the openconsolecmd parameter above. | openconsolearg=-load OPA0 -P 10003 |
windowwidth | Optional parameters used to resize the window when running with service user ("system" account). Useful during Windows shutdown to check operations executed. Width = 132 and Height = 32 by default. BufferHeight set 2000 lines by default. | windowwidth=120 |
windowheight | windowheight=50 |
Enabling remote connection on Tru64
To allow connections from the Windows server to the Tru64 guest system without having to specify a password, the Tru64 local account's .rhosts
file has to be updated with the name or IP address of the Windows system and the account used.
The .rhosts
file contains a list of remote users who are not required to supply a login password when they use the local user account and execute the rcp, rlogin, and rsh commands (see "# man rhosts
" for more).
In the example below, a proxy will be created between the Windows 'administrator
' account (the IP address of the Windows system is 10.0.0.1) and the Tru64 'root
' account (the IP address of the Tru64 system is 10.0.0.2).
|
Enabling remote connection on OpenVMS
Enable the REXEC and RSH service on OpenVMS by executing the TCPIP$CONFIG
script (depending on the OpenVMS version, the script could also be called UCX$CONFIG
):
...
|
Check that the service is enabled:
|
To allow connection from the Windows server to the OpenVMS guest system without specifying a password, a proxy must be created between the Windows user that will execute the 'rsh
' command and the OpenVMS user account:
In the example below, a proxy will be created between the Windows 'administrator
' account (the IP address of the Windows system is 10.0.0.1) and the OpenVMS 'system
' account (the IP address of the OpenVMS system is 10.0.0.3)
|
Example
Configuration file
|
Script execution
Check mode
|
Shutdown execution
|