xStack DGS-3612G Layer 3 Gigabit Ethernet Managed Switch CLI Manual
Command Parameters
create snmp host
<ipaddr> {v1 | v2c | v3 [noauth_nopriv | auth_nopriv | auth_priv]} <auth_string
32>
delete snmp host
<ipaddr>
show snmp host
<ipaddr>
create trusted_host
<ipaddr>
delete trusted_host
<ipaddr>
show trusted_host
<ipaddr>
enable snmp traps
enable snmp authenticate traps
show snmp traps
disable snmp traps
disable snmp authenticate traps
config snmp system_contact
<sw_contact>
config snmp system_location
<sw_location>
config snmp system_name
<sw_name>
enable rmon
disable rmon
Each command is listed, in detail, in the following sections.
create snmp user
Purpose
Used to create a new SNMP user and adds the user to an SNMP group that is
also created 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
The
create snmp user
command creates a new SNMP user and adds the
user to an SNMP group that is also created by this command. SNMP ensures:
Message integrity
−
Ensures that packets have not been tampered with during
transit.
Authentication
−
Determines if an SNMP message is from a valid source.
Encryption
−
Scrambles the contents of messages to prevent it from being
viewed by an unauthorized source.
Parameters
<user_name 32>
−
An alphanumeric name of up to 32 characters that will
identify the new SNMP user.
<groupname 32>
−
An alphanumeric name of up to 32 characters that will
identify the SNMP group with which the new SNMP user will be associated.
encrypted
– Allows the user to choose a type of authorization for
authentication using SNMP. The user may choose:
•
•
by_password
– Requires the SNMP user to enter a password for
authentication and privacy. The password is defined by specifying
the auth_password below. This method is recommended.
by_key
– Requires the SNMP user to enter a encryption key for
authentication and privacy. The key is defined by specifying the key
in hex form below. This method is not recommended.
28