Junos OS

I see the configuration of informs under the [edit snmp v3] hierarchy. Does this mean I cannot use informs with SNMPv2c?

By Elevate posted 02-01-2016 11:20

  

Question

I see the configuration of informs under the [edit snmp v3] hierarchy. Does this mean I cannot use informs with SNMPv2c?

Answer

Informs can be used with SNMPv2c. You need the SNMP manager engine object identifier (OID) for informs. It is required for authentication, and informs do not work without it.

 

The following example shows the basic configuration for SNMPv3 informs on a device.

NOTE: Authentication and privacy is set to none.

 

[edit snmp]

v3 {

  usm {

     remote-engine 00000063000100a2c0a845b3 {

       user RU2_v3_sha_none {

         authentication-none;

         privacy-none;

       }

     }

  }

  vacm {

     security-to-group {

       security-model usm {

         security-name RU2_v3_sha_none {

           group g1_usm_auth;

         }

       }

     }

     access {

       group g1_usm_auth {

         default-context-prefix {

           security-model usm {

             security-level authentication {

               read-view all;

               write-view all;

               notify-view all;

             }

           }

         }

       }

     }

  }

  target-address TA2_v3_sha_none {

     address 192.168.69.179;

     tag-list tl1;

     address-mask 255.255.252.0;

     target-parameters TP2_v3_sha_none;

  }

  target-parameters TP2_v3_sha_none {

     parameters {

       message-processing-model v3;

       security-model usm;

       security-level none;

       security-name RU2_v3_sha_none;

     }

     notify-filter nf1;

  }

  notify N1_all_tl1_informs {

     type inform; # Replace “inform” with “trap” to convert informs to traps.

     tag tl1;

  }

  notify-filter nf1 {

     oid .1 include;

  }

  view all {

     oid .1 include;

     }

  }

 

You can convert the SNMPv3 informs to traps by setting the value of the type statement at the [edit snmp v3 notify N1_all_tl1_informs] hierarchy level to trap as shown in the following example:

 

user@host# set snmp v3 notify N1_all_tl1_informs type trap

 

For more information, click: Understanding SNMP implementation in Junos OS


#FAQ
0 comments
0 views

Permalink