All MIBs › DMTF-SYSTEMS-MIB › secondsOnBattery
secondsOnBattery
Module: DMTF-SYSTEMS-MIB
OID (symbolic): DMTF-SYSTEMS-MIB::secondsOnBattery
OID (numeric): 1.3.6.1.4.1.412.2.4.52.1.2
Node type: OBJECT-TYPE
Type: DmiCounter
Access: read-only
Description: If the UPS is on battery power, the elapsed time in seconds since the UPS last switched to battery power, or the time since the UPS componen software was last restarted, whichever is less. Zero shall be returned if the UPS is not on battery power.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.412.2.4.52.1.2 snmpwalk -v2c -c public <target> DMTF-SYSTEMS-MIB::secondsOnBattery
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.412.2.4.52.1.2.1 snmpget -v2c -c public <target> DMTF-SYSTEMS-MIB::secondsOnBattery.1
SNMPv3 example:
snmpget -v3 -l authPriv -u snmpv3-user -a SHA -A "AuthPassword1" -x AES -X "PrivPassword1" <target> secondsOnBattery.1
Start monitoring DMI/CIM-compliant desktop/server system (vendor-neutral, DMTF standard) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the DMTF-SYSTEMS-MIB::secondsOnBattery OID value, configure state conditions and alerts, and monitor any DMI/CIM-compliant desktop/server system (vendor-neutral, DMTF standard) from a single console.
OID Breakdown
Upper-level ancestors (9 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.4 | private | AirPair-MIB |
| 1.3.6.1.4.1 | enterprises | AirPair-MIB |
| 1.3.6.1.4.1.412 | dmtf | BASEBRDD-MIB |
| 1.3.6.1.4.1.412.2 | dmtfStdMifs | BASEBRDD-MIB |
| 1.3.6.1.4.1.412.2.4 | dmtfSystemsMIF | BASEBRDD-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.412.2.4.52 | dmtfUPSBatteryTable | DMTF-SYSTEMS-MIB |
| 1.3.6.1.4.1.412.2.4.52.1 | dmtfUPSBatteryEntry | DMTF-SYSTEMS-MIB |
| 1.3.6.1.4.1.412.2.4.52.1.2 | secondsOnBattery | DMTF-SYSTEMS-MIB |