rupsSecondsOnBattery

RIELLOUPS-MIB · .1.3.6.1.4.1.5491.10.1.2.2

Object

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

Context

MIB
RIELLOUPS-MIB
OID
.1.3.6.1.4.1.5491.10.1.2.2
Type
scalar
Access
readonly
Status
current
Parent
rupsBattery

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

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

Syntax

Source
NonNegativeInteger
Base type
Integer32
Display format
d
Type Description
This data type is a non-negative value.

Values & Constraints

Type Constraints
range: 0..2147483647