Specifying a single trap source – Brocade Virtual ADX Switch and Router Guide (Supporting ADX v03.1.00) User Manual

Page 17

Advertising
background image

Brocade Virtual ADX Switch and Router Guide

3

53-1003246-01

Configuring basic system parameters

1

To add a trap receiver and encrypt the display of the community string, enter commands such as
the following.

To specify an SNMP trap receiver and change the UDP port that will be used to receive traps, enter
a command such as the following.

Virtual ADX(config)# # snmp-server host 10.2.2.2 0 mypublic port 200

Virtual ADX(config)# write memory

Syntax: snmp-server host ip-addr [0 | 1] string [port value]

The ip-addr parameter specifies the IP address of the trap receiver.

The 0 | 1 parameter specifies whether you want the software to encrypt the string (1) or show the
string in the clear (0). The default is 0.

The string parameter specifies an SNMP community string configured on the Brocade device. The
string can be a read-only string or a read-write string. The string is not used to authenticate access
to the trap host but is instead 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 different Brocade devices based on the community
strings.

The command in the example above adds trap receiver 10.2.2.2 and configures the software to
encrypt display of the community string. When you save the new community string to the
startup-config file (using the write memory command), the software adds the following command
to the file.

snmp-server host 10.2.2.2 1 encrypted-string

To add a trap receiver and configure the software to encrypt display of the community string in the
CLI and Web management interface, enter commands such as the following.

Virtual ADX(config)# snmp-server host 10.2.2.2 0

Virtual ADX(config)# write memory

The port value parameter allows you to specify which UDP port will be used by the trap receiver.
This parameter allows you to configure several trap receivers in a system. With this parameter, a
network management application can coexist in the same system. 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 sent by the device.

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 use this feature to 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.

Advertising