Policy Manager
Using the Edit Command
A VI-like editor is available on the switch to edit policies. To edit a policy file on the switch by
launching the editor, use the following command:
edit policy <filename>
There are many commands available with the editor. For information about the editor commands, use
any tutorial or documentation about VI. 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
●
Using a Separate Machine
You can also edit policies on a separate machine. Any common text editor can be used to create a policy
file. The file is then transferred to the switch using TFTP and then applied.
To transfer policy files to the switch, use the following command:
tftp [<host_name> | <ip_address>] {-v <vr_name>} [-g | -p] [{-l [<local_file> |
memorycard <local-file-memcard>]} {-r <remote_file>} | {-r <remote_file>} {-l
[<local_file> | memorycard <local-file-memcard]}]
Checking Policies
A policy file can be checked to see if it is syntactically correct. Use the following command to check the
policy syntax:
check policy <policy-name>
This command can only determine if the syntax of the policy file is correct and can be loaded into the
policy manager database. Since a policy can be used by multiple applications, a particular application
may have additional constraints on allowable policies.
258
ExtremeWare XOS 11.3 Concepts Guide
Need help?
Do you have a question about the ExtremeWare XOS Guide and is the answer not in the manual?
Questions and answers