41
trap-version
[v1|v2c]
Switch(config)#
no snmp-server host
192.168.1.50
snmpv3 context-name
[Context Name ]
G
Configure the context
name
switch(config)#
snmpv3 context-
name Test
snmpv3 user
[User Name]
group
[Group Name]
password
[Authentication
Password] [Privacy
Password]
G
Configure the
userprofile for
SNMPV3 agent.
Privacy password
could be empty.
switch(config)#
snmpv3 user
test01 group G1 password
AuthPW PrivPW
snmpv3 access context-
name
[Context Name ]
group
[Group Name ]
security-level
[NoAuthNoPriv|AuthNoP
riv|AuthPriv]
match-rule
[Exact|Prifix]
views
[Read View Name]
[Write View Name]
[Notify View Name]
G
Configure the access
table of SNMPV3
agent
switch(config)#
snmpv3 access
context-name Test group G1
security-level AuthPriv
match-rule Exact views V1 V1 V1
snmpv3 mibview view
[View Name]
type
[Excluded|Included]
sub-oid
[OID]
G
Configure the mibview
table of SNMPV3
agent
switch(config)#
snmpv3 mibview
view V1 type Excluded sub-oid
1.3.6.1
show snmp
P
Show SNMP
switch#
show snmp