upsBatteryNumberOfCabinets
PowerNet-MIB ·
.1.3.6.1.4.1.318.1.1.1.2.4
Object
The value indicates the number of battery cabinets in total, internal and external. If the UPS only has internal batteries, that number should be 1. If the UPS has external and internal, the number is 1 + number of external cabinets.
Context
- MIB
- PowerNet-MIB
- OID
.1.3.6.1.4.1.318.1.1.1.2.4- Type
- scalar
- Access
- readonly
- Status
- mandatory
- Parent
- upsBattery
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 'PowerNet-MIB' -M '/opt/observium/mibs/apc:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'PowerNet-MIB::upsBatteryNumberOfCabinets.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'PowerNet-MIB' -M '/opt/observium/mibs/apc:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'PowerNet-MIB::upsBatteryNumberOfCabinets'
Syntax
- Source
- SNMPv2-SMIInteger32
- Base type
Integer32
Values & Constraints
Type Constraints
range: -2147483648..2147483647