upsTimeOnBattery
INFRATEC-RMS-MIB ·
.1.3.6.1.4.1.1909.10.22.8
Object
scalar mandatory
seconds
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
- INFRATEC-RMS-MIB
- OID
.1.3.6.1.4.1.1909.10.22.8- Type
- scalar
- Access
- readonly
- Status
- mandatory
- Units
- seconds
- Parent
- ups
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 'INFRATEC-RMS-MIB' -M '/opt/observium/mibs/infratec:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'INFRATEC-RMS-MIB::upsTimeOnBattery.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'INFRATEC-RMS-MIB' -M '/opt/observium/mibs/infratec:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'INFRATEC-RMS-MIB::upsTimeOnBattery'
Syntax
No syntax metadata recorded.
Values & Constraints
No enumerated values or constraints recorded.