Foundry NetIron M2404C and M2404F Metro Access Switches
Configuring SNMP (Rev. 03)
Simple Network Management Protocol
© 2008 Foundry Networks, Inc.
Page 40 of 48
device-name
(config)#
snmp-server view viewAll 1.3 included
3. Create a group named
gall
, which supports only notification view:
device-name
(config)#
snmp-server group gall v1 read none write none notify
viewAll
4. Create a user named
trap_v1
with group
gall
for SNMPv1:
device-name
(config)#
snmp-server user trap_v1 group gall v1
5. Add a target parameter named
MyParam
that uses the user
trap_v1
:
device-name
(config)#
snmp-server target-param MyParam trap_v1 v1
6. Create the target address
TargetAddress1
for IP address 20.0.0.5, port 162 that
uses the target parameter
MyParam
and will send all the packets to
tag1
:
device-name
(config)#
snmp-server target-addr TargetAddress1 20.0.0.5 162
MyParam tag1
7. Add to
tag1
the
coldstart
notification:
device-name
(config)#
snmp-server notify coldstart tag1
8. Add to
tag1
the
linkdown
notification:
device-name
(config)#
snmp-server notify linkDown tag1
9. Add to
tag1
the
linkup
notification:
device-name
(config)#
snmp-server notify linkUp tag1
The following commands will change the switch configuration to send the same notification in
SNMPv3 format without authentication and privacy to the same target, as well as SNMPv1
notifications.
1. Create a user named
trap_v3
with group
gall
for SNMPv3:
device-name
(config)#
snmp-server user trap_v3 group gall v3
2. Add a target parameter named
MyParam1
that uses the user
trap_v3
:
device-name
(config)#
snmp-server target-param MyParam1 trap_v3 v3 noauth
3. Create the target address
TargetAddress_v3
for IP address 20.0.0.5, port 162
that uses the target parameter
MyParam1
and will send all the packets to
tag1
:
device-name
(config)#
snmp-server target-addr TargetAddress_v3 20.0.0.5 162
MyParam1 tag1
Group Definition
The following example shows how to create a group with name
public_grp
.
1. Enable the SNMP server: