HP (Hewlett-Packard) M208 Switch User Manual


 
CONFIGURING THE M208 FOR TCP/IP: Host Configuration 45
ing throughput.
Both ezsetup and npconfig utilize the appropriate interface script by renaming it to
nprprintername.if, where printername is the name of the printer on the host. To
install one of these scripts manually, please refer to the section that applies to your
host: the BSD UNIX section starting on page 47 or the System V UNIX section starting
on page 51.
Custom Interface Scripts
If an interface script is to be used for your print setup, you have three choices:
1 Use npr.if provided in the host software.
2 Use a pre-defined script for your particular printer.
3 Use a script you have created yourself.
The npr.if method is explained throughout this section. However, if you have a pre-
defined printer script or a script of your own, there are certain modifications you must
make in order for it to work with the M208.
The important part of an interface script is where it sends the print job. With the
M208, the data must be captured and sent over the network for printing, since your
printer is no longer locally attached. There are two possible ways to make this happen
with your current script:
1 Encapsulate your script’s code with brackets ( ) and after the closing bracket, add
a command to send the data to the M208 for printing.
2 Use npd as the print method.
Both of these methods are explained on the next page.
Modifying Your Script
If you choose to simply edit the script, you need to understand how an interface file
works. The structure of any standard interface file should be as follows:
process options
(
generate printer setup characters
generate banner page data for each file