TP-Link TL-SG2424 TL-SG2424 V1 CLI Reference Guide - Page 108

snmp notify-add, Example, Description, Syntax, Parameter

Page 108 highlights

Example Add Community community1, and the community has read-write management right to View view1: TP-LINK(config)# snmp community-add community1 read-write view1 snmp notify-add Description The snmp notify-add command is used to add Notification. To delete the corresponding Notification, please use no snmp notify-add command. With the Notification function enabled, the switch can initiatively report to the management station about the important events that occur on the Views, which allows the management station to monitor and process the events in time. Syntax snmp notify-add {ip} {udp-port} {user-name} [smode { v1 | v2c | v3 }] [slev { noAuthNoPriv | authNoPriv | authPriv }] [type { trap | inform }] [resend resend] [timeout timeout] no snmp notify-add {ip} {user-name} Parameter ip -- The IP Address of the management Host. udp-port -- UDP port, which is used to send notifications. The UDP port functions with the IP address for the notification sending. By default, it is 162. user-name -- The User name of the management station. smode -- The Security Model of the management station, with v1, v2c and v3 options. By default, the option is v1. slev -- The Security Level of SNMP v3 Group. There are three options, including noAuthNoPriv (no authorization and no encryption), authNoPriv (authorization and no encryption) and authPriv (authorization and encryption). By default, the option is noAuthNoPriv. type -- The type of the notifications, with trap and inform options. Trap indicates traps are sent, while inform indicates informs are sent. The inform type has a higher security than the trap type and resend and timeout need to be configured if you select this option. You can only select the trap type in Security Model v1. By default, the type of the notifications is trap. resend -- The amount of times the switch resends an inform request, ranging from 1 to 255. The switch will resend the inform request if it doesn't get 100

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120

100
Example
Add Community community1, and the community has read-write management
right to View view1:
TP-LINK(config)# snmp community-add
community1 read-write view1
snmp notify-add
Description
The
snmp notify-add
command is used to add Notification. To delete the
corresponding Notification, please use
no snmp notify-add
command. With the
Notification function enabled, the switch can initiatively report to the
management station about the important events that occur on the Views, which
allows the management station to monitor and process the events in time.
Syntax
snmp notify-add
{
ip
}
{
udp-port
} {
user-name
} [
smode
{ v1 | v2c | v3 }] [
slev
{ noAuthNoPriv | authNoPriv | authPriv }] [
type
{ trap | inform }
]
[
resend
resend
]
[
timeout
timeout
]
no snmp notify-add
{
ip
} {
user-name
}
Parameter
ip
——
The IP Address of the management Host.
udp-port
——
UDP port, which is used to send notifications. The UDP port
functions with the IP address for the notification sending. By default, it is 162.
user-name
——
The User name of the management station.
smode
——
The Security Model of the management station, with v1, v2c and
v3 options. By default, the option is v1.
slev
——
The Security Level of SNMP v3 Group. There are three options,
including noAuthNoPriv (no authorization and no encryption), authNoPriv
(authorization and no encryption) and authPriv (authorization and encryption).
By default, the option is noAuthNoPriv.
type
——
The type of the notifications, with trap and inform options. Trap
indicates traps are sent, while inform indicates informs are sent. The inform type
has a higher security than the trap type and resend and timeout need to be
configured if you select this option. You can only select the trap type in Security
Model v1. By default, the type of the notifications is trap.
resend
——
The amount of times the switch resends an inform request,
ranging from 1 to 255. The switch will resend the inform request if it doesn’t get