beautypg.com

Allied Telesis AT-DC2552XS User Manual

Page 209

background image

AT-DC2552SX Switch Command Line Interface User’s Guide

Section I: Switch Management

209

Description

Use this command to add a trap or inform recipient by specifying the IPv4
address of a network device. The command syntax depends upon the
SNMP version:

SNMPv1: Specify the IP address of a recipient of SNMP trap, the
message version, and a community string that is used for
authentication.

SNMPv2c: Specify the IP address of a recipient of SNMP trap or
inform notifications, traps or informs as the message type, the
message version, and a community string that is used for
authentication.

SNMPv3: Specify the IP address of a recipient of SNMP trap or inform
notifications, the message type, the message version, the security
level, and a user.

Confirmation Command

“SHOW RUNNING-CONFIG” on page 116

Examples

This example assigns the IPv4 address 192.168.10.102 of a trap receiver
to the community string “private.” The traps are sent in the SNMPv1
format:

awplus> enable
awplus# configure terminal
awplus(config)# snmp-server host 192.168.10.102 traps
version 1 private

This example assigns the IPv4 address 10.10.10.224 as an inform
receiver to the community string “viewers.” The traps are sent in the
SNMPv2c format:

awplus> enable
awplus# configure terminal
awplus(config)# snmp-server host 10.10.10.224 informs
version 2c viewers

This example configures SNMPv3 to send trap messages to an end node
with the IPv4 address 172.16.10.12. The security level is specified as
authentication and the user name associated with this entry is “jsmith”:

awplus> enable
awplus# configure terminal
awplus(config)# snmp-server host 172.16.100.12 traps version
3 auth jsmith