solarBatSecondsOnBattery
NEXT-UPS-MIB ·
.0.1.2.3.2
Object
scalar secondsInteger32
If the unit is on battery power, the elapsed time since the solar last switched to battery power, or the time since the network management subsystem was last restarted, whichever is less. -1 shall be returned if the unit is not on battery power.
Context
- MIB
- NEXT-UPS-MIB
- OID
.0.1.2.3.2- Type
- scalar
- Access
- readonly
- Status
- current
- Units
- seconds
- Parent
- solarBattery
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 'NEXT-UPS-MIB' -M '/opt/observium/mibs/nextupssystems:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'NEXT-UPS-MIB::solarBatSecondsOnBattery.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'NEXT-UPS-MIB' -M '/opt/observium/mibs/nextupssystems:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'NEXT-UPS-MIB::solarBatSecondsOnBattery'
Syntax
secondsInteger32
- Source
- SNMPv2-SMIInteger32
- Base type
Integer32
Values & Constraints
Type Constraints
range: -2147483648..2147483647