QUERY MEMASSIST
Authorization
Privilege Class: B, G
Purpose
Use QUERY MEMASSIST to determine the collaborative memory management assist settings for your own virtual machine or another user's virtual machine.
Operands
- *
- indicates that you wish to display your own virtual machine's MEMASSIST settings.
- USER userid
- is the user ID of the virtual machine for which you want to display the MEMASSIST settings.
Usage Notes
- The initial MEMASSIST settings for your virtual machine are determined as follows:
- If the collaborative memory management assist is installed on the system, the initial setting is ON unless the OPTION NOMEMASSIST is specified in the user directory entry.
- If the collaborative memory management assist is not installed, the initial setting is OFF.
- At z/VM® IPL, the initial MEMASSIST FOR ALL setting is ON, even if the assist is not installed on the machine. This allows a virtual machine to SET MEMASSIST ON, causing the assist to be simulated by z/VM for guest testing purposes.
- You can use the class G SET MEMASSIST command to change your MEMASSIST setting. You can use the class B SET MEMASSIST command to change another virtual machine's MEMASSIST setting. For more information, see SET MEMASSIST.
- If the collaborative memory management assist is not installed on the machine, guests can still use it by means of the simulation that is built into CP. However, because of the overhead incurred by simulation, this mode of operation is recommended for testing purposes only.
Responses
ALL USERS SET - {ON | OFF}
USER SETTING STATUS
userid setting statusSETTING STATUS
OFF INACTIVE
ON INACTIVE
ON INACTIVE,PENDING OFF
(ON) INACTIVE,PENDING OFF
ON ACTIVE
ON ACTIVE,PENDING OFF
(ON) ACTIVE,PENDING OFFAny of these may be suffixed by ,SIMULATED.
- ALL USERS SET - {ON | OFF}
- The setting for ALL USERS is either ON or OFF. The setting is controlled by the class B command
SET MEMASSIST ON|OFF FOR ALL, which controls access to the collaborative memory management assist on
a system-wide basis.
ON means users can enable the assist for their virtual machines through the SET MEMASSIST ON command and use the assist by executing the EXTRACT AND SET STORAGE ATTRIBUTES (ESSA) instruction.
OFF means users cannot enable the assist for their virtual machines (SET MEMASSIST ON is rejected), and users who are not currently using the assist are not able to begin using it (the ESSA instruction causes an operation exception). However, users who are currently using the assist continue to have access to it until the next virtual machine reset.
- USER
- The userid field contains the user ID of the virtual machine being queried.
- SETTING
- This field is ON, (ON), or OFF. This setting is independent of the system-wide setting. That is,
the system-wide setting is like one gate to pass through, which can be open or closed. The user
setting is like a second gate, which can be open or closed independently of the first gate.
ON means the user has access to the assist and may begin using it if not already doing so.
(ON) means that the user's current setting is ON, but system-wide access to the assist is denied because that setting is OFF. The user may continue using the assist if already doing so.
OFF means the user does not have access to the assist and that execution of the ESSA instruction results in an operation exception.
The default value for this field is determined during logon processing and is set ON if the assist is installed on the machine and OPTION NOMEMASSIST does not appear in the user's directory entry; it is set OFF otherwise.
- STATUS
- The status field indicates the current disposition of the virtual machine with respect to the
assist. The field can be INACTIVE; INACTIVE,PENDING OFF; ACTIVE; or
ACTIVE,PENDING OFF. In addition, SIMULATED is appended to the status, if applicable.
INACTIVE means the user is not currently using the assist.
ACTIVE means the user is currently using the assist (that is, the guest has executed at least one ESSA instruction since the last virtual machine reset).
PENDING OFF means the user might be currently using the assist, but that the SET MEMASSIST OFF command has been issued by or for the user. The user might begin or continue using the assist until the next virtual machine reset, at which time the SET MEMASSIST OFF command takes effect.
SIMULATED means the assist is not installed on the machine, and that it is simulated by CP.
Sample responses are:
ALL USERS SET - ON
USER SETTING STATUS
LINUX01 ON ACTIVEALL USERS SET - ON
USER SETTING STATUS
MANSELL ON INACTIVEALL USERS SET - OFF
USER SETTING STATUS
MANSELL (ON) INACTIVE, PENDING OFFALL USERS SET - OFF
USER SETTING STATUS
B (ON) ACTIVE, PENDING OFFMessages
- HCP003E Invalid option - option
- HCP020E Userid missing or invalid
- HCP045E userid not logged on
