Back to Contents Page

Syslog Commands

Dell™ PowerConnect™ 3324/3348 Switch CLI Guide

  logging on

  logging

  logging console

  logging buffered

  logging buffered size

  clear logging

  logging file

  clear logging file

  show logging

  show logging file

  show syslog-servers



logging on

Use the logging on global configuration command to control error message logging. This command sends debug or error messages to a logging process, which logs messages to designated locations asynchronously with respect to the process that generated the messages. To disable the logging process, use the no form of this command.

Syntax

logging on

no logging on

Default Configuration

Logging is enabled.

Command Mode

Global Configuration Mode

User Guidelines

The logging process controls the distribution of logging messages to the various destinations, such as the logging buffer, logging file, or syslog server. Logging on and off for these destinations can be individually configured using the logging buffered, logging file, and logging global configuration commands. However, if the logging on command is disabled, no messages are sent to these destinations. Only the console receives messages.

Examples

The following example enables logging.

Console (config)# logging on


logging

Use the logging global configuration command to log messages to a syslog server. To delete the syslog server with the specified address from the list of syslogs, use the no form of this command.

Syntax

logging ip-address [port port] [severity level] [facility facility] [description text]

no logging ip-address

Default Configuration

This command has no default configuration.

Command Mode

Global Configuration Mode

User Guidelines

Multiple syslog servers can be used.

If no specific severity level is specified, the global values apply to each server.

When the device is rebooted, the log is kept, even when logging is disabled.

Examples

The following example logs messages with a severity level critical to a syslog server with an IP address 10.1.1.1.

Console (config)# logging 10.1.1.1 severity critical


logging console

Use the logging console global configuration command to limit messages logged to the console based on severity. To disable logging to the console terminal, use the no form of this command.

Syntax

logging console level

no logging console

Default Configuration

The default is informational.

Command Mode

Global Configuration Mode

User Guidelines

All severities below the selected severity level are automatically selected.

Examples

The following example limits messages logged to the console to be based on the errors severity level.

Console (config)# logging console errors


logging buffered

Use the logging buffered global configuration command to limit syslog messages displayed from an internal buffer based on severity. To cancel buffer use, use the no form of this command.

Syntax

logging buffered level

no logging buffered

Default Configuration

The default level is informational.

Command Mode

Global Configuration Mode

User Guidelines

All the syslog messages are logged to the internal buffer. This command limits the commands displayed to the user.

Examples

The following example limits syslog messages displayed from an internal buffer based on the debugging severity level.

Console (config)# logging buffered debugging


logging buffered size

Use the logging buffered size global configuration command to set the number of syslog messages stored in the internal buffer. To return the number of messages stored in the internal buffer to the default value, use the no form of this command.

Syntax

logging buffered size number

no logging buffered size

Default Configuration

The default number of messages is 200.

Command Mode

Global Configuration Mode

User Guidelines

There are no user guidelines for this command.

Examples

The following example changes the number of syslog messages stored in the internal buffer to 300.

Console (config)# logging buffered size 300


clear logging

Use the clear logging privileged EXEC command to clear messages from the internal logging buffer.

Syntax

clear logging

Default Configuration

This command has no default configuration.

Command Mode

Privileged EXEC Mode

User Guidelines

There are no user guidelines for this command.

Examples

The following example clears messages from the internal syslog message logging buffer.

Console# clear logging

Clear logging buffer [y/n]

Console#


logging file

Use the logging file global configuration command to limit syslog messages sent to the logging file based on severity. To cancel the buffer, use the no form of this command.

Syntax

logging file level

no logging file

Default Configuration

The default severity level is errors.

Command Mode

Global Configuration Mode

User Guidelines

There are no user guidelines for this command.

Examples

The following example limits syslog messages sent to the logging file based on the alerts severity level.

Console (config)# logging file alerts


clear logging file

Use the clear logging file privileged EXEC command to clear messages from the logging file.

Syntax

clear logging file

Default Configuration

This command has no default configuration.

Command Mode

Privileged EXEC Mode

User Guidelines

There are no user guidelines for this command.

Examples

The following example clears messages from the logging file.

Console# clear logging file

Clear logging file [y/n]

Erasing file syslog1............done

Console#


show logging

Use the show logging privileged EXEC command to display logging information and syslog messages stored in the internal logging buffer.

Syntax

show logging

Default Configuration

This command has no default configuration.

Command Mode

Privileged EXEC Mode

User Guidelines

There are no user guidelines for this command.

Examples

The following example displays logging information about the syslog messages stored in the internal logging buffer.

Console # show logging

Console logging: level debugging. Console Messages: 0 Dropped (severity).

Buffer logging: level debugging. Buffer Messages: 11 Logged, 200 Max.

File logging: level notifications. File Messages: 0 Dropped (severity).

Syslog server 192.180.2.27 logging: errors. Messages: 6 Dropped (severity).

Syslog server 192.180.2.28 logging: errors. Messages: 6 Dropped (severity).

2 messages were not logged (resources)

Buffer log:

11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up

11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/e0, changed state to up

11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/e1, changed state to up

11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/e2, changed state to up

11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/e3, changed state to up

11-Aug-2002 15:41:43: %SYS-5-CONFIG_I: Configured from memory by console

11-Aug-2002 15:41:39: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

11-Aug-2002 15:41:39: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/e0, changed state to down

11-Aug-2002 15:41:39: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/e1, changed state to down

11-Aug-2002 15:41:39: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/e2, changed state to down

11-Aug-2002 15:41:39: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/e3, changed state to down


show logging file

Use the show logging file privileged EXEC command to display the state of logging and the syslog messages stored in the logging file.

Syntax

show logging file

Default Configuration

This command has no default configuration.

Command Mode

Privileged EXEC Mode

User Guidelines

There are no user guidelines for this command.

Examples

The following example displays the state of logging and the syslog messages stored in the logging file.

Console # show logging file

Console logging: level debugging. Console Messages: 0 Dropped (severity).

Buffer logging: level debugging. Buffer Messages: 11 Logged, 200 Max.

File logging: level notifications. File Messages: 0 Dropped (severity).

Syslog server 192.180.2.27 logging: errors. Messages: 6 Dropped (severity).

Syslog server 192.180.2.28 logging: errors. Messages: 6 Dropped (severity).

2 messages were not logged (resources)

File log:

11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up

11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/e0, changed state to up

11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/e1, changed state to up

11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/e2, changed state to up

11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/e3, changed state to up

11-Aug-2002 15:41:43: %SYS-5-CONFIG_I: Configured from memory by console

11-Aug-2002 15:41:39: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

11-Aug-2002 15:41:39: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/e0, changed state to down

11-Aug-2002 15:41:39: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/e1, changed state to down

11-Aug-2002 15:41:39: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/e2, changed state to down

11-Aug-2002 15:41:39: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/e3, changed state to down


show syslog-servers

Use the show syslog-servers privileged EXEC command to display the syslog servers settings.

Syntax

show syslog-servers

Default Configuration

This command has no default configuration.

Command Mode

Privileged EXEC Mode

User Guidelines

There are no user guidelines for this command.

Examples

The following example displays the syslog server settings.

Console# show syslog-servers

IP address Port Severity facility Description

---------- ---- -------- -------- -----------

192.180.2.27 514 Informational local7

192.180.2.28 514 Warning local7


Back to Contents Page