Command Line Interface4-1144Related Commandssnmp-server contact (4-113)snmp-server hostThis command specifies the recipient of a Simple Network Management Protocolnotification operation. Use the no form to remove the specified host.Syntaxsnmp-server host host-addr community-string [version {1 | 2c}]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)• community-string - Password-like community string sent with thenotification operation. Although you can set this string using thesnmp-server host command by itself, we recommend that you define thisstring using the snmp-server community command prior to using thesnmp-server host command. (Maximum length: 32 characters)• version - Specifies whether to send notifications as SNMP v1 or v2c traps.Default SettingHost Address: NoneSNMP Version: 1Command ModeGlobal ConfigurationCommand Usage• If you do not enter an snmp-server host command, no notifications are sent.In order to configure the switch to send SNMP notifications, you must enter atleast one snmp-server host command. In order to enable multiple hosts, youmust issue a separate snmp-server host command for each host.• The snmp-server host command is used in conjunction with thesnmp-server enable traps command. Use the snmp-server enable trapscommand to specify which SNMP notifications are sent globally. For a host toreceive notifications, at least one snmp-server enable traps command andthe snmp-server host command for that host must be enabled.• Some notification types cannot be controlled with the snmp-server enabletraps command. For example, some notification types are always enabled.• The switch can send SNMP version 1 or version 2c notifications to a host IPaddress, depending on the SNMP version that the management stationsupports. If the snmp-server host command does not specify the SNMPversion, the default is to send SNMP version 1 notifications.ExampleConsole(config)#snmp-server host 10.1.19.23 batmanConsole(config)#