- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- building a remote printer
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2007 08:01 AM
01-11-2007 08:01 AM
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2007 08:44 AM
01-11-2007 08:44 AM
Re: building a remote printer
There is an example in the manpages for 'lpadmin(1M)'. You must stop the scheduler before issuing the command string. For example:
# lpshut
# lpadmin -pmylp -v/dev/null -mrmodel -ocmrcmodel -osmrsmodel -ob3 -ormn
-dnsname -orplpt1_text -v/dev/null
# accept mylp
# enable mylp
...where, "mylp" is the name of the printer queue on the local host; "n-dnsname" is the hostname where the remote print queue resides; and "lpt1_text" is the remote printer queue.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2007 08:53 AM
01-11-2007 08:53 AM
Re: building a remote printer
lpadmin -plp3 -v/dev/null -mrmodel -ocmrcmodel -osmrsmodel -ob3 -ormsystem2 -orpmyprint -v/dev/null
The local printer is lp3, the remote system is system2 (could also be an IP addr), and most important: the remote printer's name is myprint. A print server may have multiple printers attached so the name of the printer in the remote server is required, even if there is only 1 printer attached.
Now I mention this requirement because your print server may actually be a network card in the printer. So the internal name of the printer must be determined from the card's documentation.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2007 09:18 AM
01-11-2007 09:18 AM
Re: building a remote printer
/usr/sbin/lpadmin -poptiods -v/dev/null
-ormnewoptio â mrmodel -orpoptiods are these options enough?
Another thing when i do a lpstat -t i get
root# lpstat -t | grep optiods
device for optiods: /dev/null
optiods accepting requests since Jan 11 16:27
printer optiods is idle. enabled since Jan 11 16:28
root# lpstat -t | grep PABillState
device for PABillState: /dev/null
remote to: PABillState on newoptio
PABillState accepting requests since Jul 25 15:19
printer PABillState is idle. enabled since Jul 25 15:19
Now, for optiods i dont see any
remote to: PABillState on newoptio
Any reasons, y?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2007 10:26 AM
01-11-2007 10:26 AM
Solution> i am using the command
/usr/sbin/lpadmin -poptiods -v/dev/null
-ormnewoptio -Â Â mrmodel -orpoptiods
is incomplete. You need to specify 8 options for a remote printer. I don't understand the reference to PaBillState. Here are the static parameters:
-mrmodel
-ocmrcmodel
-osmrsmodel
-ob3
-d/dev/null
Then you must supply the 3 variable options:
-pLOCALQUEUE
-ormPRINTSERVER
-orpREMOTERPRINTER
where LOCALQUEUE is the name for your printer in the local system. PRINTSERVER is the hostname or IP for the printer server, and REMOTEPRINTER is the name of the printer you want to use on the PRINTSERVER.
lpstat -t is a very complicated command to use to find your printer. Query your printer with:
lpstat -aLOCALQUEUE -oLOCALQUEUE -PLOCALQUEUE
However, it is a lot easier to run sam and add the remote printer.
Bill Hassell, sysadmin