Dell PowerConnect 3324/3348 Switch CLI Guide
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.
logging on
no logging on
Logging is enabled.
Global Configuration Mode
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.
The following example enables logging.
Console (config)# logging on |
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.
logging ip-address [port port] [severity level] [facility facility] [description text]
no logging ip-address
This command has no default configuration.
Global Configuration Mode
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.
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 |
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.
logging console level
no logging console
The default is informational.
Global Configuration Mode
All severities below the selected severity level are automatically selected.
The following example limits messages logged to the console to be based on the errors severity level.
Console (config)# logging console errors |
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.
logging buffered level
no logging buffered
The default level is informational.
Global Configuration Mode
All the syslog messages are logged to the internal buffer. This command limits the commands displayed to the user.
The following example limits syslog messages displayed from an internal buffer based on the debugging severity level.
Console (config)# logging buffered debugging |
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.
logging buffered size number
no logging buffered size
The default number of messages is 200.
Global Configuration Mode
There are no user guidelines for this command.
The following example changes the number of syslog messages stored in the internal buffer to 300.
Console (config)# logging buffered size 300 |
Use the clear logging privileged EXEC command to clear messages from the internal logging buffer.
clear logging
This command has no default configuration.
Privileged EXEC Mode
There are no user guidelines for this command.
The following example clears messages from the internal syslog message logging buffer.
Console# clear logging Clear logging buffer [y/n] Console# |
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.
logging file level
no logging file
The default severity level is errors.
Global Configuration Mode
There are no user guidelines for this command.
The following example limits syslog messages sent to the logging file based on the alerts severity level.
Console (config)# logging file alerts |
Use the clear logging file privileged EXEC command to clear messages from the logging file.
clear logging file
This command has no default configuration.
Privileged EXEC Mode
There are no user guidelines for this command.
The following example clears messages from the logging file.
Console# clear logging file Clear logging file [y/n] Erasing file syslog1............done Console# |
Use the show logging privileged EXEC command to display logging information and syslog messages stored in the internal logging buffer.
show logging
This command has no default configuration.
Privileged EXEC Mode
There are no user guidelines for this command.
The following example displays logging information about the syslog messages stored in the internal logging buffer.
Use the show logging file privileged EXEC command to display the state of logging and the syslog messages stored in the logging file.
show logging file
This command has no default configuration.
Privileged EXEC Mode
There are no user guidelines for this command.
The following example displays the state of logging and the syslog messages stored in the logging file.
Use the show syslog-servers privileged EXEC command to display the syslog servers settings.
show syslog-servers
This command has no default configuration.
Privileged EXEC Mode
There are no user guidelines for this command.
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 |