Syslog Commands
logging host
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
Syntax
ipv4-address
logging host {
severity_level
[severity
ip-address
no logging host {
Parameters
ipv4-address
•
—IPv4 address of the SYSLOG server.
ipv6-address
•
—IPv6 address of the SYSLOG server.
•
hostname
—Hostname of the SYSLOG server. Only translation to IPv4
addresses is supported.
facility
•
facility
—(Optional) Specifies the log facility that is indicated in the
message. It can be one of the following values: local0, local 1 , local2, local3,
local4, local5, local 6, and local7. The default is local7.
port
•
port
—(Optional) Specifies the port number for SYSLOG messages.
The default port number is 514. (Range: 0 to 65535)
level
•
severity
—(Optional) Specifies the severity of log messages sent to
the SYSLOG server. The optional severity levels are:
<0-7>
emergencies
alerts
critical
errors
warnings
notifications
informational
debugging
Default Configuration
No messages are logged to a SYSLOG server.
The default severity level is Informational.
Command Mode
Global Configuration mode
ipv6-address
hostname
|
|
]
ipv6-address
|
|
Minimum severity <0-7> (EMEGR-DEBUG)
System is unusable
Immediate action needed
Critical conditions
Error conditions
Warning conditions
Normal but significant conditions (severity=5)
Informational messages
Debugging messages
facility
} [facility
hostname
}
(severity=1)
(severity=2)
(severity=3)
(severity=4)
(severity=6)
(severity=7)
35
port
] [port
]
455