56
Example:
Disable the safety IP address authentication function.
Switch(config)#snmp-server securityip disable
1.4.19 snmp-server view
Command: snmp-server view <view-string> <oid-string> {include | exclude}
no snmp-server view <view-string> [ <oid-string> ]
Function: This command is used to create or renew the view information; the ―no" form of
this command deletes the view information.
Command Mode: Global Mode.
Parameter: <view-string> view name, containing 1-32 characters.
<oid-string>is OID number or corresponding node name, containing 1-255
characters.
include | exclude, include/exclude this OID.
Usage Guide: The command supports not only the input using the character string of the
variable OID as parameter. But also supports the input using the node name of the
parameter.
Example:
Create a view, the name is readview, including iso node but not including the iso.3 node
Switch (config)#snmp-server view readview iso include
Switch (config)#snmp-server view readview iso.3 exclude
Delete the view
Switch (config)#no snmp-server view readview
1.4.20 snmp-server user
Command: snmp-server user <use-string> <group-string> [{authPriv | authNoPriv}
auth {md5 | sha} <word>] [access {<num-std>|<name>}] [ipv6-access
{<ipv6-num-std>|<ipv6-name>}]
no snmp-server user <user-string> [access {<num-std>|<name>}]
[ipv6-access {<ipv6-num-std>|<ipv6-name>}]
Function: Add a new user to an SNMP group; the "no‖ form of this command deletes this
user.
Command Mode: Global Mode.
Parameter: <user-string> is the user name containing 1-32 characters.
<group-string> is the name of the group the user belongs to, containing 1-32
characters.