...
Warning |
---|
Console locked: Any active session to the console must be killed before the " For example, if you are connected via " If the console is locked from another host (if you use |
...
- No user connected on the console:
- Expect: "
Username:
" (VMS) or "login:
" (Tru64) - Action: An interactive session will be initiated based on <user> and <password> provided in the parameters
- Expect: "
- A user is connected on the console:
- Expect: <prompt> provided in the parameters
- This user must have privileges to perform shutdown as no logout will be issued
- Action: Depending on the Operating system parameter (see <opsys> below), the shutdown command will be sent
- Console is at SRM prompt:
- Expect: ‘
>>>
’ (so works with VAX and Alpha with "P00>>>
") - Action: A '
power off
' command will be issued. If the command is not recognized, the F6 key will be sent (this must be enabled within the configuration file). If the F6 key did not stop the emulator, the script will exit with error code 9 meaning you will have to kill the emulator process yourself (see examples in . Using the "/opt/charon/utils/charon_gstart.stop.example
" file)_expect
" script file the necessary operations will be performed.
- Expect: ‘
Div | ||
---|---|---|
| ||
Script usage
...
Parameter | Description |
---|---|
<port> | telnet port number (example: 10003) |
<user> | username for login (must be able to perform shutdown) |
<password> | password |
<prompt> | shell prompt (including end space) or last characters of the prompt |
<opsys> | VMS or UNIX |
Example:
Examples are given in the /opt/charon/utils/charon_gstart.stop.example
file
How to restart CHARON-VAX/AXP on Linux automatically on failure
...