Operating System - HP-UX
1835274 Members
2702 Online
110078 Solutions
New Discussion

Unix Printer Configuration

 
SOLVED
Go to solution
Sugata
Advisor

Unix Printer Configuration


Hi,
I had a network printer. Currently the printer has been replaced by a same model printer. But the ip has been changed.
It is printing fine from WINDOWS environment but not from unix.
I have changed the /etc/hosts file. I have rebooted printer server. Now it is printing only from one server but not from others.
can anybody please explain the problem?

Regards
Sugata
12 REPLIES 12
Norman_21
Honored Contributor

Re: Unix Printer Configuration

Hello,

run this in the server to check if the printer has the correct IP.

#cd /var/lp/spool/interface
#grep -ns [new ip address] *

Check what printers has the new ip address!
Also, use sam instead of modifing the /etc/hosts manually

Hope this help!
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
twang
Honored Contributor

Re: Unix Printer Configuration

Do you try to remove/reinstall the printer?
To remove the printer:
#lpshut; lpadmin -x ptr_name; lpsched;

To readd the printer:
# lpadmin -pptr_name -v/dev/null -mrmodel -ocmrcmodel -osmrsmodel -ob3 -ormsvr_name -orpqueue_name -v/dev/null
Sugata
Advisor

Re: Unix Printer Configuration

Hi,
I have checked in /var/sppol/lp/interface folder. It is not showing the old ip also.
I have tried to remove the printer & reload again. That also didn't help me.

Sugata

Mark Grant
Honored Contributor

Re: Unix Printer Configuration

Can you post the output of "lpstat -p printername"
Never preceed any demonstration with anything more predictive than "watch this"
Robert-Jan Goossens
Honored Contributor

Re: Unix Printer Configuration

Hi Sugata,

<<
I have changed the /etc/hosts file. I have rebooted printer server. Now it is printing only from one server but not from others.
>>

You have more HPUX servers ?? change the /etc/hosts file on all servers.

HTH,

Robert-Jan
Norman_21
Honored Contributor

Re: Unix Printer Configuration

I remember something like that happened to me and guess what the print server was the problem.
Try swaping out the cables with the working ones, also test the connectivity by pinging the print server[I'm assuming the printer is connected thru a Jet direct print server]

Also try
#lpstat -t [printer name] to check the status of the printer!

"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Sugata
Advisor

Re: Unix Printer Configuration

venus:/home/pde/sugatas 29 ] lpstat -psunjet
printer sunjet is idle. enabled since Nov 12 12:44
fence priority : 0
Sugata
Advisor

Re: Unix Printer Configuration

I have 2 more printers in network. plsmain is tyhe printer server.
*****************************************
#lpstat -tsunjet

scheduler is running
system default destination: lj4g15
device for sunjet: /dev/null
device for moonjet: /dev/null
device for lj4g15: /dev/null
remote to: lj4g15 on plsmain
moonjet accepting requests since Nov 12 12:38
sunjet accepting requests since Nov 12 12:44
lj4g15 accepting requests since Nov 19 18:44
printer moonjet now printing moonjet-2223. enabled since Nov 12 12:38
fence priority : 0
printer sunjet is idle. enabled since Nov 12 12:44
fence priority : 0
printer lj4g15 is idle. enabled since Nov 19 18:45
fence priority : 0
moonjet-2223 sugatas priority 0 Dec 2 13:36 on moonjet
test1 19 bytes

printer queue for lj4g15
plsmain: Warning: lj4g15 is down
*********************************************

Doug_85
Regular Advisor

Re: Unix Printer Configuration

I've had this problem before where someone has changed the ip address on one of my printers. Windows will be able to print but Unix will not recognize the printer. Follow this checklist.

1. Can you ping the print server from Unix using the DNS name and IP address?
2. If you are going to a HP Jet Direct card go into SAM and go to "printers and plotters" and tab to actions and select "add remote printer/plotter" Give your printer a name and configure location to the server either by IP address or server name.
3. Try reconfiguring the unix side with a different printer name to the print server.
4. Setup the same printer on the print server with a new share name and see if you can connect from unix to the printer. You can disable the current printer on the print server during this process. Then configure the printer in SAM from unix.
Once it works you can delete the old printer settings.
5.Configure the printer in SAM directly to the HP Jet Direct card. If you can print from unix directly to the Jet Direct card, definitely reset up the printer on the print server using a different share name. Resetting up the printer when IP addresses have changed on the print server usually does the trick when going from unix to a print server.Also take everyones advice on the /etc/lp/interface.



Good Luck,

Doug


Jeff Schussele
Honored Contributor

Re: Unix Printer Configuration

Hi Sugata,

When you re-added the printer did you supply the *new* IP or hostname AND the new queue name on that print server?

Do an lpstat -t

to verify this info.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Doug_85
Regular Advisor
Solution

Re: Unix Printer Configuration

I was just rescanning the previous messages you need to go to the /etc/lp/interface and pg your printer name, you need to change the ip address here if you haven't already to the new IP. It should look something like this.

# xPORT, PERIPH, TEOJ are all configurable
xPORT=
PERIPH=55.1.5.242
DEVTYPE="RAW"
TEOJ=""
STATUSLOG=""
HPNPFOPT=
TOJMON=""
ONUSTATUS=""


Take Care,
Doug
Jeff Schussele
Honored Contributor

Re: Unix Printer Configuration

Sorry - that command should be:

lpstat -v

This will show host & queue names.

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!