- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Print to Windows Printers from HP-UX
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
11-27-2001 08:46 AM
11-27-2001 08:46 AM
Print to Windows Printers from HP-UX
Now, how to enable these developers who sit in different offices to print their Unix files and screens to their local printers?
For Linux, we use either Samba service or Windows lpd service. For HP-UX 11.00, I tried to use SAM and Webmin to config a remote printer without success. If someone has done it, could you help. Thanks.
Again, the printers are not networked, they are local to the Windodws PC and shared. JetAdmin and HPDPS are not options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2001 08:57 AM
11-27-2001 08:57 AM
Re: Print to Windows Printers from HP-UX
To start with, HP-UX ASCII files have only a linefeed (LF) character at the end of every line (record separator) while PCs and printers need both carriage return (CR) and LF at the end of each line. Without this translation, output on the printer will stairstep down and across the paper right off the edge.
HP-UX has a translation tool for this: ux2dos so each time a user needs to print an ASCII file from HP-UX, use this:
ux2dos My_File_Name | lp -dremote_printer
Note also that PCs will not process any options like -oduplex or -olandscape as HP-UX is a SysV flavor of Unix and the -o options must be processed at the destination server.
When setting up the remote printer, SAM (or lpadmin) require 3 names: local queue name on HP-UX, remote hostname (the PC) and remote printer name (as defined by the PC when you enable sharing). Make sure the users do not share printers with special characters in their names like spaces and semicolons, etc.
Also note that if the users are running Xwindow programs, you'll need some research into how to capture graphics screens on the HP-UX side (ie, xwd) and how to translate this Xwindow format into a printable file. You will probably be better off using the Windows screen capture capability (ALT-PrtScr) and pasting it into WordPad so it can be resized and printed locally.
Similarly, don't use xterm or hpterm to communicate with the Unix systems. Instead, start a copy of the VT100 emulator provided by the Reflection/X package, then use the local File->Print keys to capture text data. There is SIGNIFICANT Xwindow overhead with using xterm/hpter/dtterm as a telnet process.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2001 08:59 AM
11-27-2001 08:59 AM
Re: Print to Windows Printers from HP-UX
You can use the unix services for windows NT and the jetadmin software in HP/UX to declare the printers in the HP. I did it and works fine.
Regards,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2001 10:06 AM
11-27-2001 10:06 AM
Re: Print to Windows Printers from HP-UX
Try doing this thru SAM.
Find your way to the Printers and Plotters ICON within SAM.
GO to the
In the first blank give : The UNIX printer name.
In the second blank give : The IP Address of the workstation that your printer is connected too.
In the third blank give : The windows printer name that is assigned to the workstation.
You should be good to go now, you may have to edit a few files on the HPUX side and you will have to restart the lp spooler..
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2001 01:14 PM
11-27-2001 01:14 PM
Re: Print to Windows Printers from HP-UX
The Linux server (Red Hat 7.1) can print to the printer OK. It's embarrassing to know all your successes and I just couldn't make it to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2001 01:30 PM
11-27-2001 01:30 PM
Re: Print to Windows Printers from HP-UX
Also your /etc/inetd.conf file should have this line in it:
printer stream tcp nowait root /usr/sbin/rlpdaemon rlpdaemon -i
You may also want to add the printer to your /etc/hosts file..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2001 03:01 PM
11-27-2001 03:01 PM
Re: Print to Windows Printers from HP-UX
The "printer stream ..." is in /etc/inetd.conf file. Nothing related to the printer is in the hosts file though.
Do I have to reboot the thing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2001 07:34 AM
11-28-2001 07:34 AM
Re: Print to Windows Printers from HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2001 01:10 PM
11-28-2001 01:10 PM
Re: Print to Windows Printers from HP-UX
What are the files that may contain printer settings? Someone here is contacting HP support today.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2002 06:53 AM
01-28-2002 06:53 AM
Re: Print to Windows Printers from HP-UX
1. We put an IP address entry of the PC into /etc/hosts so that we could use the name of the PC
2. Using SAM, we defined a remote printer, making sure the name of the PC and the shared printer on the PC were in the same case.
3. We started the TCP/IP Print Server service on the PC. We actually set it to automatic and rebboted the PC
4. In SAM, when we checked the BSD printer, it did not work. We left the BSD box unchecked.
5. We sent a job with lp -dxxxx command and everything worked fine.
Hope this helps you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2002 09:32 AM
01-28-2002 09:32 AM
Re: Print to Windows Printers from HP-UX
lpstat -amason returned "destination "mason" non-existent" msg.
means that it was never created. You can verify this with lpstat -v to show all the printers on the system.
In the .pdf attachment, I noticed that BSD was not checked...that needs to be enabled as Windows does not understand the SysV remote spooler ID numbers. This would be the same if you direct HP-UX to the Linux system.
Make sure that SAM reports that the printer was added successfully and shows up in the printer list for SAM. If there are errors, you can get the text of the errors in the SAM log in /var.
Make sure that the Windows system name is resolvable (ie, nslookup) or better yet, just put the IP address in for the name of the remote computer.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2002 01:54 PM
01-30-2002 01:54 PM
Re: Print to Windows Printers from HP-UX
On the Win2K box goto
Start
Settings
Control Panel
Network and Dial-Up Connections
Advanced
Optional Networking Components
check other network file and print services
and hit next
Now you can goto the UNIX box and print like crazy :-).