Operating System - HP-UX
1832990 Members
2362 Online
110048 Solutions
New Discussion

Re: Creating printqueue (spool) and printer

 
Maarten van Maanen
Regular Advisor

Creating printqueue (spool) and printer

Somehow I had creating two Systeemprinter-printqueues. With help from other people in this forum I finally managed to remove both of them. However, now I need to add both a new printqueue (default one) and a HP5000 printer to connect to that. Jetadmin won't let me do it because there is no printqueue anymore. How should I proceed ??
9 REPLIES 9
John Palmer
Honored Contributor

Re: Creating printqueue (spool) and printer

jetadmin option 1 will create your print queue.
Maarten van Maanen
Regular Advisor

Re: Creating printqueue (spool) and printer

John,
Ok, it works through Jetadmin.
Is there a non-Jetadmin and non-SAM way to create print-queues ?
Devbinder Singh Marway
Valued Contributor

Re: Creating printqueue (spool) and printer

With Jetadmin , you must firstly make sure you can ping the printer that you are trying
to add. If you cannot then coorect this problem first and then use jetadmin to add
the printer , because jetadmin checks to see if the printer is on the network.

OR you can use the name you have entered in
/etc/hosts file i.e.

10.1.1.1 printer1

and then use jetadmin option 1 as john suggested

laters



Seek and you shall find
John Palmer
Honored Contributor

Re: Creating printqueue (spool) and printer

Maarten,

Yes it's good old lpadmin but it's not easy to work out what arguments to give it and it's very picky about how you specify them.

sam and jetadmin are much easier to use. Remember that sam only calls jetadmin anyway if you specify a network printer.

Regards,
John
Nancy Hubert
Occasional Advisor

Re: Creating printqueue (spool) and printer

To create a remote printer at the command line you can do the following:

# /usr/lib/lpshut

# /usr/lib/lpadmin -pLOCAL_NAME -v/dev/null -mrmodel
-ocmrcmodel -osmrsmodel -ormREMOTE_HOSTNAME -orpREMOTE_NAME

# /usr/lib/accept LOCAL_NAME
# /usr/lib/enable LOCAL_NAME
# /usr/lib/lpsched

For more details and other examples you can look in the man pages of the lpadmin command.


Rick Garland
Honored Contributor

Re: Creating printqueue (spool) and printer

If you are looking for a non-JetAdmin and non-SAM method to add printers, look into the command 'lpadmin'. This command will allow you to add printers as local or remote, change the behaviors, make or remove as default, etc.

Rick Garland
Honored Contributor

Re: Creating printqueue (spool) and printer

If you are looking for a non-JetAdmin and non-SAM method to add printers, look into the command 'lpadmin'. This command will allow you to add printers as local or remote, change the behaviors, make or remove as default, etc.

Rick Garland
Honored Contributor

Re: Creating printqueue (spool) and printer

If you are looking for a non-JetAdmin and non-SAM method to add printers, look into the command 'lpadmin'. This command will allow you to add printers as local or remote, change the behaviors, make or remove as default, etc.

Rick Garland
Honored Contributor

Re: Creating printqueue (spool) and printer

Can use the command 'lpadmin' if wanting to modify printer configs without using JetAdmin or Sam. Can add local or remote printers, change the default settings, change the behaviors, etc.