Configuration Files Overview
In this example, the proposed asc.1.snap configuration file contains three errors. As with the
configuration apply
an error is detected. By default, this file is placed in the root /flash directory.
If a configuration file is located in another directory, be sure to specify the full path. For example:
-> configuration syntax check /flash/working/asc.1.snap
Viewing Generated Error File Contents
For error details, you can view the contents of a generated error file. To view the contents of an error file,
use the more command. For example:
-> more asc.1.snap.1.err
For more information, refer to
Verbose Mode Syntax Checking
When verbose is specified in the command line, all syntax contained in the configuration file is printed to
the console, even if no error is detected. (When verbose is not specified in the command line, cursory
information—number of errors and error log file name—will be printed to the console only if a syntax or
configuration error is detected.)
To specify verbose mode, enter the verbose keyword at the end of the command line. For example:
-> configuration syntax check asc.1.snap verbose
Text Editing on the Switch
The switch software includes a standard line editor called "Vi". The Vi editor is available on most UNIX
systems. No attempt is being made to document Vi in this manual because information on it is freely
available on the Internet.
Invoke the "Vi" Editor
You can invoke the Vi editor from the command line. Use the following syntax to view the switchlog.txt
file located in the /flash/working directory:
-> vi /flash/working switchlog.txt
page 5-8
command, an error file (.err) is automatically generated by the switch whenever
"Text Editing on the Switch" on page
OmniSwitch AOS Release 7 Switch Management Guide
Working With Configuration Files
5-8.
March 2011