Displaying A Text File; Text Editing On The Switch; Invoke The "Vi" Editor - Alcatel-Lucent OmniSwitch 6450 Management Manual

Hide thumbs Also See for OmniSwitch 6450:
Table of Contents

Advertisement

Working With Configuration Files
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

Displaying a Text File

The
more
command allows you to view a text file one screen at a time. Use this command with the
desired filename. Specifying a path is optional. The following command will display the textfile.rtf text
file located in the /flash/working directory.
-> more /flash/working/textfile.rtf
The switch will display the file text on your terminal screen until the entire screen is full. After that, when
you press Enter, the switch will scroll the file text until it fills up another screen or until the end of the file.
The
more
mode assumes a screen that is 80 columns wide and 24 lines long.

Text Editing on the Switch

The switch software includes a standard UNIX-type 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
You can invoke the Vi editor in read-only mode by using the following syntax.
-> view
To exit the Vi editor, use the Cap ZZ key sequence.
OmniSwitch 6250/6450 Switch Management Guide
June 2013
Configuration Files Overview
page 7-9

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omniswitch 6350Omniswitch 6250

Table of Contents