Configuration manual

Configuring SNMP
Fixed Switch Configuration Guide 12-9
Configuring SNMPv1/SNMPv2c
Creating a New Configuration
Procedure 12-1 shows how to create a new SNMPv1 or SNMPv2c configuration. This example
assumes that you haven’t any preconfigured community names or access rights.
Example
The following example is an SNMPv1 or v2 configuration using the steps in Procedure 12-1. It
shows how to:
Create the community name public.
Assign the public user to the group named groupRW and the SNMPv1 security model.
Specify that, if SNMP messages are received with the public name string, the view RW for
read requests, write requests, and notify requests will be applied to this user.
For the view RW, include the MIB subtree denoted with OID 1 and 0.0, and exclude view
access to subtree denoted with OID 1.3.6.1.6.3.13.1 (which is the notification MIB).
Assign a target parameters entry, TVv1public, for security level processing to the public
community name.
Create a target address entry named TVTrap at IP address 10.42.1.10, which will use security
and authorization criteria contained in the target parameters entry called TVv1public, and
bind these parameters together with a tag entry called TVTrapTag.
enterasys(su)->set snmp community public
enterasys(su)->set snmp group groupRW user public security model v1
enterasys(su)->set snmp access groupRW security-model v1 read RW write RW
notify RW
enterasys(su)->set snmp view viewname RW subtree 1
Note: The v1 parameter in this example can be replaced with v2 for SNMPv2c configuration.
Procedure 12-1 New SNMPv1/v2c Configuration
Step Task Command(s)
1. Create a community name. set snmp community community_name
2. Create a security model (VACM) group using the
community name you assigned in step 1.
set snmp group group_name user
community_name security-model v1
3. Set security access rights for the VACM group. set snmp access group_name security
model v1 read viewname write
viewname notify viewname
4. Set MIB view attributes. set snmp view viewname viewname
subtree subtree
5. Specify the target parameters for SNMP
notification message generation.
set snmp targetparams targetparams
user community_name security-model
v1 message processing v1
6. Specify the target address to which SNMP
notification messages generated using the
specified target parameters will be sent.
set snmp targetaddr targetaddr
ipaddr param targetparams taglist
taglist
7. Specify a name for this notification entry and
bind it to the target address.
set snmp notify notify tag taglist