Edit Policy - Extreme Networks ExtremeWare XOS Command Reference Manual

Version 11.3
Hide thumbs Also See for ExtremeWare XOS:
Table of Contents

Advertisement

edit policy

edit policy <filename>
Description
Edits a policy text file.
Syntax Description
filename
Default
N/A.
Usage Guidelines
This command edits policy text files that are on the switch. All policy files use "
extension, so to edit the text file for the policy boundary use
specify the name of a file that does not exist, you will be informed and the file will be created.
This command spawns a VI-like editor to edit the named file. For information on using VI, if you are
not familiar with it, do a web search for "VI editor basic information", and you should find many
resources. The following is only a short introduction to the editor.
Edit operates in one of two modes; command and input. When a file first opens, you are in the
command mode. To write in the file, use the keyboard arrow keys to position your cursor within the
file, then press one of the following keys to enter input mode:
i - To insert text ahead of the initial cursor position
a- To append text after the initial cursor position
To escape the input mode and return to the command mode, press the Escape key.
There are several commands that can be used from the command mode. The following are the most
commonly used:
dd - To delete the current line
yy - To copy the current line
p - To paste the line copied
:w - To write (save) the file
:q - To quit the file if no changes were made
:q! - To forcefully quit the file without saving changes
:wq - To write and quit the file
Refresh Policy. After you have edited the text file for a policy that is currently active, you will need to
refresh the policy if you want the changes to be reflected in the policy database. When you refresh the
ExtremeWare XOS 11.3 Command Reference
Specifies the filename of the policy text file.
.pol
as the filename. If you
boundary.pol
edit policy
" as the filename
653

Advertisement

Table of Contents
loading

This manual is also suitable for:

Extremeware xos 11.3

Table of Contents