Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Distributed Print Service Administration Guide: HP 9000 Computers > Chapter 4 Getting Started with HPDPS

Setting HPDPS Environment Variables

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The following information helps you to set (or verify the setting of) the HPDPS-related environment variables.

Setting the PATH Environment Variable

During the installation process, HPDPS updates the HP-UX PATH environment variable definition in /etc/PATH to include the directory location of the HPDPS executable files; HPDPS appends :/opt/pd/bin to the paths already specified.

Users can use the following format to allow their PATH value to append the paths specified in the /etc/PATH file:

PATH=$PATH:/path1:/path2

Setting the PD_CONFIRM_DELETE Environment Variable

The PD_CONFIRM_DELETE environment variable enables or disables a confirmation message for the pdclean, pddelete, and pdrm commands. Possible values are no and yes. The default value is yes - HPDPS will display a confirmation message before processing a delete request. No confirmation messages will display if you set the value to no. Under normal conditions, you will not want to change the default value.

If, however, you decide to set the value of PD_CONFIRM_DELETE to no, edit your .profile file and add the line:

export PD_CONFIRM_DELETE=no

To set the value of the PD_CONFIRM_DELETE environment variable for the duration of your login session only, enter:

export PD_CONFIRM_DELETE=no

at the command line.

Setting the PDPRINTER Environment Variable

The PDPRINTER environment variable identifies the default logical printer. Defining a default logical printer allows your users to submit jobs without specifying a logical printer name. Defining a default logical printer also allows you to perform certain configuration tasks without specifying the logical printer name. For example, to set the default value of the PDPRINTER to LogPrt1, edit the system-wide /etc/.profile file and add the line:

export PDPRINTER=LogPrt1

Users can set a different default logical printer in their individual .profile file by editing this file and adding a line such as

export PDPRINTER=LogPrt4

Tuning Load Handling Using HPDPS Environment Variables

The PD_MAXTHREADS environment variable, which is a systemwide environment variable, allows you to specify a limit on the number of simultaneous command threads in the client daemon. Each thread takes up memory resources and this prevents the daemon from running out of memory. Once it hits the limit, it will ignore new requests until a thread frees up. (The default is 50 if PD_MAXTHREADS is not otherwise set.) PD_MAXTHREADS is read only at invocation of pdclientd.

The PD_MAXRETRIES and PD_RETRY_INTERVAL environment variables, which can be modified within each individual user's own environment, can be used to keep a command from quitting prematurely in this situation. Refer to the HP Distributed Print Service User's Guide for more information on environment variables.

For example, suppose that one expects that the highest number of simultaneous HPDPS requests to be 100 (perhaps after some batch reports complete), and that the HPDPS throughput for this particular system is measured to be around 1 job/sec. Since PD_MAXTHREADS defaults to 50, the first 50 requests will be taken immediately and the rest must wait. It will take 50 seconds for 50 new threads to free up for the rest of the jobs. Since PD_RETRY_INTERVAL defaults to 5 seconds, each waiting command will try again every 5 seconds. The longest a job will wait is 50 seconds divided by 5 second intervals, or for 10 retries. You should add one more retry in case it just missed.

So in this example, PD_MAXRETRIES should be set to 11.This will set an upper limit of about 55 seconds as to how long a command can take before it returns with success or an error message.

Summary of Other Environment Variables

The following table summarizes other environment variables.

Table 4-1 Environment Variables

Variable

Description

PDPATH

A path of directories that are searched for the file name specified in the -X AttributesFileName flag. Multiple directories are separated by a colon (:). If the PDPATH environment variable does not exist, the current working directory of the person submitting the command is used. Commands: All

PDBASE

Specifies the root directory where the HPDPS server stores all of its working files, such as logging or tracing files. Each server has its own subdirectory under this directory to avoid name conflict when multiple servers are on the same machine. Commands: pdstartspl, pdstartsuv, pdstartclientd

PD_MEMLIMIT

Defines the maximum amount of memory (in kilobytes) the spooler or supervisor can use on the host system.

PD_SOCKET

The value for the socket number provided by your HPDPS administrator. The socket number you specify should be for a HPDPS client and compatible with the value you specify for your LANG environment variable.

PDIDTABLE

Controls the size of the table that maps local job identifier numbers and global job identifier numbers for jobs submitted to HPDPS clients. If you have many users who submit a small number of jobs, you can improve performance by reducing the size of the tables for each user.

LANG

The name of the locale to use for local categories when neither LC_ALL nor the corresponding environment variable beginning with LC_ specifies a locale. Used to determine the language, territory, or character set of messages and other information that are sent to a person. Commands: All

LC_ALL

The name of the locale used to override any values for local categories specified by the setting of LANG or any environment variables beginning with LC_.

Commands: All

LC_CTYPE

The name of the locale for character classification.

Commands: All

LC_MONETARY

The name of the locale containing monetary-related numeric editing information.

Commands: All

LC_NUMERIC

The name of the locale containing numeric editing, such as radix and character information.

Commands: All

LC_TIME

The name of the locale for date and time formatting information.

Commands: All

LC_MESSAGES

The name of the locale for STDERR messaging.

Commands: All

NLSPATH

The NLSPATH should be set to /opt/pd/lib/nls/msg/C/%N or /opt/pd/lib/nls/msg/%L/%N:/opt/pd/lib/nls/msg/C/%N

 

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2000 Hewlett-Packard Development Company, L.P.