D-Link CLI Reference Guide
Page 282
snmp-server host
The
snmp-server host
Global Configuration mode command specifies the recipient of Simple Network
Management Protocol Version 1 or Version 2 notifications. To remove the specified host, use the
no
form of this
command.
Syntax
snmp-server host {ip-address | hostname} community-string [traps | informs] [1 | 2] [udp-port port] [filter
filtername] [timeout seconds] [retries retries]
no snmp-server host {ip-address | hostname} [traps | informs]
Parameters
•
ip-address
—Specifies the IP address of the host (targeted recipient).
•
hostname
—Specifies the name of the host. (Range:1-158 characters)
•
community-string
—Specifies a password-like community string sent with the notification operation.
(Range: 1-20)
•
traps
—Indicates that SNMP traps are sent to this host. If unspecified, SNMPv2 traps are sent to the host.
•
informs
—Indicates that SNMP informs are sent to this host. Not applicable to SNMPv1.
•
1
—Indicates that SNMPv1 traps will be used.
•
2
—Indicates that SNMPv2 traps will be used. If
•
port
—Specifies the UDP port of the host to use. If unspecified, the default UDP port number is 162.
(Range:1-65535)
•
filtername
—Specifies a string that defines the filter for this host. If unspecified, nothing is filtered.
(Range: 1-30 characters)
•
seconds
—Specifies the number of seconds to wait for an acknowledgment before resending informs. If
unspecified, the default timeout period is 15 seconds. (Range: 1-300)
•
retries—Specifies the maximum number of times to resend an inform request. If unspecified, the default
maximum number of retries is 3. (Range: 1-255)
Default Configuration
This command has no default configuration.
Command Mode
Global Configuration mode
User Guidelines
When configuring an SNMPv1 or SNMPv2 notification recipient, a notification view for that recipient is
automatically generated for all the MIB.
When configuring an SNMPv1 notification recipient, the
Inform
option cannot be selected.
If a trap and inform are defined on the same target, and an inform was sent, the trap is not sent.
Example
The following example enables SNMP traps for host 10.1.1.1 with community string "management" using
SNMPv2.
Console(config)#
snmp-server host
10.1.1.1 management 2
Содержание DXS-3250 - xStack Switch - Stackable
Страница 12: ...Page 11 ...
Страница 46: ...ACL Commands Page 45 ...
Страница 68: ...Address Table Commands Page 67 ...
Страница 124: ...Ethernet Configuration Commands Page 123 ...
Страница 134: ...GVRP Commands Page 133 ...
Страница 144: ...IGMP Snooping Commands Page 143 ...
Страница 158: ...IP Addressing Commands Page 157 Console config ip helper address 172 16 9 9 49 53 ...
Страница 166: ...IP Addressing Commands Page 165 ...
Страница 170: ...IP Routing Commands Page 169 Ethernet 1 Specifies the interface through which the specified network can be reached ...
Страница 186: ...Line Commands Page 185 ...
Страница 194: ...Management ACL Commands Page 193 ...
Страница 200: ...PHY Diagnostics Commands Page 199 ...
Страница 208: ...Port Monitor Commands Page 207 ...
Страница 216: ...Power over Ethernet Commands Page 215 ...
Страница 272: ...RMON Commands Page 271 ...
Страница 334: ...Spanning Tree Commands Page 333 ...
Страница 428: ...VLAN Commands Page 427 ...
Страница 465: ...D Link CLI Reference Guide Page 464 Trap frequency 100 Status Single host locked Violations since last trap 9 ...
Страница 466: ...802 1x Commands Page 465 ...