mainsRunningHours
OBS ✓
SP2-MIB ·
.1.3.6.1.4.1.12148.10.3.15
Object
scalar SNMPv2-SMIUnsigned32
This is the total mains running time measured in hours. The total outage time is available at OID 1.3.6.1.4.1.12148.10.3.6.1
Observium directly uses this object
This object is referenced by an Observium discovery or polling workflow.
Used in:
Counters
Explore Observium network monitoring
Net-SNMP examples
How SNMP and these commands workScalars have one instance, identified by the .0 suffix.
Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'SP2-MIB' -M '/opt/observium/mibs/eltek:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SP2-MIB::mainsRunningHours.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SP2-MIB' -M '/opt/observium/mibs/eltek:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SP2-MIB::mainsRunningHours'
Syntax
- Source
- SNMPv2-SMIUnsigned32
- Base type
Unsigned32
Values & Constraints
Type Constraints
range: 0..4294967295