1833776 Members
2377 Online
110063 Solutions
New Discussion

Printer connection down

 
zurida
Occasional Contributor

Printer connection down

We always experience connection printer down. When this happen the users will not be able to use the remote printer.
They can only use the network printer. The network printer can still be used if the connection printer down happens.
If we do a lpstat -t command there will be a lot of connection printer down message appear. For the remote printer we use the omniprint software at the client side. If we ping to the remote printer the network is still alive. When we check using the command below:
# netstat -an|grep FIN_WAIT_2|wc -l
The figure will be around 499. This is what we notice. If it is less than 499 the connection printer down won't happen.
Somebody did suggest to add or modify some tcp settings in the /etc/rc.config.d/nddconf file. The problem is I could not find a nddconf file in the /etc/rc.config.d directory.

Appreciate your help on the above problem.
Thanks for helping.


5 REPLIES 5
Stefan Farrelly
Honored Contributor

Re: Printer connection down


Using ndd to modify your TCP settings requires a file called /etc/rc.config.d/nddconf on 11.0, if you dont have this file I take it you are not running HP-UX version 11.0 ? If youre using 10.20 the commands to do this are completely different.

If you are running 11.0 you can copy the nddconf file from /usr/newconfig/etc/rc.config.d/ to /etc/rc.config.d then make your changes and reboot.
Im from Palmerston North, New Zealand, but somehow ended up in London...
sven verhaegen
Respected Contributor

Re: Printer connection down

what worries me in your explaining is the fact that you reach 499 times :

FIN_WAIT_2 state

on certain sockets , are there sockets all spawened from or related to the printing process ??? if so there might be some other issue , FIN_WAIT_2 is in fact part of the normal end of connection procedure , when seting up a network call this is waht happens

SYN
SYN ACK
ACK
.
.
normal data transfer
.
.
FIN
FIN ACK
FIN_WAIT_1 STATE
FIN ACK
FIN_WAIT_2 STATE
ACK

end of normal communication , this means that during the discoinnect phase of the socket seen probably something goes wrong and the end device (printer) didn't manage to send the apprpiate message ending the communication , this leaves lots of open session that take up spece on the system in vain ... this could popint to a more genetral network problem or even a device issue , strange that the problem gets up top 499 befoe conections get lost , perhaps you indeed reach a treshhold of a parameter , maxuprc or something like that at that point .. I would suggest trying to find out also why theer are so much fin_wait_2 states becasue that is unusual at best
...knowing one ignores a greath many things is the first step to wisdom...
zurida
Occasional Contributor

Re: Printer connection down

Hi Stefan,

Yes, I'm using HP-UX 10.20. Do you know the commands to add or modify the tcp settings?
Michael Tully
Honored Contributor

Re: Printer connection down

The equivalent for 'ndd' on 10.20 is 'nettune'. There is a man page for as well as the this document which should be available on your server.

/usr/share/doc/start_up.txt
Anyone for a Mutiny ?
S.K. Chan
Honored Contributor

Re: Printer connection down

I think on 10.20 the command is "nettune". Do a "man nettune" for details.
# nettune -h
shows what you can change. Say if you want to list the current value for "tcp_receive" ..
# nettune tcp_receive
To see the allowable range ..
# nettune -l tcp_receive
To change ..
# nettune -s tcp_receive