mainsOutageTotal
SP2-MIB ·
.1.3.6.1.4.1.12148.10.3.6.1
Object
scalar SNMPv2-SMIInteger32
This is the total mains outage time measured in hours. Note that the value of this OID does not changed when the 'mainsLogMode' OID is set to 'runningTime'. The total running time is available at OID 1.3.6.1.4.1.12148.10.3.15.
Context
- MIB
- SP2-MIB
- OID
.1.3.6.1.4.1.12148.10.3.6.1- Type
- scalar
- Access
- readonly
- Status
- current
- Parent
- mainsOutageLog
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::mainsOutageTotal.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::mainsOutageTotal'
Syntax
- Source
- SNMPv2-SMIInteger32
- Base type
Integer32
Values & Constraints
Type Constraints
range: -2147483648..2147483647