|
|
HP-UX Reference Volume 1 of 5 > ppdcreate(1) |
|
NAMEpdcreate — creates print objects SYNOPSISpdcreate -h pdcreate [-c ObjectClass] [-g] [ -m "MessageText" ] [-r RequestedAttributes] [-s StyleName] [ -x "AttributeValuePairs" ] [-X AttributesFileName] { ServerName : InitialValueDocumentName ... | ServerName : InitialValueJobName ... | ServerName : PrinterName ... | ServerName : QueueName ... } DESCRIPTIONUse this administrative command, pdcreate, to create print objects (except servers, logs, documents and jobs) and to set their attributes to specific values. Note: Servers and logs are created when the server is started. Documents and jobs are created when the files are submitted for printing with the pdpr command. You must submit the pdcreate command to the appropriate server. HPDPS spoolers and supervisors support different sets of object classes.
You can use the pdcreate command to create objects for the following object classes:
When you create a printer object, it remains in the disabled state so that print jobs cannot be accepted. You must issue the pdenable command to place the printers in an enabled state. An object you create with the pdcreate command still exists even if the server in which it is contained is terminated normally (shutdown) or abnormally. A logical printer or queue returns to its previous state when its server is restarted. A physical printer attempts to return to its previous state when its server is restarted. Optionspdcreate accepts the following options:
Command AttributesYou can specify these attributes in a -x "AttributeValuePairs" string or in an attributes file designated with the -X AttributesFileName option.
Object AttributesYou can specify these attributes in a -x "AttributeValuePairs" string or in an attributes file designated with the -X AttributesFileName option. You can specify any settable or specifiable attribute with the pdcreate command. You can specify an attribute only when creating the object. ArgumentsUse the argument to specify the object to create. If you specify multiple objects, each must be separated by spaces. Note: Regardless of which object you are creating, you must use ServerName: with the pdcreate command. Valid argument values you can use are: ServerName:PrinterName ServerName:QueueName ServerName:InitialValueDocumentName ServerName:InitialValueJobName EXAMPLESCreate a QueueTo create the queue QUEUE1 on the spooler SPOOL1, enter the command: pdcreate -c queue SPOOL1:QUEUE1 Create a Logical PrinterTo create the logical printer LogPrt1 on the spooler SPOOL1 and specify the queue that the printer is to be associated with, enter the command: pdcreate -x "associated-queue=QUEUE1" SPOOL1:LogPrt1 Create a Physical PrinterTo create a physical printer PhyPrt1 in the supervisor SUPER1 and specify the queue that the printer is to be associated with, enter the command: pdcreate -x "associated-queue=QUEUE1 printer-model=LaserJet3Si \ attachment-type=tcpip printer-internet-address=15.0.64.97" \ SUPER1:PhyPrt1 Create an Initial Value Object (IVO)To create an initial-value-document called LP3ivd, enter the command: pdcreate -c initial-value-document -m "Created 11/15/94" \ -x "copy-count=1 document-format=postscript\ sides=1 descriptor='IVD for LogPrt3'" SPOOL1:LP3ivd To create an initial-value-job object called MyJobTemplate using the attributes specified in the attributes file named MyJobAttributes, enter the command: pdcreate -c initial-value-job -X MyJobAttributes \ server3:MyJobTemplate The server server3 must be a spooler; if not, the command is rejected. Create a Queue and its Notification ProfileTo create a notification profile for QUEUE1 in server SPOOL1, enter the command: pdcreate -c queue -x \ "notification-profile={event-identifiers=job-modified \ queue-status-changed delivery-method=e-mail \ event-comment='This is a modification of job or status event' \ delivery-address=dave@cowboy locale=C}" SPOOL1:QUEUE1 SEE ALSOpdclean(1), pddelete(1), pddisable(1), pdenable(1), pdls(1), pdmod(1), pdpause(1), pdpr(1), pdpromote(1), pdq(1), pdresubmit(1), pdresume(1), pdrm(1), pdset(1), pdshutdown(1), pd_att(5). To view information about all supported attributes, see manpage pd_att(5). It contains a list of files by object from which you can select the attribute listing that you want. |
|