upsBatteryTestTime
UPS2-MIB ·
.1.3.6.1.4.1.52.4.1.1.10.3.1.1.8
Object
column mandatory
r/w
Enumeration
The frequency of execution of the UPS's automatic battery test. The test may be run immediately upon startup, upon startup and every 7 days thereafter, upon startup and every 14 days thereafter, or never.
Context
- MIB
- UPS2-MIB
- OID
.1.3.6.1.4.1.52.4.1.1.10.3.1.1.8- Type
- column
- Access
- readwrite
- Status
- mandatory
- Parent
- upsBatteryEntry
Net-SNMP examples
How SNMP and these commands workWalk the column to discover its indexed instances, or supply every index to read one instance.
Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'UPS2-MIB' -M '/opt/observium/mibs/cabletron:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'UPS2-MIB::upsBatteryTestTime'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'UPS2-MIB' -M '/opt/observium/mibs/cabletron:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'UPS2-MIB::upsBatteryTestTime.<upsIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'UPS2-MIB' -M '/opt/observium/mibs/cabletron:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'UPS2-MIB::upsBatteryTestTime'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | twoWeeks |
2 | oneWeek |
3 | startupOnly |
4 | off |