QUERY RESOURCE

Read syntax diagramSkip visual syntax diagram Query RESOurce ALLNodeidnodeidtpnUseriduserid

Authorization

Privilege Class: G

Purpose

Use QUERY RESOURCE to display information about:
  • Local, global, and system resources defined on the local z/VM system
  • Global resources defined at the other domains in the Communication Services (CS) collection.

Operands

ALL
displays information for all local, global, system resources defined on the local system and the global resources defined in the CS collection.
Nodeid nodeid
displays information for the global resources that are located at the node nodeid.
tpn
displays information for the specified global resource (transaction program).
Userid userid
displays information about resources owned by userid that are located on the local VM node.

Responses

Response 1:

{Resource: resid}  Type: Global  Owning Nodeid: nodeid [via tnode]
{Service:  stpn }
resid
specifies the resource ID of the global resource known in the CS collection.
stpn
specifies the hexadecimal name of a service transaction program.
nodeid
specifies the node ID of the system in the CS collection that owns the resource.
tnode
is the node through which the resource is known.

Response 2:

{Resource: resid}  Type: restype  Owning Userid: userid
{Service:  stpn }
resid
specifies the resource ID of the local, global, or system resource defined at the local z/VM system.
stpn
specifies the hexadecimal name of a service transaction program.
restype
indicates if this is a local, global, or system resource.
userid
is the user ID on the local system that owns the resource.
Response 3:
Status:  status.
status
indicates if an identify or a revoke is pending for the resource. This response is suppressed if the resource is identified.
Response 4:
No resources identified.
Response 5:
No resources identified by node nodeid.
nodeid
specifies the node ID that has no resources identified.
Response 6:
No resources identified by user userid.
userid
is the user ID that has no resources identified.

Messages

  • HCP002E Invalid operand - operand
  • HCP003E Invalid option - command contains extra option(s) starting with option
  • HCP026E Operand missing or invalid
  • HCP2724E Resource tpn is undefined.