REPLACE FUNCTION SYSLIB.MonitorVirtualConfig (
) RETURNS TABLE (
ProcId INTEGER,
VprocNo SMALLINT,
Vproctype VARCHAR(3) CHARACTER SET LATIN,
HostId SMALLINT,
Status CHAR CHARACTER SET LATIN,
DiskSlice SMALLINT
)
...
;
Syntax Elements
- ProcId
- ID associated with a node.
- This value is computed as the module number within a cabinet plus the cabinet number times 10000. For example, a node #123 on cabinet #4 returns an INTEGER value of 40123.
- VprocNo
- ID of an AMP (that is, a set of disks and the associated tasks or processes that, in combination, make up the AMP), PE, or TVS vproc.
- Vproctype
- Type of vproc:
- HostId
- Logical host ID associated with a PE or session. For a PE, HostId identifies one of the hosts or LANs associated with the described PE. For a session, the combination of a host ID and a session number uniquely identifies a user session on the system.
- This value is NULL for AMPs and TVS vprocs. A value of zero represents the Supervisor window.
- Status
- Status of the vproc associated with this record. A vproc is considered up or down from the standpoint of whether the vproc is helping a query process SQL statements. For example, an AMP doing offline recovery is considered to be down because the AMP is not helping to process SQL statements. However, an up vproc is one that is online and fully up or is in online recovery.
- The status of the vproc:
- U = The vproc is up/online.
- D = The vproc is down/offline.
- DiskSlice
- Virtual disk ID defining the portion of a physical disk assigned to an AMP.
- This value is NULL for TVS vprocs.