User Manual UMN:CLI
SURPASS hiD 6615 S223/S323 R1.5
A50010-Y3-C150-2-7619 137
The following is an example of configuring syslog message to send all logs higher than
notice to remote host 10.1.1.1 and configuring local1.info to transmit to console.
SWITCH(config)#
syslog output notice remote
10.1.1.1
SWITCH(config)#
syslog output priority local1 info console
SWITCH(config)#
show syslog
System logger on running!
info local
volatile
info local
non-volatile
notice remote
10.1.1.1
local1.info console
SWITCH(config)#
7.5.2 Facility
Code
You can set a facility code of the generated syslog message. This code make a syslog
message distinguished from others, so network administrator can handle various syslog
messages efficiently.
To set a facility code, use the following command.
Command Mode
Description
syslog local-code
<0-7>
Sets a facility code.
no syslog local-code
Global
Deletes a specified facility code.
The following is an example of configuring priority of all syslog messages which is trans-
mitted to remote host 10.1.1.1, as the facility code 0.
SWITCH(config)#
syslog output err remote
10.1.1.1
SWITCH(config)#
syslog local-code
0
SWITCH(config)#
show syslog
System logger on running!
info local
volatile
info local
non-volatile
err remote
10.1.1.1
local_code 0
SWITCH(config)#
7.5.3 Syslog
Bind
Address
You can specify IP address to attach to the syslog message for its identity. To specify IP
address for syslog identity, use the following command.
Command Mode
Description
syslog
bind-address
A.B.C.D
Specifies IP address for a syslog message identity.
no syslog bind-address
Global
Deletes a specified binding IP address.