Alcatel Carrier Internetworking Solutions omniswitch Switch User Manual


 
Logging CLI Commands and Entry Results Using the CLI
page 5-16 OmniSwitch 6600 Family Switch Management Guide March 2005
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 command-log command. For example:
Command : interfaces 1/23 duplex full
UserName : admin
Date : WED FEB 09 10:56:52
Ip Addr : 128.251.16.185
Result : WARNING: No Link, if Link Partner cannot handle this advertizement
of FULL-duplex.
Command : interfaces 1/23 speed 100
UserName : admin
Date : WED FEB 09 10:56:40
Ip Addr : 128.251.16.185
Result : SUCCESS
Command : command-log enable
UserName : admin
Date : WED FEB 09 10:55:44
Ip Addr : 128.251.16.185
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 interfaces 1/23 duplex full 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