HP VPN Firewall Appliances System Management and Maintenance Command Reference

159
SNMP commands
display snmp-agent community
Use display snmp-agent community to display SNMPv1 and SNMPv2c community information.
Syntax
In non-FIPS mode:
display snmp-agent community [ read | write ] [ | { begin | exclude | include } regular-expression ]
This command is not available for FIPS mode.
Views
Any view
Default command 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 Getting Started 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.
Usage guidelines
This command displays the SNMPv1 and SNMPv2c communities that you have created using the
snmp-agent community command or the snmp-agent usm-user { v1 | v2c } command.
Examples
# Display information about all SNMPv1 and SNMPv2c 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