Chapter 7 Command Line Interface
The command line interface (CLI) is an alternative to the GUI for managing the appliance. A script called pnic is used to perform the same management functions as the GUI.
Invoke the pnic script using the command syntax pnic command; the OS environment variables are set such that this command can be executed from any path.
CLI Commands
CLI commands are given in Command Line Reference on page 79.
Editing Dynamic Rules with the CLI
Dynamic rules are stored in the file rules.custom in the /usr/local/pnic/0 directory.
To edit dynamic rules:
Step Task
1Change directories to /usr/local/pnic/0.
2Enter the command vi rules.custom to edit dynamic rules (see Appendix D, on page 125 for information on vi).
3Enter rules according to the format described in “Writing Rules” on page 63.
4Save your changes and exit vi.
5Enter pnic compilerules to compile the new dynamic rules.
6Enter pnic loadrules upload the dynamic rules to the FPGA.
MAC Rewriting
The MAC rewrite feature allows the least significant byte (LSB) of a packet’s destination MAC address to be overwritten with a
51 |