Specifications

Configuring SNMP
March 28, 2011 Page 10 of 27
Configuring SNMPv1/SNMPv2c
Creating a New Configuration
Procedure 1showshowtocreateanewSNMPv1orSNMPv2cconfiguration.Thisexample
assumesthatyouhaven’tanypreconfiguredcommunitynamesoraccessrights.
Example
ThefollowingexampleisanEnterasysNSeriesdeviceconfigurationusingthestepsin
Procedure 1.Itshowshowto:
Createthecommunitynamepublic.
AssignthepublicusertothegroupnamedgroupRW and theSNMPv1securitymodel.
•Specifythat,ifSNMPmessagesarereceivedwiththepublicnamestring,the
viewRWfor
readrequests,writerequests,andnotifyrequestswillbeappliedtothisuser.
•FortheviewRW ,includetheMIBsubtreedenotedwithOID1and0.0,andexcludeview
accesstosubtree denotedwithOID1.3.6.1.6.3.13.1(whichisthenotificationMIB).
Assignatargetparametersentry,
TVv1public,forsecuritylevelprocessingtothepublic
communityname.
CreateatargetaddressentrynamedTVTrapatIPaddress10.42.1.10,whichwillusesecurity
andauthorizationcriteriacontainedinthetargetparametersentrycalledTVv1public,.and
bindtheseparameterstogetherwithatagentrycalledTVTrapTag.
enterasys(su)->set snmp community public
enterasys(su)->set snmp group groupRW user public security model v1
Note: The v1 parameter in this example can be replaced with v2 for SNMPv2c configuration.
Procedure 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