D-Link DGS-3600 Switch User Manual


 
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
639
create snmp host
Description The create snmp host command creates a recipient of an SNMP operation.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
<ipaddr> - The IP address of the recipient for which the traps are targeted.
<ipv6addr> - Specifies the IPv6 host address to which the trap packet will be sent.
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 and Operator-level users can issue this command.
Example usage:
To create SNMP host “10.0.0.1” with community string “public”:
DGS-3627:admin# create snmp host 10.0.0.1 v1 public
Command: create snmp host 10.0.0.1 v1 public
Success.
DGS-3627:admin#
To create SNMP host “3FFE::51” with community string “public”:
DGS-3627:admin# create snmp v6host 3FFE::51 v1 public
Command: create snmp v6host 3FFE::51 v1 public
Success.
DGS-3627:admin#
To create SNMP host “3FFE::4” with user name “user123”:
DGS-3627:admin# create snmp v6host 3FFE::4 v3 auth_nopriv user123
Command: create snmp v6host 3FFE::4 v3 auth_nopriv user123
Success.
DGS-3627:admin#
delete snmp host
Purpose This command is used to delete a recipient of an SNMP trap operation.
Syntax
delete snmp [host <ipaddr> | v6host <ipv6addr>]
Description The delete snmp host command deletes a recipient of an SNMP trap operation.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.