1833771 Members
2300 Online
110063 Solutions
New Discussion

Re: Telnet Problem

 
flecklin
New Member

Telnet Problem

In the syslog I find the following :
telnetd[22243]: getpid: peer died: Bad file number

This happens after a release change from UX 11.00 to UX 11.11.
Some clients have no problems and some connections produce the syslog entry as above.
6 REPLIES 6
Geoff Wild
Honored Contributor

Re: Telnet Problem

You may need to increase:

npty, nstrpty, nstrtels kernel parameters - what are they set to now?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Steve Steel
Honored Contributor

Re: Telnet Problem

Hi


Check the name resolution for the funny clients

nslookup name_of_machine
nslookup ip_of_machine

Should geive same result on UX

Looks like a timeout

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
flecklin
New Member

Re: Telnet Problem

Hi
they all are set to 60, so more then plenty, since we just expect a few connections at the same time. But, we use a lot of ftp connections!?

Thanks
Beat
Geno Church_1
Valued Contributor

Re: Telnet Problem

I would start by cleaning these two files (they could possibly be corrupted) This will have to be done via a reboot....bring the system
down to single user mode, cat /dev/null >/etc/utmp[x], and reboot

/etc/utmp and /etc/utmpx

If this doesn't fix it then I would reccommend looking to see what patch level you are on regarding telnetd and update accordingly.


Note:
A much better solution is to clear these files out at every reboot using
inittab and the boot process. Notice the position of the records in the utmp
file (at the head of the file).

# head -3 /etc/inittab

init:3:initdefault:
utm1::sysinit:> /etc/utmp # clear current logon accounting files
utm2::sysinit:> /etc/utmpx # clear current logon accounting files

*** Note: the launching of any application that relies upon the data in the
utmp or the utmpx files will also give inconsistent and/or incorrect results
with regard to information about user account, UID, etc. if there is corruption
in these files.


Regards,
Geno
Geno Church_1
Valued Contributor

Re: Telnet Problem

Note:

Here are the patches for the appropriate OS levels.....

PATCHES:
[PHNE_24829/PACHRDME/English] s700_800 11.11 telnet kernel, telnetd(1M), telnet(1) patch

Patch [PHNE_26096/PACHRDME/English]
s700_800 11.00 telnet kernel and telnetd(1M) patch

Patch [PHNE_24821/PACHRDME/English] s700_800 10.20 telnetd(1M) cumulative patch
Patch [PHNE_13413/PACHRDME/English] s700_800 10.20 Telnet kernel cumulative patch
Steve Steel
Honored Contributor

Re: Telnet Problem

Hi


What patch level do you have

http://www.software.hp.com/SUPPORT_PLUS/

Suggest at least
http://www.software.hp.com/SUPPORT_PLUS/qpk.html


HP-UX 11iv1 Quality Pack (GOLDQPK11i) - Defect-fix patches for HP-UX 11iv1 on HP workstations and servers. (Rolls each June and December.) Available version: December 2003 (B.11.11.0312.4).



Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)