dupsSecondsOnBattery

DeltaUPSv5-MIB · .1.3.6.1.4.1.2254.2.5.7.4

Object

scalar mandatory 1 SecondInteger32
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
DeltaUPSv5-MIB
OID
.1.3.6.1.4.1.2254.2.5.7.4
Type
scalar
Access
readonly
Status
mandatory
Units
1 Second
Parent
dupsBattery

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

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

Syntax

1 SecondInteger32
Source
SNMPv2-SMIInteger32
Base type
Integer32

Values & Constraints

Type Constraints
range: -2147483648..2147483647