xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
528
73
S
IMPLE
N
ETWORK
M
ANAGMEMENT
P
ROTOCOL
(SNMP)
C
OMMANDS
The Simple Network Management Protocol (SNMP) commands in the Command Line Interface (CLI) are listed (along
with the appropriate parameters) in the following table.
Command
Parameters
create snmp community
<community_string 32> view <view_name 32> [read_only | read_write]
delete snmp community
<community_string 32>
show snmp community
{ <community_string 32> }
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>]]}
delete snmp user
<user_name 32>
show snmp user
create snmp group
<groupname 32> [v1 | v2c | v3 [noauth_nopriv | auth_nopriv | auth_priv]]
{read_view <view_name 32> | write_view <view_name 32> | notify_view
<view_name 32>}
delete snmp group
<groupname 32>
show snmp groups
create snmp view
<view_name 32> <oid> view_type [included | excluded]
delete snmp view
<view_name 32> [all | <oid>]
show snmp view
{<view_name 32>}
create snmp
[host <ipaddr> | v6host <ipv6addr>] [v1 | v2c | v3 [noauth_nopriv | auth_nopriv |
auth_priv]] <auth_string 32>
delete snmp
[host <ipaddr> | v6host <ipv6addr>]
show snmp host
{ <ipaddr> }
show snmp v6host
{ <ipv6addr> }
config snmp engineID
<snmp_engineID 10-64>
show snmp engineID
create snmp community_masking
view
<view_name 32> [read_only | read_write]
enable community_encryption
disable community_encryption
show community_encryption
Each command is listed, in detail, in the following sections.
create snmp community view
Purpose
Use to create an SNMP community string.