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.

Working With Configuration Files<br />

Configuration Files Overview<br />

Cancelling a Timed Session<br />

You may cancel a pending timed session by using the configuration cancel command. To confirm that<br />

your timer session has been cancelled, use the show configuration status command. The following will<br />

display.<br />

-> configuration cancel<br />

-> show configuration status<br />

File configuration: none scheduled<br />

For more details about the CLI commands used to apply configuration files or to use timer sessions, refer<br />

to “Configuration File Manager Commands” in the Omni<strong>Switch</strong> <strong>AOS</strong> Release 8 CLI Reference <strong>Guide</strong>.<br />

Configuration File Error Reporting<br />

If you apply a configuration file to the switch that contains significant errors, the application may not<br />

work. In this case, the switch will indicate the number of errors detected and print the errors into a text file<br />

that will appear in the /flash directory. The following display will result where the cfg_txt file contains<br />

three errors.<br />

-> configuration apply cfg_file<br />

Errors: 3<br />

Log file name: cfg_txt.1.err<br />

In this case, the error message indicates that the application attempt was unsuccessful. It also indicates that<br />

the switch wrote log messages into a file named cfg_txt.1.err, which now appears in your /flash directory.<br />

To view the contents of a generated error file, use the view command. For example, view<br />

cfg_txt.1.err.<br />

Setting the Error File Limit<br />

The number of files ending with the .err extension present in the switch’s /flash directory is set with the<br />

configuration error-file-limit command. You can set the switch to allow a maximum number of error<br />

files in the /flash directory. Once the error file limit has been reached, the next error file generated will<br />

cause the error file with the oldest time stamp to be deleted. The following command sets the error file<br />

limit to 5 files:<br />

-> configuration error-file limit 5<br />

If you need to save files with the .err extension, you can either rename them so they no longer end with<br />

the .err extension or you may move them to another directory.<br />

Syntax Checking<br />

The configuration syntax check command is used to detect potential syntax errors contained in a<br />

configuration file before it is applied to the switch. It is recommended that you check all configuration<br />

files for syntax errors before applying them to your switch.<br />

To run a syntax check on a configuration file, use the configuration syntax-check command.<br />

For example:<br />

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

Errors: 3<br />

Log file name: check asc.1.snap.1.err<br />

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

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

Saved successfully!

Ooh no, something went wrong!