upsSecondsOnBattery

OBS ✓
SOCOMECUPS-MIB · .1.3.6.1.4.1.4555.1.1.1.1.2.2

Object

scalar mandatory Integer32
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.  -1 shall be returned
if the unit is not on battery power.
Observium directly uses this object
This object is referenced by an Observium discovery or polling workflow.
Used in: Sensors
Explore Observium network monitoring

Context

MIB
SOCOMECUPS-MIB
OID
.1.3.6.1.4.1.4555.1.1.1.1.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 'SOCOMECUPS-MIB' -M '/opt/observium/mibs/socomec:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SOCOMECUPS-MIB::upsSecondsOnBattery.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SOCOMECUPS-MIB' -M '/opt/observium/mibs/socomec:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SOCOMECUPS-MIB::upsSecondsOnBattery'

Syntax

Source
SNMPv2-SMIInteger32
Base type
Integer32

Values & Constraints

Type Constraints
range: -2147483648..2147483647