show snmp community

Syntax

show snmp community

Description

Displays a list of all configured SNMPv1/v2c communities.

Command context

Manager (#)

Authority

Administrators

Usage

When a user creates a custom community before enabling an SNMP agent, ArubaOS-CX automatically removes the default public community from the system. Once the user creates any other community, the default public community is removed automatically.

Example

Displaying a list of all configured SNMPv1/v2c communities:

Before any community is created by user

switch# show snmp community
---------------------
SNMP communities
---------------------
public

After community is created by user

switch#show snmp community
---------------------
SNMP communities
---------------------
private
private2