Obtaining System Information with snmptable
You can issue the snmptable
command to obtain information about the system, specifically information about alerts, modules, and volumes.
snmptable
examples shown in this topic use the -v2C
option, but the -v1
or -v3
option is also valid.To display information about alerts, issue the following command:
snmptable -m +/usr/share/snmp/mibs/STRATUS-ZTC-ENDURANCE-MIB.txt -v2c -c public localhost zenAlertTable
The command output displays the following:
Field | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
The alert number. | ||||||||||||||||||
|
The alert severity (see
|
||||||||||||||||||
|
The type of alert. Examples are:
|
||||||||||||||||||
|
The source of the alert. Examples are:
|
||||||||||||||||||
|
The date and time of the alert, in the format yyyy-mm-dd hh:mm:ss, where yyyy is year, mm is month, dd is date, hh is hour, mm is minute, and ss is second (for example, |
||||||||||||||||||
|
If |
||||||||||||||||||
|
If |
||||||||||||||||||
|
If |
||||||||||||||||||
|
Information about the alert. Examples are:
|
||||||||||||||||||
|
SNMP trap object identifier (OID). An example is |
||||||||||||||||||
zenAlertSeverityNum
|
|
To display volume information, issue the following command:
snmptable -m +/usr/share/snmp/mibs/STRATUS-ZTC-ENDURANCE-MIB.txt -v2c -c public localhost zenMirrorTable
The command output displays the following:
Field | Description |
---|---|
|
An incrementing number (1 , 2 , etc. ) to indicate the volume whose information is displayed.
|
|
The mirror name ( |
|
The unique ID of the mirror (for example, |
|
The volume size in gigabytes (for example, |
zenMirrorResync
|
If resync is running, the current resync status. |
zenMirrorDiskName1
|
The disk name for one of the mirror disks (for example, vmhba3:C0:T0:L0 ). |
zenMirrorDiskState1
|
The disk state for one of the mirror disks (for example, in_sync ). |
zenMirrorDiskName2
|
The disk name for the other mirror member. |
zenMirrorDiskState2
|
The disk state for the other mirror member. |