Pseries Installation Guide

P-Series Installation and Operation Guide, version 2.3.1.2 51
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:
MAC Rewriting
The MAC rewrite feature allows the least significant byte (LSB) of a packet’s destination MAC address to
be overwritten with a user-specifed value. This feature may be used to load balance or redirect traffic.
Chapter 7 Command Line Interface
Step Task
1 Change directories to /usr/local/pnic/0.
2 Enter the command vi rules.custom to edit dynamic rules (see Appendix D, on page 125 for
information on vi).
3 Enter rules according to the format described in “Writing Rules” on page 63.
4 Save your changes and exit vi.
5 Enter pnic compilerules to compile the new dynamic rules.
6 Enter pnic loadrules upload the dynamic rules to the FPGA.