All MIBs › MY-SNMP-AGENT-MIB › myTrapAction
myTrapAction
Module: MY-SNMP-AGENT-MIB
OID (symbolic): MY-SNMP-AGENT-MIB::myTrapAction
OID (numeric): 1.3.6.1.4.1.171.10.97.2.5.1.2.3.1.2
Node type: OBJECT-TYPE
Type: INTEGER
Access: read-write
Description: This value decide how to deal with when this type trap has happened.
What is myTrapAction?
This read-write INTEGER, none(1) or sendtrap(2), decides what the agent does when the trap condition identified by the paired myTrapType actually occurs. An admin flips this per trap type to selectively suppress noisy notifications while leaving others active, without disabling the underlying event detection. For example, setting myTrapAction to none(1) for a low-value trap type like coldStart quiets that notification while sendtrap(2) on linkDown keeps critical alerts flowing to the NMS.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.171.10.97.2.5.1.2.3.1.2 snmpwalk -v2c -c public <target> MY-SNMP-AGENT-MIB::myTrapAction
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.171.10.97.2.5.1.2.3.1.2.1 snmpget -v2c -c public <target> MY-SNMP-AGENT-MIB::myTrapAction.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.4.1.171.10.97.2.5.1.2.3.1.2.1 i <value>
Start monitoring D-Link managed switches with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the MY-SNMP-AGENT-MIB::myTrapAction OID value, configure state conditions and alerts, and monitor any D-Link managed switches from a single console.
OID Breakdown
Upper-level ancestors (10 from the standard OID tree / other modules)
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | AirPair-MIB |
| 1.3.6 | dod | AirPair-MIB |
| 1.3.6.1 | internet | AirPair-MIB |
| 1.3.6.1.4 | private | AirPair-MIB |
| 1.3.6.1.4.1 | enterprises | AirPair-MIB |
| 1.3.6.1.4.1.171 | d_link | DE1500-MIB |
| 1.3.6.1.4.1.171.10 | dlink_products | DES-1226G-MIB |
| 1.3.6.1.4.1.171.10.97 | switchMib | MY-SMI |
| 1.3.6.1.4.1.171.10.97.2 | myMgmt | MY-SMI |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.171.10.97.2.5 | mySnmpAgentMIB | MY-SNMP-AGENT-MIB |
| 1.3.6.1.4.1.171.10.97.2.5.1 | mySnmpAgentMIBObjects | MY-SNMP-AGENT-MIB |
| 1.3.6.1.4.1.171.10.97.2.5.1.2 | mySnmpTrapObjects | MY-SNMP-AGENT-MIB |
| 1.3.6.1.4.1.171.10.97.2.5.1.2.3 | myTrapActionTable | MY-SNMP-AGENT-MIB |
| 1.3.6.1.4.1.171.10.97.2.5.1.2.3.1 | myTrapActionEntry | MY-SNMP-AGENT-MIB |
| 1.3.6.1.4.1.171.10.97.2.5.1.2.3.1.2 | myTrapAction | MY-SNMP-AGENT-MIB |