
Logging CLI Commands and Entry Results
Using the CLI
page 5-16
OmniSwitch 6800/6850/9000 Switch Management Guide
December 2007
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
command. For example:
-> 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 ssh config
command. For example:
-> 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 up to 100 CLI commands in
descending order
. In other words,
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
Chapter 7, “Managing Switch User Accounts.”
•
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