
SNMP Configuration Command Set
Creating a Basic SNMP Trap Configuration
Matrix DFE-Platinum and Diamond Series Configuration Guide
5-65
Example
This example shows how to:
•
create an SNMP community called
mgmt
•
configure a trap notification called
TrapSink
This trap notification will be sent with the community name
mgmt
to the workstation
192.168.190.80
(which is target address
tr
). It will use security and authorization criteria
contained in a target parameters entry called
v2cExampleParams
.
How SNMP Will Use This Configuration
In order to send a trap/notification requested by a MIB code, the SNMP agent requires the
equivalent of a trap “door”,
a “key” to unlock the door, and a “procedure”
for crossing the doorstep.
To determine if all these elements are in place, the SNMP agent proceeds as follows:
1.
Determines if the “keys” for trap “doors” do exist. In the example configuration above, the key
that SNMP is looking for is the notification entry created with the
set snmp notify
command
which, in this case, is a key labeled
entry1
.
2.
Searches for the doors matching such a key. For example, the parameters set for the
entry1
key
shows that it opens only the door
TrapSink
.
3.
Verifies that the specified door
TrapSink
is, in fact, available. In this case it was built using the
set snmp targetaddr
command. This command also specifies that this door leads to the
management station
192.168.190.80
, and the “procedure” (
targetparams
) to cross the doorstep
is called
v2ExampleParams
.
Create a new notification entry.
set snmp notify (
Section 5.3.7.2
)
Create a target address entry.
set snmp targetaddr (
Section 5.3.6.2
)
Matrix(rw)->
set snmp community mgmt
Matrix(rw)->
set snmp targetparams v2cExampleParams user mgmt
security-model v2c message-processing v2c
Matrix(rw)->
set snmp notify entry1 tag TrapSink
Matrix(rw)->
set snmp targetaddr tr 192.168.190.80 param v2cExampleParams
taglist TrapSink
Table 5-11
Basic SNMP Trap Configuration Command Set (Continued)
To do this...
Use these commands...