User guide

Configuration Files Overview Working With Configuration Files
page 6-8 OmniSwitch 7700/7800/8800 Switch Management Guide April 2006
Setting the Error File Limit
The number of files ending with the .err extension present in the switch’s /flash directory is set with the
configuration error-file limit command. You can set the switch to allow up to 25 error files in the /flash
directory. Once the error file limit has been reached, the next error file generated will cause the error file
with the oldest time stamp to be deleted. The following command sets the error file limit to 5 files.
-> configuration error-file limit 5
->
If you need to save files with the .err extension, you can either rename them so they no longer end with the
.err extension or you may move them to another directory.
Note. The default error file limit is one file. Unless you set the error file limit to a higher number, any
subsequent error file will cause any existing error file to be deleted.
Verbose Mode
You may want to see if a configuration file contains syntax errors. To do this, use the configuration
syntax check verbose command. This command allows you to verify whether or not your file contains
syntax errors before applying the file to the switch. If the configuration file contains errors, the syntax
check information will be scrolled onto your console screen. The errors will also be captured in a text file
created in your /flash directory.
For example, the following shows the command used to run a syntax check on the file testfile_chk.
-> configuration syntax check testfile_chk verbose
This particular file contains three errors so the following information will display along with the name of
the log file created in the /flash directory.
Errors: 3
Log file name: testfile_chk.1.err
The switch may display syntax check information to your console and a log file may be created even if no
error is detected.
The verbose mode can also be specified with the configuration apply command. This causes the switch to
give you a visual indication on the console of the file’s progress. The commands in the file are scrolled to
the display screen as they are applied to the switch. This allows you to view the commands as they are
executed and to observe any error messages that may occur. To apply a file named cfgtextfile.txt in the
verbose mode use the following syntax:
-> configuration apply cfgtextfile.txt verbose