Ethernet Switch Owner's Manual

Creating a Basic SNMP Trap Configuration
Enterasys D-Series CLI Reference 7-37
Mode
Switchcommand,readwrite.
Example
ThisexampleshowshowtodeleteSNMPnotifyprofile“area51”:
D2(su)->clear snmp notifyprofile area51 targetparam v3ExampleParams
Creating a Basic SNMP Trap Configuration
TrapsarenotificationmessagessentbyanSNMPv1orv2agenttoanetworkmanagementstation,
aconsole,oraterminaltoindicatetheoccurrenceofasignificantevent,suchaswhenaportor
devicegoesupordown,whenthereareauthenticationfailures,andwhenpowersupplyerrors
occur.
ThefollowingconfigurationexampleshowshowtouseCLIcommandstoassociateSNMP
notificationparameterswithsecurityandauthorizationcriteria(targetparameters),andmapthe
parameterstoamanagementtargetaddress.
CompleteanSNMPv2trapconfigurationonaDSeriesdeviceasfollows:
1. Createacommunitynamethatwillactas
anSNMPuserpassword.
2. CreateanSNMPtargetparametersentrytoassociatesecurityandauthorizationcriteriatothe
usersinthecommunitycreatedinStep1.
3. VerifyifanyapplicableSNMPnotificationentries exist,orcreateanewone.Youwillusethis
entrytosendSNMPnotificationmessagestotheappropriate
managementtargetscreatedin
Step 2.
4. CreateatargetaddressentrytobindamanagementIPaddressto:
–ThenotificationentryandtagnamecreatedinStep3and
–ThetargetparametersentrycreatedinStep2.
Table 722showsthecommandsusedtocompleteanSNMPv2trapconfigurationonaDSeries
device.
Note: This example illustrates how to configure an SNMPv2 trap notification. Creating an
SNMPv1 or v3 Trap, or an SNMPv3 Inform notification would require using the same commands
with different parameters, where appropriate. Always ensure that v1/v2 communities or v3 users
used for generating traps or informs are pre-configured with enough privileges to access
corresponding MIBs.
Table 7-22 Basic SNMP Trap Configuration
To do this... Use these commands...
Create a community name. set snmp community
Create an SNMP target parameters entry. set snmp targetparams
Verify if any applicable SNMP notification
entries exist.
show snmp notify
Create a new notification entry. set snmp notify
Create a target address entry. set snmp targetaddr