/SEND-VM-MESSAGE
enables messages to be sent to the VM administrators.
SEND-VM-MESSAGE |
MESSAGE = <c-string 1..72> ,VM-IDENTIFICATION = *ALL / <integer 1..99> / <name 1..8> |
MESSAGE = <c-string 1..72>
Message to be sent to all VM administrators of the specified VM.
VM-IDENTIFICATION =
Identification of the virtual machine.
VM-IDENTIFICATION = *ALL
The message is sent to all VM administrators of all VMs.
VM-IDENTIFICATION = <integer 1..99> / <name 1..8>
Identifies the virtual machine by means of a VM index or VM name.
Command return codes
(SC2) | Main code | Meaning |
0 | CMD0001 | Command successfully executed |
Example (via $VMCONS)
vm01:/send-vm-message message=c'*** shutdown in 5 min ***',vm-id=*all —— (1)
VM01:VMS3000 VM2000 COMMAND /SEND-VM-MESSAGE FOR
VIRTUAL MACHINE ( ,*ALL) PROCESSED SUCCESSFULLYVM01:NBR0740 COMMAND COMPLETED 'SEND-VM-MESSAGE';
(RESULT: SC2=000, SC1=000, MC=CMD0001); DATE: <date>
VM01:VMS2036 MESSAGE FROM VIRTUAL MACHINE (1,VM1): '*** SHUTDOWN IN 5 MIN ***'——————————————————————————————— (2)
VM02:VMS2036 MESSAGE FROM VIRTUAL MACHINE (1,VM1): '*** SHUTDOWN IN 5 MIN ***'——————————————————————————————— (3)
VM04:VMS2036 MESSAGE FROM VIRTUAL MACHINE (1,VM1): '*** SHUTDOWN IN 5 MIN ***'——————————————————————————————— (4)
vm04:/send-vm-message message=c'** shutdown !!! **',vm-id=2 ——————————— (5)VM04:VMS3000 VM2000 COMMAND /SEND-VM-MESSAGE FOR
VIRTUAL MACHINE (2,SYSTEM2) PROCESSED SUCCESSFULLYVM04:NBR0740 COMMAND COMPLETED 'SEND-VM-MESSAGE';
(RESULT: SC2=000, SC1=000, MC=CMD0001); DATE: <date>
VM02:VMS2036 MESSAGE FROM VIRTUAL MACHINE (4,SYSTEM4): '** SHUTDOWN !!! **'—————————————————————————————————————— (6)
----------------------------------------------------------------------------------------------------------------
(1) | The VM2000 administrator sends the message |
(2) | This message appears in the ADMIN dialog for the monitor VM. |
(3) | This message appears in the ADMIN dialog for VM2. |
(4) | This message appears in the ADMIN dialog for VM4. |
(5) | The VM4 administrator sends the message |
(6) | This message appears in the ADMIN dialog for VM2. |
----------------------------------------------------------------------------------------------------------------
VMS2036
is displayed as an asynchronous message in the user event stream or at the next input.