Junos OS

 View Only
last person joined: 2 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  SNMP filtering, allowing only specific OID

    Posted 05-15-2017 23:49

    just want to "include" following oids

    what will commands for "snmp view test oid ......... ?"

     

    .iso.org.dod.internet.mgmt.mib-2.system.

    .iso.org.dod.internet.mgmt.mib-2.interfaces.

     

     



  • 2.  RE: SNMP filtering, allowing only specific OID
    Best Answer

    Posted 05-16-2017 05:39

    Hello there,

    http://www.networksorcery.com/enp/protocol/snmp/mibs.htm#iso.org.dod.internet.mgmt.mib-2

    .iso.org.dod.internet.mgmt.mib-2.system.                            1.3.6.1.2.1.1
    .iso.org.dod.internet.mgmt.mib-2.interfaces.                        1.3.6.1.2.1.2

    HTH

    Thx

    Alex

    P.S. the link above is the top one when You paste "iso.org.dod.internet.mgmt.mib-2.system" string into google.com.

     



  • 3.  RE: SNMP filtering, allowing only specific OID

    Posted 05-21-2017 06:30

    thanks ... after multiple hit n try

     

    found out MIBs are enough to manage juniper MX

    this will protect again SNMPWALK hi-cpu also

     

    view sys {
        oid system include;
        oid ifMIB include;

        oid interfaces include;
        oid juniperMIB include;
        oid hrStorage include;



  • 4.  RE: SNMP filtering, allowing only specific OID

    Posted 05-20-2017 06:05

    You can also use the Juniper MIB explorer to get OID from the tree or vice versa

     

    https://apps.juniper.net/mib-explorer/navigate.jsp



  • 5.  RE: SNMP filtering, allowing only specific OID

    Posted 06-02-2023 14:35

    I want to disable a particular mib is it possible in SNMP V2?

    One of my router is generating multiple trap on DOM FAULT so i want to disable that particular mib is it possible?



    ------------------------------
    PREET PILLAI
    ------------------------------



  • 6.  RE: SNMP filtering, allowing only specific OID

    Posted 06-02-2023 16:01

    In snmp v2 you can choose categories broadly under trap groups.

    root@D10_30-SRX240H-Node0-HQ# set snmp trap-group lab categories ?  
    Possible completions:
    + apply-groups         Groups from which to inherit configuration data
    + apply-groups-except  Don't inherit configuration data from these groups
      authentication       Authentication failures
      chassis              Chassis or environment notifications
      chassis-cluster      Clustering notifications
      configuration        Configuration notifications
      link                 Link up-down transitions
    > otn-alarms           OTN alarm trap subcategories
      remote-operations    Remote operations
      rmon-alarm           RMON rising and falling alarms
      routing              Routing protocol notifications
      services             Services notifications
    > sonet-alarms         SONET alarm trap subcategories
      startup              System warm and cold starts
      vrrp-events          VRRP notifications

    https://supportportal.juniper.net/s/article/Junos-How-to-filter-SNMP-traps-to-receive-specific-types-of-traps

    In snmp v3 you can select specific oid creating profiles in notify filters.

            notify-filter allowed-traps {
                oid .1.3.6.1.6.3.1.1.5.1 include;
                oid .1.3.6.1.6.3.1.1.5.2 include;
                oid .1.3.6.1.6.3.1.1.5.3 include;
                oid .1.3.6.1.6.3.1.1.5.4 include;

    https://www.juniper.net/documentation/us/en/software/junos/network-mgmt/topics/ref/statement/notify-filter-edit-snmp.html



    ------------------------------
    Steve Puluka BSEET - Juniper Ambassador
    IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
    http://puluka.com/home
    ------------------------------