logging cli-command

Enables logging of all syntactically valid CLI commands from each user session into the system log.

Syntax

logging cli-command
no logging cli-command

Command Default

Logging of CLI commands is not enabled.

Modes

Global configuration mode

Usage Guidelines

If the logging cli-command command is configured, all the CLI commands executed by the user are logged in the system log and are displayed in the show logging command output.

The no form of the command disables the logging of CLI commands from each user session into the system log.

Examples

The following example enables the logging of CLI commands on the device.

device(config)# logging cli-command 

The following example shows the system log records which are displayed in the show logging command output. The system log contains the valid commands that are executed by the user.

Brocade (config)#show logging
Syslog logging: enabled (0 messages dropped, 0 flushes, 5 overruns)
			Buffer logging: level ACDMEINW, 50 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):
8d02h28m43s:I:CLI CMD: "ip route 0.0.0.0 0.0.0.0 10.20.64.1" by un-authenticated
user from console
8d02h28m24s:I:System: Interface ethernet 1/1, state up
8d02h28m22s:I:CLI CMD: "enable" by un-authenticated user from console
8d02h28m22s:I:PORT: 1/1 enabled by un-authenticated user from console session
8d02h28m19s:I:CLI CMD: "disable" by un-authenticated user from console
8d02h28m19s:I:PORT: 1/1 disabled by un-authenticated user from console session
8d02h28m16s:I:CLI CMD: "interface ethernet 1/1" by un-authenticated user from
console