snmp-server host

To send SNMP traps to a remote user, use the snmp-server host command in Configuration mode. To remove trap forwarding, use the no form of this command.

snmp-server host {ip-address | hostname} version {1 | 2c} community

Syntax Description

snmp-server host

The command to configure hosts to receive SNMP notifications.

ip-address

IP address of the SNMP notification host. Supports up to 32 alphanumeric characters.

hostname

Name of the SNMP notification host. Supports up to 32 alphanumeric characters.

version {1 | 2c}

(Optional) Version of the SNMP used to send the traps. Default = 1.

If you use the version keyword, specify one of the following keywords:

 • 1—SNMPv1.

 • 2c—SNMPv2C.

community

Password-like community string that is sent with the notification operation.

Defaults

Disabled.

Command Modes

Configuration

Usage Guidelines

The command takes arguments as listed; otherwise, an error occurs. SNMP traps are not supported.

Examples

/admin(config)# snmp-server community new ro

/admin(config)# snmp-server host 209.165.202.129 version 1 password

/admin(config)#

Related Commands

Command

Description

snmp-server community

Sets up the community access string to permit access to SNMP.

snmp-server location

Configures the SNMP location MIB value on the system.

snmp-server contact

Configures the SNMP contact MIB value on the system.