108
SNMP commands
The device supports the FIPS mode that complies with NIST FIPS 140-2 requirements. Support for
features, commands, and parameters might differ in FIPS mode and non-FIPS mode. For more
information about FIPS mode, see
Security Configuration Guide
.
The SNMP agent sends notifications (traps and informs) to inform the NMS of significant events,
such as link state changes and user logins or logouts. Unless otherwise stated, the
trap
keyword in
the command line includes both traps and informs.
display snmp-agent community
Use
display snmp-agent
community
to display SNMPv1 or SNMPv2c community information.
Syntax
display
snmp-agent
community
[
read
|
write
]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
read
: Displays information about SNMP read-only communities.
write
: Displays information about SNMP read and write communities.
Usage guidelines
This command is supported only in non-FIPS mode.
If no keyword is specified, this command displays information about all SNMPv1 and SNMPv2c
communities that have been created. The communities include those configured with the
snmp-agent community
command and those automatically created by the system for SNMPv1 and
SNMPv2c users that have been assigned to an existing SNMP group.
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
Context name: con1
Community name: bb
Group name: bb
Storage-type: nonVolatile
Community name: userv1
Group name: testv1
Storage-type: nonVolatile