ostTrapCfgTrapCode
OMNITRON-TRAP-MIB ·
.1.3.6.1.4.1.7342.12.1.1.1.1
Object
column SNMPv2-SMIUnsigned32
An index to the Trap Configuration table. The entry (index) corresponds
to the 'trapcode' object indicating a specific trap code for an SNMP
notification.
Standard Omnitron traps are listed as 1 through 9999
CFM standard MIB specific traps are listed as 10001-10099
DS1 standard MIB specific traps are listed as 10100-10199
MEF standard MIB specific traps are listed as 10200-10299
LLDP standard MIB specific traps are listed as 10300-10399
SNMPv2 standard MIB specific traps are listed as 10400-10499
ENTITY standard MIB specific traps are listed as 10500-10599
BRIDGE standard MIB specific traps are listed as 10600-10699
RMON standard MIB specific traps are listed as 10700-10799
Rows are automatically created based upon which notifications can be
configured by the user.
Context
- MIB
- OMNITRON-TRAP-MIB
- OID
.1.3.6.1.4.1.7342.12.1.1.1.1- Type
- column
- Access
- noaccess
- Status
- current
- Parent
- ostTrapCfgEntry
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 'OMNITRON-TRAP-MIB' -M '/opt/observium/mibs/omnitron:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'OMNITRON-TRAP-MIB::ostTrapCfgTrapCode'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'OMNITRON-TRAP-MIB' -M '/opt/observium/mibs/omnitron:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'OMNITRON-TRAP-MIB::ostTrapCfgTrapCode.<ostTrapCfgTrapCode>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'OMNITRON-TRAP-MIB' -M '/opt/observium/mibs/omnitron:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'OMNITRON-TRAP-MIB::ostTrapCfgTrapCode'
Syntax
- Source
- SNMPv2-SMIUnsigned32
- Base type
Unsigned32
Values & Constraints
Type Constraints
range: 0..4294967295