Enabling Terminals for a VM Guest
Most testing can be done by initializing and running tests from other than the operator's virtual machine. You can define additional graphic devices so that additional users can log on your second level system. Use the SPECIAL statement in the first level user ID's directory entry to define a graphic device (3270) when the user logs on. Use the CP DEFINE GRAF command to dynamically define a graphic device at any time. You can confirm that the virtual device is defined by issuing a CP QUERY VIRTUAL GRAF command to first level CP.
Enter the following on the first level user ID:
#cp query virtual graf
CONS 0009 ON LDEV L002C SUBCHANNEL = 0000
GRAF 0060 NOT DIALED SUBCHANNEL = 0021The NOT DIALED
status indicates that the address 60 is defined
but no terminal has dialed into it.
On another terminal (on the same first level system), enter:
dial vmtest 060Note: If you enter the CP DIAL command without a specified address,
VM connects the terminal to the unused graphic device with the lowest
address in the specified user ID's virtual configuration. If no lines
are available or if all lines are busy, VM sends an error message
and does not make the connection.
Return to the OPERATOR user ID on the second level system by entering
BEGIN. You can then VARY ON and ENABLE the device from the second
level system:
vary online 060
0060 varied online
1 device(s) specified; 1 device(s) successfully varied online
enable 060
COMMAND COMPLETEYou should now be able to see the logo for the second level system.
This console remains connected until one of the following happens:
- The virtual machine logs off using standard log off procedure
- The virtual machine is forcibly logged off
- The terminal is turned off and then turned on
- When the CP RESET command is issued from the first level console of the user ID owning the second level system or by a user authorized with the CP RESET command.