snmp-server host

Use this command to configure an SNMP trap host. An SNMP trap host is usually a network management station (NMS) or an SNMP manager.

Use the no form of this command to remove an SNMP trap host.

The maximum number of SNMP trap hosts is limited to 8.

Command Syntax

Copy
snmp-server host (A.B.C.D | X:X::X:X | HOSTNAME) ((traps version(( (1 | 2c) WORD ) | (3 (noauth | auth | priv) WORD))) |(informs version ((2c WORD ) | (3 (noauth | auth | priv) WORD))))(|udp-port <1–65535>) (vrf (NAME|management)|)
snmp-server host (A.B.C.D | X:X::X:X | HOSTNAME) WORD (|udp-port <1–65535>) (vrf (NAME|management)|)
snmp-server host (A.B.C.D | X:X::X:X | HOSTNAME) (version(( (1 | 2c) WORD ) | (3 (noauth | auth | priv) WORD)))(|udp-port <1–65535>) (vrf (NAME|management)|)
no snmp-server  host (A.B.C.D|X:X::X:X|HOSTNAME) (vrf (NAME|management)|)

Parameters

A.B.C.D

IPv4 address

X:X::X:X

IPv6 address

HOSTNAME

DNS host name

WORD

SNMP community string or SNMPv3 user name (Maximum 32 alphanumeric characters)

informs

Send notifications as informs

version

SNMP Version. Default notification is traps

<1–65535>

Host UDPClosed User Datagram Protocol port number; the default is 162

vrf management

Defines the management VRFClosed Virtual Routing and Forwarding instance.

vrf NAME

Specify the user-defined VRF instance name.

Virtual Routing and Forwarding name

traps

Send notifications as traps

version

Version

1

SNMP v1

2c

SNMP v2c

WORD

SNMP community string (Maximum 32 alphanumeric characters)

3

SNMP v3 security level

noauth

No authentication and no privacy (noAuthNoPriv) security model: messages transmitted as clear text providing backwards compatibility with earlier versions of SNMP

auth

Authentication and no privacy (authNoPriv) security model: use message digest algorithm 5 (MD5) or Secure Hash Algorithm (SHA) for packet authentication; messages transmitted in clear text

priv

Authentication and privacy (authPriv) security model: use authNoPriv packet authentication with Data Encryption Standard (DES) Advanced Encryption Standard (AES) for packet encryption

WORD

SNMPv3 user name

Default

The default SNMP version is v2c and the default UDP port is 162. Simple Network Management Protocol.

Command Mode

Configure mode

Applicability

This command was introduced beforeOcNOS version 1.3 . Added VRF NAME parameter in OcNOS version 6.5.3.

Examples

Copy
#configure terminal
(config)#snmp-server host 10.10.10.10 traps version 3 auth MyUser udp-port 512 
    vrf management