
67
SNMP configuration commands
display snmp-agent community
Syntax
display snmp-agent community
[
read
|
write
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
View
Any view
Default level
1: Monitor level
Parameters
read
: Displays information about SNMP read-only communities.
write
: Displays information about SNMP read and write communities.
|
: Filters command output by specifying a regular expression. For more information about regular
expressions, see
Fundamentals Configuration Guide
.
begin
: Displays the first line that matches the specified regular expression and all lines that follow.
exclude
: Displays all lines that do not match the specified regular expression.
include
: Displays all lines that match the specified regular expression.
regular-expression
: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the
display snmp-agent community
command to display SNMPv1 and SNMPv2c community
information.
This command displays the SNMPv1 and SNMPv2 communities that you have created by using the
snmp-agent community
command or the
snmp-agent usm-user { v1 | v2c }
command.
Related commands:
snmp-agent community
and
snmp-agent usm-user { v1 | v2c }
.
Examples
# Display information about all SNMPv1 and SNMPv2 communities.
<Sysname> display snmp-agent community
Community name: aa
Group name: aa
Acl:2001
Storage-type: nonVolatile
Community name: bb
Group name: bb
Storage-type: nonVolatile
Community name: userv1
Group name: testv1