wrsRestartReason

WR-SWITCH-MIB · .1.3.6.1.4.1.96.100.7.1.2.3

Object

scalar Enumeration
Reason of last switch restart.
error(1) - unable to read restart reason or reset counters
generalReset(2) -  Both VDDCORE and VDDBU rising (power-on)
wakeUpReset(3) - VDDCORE rising
watchdogReset(4) - Watchdog fault occurred
softwareReset(5) - Processor reset required by the software (system reboot)
userReset(6) -  NRST pin detected low (reset button)
restartByMonit(7) - Restart caused by Monit, please check wrsRestartReasonMonit
                    for program that caused problems

Context

MIB
WR-SWITCH-MIB
OID
.1.3.6.1.4.1.96.100.7.1.2.3
Type
scalar
Access
readonly
Status
current
Parent
wrsBootStatusGroup

Scalars have one instance, identified by the .0 suffix.

Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'WR-SWITCH-MIB' -M '/opt/observium/mibs/white-rabbit:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'WR-SWITCH-MIB::wrsRestartReason.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'WR-SWITCH-MIB' -M '/opt/observium/mibs/white-rabbit:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'WR-SWITCH-MIB::wrsRestartReason'

Syntax

Enumeration

Values & Constraints

Enumerated Values
0na
1error
2generalReset
3wakeUpReset
4watchdogReset
5softwareReset
6userReset
7restartByMonit