29.04.2019 Views

OS6860(E)_AOS_8.1.1.R01_Switch_Management_Guide

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Logging CLI Commands and Entry Results<br />

Using the CLI<br />

Viewing the Current Command Logging Status<br />

As mentioned above, the command logging feature is disabled by default. To view whether the feature is<br />

currently enabled or disabled on the switch, use the show command-log status command. For example:<br />

-> show command-log status<br />

CLI command logging: Enable<br />

In this case, the feature has been enabled by the user via the command-log command. For more information<br />

on enabling and disabling command logging, refer to the sections above.<br />

Viewing Logged CLI Commands and Command Entry Results<br />

To view a list of logged commands, along with the corresponding information (including entry results),<br />

enter the show command-log command. For example:<br />

-> show command-log<br />

Command : ip interface vlan-68 address 168.14.12.120 vlan 68<br />

UserName : admin<br />

Date : MON APR 28 01:42:24<br />

Ip Addr : 128.251.19.240<br />

Result : SUCCESS<br />

Command : ip interface vlan-68 address 172.22.2.13 vlan 68<br />

UserName : admin<br />

Date : MON APR 28 01:41:51<br />

Ip Addr : 128.251.19.240<br />

Result : ERROR: Ip Address must not belong to IP VLAN 67 subnet<br />

Command : ip interface vlan-67 address 172.22.2.12 vlan 67<br />

UserName : admin<br />

Date : MON APR 28 01:41:35<br />

Ip Addr : 128.251.19.240<br />

Result : SUCCESS<br />

Command : command-log enable<br />

UserName : admin<br />

Date : MON APR 28 01:40:55<br />

Ip Addr : 128.251.19.240<br />

Result : SUCCESS<br />

The show command-log command lists commands in descending order (the most recent commands are<br />

listed first). In the example above, the command-log enable syntax is the least recent command logged;<br />

the ip interface vlan-68 address 168.14.12.120 vlan 68 syntax is the most recent.<br />

• Command. Shows the exact syntax of the command, as entered by the user.<br />

• UserName. Shows the name of the user session that entered the command. For more information on<br />

different user session names, refer to Chapter 6, “Managing <strong>Switch</strong> User Accounts.”<br />

• Date. Shows the date and time, down to the second, when the command was originally entered.<br />

• IP Addr. The IP address of the terminal from which the command was entered.<br />

• Result. The outcome of the command entry. If a command was entered successfully, the syntax<br />

SUCCESS displays in the Result field. If a syntax or configuration error occurred at the time a<br />

command was entered, details of the error display. For example:<br />

Result<br />

: ERROR: Ip Address must not belong to IP VLAN 67 subnet<br />

page 4-8 Omni<strong>Switch</strong> <strong>AOS</strong> Release 8 <strong>Switch</strong> <strong>Management</strong> <strong>Guide</strong> May 2014

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!