Header Only - DO NOT REMOVE - Extreme Networks

Setup traps on the N-Series


Userlevel 3
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: [code]set snmp community[/code] [code]set snmp community traptest[/code] 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: [code]set snmp group user security-model v1[/code] [code]set snmp group groupRW user traptest security-model v1[/code] The group created above needs to be given access for read, write and notify (trap). The command for this is: [code]set snmp access security-model v1 read write notify[/code] [code]set snmp access groupRW security-model v1 read All write All notify All[/code] The View 'All' is predefined. This allows access to the entire MIB tree structure. A set of parameters needs to be setup for sending SNMP messages (traps). The command for this is: [code]set snmp targetparams user traptest security-model v1 message-processing v1[/code] [code]set snmp targetparams v1traps user traptest security-model v1 message-processing v1[/code] A target needs to be defined to send traps to. The command for this is: [code]set snmp targetaddr param taglist[/code] [code]set snmp targetaddr mystation 172.26.192.50 param v1traps taglist snmpv1trap[/code] The last step is to tell the device to actually send the traps. The command for this is: [code]set snmp notify tag[/code] [code]set snmp notify trap1 tag snmpv1trap[/code]
The following is the above example in a working configuration:
    [code]set snmp access groupRW security-model v1 read All write All notify All[/code] [code]set snmp access groupRW security-model v2c read All write All notify All[/code] [code]set snmp community public[/code] [code]set snmp community traptest[/code] [code]set snmp group groupRW user public security-model v1[/code] [code]set snmp group groupRW user traptest security-model v1[/code] [code]set snmp group groupRW user public security-model v2c[/code] [code]set snmp notify trap1 tag snmpv1trap[/code] [code]set snmp targetaddr mystation 172.26.192.50 param v1traps taglist snmpv1trap[/code] [code]set snmp targetparams v1traps user traptest security-model v1 message-processing v1[/code] [code]set snmp view viewname All subtree 1[/code] [code]set snmp view viewname All subtree 0.0[/code]
See also: 5245, 5390, and 7158.

0 replies

Be the first to reply!

Reply