MY-SNMP-AGENT-MIB :: myTrapAction

MIB Reference — IPNetwork Monitor · Updated October 06, 2026

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 OIDNameModule
1isoLANART-AGENT
1.3orgAirPair-MIB
1.3.6dodAirPair-MIB
1.3.6.1internetAirPair-MIB
1.3.6.1.4privateAirPair-MIB
1.3.6.1.4.1enterprisesAirPair-MIB
1.3.6.1.4.1.171d_linkDE1500-MIB
1.3.6.1.4.1.171.10dlink_productsDES-1226G-MIB
1.3.6.1.4.1.171.10.97switchMibMY-SMI
1.3.6.1.4.1.171.10.97.2myMgmtMY-SMI
Numeric OIDNameModule
1.3.6.1.4.1.171.10.97.2.5mySnmpAgentMIBMY-SNMP-AGENT-MIB
1.3.6.1.4.1.171.10.97.2.5.1mySnmpAgentMIBObjectsMY-SNMP-AGENT-MIB
1.3.6.1.4.1.171.10.97.2.5.1.2mySnmpTrapObjectsMY-SNMP-AGENT-MIB
1.3.6.1.4.1.171.10.97.2.5.1.2.3myTrapActionTableMY-SNMP-AGENT-MIB
1.3.6.1.4.1.171.10.97.2.5.1.2.3.1myTrapActionEntryMY-SNMP-AGENT-MIB
1.3.6.1.4.1.171.10.97.2.5.1.2.3.1.2myTrapActionMY-SNMP-AGENT-MIB