C i s c o C o n f i d e n t i a l - B e t a R e v i e w R 3 . 7. 1
SNMP Server Commands on Cisco IOS XR Software
snmp-server host
SMR-608
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
snmp-server host
To specify the recipient of a Simple Network Management Protocol (SNMP) notification operation, use
the
snmp-server host
command in global configuration mode. To remove the specified host, use the
no
form of this command.
snmp-server
host
address
[
clear
|
encrypted
] [
traps
] [
version
{
1
|
2c
|
3
{
auth
|
noauth
|
priv
}}]
community-string
[
udp-port
port
] [
notification-type
]
no
snmp-server
host
address
[
clear
|
encrypted
] [
traps
] [
version
{
1
|
2c
|
3
{
auth
|
noauth
|
priv
}}]
community-string
[
udp-port
port
] [
notification-type
]
Syntax Description
address
Name or IP address of the host (the targeted recipient).
clear
(Optional) Specifies that the
community-string
argument is clear text.
encrypted
(Optional) Specifies that the
community-string
argument is encrypted text.
traps
(Optional) Specifies that notifications should be sent as traps. This is the default.
version
{
1
|
2c
|
3
{
auth
|
noauth
|
priv
}}
(Optional) Specifies the version of the SNMP used to send the traps. The default
is SNMPv1. Version 3 is the most secure model, because it allows packet
encryption with the
priv
keyword. When the
version
keyword is used, one of
the following keywords must be specified:
•
1
—Specifies SNMPv1.
•
2c
—Specifies SNMPv2C.
•
3
—Specifies SNMPv3. If you specify the SNMPv3
3
optional keyword, you
must specify the security level using one of the following required
keywords:
–
auth
—Enables Message Digest 5 (MD5) algorithm and Secure Hash
Algorithm (SHA) packet authentication.
–
noauth
—Specifies that the noAuthNoPriv security level applies to this
host. This is the default security level for SNMPv3.
–
priv
—Enables Data Encryption Standard (DES) packet encryption
(also called “privacy”).
If you do specify a security level, the default is
noauth
.
community-string
Password-like community string sent with the notification operation. We
recommend defining this string using the
snmp-server community
command
prior to using the
snmp-server host
command.