agentSnmpTrapState
DLINK-AGENT-MIB ·
.1.3.6.1.4.1.171.12.1.2.22
Object
scalar r/w
Enumeration
This object indicates the state of snmp trap is enabled or disabled.
Context
- MIB
- DLINK-AGENT-MIB
- OID
.1.3.6.1.4.1.171.12.1.2.22- Type
- scalar
- Access
- readwrite
- Status
- current
- Parent
- agentBasicConfig
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 'DLINK-AGENT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DLINK-AGENT-MIB::agentSnmpTrapState.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'DLINK-AGENT-MIB' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'DLINK-AGENT-MIB::agentSnmpTrapState'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | enabled |
2 | disabled |