All MIBs › UPS-MIB › upsSecondsOnBattery
upsSecondsOnBattery
Module: UPS-MIB
OID (symbolic): UPS-MIB::upsSecondsOnBattery
OID (numeric): 1.3.6.1.2.1.33.1.2.2
Node type: OBJECT-TYPE
Type: NonNegativeInteger
Access: read-only
Description: 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.
What is upsSecondsOnBattery?
This value reports how many seconds have elapsed since the UPS most recently switched to running on battery power, or since the management agent last restarted, whichever is shorter, and returns zero when the UPS is on utility power. Admins use it to gauge how long an outage has lasted and to trigger alerts or graceful-shutdown scripts once the duration crosses a threshold. A reading of 300 would mean the UPS has been running on battery for 5 minutes since the last utility failure.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.2.1.33.1.2.2 snmpwalk -v2c -c public <target> UPS-MIB::upsSecondsOnBattery
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.2.1.33.1.2.2.1 snmpget -v2c -c public <target> UPS-MIB::upsSecondsOnBattery.1
Start monitoring vendor-neutral, standards-based MIB, Uninterruptible Power Supply (UPS) systems (battery health/runtime/alarm status) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the UPS-MIB::upsSecondsOnBattery OID value, configure state conditions and alerts, and monitor any vendor-neutral, standards-based MIB, Uninterruptible Power Supply (UPS) systems (battery health/runtime/alarm status) from a single console.
OID Breakdown
Upper-level ancestors (6 from the standard OID tree / other modules)
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | AirPair-MIB |
| 1.3.6 | dod | AirPair-MIB |
| 1.3.6.1 | internet | AirPair-MIB |
| 1.3.6.1.2 | mgmt | AXON-MIB |
| 1.3.6.1.2.1 | mib_2 | AXON-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.2.1.33 | upsMIB | UPS-MIB |
| 1.3.6.1.2.1.33.1 | upsObjects | UPS-MIB |
| 1.3.6.1.2.1.33.1.2 | upsBattery | UPS-MIB |
| 1.3.6.1.2.1.33.1.2.2 | upsSecondsOnBattery | UPS-MIB |