Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
TOC
TOC
Include Page
KBCOMMON:KB-CSSstyle
KBCOMMON:KB-CSSstyle

...

...
* Create a new default server host key? YES: YES
     Creating private key file: TCPIP$SSH_DEVICE:TCPIP$SSH.SSH2]HOSTKEY
     Creating public key file: TCPIP$SSH_DEVICE:TCPIP$SSH.SSH2]HOSTKEY.PUB
...

 

  • If VMS has to connect to Linux, configure the SSH CLIENT:

 

...
* Do you want to configure SSH CLIENT [NO]: YES
...

Select then:

  • Option 2 - Enable & Start service on this node
  • Exit with E twice

 

  • Copy these files from the default SSH user for the SYSTEM one:

...

In case SSH cannot be used to perform clean shutdown of the guests, the ‘expect’ expecttool can be used to connect to the console and perform the login operation then execute the shutdown command. Note in

(info) In that case the password is sent without encryption.

To facilitate use of ‘expect’ expectfor shutdown, an example is provided in the script : 'guest_shutdown.exp' located in the /opt/charon/utils folder. It is recommended not to use directly this script but to create a copy if you plan to customize the script, otherwise it could be overwritten with new distribution kit.

(warning) Console locked: one must kill any ‘telnet’ session connected to the localhost/port (this is not done inside the expect script) before using the expect script

This script can handle the following situations:

  • Console lockedAt the beginning, the script kills ‘telnet’ session connected to the localhost/portGuest console not connected
    • Expect: ‘Username: ’ (VMS) or ‘login: ‘ (Tru64)
    • Action: An interactive session will be initiated based on <user> and <password> provided
  • Guest console with user connected
    • Expect: prompt
    • This user must have privileges to perform shutdown
    Guest console not connected
    • Expect: ‘Username: ’ (VMS) or ‘login: ‘ (Tru64)Action: Depending on the Operating system parameter (see <opsys> below), the shutdown command will be sent
  • Guest console at SRM prompt
    • Expect: ‘>>>’ (so works with VAX and Alpha with ‘P00>>>’)
    • Action: A 'power off' command will be issued. If it does not succeed the F6 key will be sent (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. Examples are provided within the '/opt/charon/utils/charon_gstart.stop.example' file.

 

Script usage

Usage:

# path/script <port> <user> <password> <prompt> <opsys>

...