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.

Configuration Files Overview<br />

Working With Configuration Files<br />

In this example, the proposed asc.1.snap configuration file contains three errors. As with the<br />

configuration apply command, an error file (.err) is automatically generated by the switch whenever<br />

an error is detected. By default, this file is placed in the root /flash directory.<br />

If a configuration file is located in another directory, be sure to specify the full path. For example:<br />

-> configuration syntax check /flash/working/asc.1.snap<br />

Viewing Generated Error File Contents<br />

For error details, you can view the contents of a generated error file. To view the contents of an error file,<br />

use the more command. For example:<br />

-> more asc.1.snap.1.err<br />

For more information, refer to “Text Editing on the <strong>Switch</strong>” on page 5-8.<br />

Verbose Mode Syntax Checking<br />

When verbose is specified in the command line, all syntax contained in the configuration file is printed to<br />

the console, even if no error is detected. (When verbose is not specified in the command line, cursory<br />

information—number of errors and error log file name—will be printed to the console only if a syntax or<br />

configuration error is detected.)<br />

To specify verbose mode, enter the verbose keyword at the end of the command line. For example:<br />

-> configuration syntax check asc.1.snap verbose<br />

Text Editing on the <strong>Switch</strong><br />

The switch software includes a standard line editor called “Vi”. The Vi editor is available on most UNIX<br />

systems. No attempt is being made to document Vi in this manual because information on it is freely<br />

available on the Internet.<br />

Invoke the “Vi” Editor<br />

You can invoke the Vi editor from the command line. Use the following syntax to view the switchlog.txt<br />

file located in the /flash/working directory:<br />

-> vi /flash/working switchlog.txt<br />

page 5-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!