Error/Fault Data for Switch Environmental CharacteristicsThe following section looks at the switch environmental characteristics such as power supply statistics, temperature status, and fan status. We'll identify some MIBs as well as some show commands to identify the data points for these variables. MIB Variables for Voltages (Power Supply) and FanFrom CISCO-STACK MIB, the following variables provide voltage and fan data for switches:
These MIBs indicate the type of power supplies installed in the chassis as well as their statuses. There are unique MIBs for each power supply installed, either power supply 1 or 2. The status MIBs report either an ok status, a minorFault status, or a majorFault status. If the status is not ok, the value of TestResult MIBs give more detailed information about the power supply's failure condition(s). Polling these variables is a lot more flexible than actively polling the router's environmental variables. Specifically, if an alarm is triggered, then you can actively poll the TestResult MIBs to get a reason why a failure occurred. If the statuses are flagged as a minor or major fault, it triggers the appropriate chassisMinorAlarm or chassisMajorAlarm, thus triggering the chassisAlarmOn SNMP trap. Table 10-19 summarizes the recommended baseline thresholds for voltages:
Related MIB objects from MIB CISCO-STACK are the following:
Voltage and Fan Information via show systemThe show system command can be used to zoom in on the power supply status (PS1-Status and PS2-Status) and fan status. The normal status of the power supplies is ok or none if no redundant power supply is installed. The failed values are either fan failed or faulty, which triggers either a major or minor alarm. The normal status for the fan is ok anything else is a fault with the fan. Example 10-19 shows output from a show system command. Example 10-19 Obtaining power supply and fan status information with show system. Switch>show system PS1-Status PS2-Status Fan-Status Temp-Alarm Sys-Status Uptime d,h:m:s Logout ---------- ---------- ---------- ---------- ---------- -------------- --------- okA none A ok B off ok 4,23:06:16 20 min PS1-Type PS2-Type Modem Baud Traffic Peak Peak-Time ---------- ---------- ------- ----- ------- ---- ------------------------- WS-C5508 C none C disable 9600 0% 0% Wed Apr 21 1999, 15:57:24 System Name System Location System Contact ------------------------ ------------------------ ------------------------ Following are annotated highlights of Example 10-19:
SNMP Traps for Voltage and Fan InformationFrom CISCO-STACK-MIB TRAPS, two SNMP traps are relevant to voltage and fan information:
A chassisAlarmOn trap signifies that the agent entity has detected the chassisTempAlarm, chassisMinorAlarm, or chassisMajorAlarm object, and this MIB has transitioned to the on(2) state. The generation of this trap can be controlled by the sysEnableChassisTraps object in this MIB or by using the CLI command set snmp trap enable chassis. A chassisAlarmOff trap signifies that the agent entity has detected the chassisTempAlarm, chassisMinorAlarm, or chassisMajorAlarm object, and this MIB has transitioned to the off(1) state. The generation of this trap can be controlled by the sysEnableChassisTraps object in this MIB or by using the CLI command set snmp trap enable chassis. Syslog Messages for Voltage and Fan Information[1]
Table 10-20 summarizes the syslog messages from the switch that relate to the voltage and fan statistics.
MIB Variables for TemperatureFrom CISCO-STACK MIB, the chassisTempAlarm MIB indicates the temperature alarm status as off, on, or critical. Refer to Table 10-16 for the temperature thresholds. The temperature alarm status is not an object typically actively polled because the SNMP trap chassisAlarmOn uses this variable as a varbind, unlike the power supply and Fan MIBs. Treat this MIB just like the router environmental MIBs. Use the SNMP trap as the way to determine the temperature status; "only notify me when it is an issue." Table 10-21 shows the recommended baseline threshold for temperature:
Temperature Information via show systemExample 10-20 emphasizes the temperature alarm status (Temp-Alarm) as displayed in show system output. Example 10-20 Obtaining temperature information with show system. Switch>show system PS1-Status PS2-Status Fan-Status Temp-Alarm Sys-Status Uptime d,h:m:s Logout ---------- ---------- ---------- ---------- ---------- -------------- --------- ok none ok off A ok 4,23:06:16 20 min PS1-Type PS2-Type Modem Baud Traffic Peak Peak-Time ---------- ---------- ------- ----- ------- ---- ------------------------- WS-C5508 none disable 9600 0% 0% Wed Apr 21 1999, 15:57:24 System Name System Location System Contact ------------------------ ------------------------ ------------------------ The "Temp-Alarm" column (A) is either "on" or "off". The normal state is off. If it is on, look for an SNMP trap chassisAlarmOn with a value of contained from chassisTempAlarm, either on or critical. SNMP Traps for Temperature InformationThe chassisAlarmOn and chassisAlarmOff traps can be useful in obtaining temperature information. See the earlier section, "SNMP Traps for Voltage and Fan Information," for a description of these traps. Syslog Messages for Temperature InformationTable 10-22 summarizes syslog messages that provide temperature information for switches.
|