Logging Host - Cisco 300 Series Cli Manual

Stackable managed switches
Hide thumbs Also See for 300 Series:
Table of Contents

Advertisement

SYSLOG Commands
OL-32830-01 Command Line Interface Reference Guide

49.8 logging host

To log messages to the specified SYSLOG server, use the logging host Global
Configuration command. To delete the SYSLOG server with the specified address
from the list of SYSLOG servers, use the no form of this command.
Syntax
{ip-address | ipv6-address | hostname}
logging host
facility
[facility
] [description
{ipv4-address | ipv6-address | hostname}
no logging host
Parameters
ip-address—IP address of the host to be used as a SYSLOG server. The IP
address can be an IPv4, IPv6 or Ipv6z address. See
Conventions.
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 for each part of the host name: 63)
port port
—(Optional) Port number for SYSLOG messages. If unspecified,
the port number defaults to 514. (Range: 1–65535)
severity level
—(Optional) Limits the logging of messages to the SYSLOG
servers to a specified level: Emergencies, Alerts, Critical, Errors, Warnings,
Notifications, Informational, Debugging.
facility facility
—(Optional) The facility that is indicated in the message. It
can be one of the following values: local0, local 1 , local2, local3, local4,
local5, local 6, local7. If unspecified, the port number defaults to local7.
description text
to 64 characters)
Default Configuration
No messages are logged to a SYSLOG server.
If unspecified, the severity level defaults to Informational.
Command Mode
Global Configuration mode
text
]
—(Optional) Description of the SYSLOG server. (Range: Up
port
level
[port
] [severity
IPv6z Address
49
]
960

Advertisement

Table of Contents
loading

Table of Contents