Junos OS

 View Only
last person joined: 17 hours ago 

Ask questions and share experiences about Junos OS.
  • 1.  How to filter certain trap OIDs using SNMP v2?

    Posted 05-22-2019 08:20

    I'm working with an MX480 and curious if it's possible to filter out certain SNMP trap OIDs while using SNMP v2. I found a Juniper article that gives details on how to configure this for SNMP v3, but I'm lost when trying to set up this up for v2 - https://www.juniper.net/documentation/en_US/junos/topics/task/configuration/snmp-best-practices-traps-and-informs-managing.html

     

    Here's a redacted example of my current config. This works well, but there's a variety of traps that I'd like to filter out, but don't want to remove the whole trap category to do so. Thanks in advance.

     

    # show snmp
    community communitystring {
    authorization read-only;
    clients {
    192.168.0.100/32
    }
    routing-instance main_routing_instance {
    clients {
    192.168.0.100/32
    }
    }
    }
    trap-group TrapGroupName {
    version v2;
    categories {
    authentication;
    chassis;
    link;
    remote-operations;
    routing;
    startup;
    rmon-alarm;
    vrrp-events;
    configuration;
    services;
    timing-events;
    dot3oam-events;
    sonet-alarms;
    otn-alarms;
    }
    targets {
    192.168.0.100;
    }
    }
    routing-instance-access;


    #snmptrap


  • 2.  RE: How to filter certain trap OIDs using SNMP v2?
    Best Answer

    Posted 05-22-2019 09:42

    Hello,

    OID-based trap filtering is not supported for SNMPv2, only category-based.

    HTH

    Thx

    Alex