Anchor | ||||
---|---|---|---|---|
|
Include Page | ||||
---|---|---|---|---|
|
...
When the script is initialized using option 6 or when a new virtual machine is added, the following lines are added:
...
...
|
One of the blue colored lines above has to be uncommented depending on the method chosen. Other lines can remain in the script or can be deleted.
...
- If the "Main Menu" prompt is found, the "
exit
" command is sent to stop the emulator. - If the "ISL>" prompt is found, a "
reset
" command is sent then waits for the "Main Menu" prompt and sends the "exit" command is sent to stop the emulator. - 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.
Div | ||
---|---|---|
| ||
charon_gstop_rsh
Check the guest can be reached via ping, if yes:
Issue the
shutdown
command via "rsh" (depends on the operating system),Wait for a few seconds
Check if the guest can be "pinged" and repeat with an interval of 5 seconds
If the guest cannot be pinged, assume the shutdown procedure is complete
Kill the emulator process and reset the service state. The shutdown commands does not power off nor stop the emulator process, that's why this operation is needed
Report the stop information within the guest log file
...
class | pagebreak |
---|
...
Display output example from the "vmlist
" command:
Div | ||
---|---|---|
| ||
Script example:
In this example, we use "ssh
" to display the guest "uptime
".
...
|
...
Example:
|
...