beautypg.com

13 snmp-server enable, 13 snmp-server enable -96 – PLANET WGSW-52040 User Manual

Page 97

background image

1-96

ro | rw is the specified access mode to MIB, ro for read-only and rw for read-write;

is the access-class number for standard numeric ACL, ranging between 1-99;

is the access-class name for standard ACL, the character string length is ranging between 1-32;

is the access-class number for standard numeric IPv6 ACL, ranging between 500-599;

is the access-class name for standard IPv6 ACL, the character string length is ranging between 1-32;

is the name of readable view which includes 1-32 characters;

is the name of writable view which includes 1-32 characters.

Command mode:

Global Mode

Usage Guide:

The switch supports up to 4 community strings. It can realize the access-control for specifically community view by

binding the community name to specifically readable view or writable view.

Example:

Add a community string named “private” with read-write permission.

Switch(config)#snmp-server community rw 0 private

Add a community string named “public” with read-only permission.

Switch(config)#snmp-server community ro 0 public

Modify the read-write community string named “private” to read-only.

Switch(config)# snmp-server community ro 0 private

Delete community string “private”.

Switch(config)#no snmp-server community 0 private

Bind the read-only community string “public” to readable view “pviewr”.

Switch(config)#snmp-server community ro 0 public read pviewr

Bind the read-write community string “private” to readable view “pviewr” and writable view “pvieww”.

Switch(config)#snmp-server community rw 0 private read pviewr write pvieww

1.4.13 snmp-server enable

Command:

snmp-server enable

no snmp-server enable

Function:

Enable the SNMP proxy server function on the switch. The “no snmp-server enable” command disables the SNMP