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

...

When the script is initialized using option 6 or when a new virtual machine is added, the following lines are added:

...

case "$1"

in

  <configuration file>)

    #-- Uncomment and complete one of the following lines:

    #\${CHARONDIR}/utils/charon_gstop_expect \$1 \$2 root <password> "<prompt>" <TRU64/VMS>

    #\${CHARONDIR}/utils/charon_gstop_rsh \$1 \$2 <hostname> <TRU64/VMS>

    #\${CHARONDIR}/utils/charon_gstop_ssh \$1 \$2 <hostname> <TRU64/VMS>

    #/<path>/<myscript>

  ;;

...

esac

...

Stop script execution example with "rsh" on Red Hat Enterprise Linux 7.x:

Include Page
KBCOMMON:DOC-GoToToc
KBCOMMON:DOC-GoToToc

Provided shutdown scripts explanation

Note
titleNote for Red Hat Enterprise Linux 7.x and CentOS 7.x

Whatever the shutdown script execution result is, the stop command sent by the systemctl command will stop the emulator. It is very important then to ensure the stop script has been tested and validated.


charon_gstop_expect

  • Check if there's an active connection to the console on the local host, kill if any.
  • Execute the /opt/charon/utils/guest_shutdown.exp expect script with the values provided: username (root), password, prompt, operating system (either TRU64 or VMS). This script is able to send the shutdown command depending on the returned characters on the console. This can be the SRM prompt ">>>", the "login:" or "username:" prompts or the prompt of the logged in user.
  • Report all output to /opt/charon/log/console.stop.<guest name>.log.

...

  • With Charon-AXP, the "power off" command is sent at the SRM prompt
  • With Charon-VAX, the "power off" command does not exist. To power off the virtual machine, the F6 key has to be enabled in the configuration file (set OPA0 stop_on="F6"). If not set, the emulator process is killed.
  • (warning) If the console is locked from an external connection or if the prompt is not detected after sending a carriage return, the expect script will fail.

...