- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Network printing
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
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
10-08-2008 02:07 AM
10-08-2008 02:07 AM
i am a new unix system administrator.
I have a question regarding network printing from a Unix server.
How is it possible to print with a single command to a network printer ( maybe using its IP address), without having to install it first on the Unix Server.
Is there something similar to the LPR command used in Windows, to print to a network printer?
(In Windows we don't have to install the printer ).
Can this be done with printers that are installed and shared on a Windows computer.
How can we print with a single command from Unix to a Windows shared printer, without having to install it first.
Any help would be appreciated.
Regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 02:22 AM
10-08-2008 02:22 AM
Re: Network printing
To the best of my knowledge it is not possible. Either you need to configure as a network printer(if it is connected on network) or remote printer (if it is shared from windows) on unix server first.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 02:47 AM
10-08-2008 02:47 AM
Re: Network printing
The following link may give you a brief Idea about the process of printing between UNIX and Windows.
http://www.stethos.com/megaform/data/HowToPrintFromUnixHPUX-HP9000ToNT.pdf
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 03:04 AM
10-08-2008 03:04 AM
Re: Network printing
I saw the document but it includes installing a network or remote printer with SAM.
I wish to avoid this and print by an only command to a remote printer.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 03:36 AM
10-08-2008 03:36 AM
Re: Network printing
Why do you want to avoid setting up an LPR printer on the Unix host?
Once you do it once you'll find it's quite easy.
Once the LPR is setup it will simply be
lp filename
to print to the default printer.
Then it's
lp -d {destination} filename
to print to a different printer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 03:39 AM
10-08-2008 03:39 AM
Solutionhttp://hpux.connect.org.uk/hppd/hpux/Sysadmin/rlpr-2.06/
For a better introduction to this utility, see the author's web page:
http://truffula.com/rlpr/
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 03:42 AM
10-08-2008 03:42 AM
Re: Network printing
Here's a link to the lpadmin command which can also be used to create the printer
http://docs.hp.com/en/B2355-90691/lpadmin.1M.html
It has an example of setting up a remote printer
/usr/sbin/lpadmin -plp3 -v/dev/null -mrmodel -ocmrcmodel -osmrsmodel -ob3 -ormsystem2 -orplp -v/dev/null
To a Windows admin this may look messed up but read the options in the man page using the link above and it will all make sense.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 04:07 AM
10-08-2008 04:07 AM
Re: Network printing
I have already set up one remote printer
and i can print to it using
lp filename
but the company is using an application that needs to print to a range of network printers with different ip address-es and it is a strugling job to install all these remote printers to unix.
Does the command lp {destination} filename work with only one printer set up on Unix application server.It is not working for me until now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 04:13 AM
10-08-2008 04:13 AM
Re: Network printing
If you don't use the -d option the command will print to the "default" printer.
The default printer can be setup I believe with "lpadmin -d printer_name".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 05:49 AM
10-08-2008 05:49 AM
Re: Network printing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 06:09 AM
10-08-2008 06:09 AM
Re: Network printing
so? thats NOT the same as what you asked. It is possible to script the installation and avoid sam...
now the question is, is really a remote printer (like lpr, sends info to print server for processing), or is it an network printer (JetDirect card in printer)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 06:31 AM
10-08-2008 06:31 AM
Re: Network printing
I have a list of remote printers, which means printers shared in Windows clients, that i have to print to from Unix.
I also have a list of network printers(JetDirect) that i have to print to from Unix.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 10:56 PM
10-08-2008 10:56 PM
Re: Network printing
can you help me with a script that installs the printers avoiding sam.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2008 01:19 AM
10-09-2008 01:19 AM
Re: Network printing
You'll have to determine the printer command yourself. If you post your command attempts we'll comment.
Once you have THE command you want to use to setup all printers then you can modify the script I've attached. I've assumed you're new to scripting and provided a very simplistic sample.
It reads from a source file which would have all your printer names. One per line and no blank lines.
Example:
printer1
printer2
etc
etc
The attached "ReadListOfPrinterNames.ksh" script shows how to read in the file and how to use a variable containing the printer name in a command. I used the "echo" command to simply write the printer name to the console.
Note this is a Korn Shell script and the use of {} around the variable name.
Take a stab at writing the script with the lpadmin command and we'll help you out further if needed.
Regards,
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2008 03:49 AM
10-09-2008 03:49 AM
Re: Network printing
You might want to show an example without the evil cat. :-)
while read PRINTERNAME; do
echo "Found printer ${PRINTERNAME}"
done < testfile.txt
for PRINTERNAME in $(< testfile.txt); do
echo "Found printer ${PRINTERNAME}"
done
- Tags:
- evil cat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2008 04:12 AM
10-09-2008 04:12 AM
Re: Network printing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2008 04:12 AM
10-09-2008 04:12 AM
Re: Network printing
In fact, i just downloaded and installed rlpr , and i am searching for the correct syntax to use for printing on a remote printer(Windows shared printer) or a network printer with its own IP address.
Can you help me out?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2008 04:44 AM
10-09-2008 04:44 AM
Re: Network printing
I tested rlpr and it works fine.
It can print to network printers and also remote printers.
Thank you all .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2008 10:01 PM
10-09-2008 10:01 PM
Re: Network printing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2008 11:01 PM
10-09-2008 11:01 PM
Re: Network printing
Just a reminder that a thank you in the forums is in the form of points. Not that I care really but it is the etiquette to use here.
And I've noticed a LOT of people seeking and getting advice without taking the simple step of assigning points.
And points don't go to just those that found the solution. But also to those who took the time out of their day and made an effort to help.
Here's the guide to the points.
o 1-3: The answer didn't really help answer my question, but thanks for your assistance!
o 4- 7: The answer helped with a portion of my question, but I still need some additional help!
o 8-10: The answer has solved my problem completely! Now I'm a happy camper!
Glad you got your solution.
Best Regards,
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2008 07:10 AM
10-14-2008 07:10 AM
Re: Network printing
I am new to the forum , and i assumed i had to assign the points to only the best answer.
Now that i know, i will also assign points to other users.
Thank you Kevin.