upsBatteryVoltage
UPS2-MIB ·
.1.3.6.1.4.1.52.4.1.1.10.3.1.1.2
Object
The UPS's present battery voltage. The value of this object is the actual voltage * 100 (that is, to determine the actual voltage, divide the value of this object by 100).
Context
- MIB
- UPS2-MIB
- OID
.1.3.6.1.4.1.52.4.1.1.10.3.1.1.2- Type
- column
- Access
- readonly
- 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::upsBatteryVoltage'
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::upsBatteryVoltage.<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::upsBatteryVoltage'
Syntax
- Source
- SNMPv2-SMIInteger32
- Base type
Integer32
Values & Constraints
Type Constraints
range: -2147483648..2147483647