Previous Topic

Next Topic

Book Contents

Logging Commands

This section describes the commands you use to configure system logging, and to view logs and the logging settings.

logging buffered

This command enables logging to an in-memory log that keeps up to 128 logs.

no logging buffered

This command disables logging to in-memory log.

logging buffered wrap

This command enables wrapping of in-memory logging when the log file reaches full capacity. Otherwise when the log file reaches full capacity, logging stops.

no logging buffered wrap

This command disables wrapping of in-memory logging and configures logging to stop when the log file capacity is full.

logging cli-command

This command enables the CLI command logging feature, which enables the software to log all CLI commands issued on the system.

no logging cli-command

This command disables the CLI command Logging feature.

logging console

This command enables logging to the console. You can specify the <severitylevel> value as either an integer from 0 to 7 or symbolically through one of the following keywords: emergency (0), alert (1), critical (2), error (3), warning (4), notice (5), info (6), or debug (7).

no logging console

This command disables logging to the console.

logging host

This command enables logging to a host. You can configure up to eight hosts. The <ipaddr> is the IP address of the logging host. The <port> value is a port number from 1 to 65535. You can specify the <severitylevel> value as either an integer from 0 to 7 or symbolically through one of the following keywords: emergency (0), alert (1), critical (2), error (3), warning (4), notice (5), info (6), or debug (7).

logging host reconfigure

This command enables logging host reconfiguration.

logging host remove

This command disables logging to host.

logging syslog

This command enables syslog logging. The <portid> parameter is an integer with a range of 1-65535.

no logging syslog

This command disables syslog logging.

show logging

This command displays logging configuration information.

The display parameters for above command are:

show logging buffered

This command displays buffered logging (system startup and system operation logs).

The display parameters for above command are:

show logging hosts

This command displays all configured logging hosts.

The display parameters for above command are:

show logging persistent

Use the show logging persistent command to display persistent log entries.

The display parameters for above command are:

show logging traplogs

This command displays SNMP trap events and statistics.

The display parameters for above command are:

See also

Utility Commands

System Information and Statistics Commands

Email Alerting and Mail Server Commands

System Utility and Clear Commands

Simple Network Time Protocol (SNTP) Commands

DHCP Server Commands

DNS Client Commands

IP Address Conflict Commands

Serviceability Packet Tracing Commands

Cable Test Command

sFlow Commands

Switch Database Management Template Commands