Viewing The Current Command Logging Status; Viewing Logged Cli Commands And Command Entry Results - Alcatel-Lucent OmniSwitch AOS Release 7 Manual

Switch management guide
Hide thumbs Also See for OmniSwitch AOS Release 7:
Table of Contents

Advertisement

Logging CLI Commands and Entry Results

Viewing the Current Command Logging Status

As mentioned above, the command logging feature is disabled by default. To view whether the feature is
currently enabled or disabled on the switch, use the
-> show command-log status
CLI command logging: Enable
In this case, the feature has been enabled by the user via the command-log command. For more informa-
tion on enabling and disabling command logging, refer to the sections above.

Viewing Logged CLI Commands and Command Entry Results

To view a list of logged commands, along with the corresponding information (including entry results),
enter the
show command-log
-> show command-log
Command : ip interface vlan-68 address 168.14.12.120 vlan 68
UserName : admin
Date
: MON APR 28 01:42:24
Ip Addr
: 128.251.19.240
Result
: SUCCESS
Command : ip interface vlan-68 address 172.22.2.13 vlan 68
UserName : admin
Date
: MON APR 28 01:41:51
Ip Addr
: 128.251.19.240
Result
: ERROR: Ip Address must not belong to IP VLAN 67 subnet
Command : ip interface vlan-67 address 172.22.2.12 vlan 67
UserName : admin
Date
: MON APR 28 01:41:35
Ip Addr
: 128.251.19.240
Result
: SUCCESS
Command : command-log enable
UserName : admin
Date
: MON APR 28 01:40:55
Ip Addr
: 128.251.19.240
Result
: SUCCESS
The show command-log command lists commands in descending order (the most recent commands are
listed first). In the example above, the command-log enable syntax is the least recent command logged;
the ip interface vlan-68 address 168.14.12.120 vlan 68 syntax is the most recent.
Command. Shows the exact syntax of the command, as entered by the user.
UserName. Shows the name of the user session that entered the command. For more information on
different user session names, refer to
Date. Shows the date and time, down to the second, when the command was originally entered.
IP Addr. The IP address of the terminal from which the command was entered.
Result. The outcome of the command entry. If a command was entered successfully, the syntax
SUCCESS displays in the Result field. If a syntax or configuration error occurred at the time a
command was entered, details of the error display. For example:
Result
: ERROR: Ip Address must not belong to IP VLAN 67 subnet
page 4-8
show command-log status
command. For example:
Chapter 6, "Managing Switch User Accounts."
OmniSwitch AOS Release 7 Switch Management Guide
Using the CLI
command. For example:
March 2011

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omniswitch aos 7

Table of Contents