beautypg.com

System console, Setting the syslog facility – Brocade Network OS Message Reference v4.1.1 User Manual

Page 22

background image

6

Network OS Message Reference

53-1003227-01

Configuring the syslog message destinations

1

logging syslog-server 192.0.2.2

The following example configures a syslog server with an IPv6 address.

switch# configure terminal

Entering configuration mode terminal

switch(config)# logging syslog-server 2001:DB8::32

switch(config)# exit

switch# show running-config logging syslog-server

logging syslog-server 2001:db8::32

You can remove a configured syslog server using the no logging syslog-server IP address command.

Setting the syslog facility

The syslog facility is a configurable parameter that specifies the log file to which messages are
forwarded. You must configure the syslog servers to receive system messages before you can
configure the syslog facility.

To set the syslog facility, perform the following steps.

1. Execute the configure terminal command to access the global configuration level of the CLI.

switch# configure terminal

Entering configuration mode terminal

2. Execute the logging syslog-facility local log_level command to set the syslog facility to a

specified log file.

The log_level specifies the syslog facility and can be a value from LOG_LOCAL0 through
LOG_LOCAL7. The default syslog level is LOG_LOCAL7. The following example is for setting the
syslog facility level to LOG_LOCAL2.

switch(config)# logging syslog-facility local LOG_LOCAL2

3. Execute the show running-config logging syslog-facility command to verify the syslog facility

configuration on the switch.

switch# show running-config logging syslog-facility

logging syslog-facility local LOG_LOCAL2

You can reset the syslog facility to the default (LOG_LOCAL7) using the no logging syslog-facility
local command.

System console

The system console displays all RASLog messages, Audit messages (if enabled), and panic dump
messages. These messages are mirrored to the system console; they are always saved in one of
the message logs.

The system console displays messages only through the serial port. If you log in to a switch through
the Ethernet port or modem port, you will not receive system

console messages.

You can filter messages that display on the system console by severity using the logging raslog
console command. All messages are still sent to the system message log, syslog (if enabled), and
SNMP management station.

You can use the logging raslog console [stop [minutes] | start] command to disable and re-enable
the RASLog messages from displaying on the system console.