D-Link DGS-3630-52TC WEB Reference Guide - Page 162

logging server

Page 162 highlights

DGS-3630 Layer 3 Stackable Managed Switch CLI Reference Guide includes SEVERITY-LIST (Optional) Specifies to include the matching message. The unmatched messages are filtered. Enter the list of severity levels to be included after the keyword. Default None. Command Mode Global Configuration Mode. Command Default Level Level: 12. Usage Guideline An existing discriminator can be configured. The later setting will overwrite the previous setting. Associate a discriminator with the logging buffered and the logging server command. Example This example shows how to create a discriminator named "buffer-filter" which specifies two sub-filters, one based on the severity level and the other based on the facility. Switch# configure terminal Switch(config)# logging discriminator buffer-filter facility includes PORT severity includes 1-4,6 Switch(config)# 20-7 logging server This command is used to create a SYSLOG server host to log the system messages or debug output. Use the no command to remove a SYSLOG server host. logging server IP-ADDRESS [severity {SEVERITY-LEVEL | SEVERITY-NAME}] [facility {FACILITY-NUM | FACILITY-NAME}] [discriminator NAME] [port UDP-PORT] no logging server IP-ADDRESS Parameters IP-ADDRESS SEVERITY-LEVEL SEVERITY-NAME Specifies the IP address of the SYSLOG server host. (Optional) Specifies the severity level of system messages. The messages at that severity level or a more severe level will be logged to message buffers. This value must be between 0 and 7. 0 is the most severe level. The corresponding severity levels are listed together with their respective severity names: emergencies (0), alerts (1), critical (2), errors (3), warnings (4), notifications (5), informational (6), debugging (7). If not specified, the default severity level is warnings (4). (Optional) Specifies the severity level name of system messages. The corresponding severity levels are listed together with their respective severity names: emergencies (0), alerts (1), critical (2), errors (3), warnings (4), notifications (5), informational (6), debugging (7). 160

  • 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
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187

DGS-3630 Layer 3 Stackable Managed Switch CLI Reference Guide
160
includes
SEVERITY-LIST
(Optional) Specifies to include the matching message. The unmatched
messages are filtered. Enter the list of severity levels to be included after the
keyword.
Default
None.
Command Mode
Global Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
An existing discriminator can be configured. The later setting will overwrite the previous setting. Associate a
discriminator with the logging buffered and the logging server command.
Example
This example shows how to create a discriminator nam
ed “buffer
-
filter” which specifies
two sub-filters, one based
on the severity level and the other based on the facility.
Switch# configure terminal
Switch(config)# logging discriminator buffer-filter facility includes PORT severity includes
1-4,6
Switch(config)#
20-7
logging server
This command is used to create a SYSLOG server host to log the system messages or debug output. Use the
no
command to remove a SYSLOG server host.
logging server
IP-ADDRESS
[severity {
SEVERITY-LEVEL
|
SEVERITY-NAME
}] [facility {
FACILITY-NUM
|
FACILITY-NAME
}] [discriminator
NAME
] [port
UDP-PORT
]
no logging server
IP-ADDRESS
Parameters
IP-ADDRESS
Specifies the IP address of the SYSLOG server host.
SEVERITY-LEVEL
(Optional) Specifies the severity level of system messages. The messages at
that severity level or a more severe level will be logged to message buffers. This
value must be between 0 and 7. 0 is the most severe level. The corresponding
severity levels are listed together with their respective severity names:
emergencies (
0
), alerts (
1
), critical (
2
), errors (
3
), warnings (
4
), notifications (
5
),
informational (
6
), debugging (
7
). If not specified, the default severity level is
warnings (
4
).
SEVERITY-NAME
(Optional) Specifies the severity level name of system messages. The
corresponding severity levels are listed together with their respective severity
names:
emergencies
(0),
alerts
(1),
critical
(2),
errors
(3),
warnings
(4),
notifications
(5),
informational
(6),
debugging
(7).