...
Shutdown guests with Expect tool
Introduction
Status | ||||
---|---|---|---|---|
|
In case SSH cannot be used to perform clean shutdown of the guests, the "expect"
tool can be used to connect to the console and , perform the login operation then and execute the shutdown command .depending on the console status (at login prompt, shell prompt or SRM prompt)
In In this case the password is sent without encryption.
To facilitate use of "expect"
for shutdown, an example is provided in the "guest_shutdown.exp
" script located in the /opt/charon/utils
folder. If you plan to customize the script, you'll have to create a copy and not use it directly as it will be overwritten in case of Toolkit upgrade.
Note |
---|
' |
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 |
...