SNMP Commands
snmp-server host
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
443
32
•
read-view
readview
—Sets the view name that enables viewing only.
(Length: 1 to 30 characters)
•
write-view
writeview
—Sets the view name that enables configuring the
agent. (Length: 1 to 30 characters; setting "" means no write view)
•
notify-view
notifyview
—(Optional) Sets the view name that sends only
traps with contents that is included in SNMP view selected for notification.
Otherwise, there is no restriction on the contents of the traps. This can only
be available for SNMPv3. (Length: 1 to 30 characters)
Default Configuration
No group entry exists.
If the
notifyview
value is not specified, the notify view is not defined.
If the
readview
value is not specified, all objects except for the community table,
SNMPv3 user, and access tables are available for retrieval.
If the
writeview
value is not specified, the write view is not defined.
Command Mode
Global Configuration mode
User Guidelines
The group defined in this command is used in the snmp-server user
command
to
map SNMP users to the SNMP group. These users are then automatically mapped
to SNMP views defined in this command.
The security level for SNMP v1 or v2 is always noauth.
Example
switchxxxxxx(config)#
snmp-server group user-group v3 priv read-view view1
write-view view2
snmp-server host
To configure the hosts to receive SNMP notifications (traps or informs), use the
snmp-server host Global Configuration mode command.
To delete an SNMP notification recipient, use the no form of this command.