Operating System - HP-UX
1832612 Members
3187 Online
110043 Solutions
New Discussion

How did I add a printer from a NT print server on an HP/UX machine

 
SOLVED
Go to solution
Jan Studsgaard_2
Frequent Advisor

How did I add a printer from a NT print server on an HP/UX machine

I am running HP/UX 10.20, and I want to add a printer from a NT Print server.
I was adding a printer from a NT print server for about 2 month ago, and it was working fine at that time, but now I can?t get any contact to the print server. I got message like this:
"connection to umdkprt1.unimerco.dk is down".
I now the UNIX machine can ping and ftp to the server, but there is no connection when I print.
I am looking forward to hear from anyone, who can give a hint.
Best regards
Jan Studsgaard Jensen
11 REPLIES 11
Herve BRANGIER
Respected Contributor

Re: How did I add a printer from a NT print server on an HP/UX machine

Hi

I think your NT print server shares printers
so you can use SAMBA to connect to your printer
Use smbclient to do that.

Second idea, don't know how NT print server works
but I think you can use "printer" (tcp/515) port
to share printers (like on an unix system running
lpd for example). So verify if you can connect
to your host on 515 port (telnet host 515).
If not, look how to activate this service on
your NT server.

HTH

Herv?

Stefan Schulz
Honored Contributor

Re: How did I add a printer from a NT print server on an HP/UX machine

HI,

i assume that you are using the lpr services on NT. This error sounds like this service on the NT box is not working properly.

Check your NT box and start/restart this service.

Hope this helps

Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.
Sachin Patel
Honored Contributor

Re: How did I add a printer from a NT print server on an HP/UX machine

Hi Jan,
I uses jetadmin. We have some printer that are setup on NT server but they have Jetdirect card so I have setup that printer on our unix system.

Sachin
Is photography a hobby or another way to spend $
Bill Hassell
Honored Contributor

Re: How did I add a printer from a NT print server on an HP/UX machine

Ignore the fact that the printer is connected to an NT box...with a JewtDirect card in your printer, there is no need to bother with NT server stuff.

The simplest way to fix the printer is to delete it using SAM. Then exit SAM and run the command addqueue and specify the IP address of the printer and the desired queue name you want, something like this:

/opt/hpnp/bin/addqueue -h 12.34.56.78 -q myprinter

If you do not have the directory /opt/hpnp, you can download the JetAdmin software from:

for HP-UX 10.20:
ftp://ftp.hp.com/pub/networking/software/HP10d621.SD

for HP-UX 11.xx version:
ftp://ftp.hp.com/pub/networking/software/HP11d621.SD

Once installed, you can add or delete any Jetdirect printer with the addqueue or removequeue commands (SAM is not necessary).


Bill Hassell, sysadmin
Scott Van Kalken
Esteemed Contributor

Re: How did I add a printer from a NT print server on an HP/UX machine

Generally, depending on how you've done it, you need to be running lpd on the NT box and just define the NT queue name on the unix box.

I used to have an AIX box that did this.

It's a lot simpler in a mixed environment because

a) I don't have to look after printers
b) Windows jobs don't start printing in the middle of unix jobs
c) I don't have to look after printers
d) centralised management of printers
e) I don't have to look after printers

I also like to have printers in DNS so that if I do need to set them up directly, I don't need to manage a hosts file on each machine.

Jan Studsgaard_2
Frequent Advisor

Re: How did I add a printer from a NT print server on an HP/UX machine

I have to admit that I have newer being use jetdirect, but I downloaded the jetdirect for HP/UX 10.20, only for testing the option. But how did I install it.
Michael Tully
Honored Contributor
Solution

Re: How did I add a printer from a NT print server on an HP/UX machine

Hi,

The easiest way to install the product is to
use the 'swinstall' program. It is interactive
and fairly easy to use. One thing to remember
is to make sure you know where your file is
that has been downloaded.

HTH
-Michael
Anyone for a Mutiny ?
Jan Studsgaard_2
Frequent Advisor

Re: How did I add a printer from a NT print server on an HP/UX machine

Hi everybody,
First off all, thanks for helping me.
I installed Jetdirect, but I forgot to tell, (am sorry), it not a HP printer. The printer is a Xerox printer 440ST. I have verified the NT print server, and all the services seems to work.
Bill Hassell
Honored Contributor

Re: How did I add a printer from a NT print server on an HP/UX machine

If the printer is not connected to the network using a JetDirect adapter box, then you won't be able to use the JetAdmin software at all. If the printer is connected to the network with a built-in or external (non-HP) interface, it is highly likely that the adapter is running lpd services (RFC 1179) and you can add the printer using SAM or lpadmin as a simple remote printer (again, no NT required). However, you must obtain the printer's internal name from the adapter (something like text or raw or printer or...)

If the printer is not attached to the network at all, then you have to fix the NT box. For HP-UX remote printing to work, the NT server must be (correctly) running the lpd service.


Bill Hassell, sysadmin

Re: How did I add a printer from a NT print server on an HP/UX machine

What is the output of lpstat command?
Jan Studsgaard_2
Frequent Advisor

Re: How did I add a printer from a NT print server on an HP/UX machine

Hi again,
My printer problem from unix to a Xerox printer is fix now.
I could?t fix the problem when the NT box was the print server.
I call Xerox and told them the story I give all of you.
The told me, I have to thing of with ports I was printing to:
I put lp instead of sharename from the NT printserver:
Printer Name: name of printer
Remote System Name: ip address
Remote Printer Name: lp ( that help )
Thanks too all of you.
Best regards
Jan Studsgaard jensen