|
|
HP-UX Reference Volume 2 of 5 > ppdgwcfg(1M) |
|
NAMEpdgwcfg — configures HPDPS gateway printers in a Basic environment DESCRIPTIONThe pdgwcfg utility simplifies the configuration of HPDPS gateway printers in a Basic (non-DCE Extended) environment by reading an administrator-supplied configuration file /etc/pdgwcfg.conf (see pdgwcfg.conf(4)). It creates-enables and/or deletes gateway printers as appropriate. Gateway printers are similar to "remote printers" provided by the LP spooler, allowing access to a printer in a foreign (DCE Extended or Basic) environment. You must have super-user privileges to invoke the utility. The default behavior of the utility will not modify any previously-created gateway printers listed in /etc/pdgwcfg.conf. Any new entries will be created and any gateway printers not listed will be deleted. All output is sent to $PDBASE/pdgwcfg/error.log (or /var/opt/pd/pdgwcfg/error.log by default). Previous error logs are retained in separate files in this directory for reference and, if used extensively, the directory may need to be cleaned-up periodically. If a severe error is encountered that causes a premature abort, an error message is also sent to stderr. Optionspdgwcfg uses the following options:
EXAMPLESIf it is desirable to have a single configuration file distributed across multiple systems, there are various ways to distribute the configuration file and have the utility invoked to configure a system (e.g. swinstall(1M), rdist(1), etc.). Each method should be weighed against the administration and security concerns of your particular environment. The below is just an example using rdist(1) and is not intended to be a recommendation. # sample distfile for use with rdist # copies /etc/pdgwcfg.conf and invokes the pdgwcfg utility # invoke as 'rdist -b -h -f distfile' HOSTS = ( host7 host8 ) FILES = ( /etc/pdgwcfg.conf ) ${FILES} -> ${HOSTS} install ; special /etc/pdgwcfg.conf \\ " PATH=/usr/bin:/opt/pd/bin;pdgwcfg" ; To update the configuration on host8 only, one would invoke: rdist -b -h -f distfile -m host8 WARNINGSBy default, any gateway printer not listed in /etc/pdgwcfg.conf will be removed. pdgwcfg does not check for entry modifications in /etc/pdgwcfg.conf. See pdgwcfg.conf(4) for possible ways to accomplish modifications. If the descriptor attribute is modified, then the -m option will not consider these gateway printers as candidates for deletion because it overrides the PDGWCFG-MARKER marker that pdgwcfg would have placed in that attribute. SEE ALSOpdgwcfg.conf(4), pdcreate(1), and the HP Distributed Print Service Administration Guide (re: gateway printers) |
|