Is it possible to remove the enterprise OID in trap sent from snmpd?

Solution Unverified - Updated -

Issue

  • We use snmp v2 trap to monitor the linkup/down of the network devices.
  • We noticed that SNMPv2-MIB::snmpTrapEnterprise.0 variable was included in each trap. And, we know if there is a way to remove the variable from a trap. The following is a part of the tcpdump
Simple Network Management Protocol
    version: v2c (1)
    community: public
    data: sNMPv2-Trap (7)
        sNMPv2-Trap
            request-id: 1521829670
            error-status: noError (0)
            error-index: 0
            variable-bindings: 6 items
                SNMPv2-MIB::sysUpTime.0 (1.3.6.1.2.1.1.3.0): 3007
                SNMPv2-MIB::snmpTrapOID.0 (1.3.6.1.6.3.1.1.4.1.0): 1.3.6.1.6.3.1.1.5.3 (IF-MIB::linkDown)
                IF-MIB::ifIndex.2 (1.3.6.1.2.1.2.2.1.1.2): 2
                IF-MIB::ifAdminStatus.2 (1.3.6.1.2.1.2.2.1.7.2): down (2)
                IF-MIB::ifOperStatus.2 (1.3.6.1.2.1.2.2.1.8.2): down (2)
                SNMPv2-MIB::snmpTrapEnterprise.0 (1.3.6.1.6.3.1.1.4.3.0): 1.3.6.1.4.1.8072.3.2.10 (SNMPv2-SMI::enterprises.8072.3.2.10)
  • Also, when we ran "service snmpd reload", the following net-snmp specific trap was sent. We want to know if there is a way not to send such traps, since we want to monitor the trap only about linkup/down.
Simple Network Management Protocol
    version: v2c (1)
    community: public
    data: sNMPv2-Trap (7)
        sNMPv2-Trap
            request-id: 495824550
            error-status: noError (0)
            error-index: 0
            variable-bindings: 3 items
                SNMPv2-MIB::sysUpTime.0 (1.3.6.1.2.1.1.3.0): 1193461
                SNMPv2-MIB::snmpTrapOID.0 (1.3.6.1.6.3.1.1.4.1.0): 1.3.6.1.4.1.8072.4.0.2 (SNMPv2-SMI::enterprises.8072.4.0.2)
                SNMPv2-MIB::snmpTrapEnterprise.0 (1.3.6.1.6.3.1.1.4.3.0): 1.3.6.1.4.1.8072.4 (SNMPv2-SMI::enterprises.8072.4)

Environment

Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content