D-Link DGS-1510 Series Reference Manual page 569

Gigabit ethernet smartpro switch
Hide thumbs Also See for DGS-1510 Series:
Table of Contents

Advertisement

DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
Default
By default, the version used is 1.
Command Mode
Global Configuration Mode.
Command Default Level
Level: 15.
Usage Guideline
SNMP notifications are sent as trap packets. The user should create at least one recipient of a SNMP
notification by using the snmp-server host command in order for the Switch to send the SNMP
notifications. Specify the version of the notification packet for the created user. For SNMPv1 and
SNMPv2c, the notification will be sent in the trap protocol data unit (PDU). For SNMPv3, the
notification will be sent in the SNMPv2-TRAP-PDU with the SNMPv3 header.
When specifying to send the trap packets in SNMPv1 or SNMPv2c to a specific host, the specified
community string acts as the community string in the trap packets.
When specifying to send the trap packets in SNMPv3 to a specific host, whether to do authentication
and encryption in the sending of the packet should be specified. The specified community string acts
as the username in the SNMPv3 packet. The user must be created first using the snmp-server user
command or snmp-server user v3 command.
In the sending of the trap packet, the system will check the notification view associated with the
specified user (or community name). If the binding variables to be sent with the trap packet are not in
the notification view, the notification will not be sent to this host.
Example
This example shows how to configure the trap recipient 163.10.50.126 with version 1 with community
string "comaccess".
Switch# configure terminal
Switch(config)# snmp-server community comaccess rw
Switch(config)# snmp-server host 163.10.50.126 version 1 comaccess
Switch(config)#
This example shows how to configure the trap recipient 163.10.50.126 with version 3 authentication
security level and with the username "useraccess".
Switch# configure terminal
Switch(config)# snmp-server group groupaccess v3 auth read CommunityView write
CommunityView
Switch(config)# snmp-server user useraccess groupaccess v3 auth md5 12345678
Switch(config)# snmp-server host 163.10.50.126 version 3 auth useraccess
Switch(config)#
This example shows how to configure the trap recipient 163.10.50.126 with version 1 with the
community string "comaccess". The UDP port number is configured to 50001.
Switch# configure terminal
Switch(config)# snmp-server community comaccess rw
Switch(config)# snmp-server host 163.10.50.126 version 1 comaccess port 50001
Switch(config)#
63-20
snmp-server source-interface traps
This command is used to specify the interface whose IP address will be used as the source address
for sending the SNMP trap packet. Use the no form of this command to revert to the default setting.
port numbers may conflict with other protocols.
566

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents