1832577 Members
3743 Online
110043 Solutions
New Discussion

Re: Printing erros

 

Printing erros

Hi all,

I have a problem when i try to print something to a laserjet printer 4200.

can't access file "stdin".

orion[/]#lp -dSI01
testlp: can't access file "stdin"
lp: request not accepted


I declared the printer in hosts files and add a network jetdirect port thanks to hppi tool.

Anyone know?
Thank you.

PS= I exported/imported the full list of printers usings these steps:

Export (old system)
#usr/sam/lbin/lpmgr -S -v -xsavedir=/tmp/printers

Import (new system)
#chown -R lp:lp /tmp/printers
#/usr/sam/lbin/lpmgr -R -v -xsavedir=/tmp/printers

Maybe it could be a trail..
8 REPLIES 8
TTr
Honored Contributor

Re: Printing erros

Something is not right here. First "lp -dSI01" is not a complete command. You are printing to the SI01 printer but what are you printing? If you type the command "lp -dSI01" without a file to print, the command will stay waiting for standard input forever, you don't get the error back. Then where does "testlp" come from? Is your lp command an alias? or a local script? I have never seen a case where the SAM lp-save/lp-restore has worked perfectly. There is always something that has gone wrong. You may want to try and recreate the SI01 printer.
What OS version are you in?

Re: Printing erros

Hi,

I'm running HPUX 11.1v3.

Ok i think i've got another problem.

My /var is full (100%)

However its size is 10GB.
I dont know where is my free space cause there's nothing special in this directory.

Moreover when I list the size of each directories, I dont have 10 GB used!

orion[/var]#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 2097152 383192 1700576 18% /
/dev/vg00/lvol1 2097152 321104 1762256 15% /stand
/dev/vg00/lvol8 10485760 10485760 0 100% /var
/dev/vg00/lvol7 5242880 2925344 2299488 56% /usr


orion[/var]#du -sk *


What can use so much space?



Re: Printing erros

orion[/]#du -sk var
580528 var

Only 580MB used, but 0 free!
SKR_1
Trusted Contributor

Re: Printing erros

1. Check for syslog.log and mail.log inside /var/adm/syslog. you can trim out these after taking backup if needed.

> syslog.log
> mail.log

2. Check for any older crash dump inside /var/adm/crash. You can delete older ones.

3. You can gzip sar files inside /var/adm/sa

Command

find /var -xdev -size +10000000c -exec ll {} \;

Thanks

SKR

Re: Printing erros

OK,

My free space problem is fixed (reboot) but I still get this printing error.

Nothing in the queue, it's crazy!

orion[/]#lp -dSI01 /etc/hosts
request id is SI01-19 (1 file)
orion[/]#lpstat SI01
no entries
TTr
Honored Contributor

Re: Printing erros

It appears that spooling is working. The job may have spooled and printed out by the time you typed in the lpstat command. To verify try the following commands
disable SI01
lp -dSI01 /etc/hosts
lpstat -oSI01
enable SI01

You should see the spooled file in the queue. If so then the spooling system works fine, the problem may be in the printer.

Re: Printing erros

The printer is in my office. The laserjet 4200 do not print, keep "ready" status, nothing happen. And the queue is empty.

I can ping the printer, and print a document from windows. It's very strange.
TTr
Honored Contributor

Re: Printing erros

What happens when you disabled the SI01 queue and issued the lp command. Did you see the spooled job?

You mentioned hppi but it wan not clear what kind of spooler SI01 is? What is the output of "lpstat -vSI01"?