upsBaseBatteryTimeOnBattery
DGPUPS-MIB ·
.1.3.6.1.4.1.17420.1.1.2.2.1.2
Object
The elapsed time in seconds since the UPS has switched to battery power.
Context
- MIB
- DGPUPS-MIB
- OID
.1.3.6.1.4.1.17420.1.1.2.2.1.2- Type
- scalar
- Access
- readonly
- Status
- mandatory
- Parent
- upsBaseBattery
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 'DGPUPS-MIB' -M '/opt/observium/mibs/digipower:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DGPUPS-MIB::upsBaseBatteryTimeOnBattery.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'DGPUPS-MIB' -M '/opt/observium/mibs/digipower:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'DGPUPS-MIB::upsBaseBatteryTimeOnBattery'
Syntax
- Source
- SNMPv2-SMIInteger32
- Base type
Integer32
Values & Constraints
Type Constraints
range: -2147483648..2147483647