Celestica Documentation Portal

Find your product documents here

SNMP Host

Configures SNMP Host to send Trap messages.

Syntaxsnmp-server host <host_address> version <1/2/3> [community <community_name>] [port <port_num>] [vrf <vrf_name>]
Command mode CONFIG
Parameters
  • host_address – Host IP address to receive Trap messages, One host IP address is allowed per SNMP version.

  • <1 | 2 | 3> – SNMP version.

  • community_name – Community name (4 – 32 chars: no space, comma, @ allowed), Default value is "public".

  • port_num – UDP port number (Range: 1024 – 65535, Default: 162).

  • vrf_name – VRF name, Default value is "None".

Usage

Use no snmp-server host <host_address> version <1/2/3> to remove the SNMP Host.

Supported Releases 1.0.0 or later
Click command config snmptrap modify [OPTIONS] <SNMP Version> <SNMP TRAP SERVER IP Address>
Example
sonic(config)# snmp-server host 1.1.1.1 version 2 community private
sonic(config)# no snmp-server host 1.1.1.1 version 2