|
The online home of
the company bringing you quality HP hardware and software support |
| Printing to Dynamic IP Addresses |
| With
more people connecting over the internet to access our computers and
networks, there is a need to print to dynamic IP Addresses. How can
we configure such a printer on the HP3000?
The following issues need to be addressed:
NPCONFIG.PUB.SYS Each NPCONFIG printer entry has a unique comment to identify which lines contain the IP addresses to be changed. Here is the example from our setup. 999 (network_address = REMIP #Remote Printer IP jam_recovery = false snmp_enabled = false pjl_supported = false) Monitoring Batch Job The monitor job runs as MANAGER.SYS and polls for a user to logon (the trigger) and changes the NPCONFIG entry appropriately. Changes made to NPCONFIG.PUB.SYS take effect with a STOPSPOOL and STARTSPOOL. The monitor job uses ALLOWME from the CSL to grant these console commands. An alternative to ALLOWME is to globally ALLOW the STARTSPOOL and STOPSPOOL commands. Each has its pros and cons. My preference is the ALLOWME utility. Quad is used to make changes to NPCONFIG. It sets the OUTFENCE to 14 for the printer when it "turns off". This allows spoolfiles to be queued and will print when the connection is restored. The present spoolfile will complete if the connection remains active when the last user logs off.
More Complicated Setups The sample job listed above works very well for a one-to-one correspondence between a user and a printer. But it can be adapted to handle a wide variety of situations. Other environments that this can be applied to as is or with alterations are:
Print Servers Remote users running a firewall/NAT can use JetDirect print servers. All of the remote users appear to the system as a single IP address that's what Network Address Translation does. The Firewall is configured to forward incoming packets on port 9100 to the print server. For remote users who are not running NAT, their workstation holds the only IP address the system can talk to. The workstation must also act as the print server in this environment. These users can load printer server software such as from Brooks Internet Software (http://www.brooksnet.com). This software enables a PC to emulate a JetDirect print server and route the output to any local printer it has access to. CPU Resources The job outlined above will take a little CPU on your system. In a test it took about 4 minutes of CPU per day on an HP3000 928 (32 minutes over 8 days). Conclusion Printing to a dynamic IP Address is possible with the simple scripting techniques shown here. This example demonstrates a job monitoring user logons. When appropriate changes are made to the NPCONFIG.PUB.SYS file and the spooler is restarted. Spoolfiles can be created and queued until the printer comes online by setting the OUTFENCE high while the connection is offline. CPU consumption to manage the environment is minimal. |
Send mail to
webmaster@beechglen.com with
questions or comments about this web site.
Copyright © 2006
Beechglen Development Inc.
Last modified:
01/20/06