Technical data

148 ServerIron ADX Administration Guide
53-1002434-01
Establishing SNMP community strings
4
The <string> parameter specifies the community string name. The string can be up to 32
characters long.
The ro | rw parameter specifies whether the string is read-only (ro) or read-write (rw).
The view <viewstring> parameter is optional. It allows you to associate a view to the members of
this community string. Enter up to 32 alphanumeric characters. If no view is specified, access to
the full MIB is granted. The view that you want must exist before you can associate it to a
community string. Here is an example of how to use the view parameter in the community string
command:
ServerIronADX(config)# snmp-server community myread ro view sysview
The command in this example associates the view “sysview” to the community string named
“myread”. The community string has read-only access to “sysview”. For information on how create
views, see the section “Defining SNMP Views” on page 41-8.
The <standard-acl-name> | <standard-acl-id > parameter is optional. It allows you to specify which
ACL is used to filter the incoming SNMP packets. You can enter either the ACL name or its ID. Here
are examples:
ServerIronADX(config) # snmp-server community myread ro view sysview 2
ServerIronADX(config) # snmp-server community myread ro view sysview myacl
The command in the first example specifies that ACL group 2 filters incoming SNMP packets,
whereas the command in the second example uses the ACL group called “myacl” to filter incoming
packets.
Displaying the SNMP community strings
To display the community strings in the CLI, first use the enable-password-display command and
then use the show snmp server command. This will display both the read-only and read-write
community strings in the clear.
To display the configured community strings, enter the following command at any CLI level:
ServerIronADX(config)# show snmp server
Contact:
Location:
Community(ro): .....
Traps
Cold start: Enable
Link up: Enable
Link down: Enable
Authentication: Enable
Locked address violation: Enable
Power supply state change: Enable
Fan failure: Enable
Redundant module state change: Enable
Temperature warning: Enable
STP new root: Enable
STP topology change: Enable
L4 maximum session limit: Enable
L4 TCP SYN limit: Enable
L4 server max connection: Enable
L4 server up: Enable
L4 server down: Enable