Command Guide of WGSW-28040
286
Mode:
Global Configuration
Usage Guide:
The group version 1 and 2c only for snmp community use. And version 3 group only for snmp user use.
When group version is 1 or 2c , can only use noauth
The read/write/notify view must exist.
The configure use ‘show snmp group’ to check
Example:
The following example specifies that set snmp group test.
Switch(config)#
snmp group group1 version 1 noauth read-view all write-viw “”
Switch(config)#
snmp group group2 version 2c noauth read-view all write-view all
Switch(config)#
snmp group group3 version 3 auth read-view all write-view all
Switch#
show snmp group
Group Name Model Level ReadView WriteView NotifyView
----------------------- ------ ------ ------------- -------------- -------------
group1 v1 noauth all --- ---
group2 v2c noauth all all ---
group3 v3 auth all all ---
4.24.5 snmp community
Command:
snmp community NAME [view NAME] (ro|rw)
snmp community NAME group NAME
no snmp community NAME
Parameter:
community NAME
Snmp v1/v2 community name
group NAME
Snmp community specifies access group name for advance mode
[view NAME]
Snmp community specifies view for basic mode
(ro|rw)
Snmp community read or readwrite attribute for basic mode