xStack
® 
DGS-3120 Series Managed Switch CLI Reference Guide 
658 
 
 
Parameters 
host - Specify the recipient for which the traps are targeted. 
<ipaddr> - The IP address of the recipient for which the traps are targeted. 
v6host - Specify the IPv6 host address to which the trap packet will be sent. (EI Mode Only) 
<ipv6addr> - The IPv6 address of the recipient for which the traps are targeted. 
v1 - The least secure of the possible security models. 
v2c - The second least secure of the possible security models. 
v3 - The most secure of the possible. 
noauth_nopriv - Neither support packet authentication nor encrypting. 
auth_nopriv - Support packet authentication. 
auth_priv - Support packet authentication and encrypting. 
<auth_string 32> - Authentication string. If the v1 or v2 is specified, the auth_string presents the 
community string, and it must be one of the entries in community table. If the v3 is specified, 
the auth_string presents the user name, and it must be one of the entries in the user table. 
 
Restrictions 
Only Administrator-level users can issue this command. 
 
Example 
To create SNMP host “10.0.0.1” with community string “public”: 
DGS-3120-24TC:admin# create snmp host 10.0.0.1 v1 public 
Command: create snmp host 10.0.0.1 v1 public 
 
Success. 
 
DGS-3120-24TC:admin#  
 
72-14  delete snmp 
Description 
This command is used to delete a recipient of an SNMP trap operation. 
 
Format 
delete snmp [host <ipaddr> | v6host <ipv6addr>] 
 
Parameters 
host - The IP address of the recipient for which the traps are targeted. 
<ipaddr> - Enter the IP address used for the configuration here. 
v6host - The IPv6 address of the recipient for which the traps are targeted. (EI Mode Only) 
<ipv6addr> - Enter the IPv6 address used for the configuration here. 
 
Restrictions 
Only Administrator-level users can issue this command.