1833920 Members
4537 Online
110063 Solutions
New Discussion

Re: lpstat problem

 
GNOM
Frequent Advisor

lpstat problem

Hi, all

When I execute the lpstat command i receive this error message 'execlp failed'.

This occur after changing the ip address of the JetDirect Print Server.
How can I fixe this problem.

thanks
4 REPLIES 4
Raj D.
Honored Contributor

Re: lpstat problem

Hi Amignom,

You need to update the IP for the printer and the hosts file.

The printer config stores under
/etc/lp/interface/PRT_NAME
or
/etc/lp/interface/model.orig/

After updating the IP , try pinging the IP.
Enable the printer if its disabled.
# enable PRT_NAME

Hope you can see lpstat after that,

Cheers,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Alessandro Pilati
Esteemed Contributor

Re: lpstat problem

Hi amignom,
I think the simplest way is to change your printer setting using SAM:
1)run "sam"
2)"printers and plotters"->"lp spooler"->"printers and plotters"

Then remove the old and create a new one with the different IP address, then restart the scheduler.

Rgds,
Alex
if you don't try, you'll never know if you are able to
GNOM
Frequent Advisor

Re: lpstat problem

I removed that printer and reinstall it correctly but I have the same problem . I can print correctly on the new printer. But the 'execlp failed' is still displayed
Raj D.
Honored Contributor

Re: lpstat problem

What the error no are you getting , after "execlp failed " message.

$ lpstat
$ echo $?

Hope you are getting -1 ,

check

1.# ls -l /usr/sbin/lpstat
-r-sr-xr-x 1 lp bin 45056 Jul 22 2003 lpstat

2. /usr/lp/interface/
-rwxr-xr-x 1 lp lp 5256 Apr 24 2003 NEWPRT

Check all related file permissions and modes.

Cheers,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "