xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
530
show snmp community
Purpose
Used to display the community string configurations.
Syntax
show snmp community {<community_string 32>}
Description
This command is used to display the community string configurations.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
community_string
- Community string.
If not specify community string , all community string information will be displayed.
Restrictions
None.
Example usage:
To display SNMP community:
DGS-3450:admin#show snmp community
Command: show snmp community
SNMP Community Table
Community Name View Name Access Right
-------------------------------- -------------------------------- ------------
System CommunityView read_only
private CommunityView read_write
public CommunityView read_only
Total Entries: 3
DGS-3450:admin#
create snmp user
Purpose
Used to create a new user to an SNMP group originated by this command.
Syntax
create snmp user <user_name 32> <groupname 32> {encrypted [by_password auth
[md5 <auth_password 8-16 > | sha <auth_password 8-20>] priv [none | des
<priv_password 8-16>] | by_key auth [md5 <auth_key 32-32> | sha <auth_key 40-40>]
priv [none | des <priv_key 32-32>]]}
Description
This command is used to create a new user to an SNMP group originated by this command.
User can chose input authentication and privacy by password or by key.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
username
- The name of the user on the host that connects to the agent. The range is 1 to
32.
groupname
- The name of the group to which the user is associated. The range is 1 to 32.
encrypted
- Specifies whether the password appears in encrypted format.
by_password
- Indicate input password for authentication and privacy.
by_ke
y - Indicate input key for authentication and privacy.
auth
- Initiates an authentication level setting session. The options are md5 and sha.
md5
- The HMAC-MD5-96 authentication level.
sha
- The HMAC-SHA-96 authentication level.
auth_password
- An authentication string used by MD5 or SHA1.
priv_password
- A privacy string used by DES.
auth_key
- An authentication key used by MD5 or SHA1, it is hex string type.
priv_key
- A privacy key used by DES, it is hex string type.