Snmp-server host – Microsens MS453490M Management Guide User Manual

Page 560

Advertising
background image

C

HAPTER

22

| SNMP Commands

– 560 –

no keywords, both authentication and link-up-down notifications are

enabled. If you enter the command with a keyword, only the

notification type related to that keyword is enabled.

The snmp-server enable traps command is used in conjunction with

the

snmp-server host

command. Use the

snmp-server host

command

to specify which host or hosts receive SNMP notifications. In order to

send notifications, you must configure at least one

snmp-server host

command.

The authentication, link-up, and link-down traps are legacy

notifications, and therefore when used for SNMP Version 3 hosts, they

must be enabled in conjunction with the corresponding entries in the
Notify View assigned by the

snmp-server group

command.

E

XAMPLE

Console(config)#snmp-server enable traps link-up-down

Console(config)#

R

ELATED

C

OMMANDS

snmp-server host (560)

snmp-server host

This command specifies the recipient of a Simple Network Management

Protocol notification operation. Use the no form to remove the specified

host.

S

YNTAX

snmp-server host host-addr [inform [retry retries |

timeout seconds]] community-string

[version {1 | 2c | 3 {auth | noauth | priv} [udp-port port]}

no snmp-server host host-addr

host-addr - Internet address of the host (the targeted recipient).

(Maximum host addresses: 5 trap destination IP address entries)
inform - Notifications are sent as inform messages. Note that this

option is only available for version 2c and 3 hosts. (Default: traps

are used)

retries - The maximum number of times to resend an inform

message if the recipient does not acknowledge receipt. (Range:

0-255; Default: 3)
seconds - The number of seconds to wait for an

acknowledgment before resending an inform message. (Range:

0-2147483647 centiseconds; Default: 1500 centiseconds)

community-string - Password-like community string sent with the

notification operation to SNMP V1 and V2c hosts. Although you can

set this string using the snmp-server host command by itself, we

recommend defining it with the

snmp-server community

command

Advertising