upsSecondsOnBattery

MITSUBISHI-UPS-MIB · .0.13891.101.2.2

Object

scalar mandatory NonNegativeInteger
If the unit is on battery power, the elapsed time in seconds
since the UPS last switched to battery power, or the time since 
the network management system was last restarted, whichever is less.  
Zero shall be returned if the unit is not on battery power.

Context

MIB
MITSUBISHI-UPS-MIB
OID
.0.13891.101.2.2
Type
scalar
Access
readonly
Status
mandatory
Parent
upsBattery

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

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

Syntax

Source
NonNegativeInteger
Base type
Integer32

Values & Constraints

No enumerated values or constraints recorded.