Displaying the snmp community strings – Brocade FastIron Ethernet Switch Administration Guide User Manual

Page 140

Advertising
background image

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.

device(config)#snmp-s 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 to create views, refer
to

SNMP v3 configuration examples

on page 151.

The standard-ACL-name | standard-ACL-id parameter is optional. It allows you to specify which ACL
group will be used to filter incoming SNMP packets. You can enter either the ACL name or its ID. Here
are some examples.

device(config)#snmp-s community myread ro view sysview 2

device(config)#snmp-s community myread ro view sysview myACL

The command in the first example indicates that ACL group 2 will filter incoming SNMP packets;
whereas, the command in the second example uses the ACL group called "myACL" to filter incoming
packets.Refer to "Using ACLs to restrict SNMP access" section in the FastIron Ethernet Switch
Security Configuration Guide
for more information.

NOTE
To make configuration changes, including changes involving SNMP community strings, you must first
configure a read-write community string using the CLI. Alternatively, you must configure another
authentication method and log on to the CLI using a valid password for that method.

Displaying the SNMP community strings

To display the configured community strings, enter the following command at any CLI level.

device#show snmp server

Contact: Marshall

Location: Copy Center

Community(ro): public

Community(rw): private

Traps

Cold start: Enable

Link up: Enable

Link down: Enable

Authentication: Enable

Locked address violation: Enable

Power supply failure: Enable

Fan failure: Enable

Temperature warning: Enable

STP new root: Enable

STP topology change: Enable

ospf: Enable

Total Trap-Receiver Entries: 4

Trap-Receiver IP Address Community

1 10.95.6.211

2 10.95.5.21

Syntax: show snmp server

NOTE
If display of the strings is encrypted, the strings are not displayed. Encryption is enabled by default.

Displaying the SNMP community strings

140

FastIron Ethernet Switch Administration Guide

53-1003075-02

Advertising