Configuring snmp trap hosts, Snmpv1 trap host configuration, Snmpv2 trap host configuration – Juniper Networks EX2500 User Manual

Page 23

Advertising
background image

Using SNMP

„

9

Chapter 1: Accessing the Switch

2.

Configure a user access group, along with the views the group may access. Use
the access table to configure the group’s access level. Because the read view,
write view, and notify view are all set to

iso

, the user type has access to all

private and public MIBs.

ex2500(config)# snmp-server access 5 name admingrp
ex2500(config)# snmp-server access 5 level authpriv
ex2500(config)# snmp-server access 5 read-view iso
ex2500(config)# snmp-server access 5 write-view iso
ex2500(config)# snmp-server access 5 notify-view iso

3.

Assign the user to the user group. Use the group table to link the user to a
particular access group.

ex2500(config)# snmp-server group 5 user-name admin
ex2500(config)# snmp-server group 5 group-name admingrp

Configuring SNMP Trap Hosts

SNMPv1 Trap Host Configuration

1.

Configure an entry in the notify table.

ex2500(config)# snmp-server notify 10 name public
ex2500(config)# snmp-server notify 10 tag v1trap

2.

Specify the IP address and other trap parameters in the

targetAddr

and

targetParam

tables. Use the following command to specify the username used

with this

targetParam

table:

snmp-server target-parameters <1-16> user-name

For example:

ex2500(config)# snmp-server target-address 10 name v1trap address
10.70.70.190
ex2500(config)# snmp-server target-address 10 parameters-name v1param
ex2500(config)# snmp-server target-address 10 taglist v1param
ex2500(config)# snmp-server target-parameters 10 name v1param
ex2500(config)# snmp-server target-parameters 10 user-name v1only
ex2500(config)# snmp-server target-parameters 10 message snmpv1

SNMPv2 Trap Host Configuration

The SNMPv2 trap host configuration is similar to the SNMPv1 trap host
configuration. Wherever you specify the model, use snmpv2 instead of snmpv1.

ex2500(config)# snmp-server read-community public
ex2500(config)# snmp-server target-address 1 name v2trap2 address 10.70.70.190
ex2500(config)# snmp-server target-address 1 parameters-name v2param2
ex2500(config)# snmp-server target-address 1 taglist v2param2
ex2500(config)# snmp-server target-parameters 1 name v2param2
ex2500(config)# snmp-server target-parameters 1 user-name v2only
ex2500(config)# snmp-server target-parameters 1 message snmpv2
ex2500(config)# snmp-server notify 1 name public
ex2500(config)# snmp-server notify 1 tag v2param2

Advertising