beautypg.com

Clearing the syslog messages from the local buffer, Logging all cli commands to syslog, Syslog messages – Brocade Multi-Service IronWare Administration Guide (Supporting R05.6.00) User Manual

Page 358: Clearing the syslog messages from the local, Buffer, Example of cli command logging

background image

340

Multi-Service IronWare Administration Guide

53-1003028-02

Syslog messages

A

Dynamic Log Buffer (50 entries):

Dec 15 18:46:17:I:Interface ethernet Lab2, state up

Dec 15 18:45:15:I:Warm start

Clearing the Syslog messages from the local buffer

To clear the Syslog messages stored in the device’s local buffer, use the following command.

Brocade# clear logging

Syntax: clear logging

Logging all CLI commands to Syslog

This feature allows you to log all valid CLI command from each user session into the system log.

To enable CLI command logging, enter the following command.

Brocade(config)# logging cli-command

Syntax: [no] logging cli-command

Example of CLI command logging

In the following example, two CLI sessions are run. In the first example, a telnet session enables CLI
command logging and configures router bgp and the BGP no neighbor command as shown.

telnet@ Brocade-2(config)# logging cli-command

telnet@ Brocade-2(config)# router bgp

telnet@ Brocade-2(config-bgp)# no nei 10.1.1.8 remote 10

In the next example, a console session configures router bgp and the BGP neighbor command as
shown.

Brocade-2(config)# router bgp

Brocade-2(config-bgp)# nei 10.1.1.8 remote 10

Using the show log command, you would refer to a series of log records as shown in the following.

Brocade(config-bgp)# show log

Syslog logging: enabled (0 messages dropped, 0 flushes, 0 overruns)

Buffer logging: level ACDMEINW, 24 messages logged

level code: A=alert C=critical D=debugging M=emergency E=error

I=informational N=notification W=warning

Dynamic Log Buffer (50 lines):

Sep 9 18:38:23:I:CLI CMD: "nei 10.1.1.8 remote 10" from console

Sep 9 18:38:21:I:CLI CMD: "router bgp" from console

Sep 9 18:38:07:I:CLI CMD: "no nei 10.1.1.8 remote 10" from telnet client 10.1.1.1

Sep 9 18:38:05:I:CLI CMD: "router bgp" from telnet client 10.1.1.1

Syslog messages

The tables that follow list all of the Syslog messages. The messages are listed by message level, in
the following order:

Emergencies (none)