Contents
Parameters
logfile
Optional full path to the logfile that will be used to log the script output. If not specified a file name and path will be chosen based on session log file (one file per script execution). The file name is usually based on the configuration_name followed by "-SHUTDOWN-" and date/time.
Example:
logfile=C:\Charon\myds20_shutdown.log
windowsevent
Defines which message levels will create a new entry in the Windows Application Events (Source="CHARON")
Can be either "none" or any combination of S, W and E. 'S' for Success, 'W' for Warning and 'E' for Error. Default is 'SE' so Success and Error only.
Example:
windowsevent=SWE
mode
opa0
Example:
mode=opa0
os
Either Tru64 or VMS
Example:
os=Tru64
servicename
CHARON instance service name.
When using "opa0" mode, the service is stopped by a "power off
" or the "F6
" key. If this operation does not succeed (cannot connect to console or "F6" key not enabled for example), it is then stopped using a Windows service command.
Example:
servicename=myds20
username
Defines the remote username that will be used to connect to the console of the CHARON instance (if not already logged in)
Example / OpenVMS:
username=system
Example / Tru64
username=root
password
Defines the password in clear text that will be used to connect to the console.
The password can be also stored in an encrypted file as described below.
If password is used then cryptedpass
(below) value must be set to "none
" or left empty.
Example:
password=12345
cryptedpass
Full path to the text file containing the encrypted password. To create this file, open a command window "cmd.exe
" and enter the following command ("More ?" is the continuation line prompt)
More ? |
Please note the password encryption is based on current user credentials
The parameter can be set to "none
" or simply commented if not used.
Example:
cryptedpass
=C:\Charon\myds20pwd.txt
cryptedpsys
cryptedpsys
Full path to the text file containing the encrypted password that will be used as "system" user (during Windows server shutdown). To create this file, open a command window "cmd.exe
", run "psexec -i -s cmd.exe
" ( psexec is provided in the kit) and run "powershell
" from the newly opened window. At the PowerShell prompt, enter the following command:
More ? |
Use a different name for the output file as the one user for "cryptedpass
"
The parameter can be set to "none
" or simply commented if not used.
Example:
cryptedpsys
=C:\Charon\myds20pwd_sys.txt
port
Defines the port to access the console (same as the one defined in the configuration file).
Example:
port=10003
prompt
Defines the prompt at the shell level of the guest operating system. Used to check the user is connected.
Notes:
- If the prompt contain spaces, it is necessary to add them in the configuration file
- The prompt must not contain any escape character.
Example:
prompt=myds20>
timelimitsec
Defines the maximum number of seconds the script can run (default = 180 seconds). This value depends on the time needed to shutdown properly the operating system.
Example:
timelimitsec=600
windowwidth and windowheight
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.
Example:
windowwidth=120
windowheight=50
Examples
Configuration file
|
Script execution
Check mode
When check mode is enabled, a pop-up window will be displayed to check the operations performed on the CHARON instance console.
RCVD messages correspond to the received data from the OPA0 console. |
Shutdown execution - Tru64 example
RCVD messages correspond to the received data from the OPA0 console. |
Shutdown execution - VMS example
... (truncated) RCVD messages correspond to the received data from the OPA0 console. |