|
|
Native Mode Spooler Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 3 Configuring and Operating Network PrintersNetwork Printing Configuration Tips |
|
This section gives the system manager some tips for creating a valid network configuration file that will work well in your environment. The topics in this section include:
For each network printer you are configuring, you must enter in the NPCONFIG file the printer's TCP/IP network domain name or its IP address in the form aaa.bbb.ccc.ddd. If you enter the IP address, each field must have a value that is less than or equal to decimal 255. The numeric base of each field in the IP address is then determined individually as follows:
Listed below is one valid IP address expressed in many possible forms:
These are invalid IP address specifications:
At a given time, only one host can be connected to a network printer and others must wait until the printer is available. If the spooler has a spool file to print, and either the network or the printer are unavailable, it may need to attempt connecting to the printer many times before it finally succeeds. You may configure the length of time between retries by defining values for the poll_interval and poll_interval_max items. You must decide whether the default value for poll_interval (10 seconds) gives the host an unfair advantage or disadvantage over other competing host systems and, if so, specify a more appropriate value. For example, if poll_interval is long compared with other hosts, then those hosts stand a better chance of attaching the printer than this host. If the interval is comparatively short, other hosts may not be able to gain access to a network printer. However, if the interval is too short, this host may consume excessive CPU time doing the polling. The spooler uses the combination of values set by poll_interval and poll_interval_max to determine the polling cycle on an unavailable network printer. For example, if poll_interval = 10 while the absolute value of poll_interval_max is 60, a sequence of unsuccessful connection attempts would wait 10, 12.5, 15.6, 19.5, ... 59.6, 60, 60, 60... seconds between each successive attempt. Once the connection has been made, the next failed connection starts at poll_interval once more. If poll_interval_max is less than 0, a message is displayed to the console whenever this limit is reached. If it is greater than or equal to 0, no message is displayed. At first glance this behavior may seem counter-intuitive. If a network connection fails using a short interval, its chances of success appear to decrease as the interval increases. This is, in fact, the case, but there are situations for which this may be desirable. One example might be a network connection which must pass through many routers or other interfaces, any of which can fail. Or the network itself may be down. Repeatedly trying to establish a connection using a small poll_interval under these conditions wastes local resources as well as unnecessarily increasing network traffic. If situations like this do not arise in your environment, you may omit poll_interval_max. Successive connection attempts are then all separated by poll_interval seconds. Four I/O timing items that you may enter into the NPCONFIG file control the frequency of status checking for network printers. They are:
The default values for these items are suitable for text-based reports sent to a printer such as the LaserJet 4Si, which is separated from the HP 3000 by a small number of network devices (routers, bridges, etc.). If the printer is located at a remote site, or the data is more complex, you may want to enter a larger value to avoid excessive checking cycles. A low value (more frequent checking) causes any problem to be detected sooner, but substantially increases the use of CPU and network resources if normal I/O has not completed within that interval. The remainder of this section describes two scenarios to suggest how you might set the I/O timing items to best manage some typical network printing problems. In this scenario, suppose that each I/O requires 15 seconds to complete. Assume that none of the I/O timing items are specified in NPCONFIG, which means that all default values are used. For reference, those values are:
In this scenario, suppose that each I/O requires 15 seconds to complete, and that the I/O timing items have been set to the following values in NPCONFIG:
|
|