Specifying a single trap source – Brocade Multi-Service IronWare Administration Guide (Supporting R05.6.00) User Manual
Page 42
24
Multi-Service IronWare Administration Guide
53-1003028-02
Configuring Simple Network Management (SNMP) traps
2
The v1, v2c, or v3 parameter indicates which version of SNMP is used.
The string parameter specifies an SNMP community string configured on the Brocade device. It is
not used to authenticate access to the trap host, but it is a useful method for filtering traps on the
host. For example, if you configure each of your Brocade devices that use the trap host to send a
different community string, you can easily distinguish among the traps from the devices based on
the community strings.
By default, string is encrypted. If you want string to be in clear text, insert a 0 preceding string.
Example
Brocade(config)# snmp-server host 10.2.2.2 version v2c 0 mypublic port 200
The software adds a prefix to the string in the configuration. For example, the following portion of
the code has the encrypted code “2”.
snmp-server host 10.2.2.2 version v2c 12 $Si2^=d
The prefix can be one of the following:
•
0 = the key string is not encrypted and is in clear text
•
1 = the key string uses simple encryption (only for Brocade NetIron CES and Brocade NetIron
CER)
•
2 = the key string uses base64 encryption format (only for Brocade NetIron XMR and Brocade
MLX series)
The port value parameter specifies the UDP port that will be used to receive traps. This parameter
allows you to configure several trap receivers in a system. With this parameter, Brocade Network
Advisor and another network management application can coexist in the same system. The
Brocade devices can be configured to send copies of traps to more than one network management
application.
Specifying a single trap source
You can specify a single trap source to ensure that all SNMP traps sent by the Brocade device use
the same source IP address. When you configure the SNMP source address, you specify the
Ethernet port, loopback interface, or virtual routing interface that is the source for the traps. The
Brocade device then uses the lowest-numbered IP address configured on the port or interface as
the source IP address in the SNMP traps it sends.
Identifying a single source IP address for SNMP traps provides the following benefits:
•
If your trap receiver is configured to accept traps only from specific links or IP addresses, you
can simplify configuration of the trap receiver by configuring the Brocade device to always send
the traps from the same link or source address.
•
If you specify a loopback interface as the single source for SNMP traps, SNMP trap receivers
can receive traps regardless of the states of individual links. Thus, if a link to the trap receiver
becomes unavailable but the receiver can be reached through another link, the receiver still
receives the trap, and the trap still has the source IP address of the loopback interface.
To configure the Brocade device to send all SNMP traps from the first configured IP address on port
4/11, enter the following commands.
Brocade(config)# snmp-server trap-source ethernet 4/11
Brocade(config)# write memory