SNMP Commands
©2008 Allied Telesis Inc. All rights reserved.
55.16
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
Software Version 5.2.1
snmp-server host
This command specifies an SNMP trap host destination to which Trap or Inform messages
generated by the device are sent. For SNMP version 1 and 2c community names are required.
For version 3, user name is required. If the version is not specified, the default is SNMP version
1. Inform messages can be sent instead of traps for SNMP version 2c and 3.
Use the no version of this command to remove an SNMP trap host. The trap host is uniquely
identified by host IP address, inform or trap messages, and the community string (SNMPv1 or
SNMP v2c) or the security name(SNMP v3). The trap host must already exist.
Command Syntax
snmp-server host <
ipaddress
> [traps] [version 1] <
community-name
>
snmp-server host <
ipaddress
> [{informs|traps}] version 2
<
community-name
>
snmp-server host <
ipaddress
> [{informs|traps}] version 3
{auth|noauth|priv} <
user-name
>
no snmp-server host <
ipaddress
> [traps] [version 1] <
community-name
>
no snmp-server host <
ipaddress
> [{informs|traps}] version 2
<
community-name
>
no snmp-server host <
ipaddress
> [{informs|traps}] version 3
{auth|noauth|priv} <
user-name
>
Mode
Configure mode
Examples
To configure the device to send generated traps to the host destination 10.10.10.5 with
SNMPv2c community name
public
, use the following command:
Related commands
snmp-server enable trap
snmp-server view
Parameter Description
host
Configure SNMP trap host
no
Remove the specified SNMP trap host
<
ipaddress
>
Trap host ip address
informs
Send Inform messages to this host
traps
Send Trap messages to this host (default)
version
SNMP version to use for notification messages. Default: version 1.
1 Use
SNMPv1(default).
2c Use
SNMPv2c
3 Use
SNMPv3
auth Authentication
noauth No
authentication
priv Encryption
<
community-name
>
The SNMPv1 or SNMPv2c community name
<
user-name
>
SNMPv3 user name
awplus(config)#
snmp-server host 10.10.10.5 version 2c public