xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
538
config snmp engineID
Purpose
Used to configure a identifier for the SNMP engine on the switch.
Syntax
config snmp engineID <snmp_engineID 10-64>
Description
This command is used to configure an identifier for the SNMP engine on the switch.
Associated with each SNMP entity is a unique engineID.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
snmp_engineID
- Identify for the SNMP engine on the switch. It is octet string type. It accepts
the hex number directly.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure SNMP engine ID to “1023457890”:
DGS-3450:admin#config snmp engineID 1023457890
Command: config snmp engineID 1023457890
Success.
DGS-3450:admin#
show snmp engineID
Purpose
Used to display the identification of the SNMP engine on the switch.
Syntax
show snmp engineID
Description
This command is used to display the identification of the SNMP engine on the switch. The
default value is suggested in RFC2271. The very first bit is 1, and the first four octets are set
to the binary equivalent of the agent’s SNMP management private enterprise number as
assigned by IANA, D_Link is 171. The fifth octet is 03 to indicates the rest is the MAC
address of this device. The 6th –11th octets is MAC address.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
None.
Restrictions
None.
Example usage:
To show SNMP engine ID:
DGS-3450:admin#show snmp engineID
Command: show snmp engineID
SNMP Engine ID : 1023457890
DGS-3450:admin#
create snmp community_masking view
Purpose
Used to choose a security method for creating an SNMP community string, but the
community string encrypted or not depends on the SNMP community encryption state.
Syntax
create snmp community_masking view <view_name 32> [read_only| read_write]
Description
If users use this command to create an SNMP community string, the community string that