HP (Hewlett-Packard) M208 Switch User Manual


 
52 CONFIGURING THE M208 FOR TCP/IP: Host Configuration
Setting up an Interface Script
The following steps are the manual instructions for setting up your host with npr.if:
The example commands provided represent a print setup involving a printer named
hp, an M208 named spike, and a printer attached to the M208’s com2 port.
1 Copy the nprsysv.if file from the host software medium to the model directory.
Copy the file as npr.if or name it something more meaningful.
cp nprsysv.if /usr/spool/lp/model/npr.if
2 Edit the npr.if variables to match your system requirements. Look for the com-
ment section beginning with “EDIT THESE VARIABLES” and at the end of this
large comment block, you will find these:
When defining these variables, remember that each is case sensitive. Please define
them as seen in these descriptions. In addition, a further description of these vari-
ables is included in the large comment block before them.
NPDIR_PATH (mandatory) Define the directory location of chr, banner,
onlcr, a2ps, and npscramble binaries. Usually
/usr/local/bin.
These binaries must be copied over from the host software medium. Please see
Host Software on page 31 for more details.
COMM_PROG (mandatory) Specify a communication program to transfer
data to the M208 (i.e. npwrite, rsh, rcmd, remsh). If the
program is npwrite, define the UNIT_PORT variable. Oth-
erwise define the LP_DEST variable.
PRINTER_TYPE (mandatory) Specify printer type (i.e. raw, ascii, ps, hp, pcl-
ps, gen7170).
UNIT_NAME (mandatory) Define the M208 IP name.
UNIT_PORT (conditional) Specify the M208 port name (i.e. prn, com1,
com2). Use only when COMM_PROG is defined as
npwrite.
LP_DEST (conditional) Specify M208 destination name.
Use only when COMM_PROG is defined as rsh, rcmd, or
remsh.
Note
Note
Note