SNMP Commands
snmp-server host
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
444
32
Syntax
snmp-server host {
ipv4address
|
hostname
|
ipv6address
} [traps | informs] [version
{1 | 2c | 3} [noauth | auth | priv]]
community-string
[udp-port
port-number
] [timeout
timeout-value
] [retries
retry-time
]
no snmp-server host {
ipv4address
|
hostname
|
ipv6address
}
Parameters
•
ipv4address
—IPv4 address of the host (the targeted recipient). The default
is all IP addresses.
•
hostname
—Hostname of the host (the targeted recipient).
•
ipv6address
—IPv6 address of the host (the targeted recipient). The default
is all IP addresses.
•
traps—(Optional) Sends SNMP traps to the host. This is the default setting.
•
informs—(Optional) Sends SNMP informs to the host.
•
version {1 | 2c | 3}—(Optional) Specifies the SNMP version.
-
1—SNMPv1 traps are used.
-
2c—SNMPv2 traps or informs are used.
-
3—SNMP version 3 is used.
•
noauth—(Optional) Specifies that no packet authentication will be
performed. Applicable only to the SNMP version 3 security model.
•
auth—(Optional) Specifies that packet authentication without encryption
will be performed. Applicable only to the SNMP version 3 security model.
•
priv—(Optional) Specifies that packet authentication with encryption will be
performed. Applicable only to the SNMP version 3 security model. Note that
creation of SNMPv3 users with both authentication and privacy must be
done in the GUI. All other users may be created in the CLI.
•
community-string
—The SNMP community sent with the notification
operation. For SNMP v1 and v2, any community string can be entered here.
(Range: 1 to 20 characters)
•
udp-port
port-number
—(Optional) Specifies the UDP port number.
•
timeout
timeout-value
—(Optional) Specifies the SNMP inform timeout.
•
retries
retry-time
—(Optional) Specifies the number of SNMP inform retries.