Setup traps on the N-Series

  • 0
  • 1
  • Article
  • Updated 5 years ago
  • (Edited)
Article ID: 5116 

Products
N-Series
DFE

Protocols/Features
SNMP
Traps

Solution
The following example will describe how to setup SNMPv1 traps on the N-series products.
  1. The first thing that needs to be defined is a community name that will be used when sending the traps. You can use the default community name of 'public' if you wish, but this example will create another one. To set a community name use the following command:

      set snmp community

      set snmp community traptest

  2. The community name needs to be associated to a group. This example will use the default group of groupRW. Another group could be specified. The command for this is:

      set snmp group user security-model v1

      set snmp group groupRW user traptest security-model v1

  3. The group created above needs to be given access for read, write and notify (trap). The command for this is:

      set snmp access security-model v1 read write notify

      set snmp access groupRW security-model v1 read All write All notify All

    The View 'All' is predefined. This allows access to the entire MIB tree structure.

  4. A set of parameters needs to be setup for sending SNMP messages (traps). The command for this is:

      set snmp targetparams user traptest security-model v1 message-processing v1

      set snmp targetparams v1traps user traptest security-model v1 message-processing v1

  5. A target needs to be defined to send traps to. The command for this is:

      set snmp targetaddr param taglist

      set snmp targetaddr mystation 172.26.192.50 param v1traps taglist snmpv1trap

  6. The last step is to tell the device to actually send the traps. The command for this is:

      set snmp notify tag

      set snmp notify trap1 tag snmpv1trap

The following is the above example in a working configuration:
    set snmp access groupRW security-model v1 read All write All notify All
    set snmp access groupRW security-model v2c read All write All notify All
    set snmp community public
    set snmp community traptest
    set snmp group groupRW user public security-model v1
    set snmp group groupRW user traptest security-model v1
    set snmp group groupRW user public security-model v2c
    set snmp notify trap1 tag snmpv1trap
    set snmp targetaddr mystation 172.26.192.50 param v1traps taglist snmpv1trap
    set snmp targetparams v1traps user traptest security-model v1 message-processing v1

    set snmp view viewname All subtree 1
    set snmp view viewname All subtree 0.0

See also: 5245, 5390, and 7158.
Photo of FAQ User

FAQ User, Official Rep

  • 13,610 Points 10k badge 2x thumb

Posted 5 years ago

  • 0
  • 1

There are no replies.

This conversation is no longer open for comments or replies.