266
Syslog Commands
FILE LOCATION: C:\Users\gina\Desktop\Checkout_new\CLI Folders\Dell Contax
CLI\files\Syslog.fm
D E L L C O N F ID E N T IA L – P R E L IM I N A RY 5 / 1 5 /1 2 - F O R P R O O F O N LY
Example
The following example enables logging error messages.
Console(config)#
logging on
Logging host
Use the
logging host
global configuration command to log messages to a
syslog server. Use the
no
form of this command to delete the syslog server
with the specified address from the list of syslogs.
Syntax
logging host
{ipv4-address | ipv6-address | hostname} [port port] [severity
level] [facility facility] [description text]
no logging host
{ipv4-address | ipv6-address | hostname}
Parameters
•
ipv4-address
—IPv4 address of the host to be used as a syslog server.
•
ipv6-address
—Pv6 address of the host to be used as a syslog server. When
the IPv6 address is a Link Local address (IPv6Z address), the outgoing
interface name must be specified. Refer to the User Guidelines for the
interface name syntax.
•
hostname
—Hostname of the host to be used as a syslog server. Only
translation to IPv4 addresses is supported. (Range: 1–158 characters.
Maximum label size: 63)
•
port
—Port number for syslog messages. If unspecified, the port number
defaults to 514. (Range: 1–65535)
•
level
—Limits the logging of messages to the syslog servers to a specified
level: emergencies, alerts, critical, errors, warnings, notifications,
informational, debugging.
•
facility
—The facility that is indicated in the message. It can be one of the
following values: local0, local1 , local2 , local3 , local4 , local5 , local 6,
local7. If unspecified, the port number defaults to local7.
• text—Description of the syslog server. (Range: Up to 64 characters)