upsContactState
CPQPOWER-MIB ·
.1.3.6.1.4.1.232.165.3.6.8.1.3
Object
column mandatory
Enumeration
The current state of the Contact input; the value is based on the open/closed input state and the setting for UpsContactType. When entering the openWithNotice(3) and closedWithNotice(4) states, no entries added to the UpsAlarmTable, but the UpstdContactActiveNotice trap is sent.
Context
- MIB
- CPQPOWER-MIB
- OID
.1.3.6.1.4.1.232.165.3.6.8.1.3- Type
- column
- Access
- readonly
- Status
- mandatory
- Parent
- upsContactsTableEntry
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 'CPQPOWER-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'CPQPOWER-MIB::upsContactState'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'CPQPOWER-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'CPQPOWER-MIB::upsContactState.<upsContactIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'CPQPOWER-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'CPQPOWER-MIB::upsContactState'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | open |
2 | closed |
3 | openWithNotice |
4 | closedWithNotice |