xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
536
To create SNMP host “10.0.0.1” with community string “public”:
DGS-3450:admin#create snmp host 10.0.0.1 v1 public
Command: create snmp host 10.0.0.1 v1 public
Success.
DGS-3450:admin#
To create SNMP host “3FFE::51” with community string “public”:
DGS-3450:admin#create snmp v6host 3FFE::51 v1 public
Command: create snmp v6host 3FFE::51 v1 public
Success.
DGS-3450:admin#
To create SNMP host “3FFE::4” with user name “user123”:
DGS-3450:admin#create snmp v6host 3FFE::4 v3 auth_nopriv user123
Command: create snmp v6host 3FFE::4 v3 auth_nopriv user123
Success.
DGS-3450:admin#
delete snmp host
Purpose
Used to delete a recipient of an SNMP trap operation.
Syntax
delete snmp [host <ipaddr> | v6host <ipv6addr>]
Description
This command is used to delete a recipient of an SNMP trap operation.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
host
- The IP address of the recipient for which the traps are targeted.
v6host
- Specifies the IPv6 host address.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete SNMP host “10.0.0.1”:
DGS-3450:admin#delete snmp host 10.0.0.1
Command: delete snmp host 10.0.0.1
Success.
DGS-3450:admin#
show snmp host
Purpose
Used to display the recipient for which the traps are targeted.
Syntax
show snmp host {<ipaddr>}
Description
This command is used to display the recipient for which the traps are targeted.