Operating System - HP-UX
1835307 Members
2976 Online
110078 Solutions
New Discussion

Re: Problem with print queue on HPUX 11.00

 
Kenneth Leung_2
Frequent Advisor

Problem with print queue on HPUX 11.00

My print queue didn't work suddenly. If I by-pass the lp spooler & use IP address to print files (e.g. # hpnpf -x 130.20.53.42 -N -l /tmp/hplog /etc/abc.txt), it works. However, if I use the lp command (e.g: lp -dlj5_its /etc/abc.txt", nothing can be done

Moreover, test page can be printed with the "hppi" utility.

Can anyone help me to trouble-shoot?? Thanks a lot.

8 REPLIES 8
Devender Khatana
Honored Contributor

Re: Problem with print queue on HPUX 11.00

Hi,

Are there many jobs pending for printing?
If there some file system full near capacity problem?

Does stopping and restarting scheduler solves the problem?

Is there some SCHED_LOCK or similar file there in /var/adm/lp directory?

-Devender
Impossible itself mentions "I m possible"
Joseph Loo
Honored Contributor

Re: Problem with print queue on HPUX 11.00

hi,

do a restart of the lp process and test out again:

# lpshut
# lpsched

regards.
what you do not see does not mean you should not believe
Kenneth Leung_2
Frequent Advisor

Re: Problem with print queue on HPUX 11.00

The filesystem has plenty of space. The scheduler has been restarted. The SCHED_LOCK was not found in /var/adm/lp......

However, the problem was still here......

I have enabled status logging with "modifyqueue -q [queue name] -s ". Below is the log file:

0:01:11 hpnpf[6648]
OpenLog: logging started (/tmp/hpnpf.log)
10:01:11 hpnpf[6648] Process: entered
10:01:11 hpnpf[6648] OpenSocket: entered
10:01:11 hpnpf[6648] OpenSocket: using 16K send buffer
10:01:11 hpnpf[6648] MakeConnection: 130.20.52.42, port 9100
10:01:11 hpnpf[6648] DoNonBlocking: non-blocking on
10:01:11 hpnpf[6648] Connection has been set up
10:01:11 hpnpf[6648] connected
10:01:11 hpnpf[6648] Open Input file: stdin
10:01:11 hpnpf[6648] Process: sending file -
10:01:11 hpnpf[6648] SendFile: entered
10:01:11 hpnpf[6648] SendFile: 0 bytes read from host
10:01:11 hpnpf[6648] output EOJ string
10:01:11 hpnpf[6648] SendFile: 223 bytes written to socket
10:01:13 hpnpf[6648] SendFile: 70 bytes read from socket
10:01:13 hpnpf[6648] SendFile: 126 bytes read from socket
10:01:13 hpnpf[6648] Start processing page info!
10:01:13 hpnpf[6648] Receive TEOJ from printer, Done!
10:01:13 hpnpf[6648] SendFile: end, return succ
10:01:13 hpnpf[6648] DoNonBlocking: non-blocking off
10:01:13 hpnpf[6648] Process: read EOF on socket
10:01:13 hpnpf[6648] StopLog: logging stopped
Ajitkumar Rane
Trusted Contributor

Re: Problem with print queue on HPUX 11.00

hi Kenneth,

Is the system able to resolve the printer name. Try adding the entry in the host file / DNS. Other option is to try recreating the printer maybe there could be a mistake in the ip address that was keyed in during configuration.

Thanks

Ajit
Amidsts difficulties lie opportunities
Frank de Vries
Respected Contributor

Re: Problem with print queue on HPUX 11.00

I have often problems with a print-queue
removing the top -job with cancel job-id
and then stop and start the print-queue
(not the scheduler thus not lpshut, lpshed)
but,
disable printq
enable printq
(Mind you , that only workes if there was
physically nothing wrong with the printer
or the lantronics or jetdirect interfaces)

That always did it for me.
Look before you leap
Joseph Loo
Honored Contributor

Re: Problem with print queue on HPUX 11.00

hi,

could u test this:

# grep 130.20.53.42 /var/spool/lp/interface/lj5_its

that is if the printer queue is lj5_its, if not change to the printer queue u r trying to print to and "grep".


regards.
what you do not see does not mean you should not believe
Kenneth Leung_2
Frequent Advisor

Re: Problem with print queue on HPUX 11.00

Hi all,

Problem was still here even I

1) disable / enable the print queue
2) no print job was found pending at queue
3) The IP of the printer can be found in /var/spool/lp/interface/

Even local HP support can't help, but my boss is pushing on me......
Kenneth Leung_2
Frequent Advisor

Re: Problem with print queue on HPUX 11.00

I solved the problem!!!

It is found that under /var/spool/lp/interface, the model.orig is set with read right "700" & it prohibited user "lp" from accessing.

After setting it to 750, my print queue worked with "lp -d..." command!!!



drwxr-x--- 2 root sys 1024 Jan 18 10:25 model.orig