Collects global summary information that includes the following types of information:
- CPU usage (average, high, and low)
- Disk usage (average, high, and low)
- BYNET usage (total, up/down)
- Rate information (resource logging rate and resource monitoring rate)
- Current software release and version numbers
Syntax
REPLACE FUNCTION SYSLIB.MonitorPhysicalSummary (
) RETURNS TABLE (
AvgCPU FLOAT,
AvgDisk FLOAT,
AvgDiskIO FLOAT,
HighCPUUse FLOAT,
HighDisk FLOAT,
HighDiskIO FLOAT,
HighCPUProcId INTEGER,
HighDiskProcId INTEGER,
HighDiskIOProcId INTEGER,
LowCPUUse FLOAT,
LowDisk FLOAT,
LowDiskIO FLOAT,
LowCPUProcId INTEGER,
LowDiskProcId INTEGER,
LowDiskIOProocId INTEGER,
NetUse FLOAT,
NetAUp CHAR(1)CHARACTER SET LATIN,
NetBUp CHAR(1)CHARACTER SET LATIN,
ResLogging SMALLINT,
ResMonitor SMALLINT,
ReleaseNum VARCHAR(30)CHARACTER SET LATIN,
Version VARCHAR(32) CHARACTER SET LATIN
)
...
;
Syntax Elements
- AvgCPU
- Average % CPU usage (CPUUse) time of all online nodes currently in the database configuration.
- AvgDisk
- Average % disk usage (from DiskUse) of all online nodes currently in the database configuration.
- AvgDiskIO
- Average physical disk DiskReads and DiskWrites of all online AMPs in the configuration.
- HighCPUUse
- Highest CPUUse number associated with any online node that is currently part of the database configuration.
- HighDisk
- Highest % disk usage (from DiskUse) associated with any online node that is currently part of the database configuration.
- HighDiskIO
- ID of a node with DiskReads and DiskWrites equal to the value reported as HighDiskIO.
- HighCPUProcId
- ID of a node with CPPUse equal to the value reported as HighCPUUse.
- HighDiskProcId
- ID of a node with DiskUse equal to the value reported as HighDisk.
- HighDiskIOProcId
- ID of a node with DiskReads and DiskWrites equal to the value reported as HighDiskIO.
- LowCPUUse
- Lowest CPUUse number associated with any online node that is currently part of the database configuration.
- LowDisk
- Lowest % disk usage (from DiskUse) associated with any online node that is currently part of the database configuration.
- LowDiskIO
- Lowest DiskReads and DiskWrites number associated with any online node that is currently part of the database configuration.
- LowCPUProcId
- ID of a node with CPPUse equal to the value reported as LowCPUUse.
- LowDiskProcId
- ID of a node with DiskUse equal to the value reported as LowDisk.
- LowDiskIOProocId
- ID of a node with DiskReads and DiskWrites equal to the value reported as LowDiskIO.
- NetUse
- % of total BYNET use (that is, average of the online BYNETs).
- NetAUp
- NetBUp
- Status of the BYNETs (if there are more than two, the first two) on a system-wide basis:
- U = All node BYNETs are up/online.
- D = One or more node BYNETs is down/offline.
- "" = A temporary condition where the BYNET data is not available.
- ResLogging
- Interval in seconds at which resource usage data is written to one or more active resource usage database tables.
- ResMonitor
- Interval in seconds at which all resource usage data is collected in memory for reporting via the PM/API.
- ReleaseNum
- Release number of the currently running database software (for example, 15.00.00.00).
- Version
- Version number of the currently running database software (for example, 15.00.00.00).
Usage Notes
The MonitorPhysicalSummary function provides similar functionality to the PMPC MONITOR PHYSICAL SUMMARY request. For information about this interface, see MONITOR PHYSICAL SUMMARY.
Example: Using MonitorPhysicalSummary
SELECT * FROM TABLE (MonitorPhysicalSummary()) AS t1;
Result:
*** Query completed. One row found. 22 columns returned.
*** Total elapsed time was 1 second.
AvgCPU 1.00000000000000E 002
AvgDisk 7.51986754966887E 000
AvgDiskIO 6.64700000000000E 003
HighCPUUse 1.00000000000000E 002
HighDisk 7.51986754966887E 000
HighDiskIO 6.64700000000000E 003
HighCPUProcId 10001
HighDiskProcId 10001
HighDiskIOProcId 10001
LowCPUUse 1.00000000000000E 002
LowDisk 7.51986754966887E 000
LowDiskIO 6.64700000000000E 003
LowCPUProcId 10001
LowDiskProcId 10001
LowDiskIOProcId 10001
NetUse 0.00000000000000E 000
NetAUp U
NetBUp U
ResLogging 60
ResMonitor 60
ReleaseNum 16t.00.00.97
Version 16t.00.00.97_dr182707k