User Manual

Table Of Contents
It does not apply to SNMPv3 access.
[Example]
Permit SNMP server access only from the 192.168.100.0/24 segment.
SWX3220(config)#snmp-server access permit 192.168.100.0/24
Restrict access to only 192.168.100.0/24 hosts with the ‘public’ community name and to only 192.168.100.12 hosts with the
'private’ community name.
SWX3220(config)#snmp-server access permit 192.168.100.0/24 community public
SWX3220(config)#snmp-server access permit 192.168.100.12 community private
4.13.11 Show SNMP community information
[Syntax]
show snmp community
[Input mode]
unprivileged EXEC mode, privileged EXEC mode
[Description]
Shows SNMP community information.
Shows the community name, and access mode.
[Example]
Show SNMP community information.
SWX3220#show snmp community
SNMP Community information
Community Name: public
Access: Read-Only
Community Name: private
Access: Read-Write
4.13.12 Show SNMP view settings
[Syntax]
show snmp view
[Input mode]
unprivileged EXEC mode, privileged EXEC mode
[Description]
Shows the contents of the SNMP view settings.
Shows the view name, object ID, and type.
[Example]
Show the contents of the SNMP view settings.
SWX3220#show snmp view
SNMP View information
View Name: most
OID: 1.6.1
Type: include
View Name: standard
OID: 1.3.6.1.2.1
Type: include
4.13.13 Show SNMP group settings
[Syntax]
show snmp group
78 | Command Reference | Maintenance and operation functions