1783198 Members
1730 Online
109144 Solutions
New Discussion юеВ

telnetd

 
SOLVED
Go to solution
j773303
Super Advisor

telnetd

Many message as below, logs into /var/adm/syslog/syslog.log
Does anyone know what happend? Thanks.


Dec 3 13:06:24 atmes01 telnetd[8981]: recv: Connection reset by peer
Dec 3 13:18:57 atmes01 telnetd[7579]: recv: Connection reset by peer
Dec 3 13:38:12 atmes01 telnetd[11404]: recv: Connection reset by peer
Dec 3 13:44:18 atmes01 telnetd[11477]: recv: Connection reset by peer
Dec 3 13:47:29 atmes01 telnetd[5934]: recv: Connection reset by peer
Dec 3 13:58:08 atmes01 telnetd[11790]: recv: Connection reset by peer
Dec 3 14:02:29 atmes01 telnetd[5394]: recv: Connection reset by peer
Hero
14 REPLIES 14
Clemens van Everdingen
Honored Contributor

Re: telnetd

Hi,

Probably you need to increase the kernel paramaters npty and nstrpty.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Armin Feller
Honored Contributor
Solution

Re: telnetd

The NDD_VALUE in the ndd.conf file was set incorrectly. The value "1000" is in milliseconds which equates to a 1 second timeout period. This value must be increased in order for the omniback agent to have sufficient time to start. A more appropriate setting for this NDD_VALUE should be "66000" or 11 minutes.
j773303
Super Advisor

Re: telnetd

Hi,
Thanks for the nice information.
What's purpose for npty and nstrpty?
Hero
Armin Feller
Honored Contributor

Re: telnetd

The pty- and tty-devices you need for each telnet connection.

Check if enought devices are configured on the system:

# ll /dev/tty | wc -l
# ll /dev/pty | wc -l

Then check the kernel parameters. If the kernel value is higher then the 'll' counts then create further devices.
Clemens van Everdingen
Honored Contributor

Re: telnetd

Hi,

Find attached a kernel parameter overview doc !

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
j773303
Super Advisor

Re: telnetd

Does this "telnetd[5394]: recv: Connection reset by peer" message will caused OS shutdown
to Single User mode? I'm not sure it is the
root cause. Since the OS will auto shutdown
to Init S around 2 weeks. Do you have any
comments? Thanks.
Hero
j773303
Super Advisor

Re: telnetd

Hi,
I can't find nddconf since the OS is 10.20.
Can you tell how to modify NDD_VALUE in UNIX
10.20? Thanks
Hero
T G Manikandan
Honored Contributor

Re: telnetd

If it is 10.20 you have to use nettune.

# nettune -s


Thanks
T G Manikandan
Honored Contributor

Re: telnetd

check this hp doc

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063203773

ALso to make your nettune changes permanent you need to put nettune in a startup script


Bill Hassell
Honored Contributor

Re: telnetd

Note that npty and nstrpty (there is no nstrtel for 10.20) should be equal and set larger than the maximum number of simultaneous connections you'll ever have. But these params also require that a corresponding number of pty device files also be created. SAM will do this automatically, otheerwise, you'll need to create the device files with insf.

As far as an auto-shutdown to single user mode, there is nothing that can cause this in HP-UX. init s does not shutdown to single user mode, it only changes init's run state. I would look in your cron jobs to see if init is being scheduled for some reason.


Bill Hassell, sysadmin
j773303
Super Advisor

Re: telnetd

insf -e -s 400

Note: The insf -e -s 400 command causes modem device types to be read-only, preventing modem communication.

Could someone tell me "-s 400" mean for?
Thanks!

Hero
Yogeeraj_1
Honored Contributor

Re: telnetd

hi,


-s nstrpty

Install nstrpty slave-side stream special files for the pts driver. nstrpty is a decimal number. This option only applies to the pts special file installation.

This option is effective only if the -e option is specified or if an appropriate device class or driver is specified with a -C or -d option.

If this option is omitted, nstrpty defaults to 60.


Hence -s 400 sets nstrpty to 400

hope this helps!

Best Regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
j773303
Super Advisor

Re: telnetd

When I look my machine
ll /dev/pty | wc -l
It shows 2010, why it is so many?
Should I increased nstrpty to 3000?
Hero
T G Manikandan
Honored Contributor

Re: telnetd

Probably the count has gone up to 2000.
What is the value of npty and nstrpty on your kernel.

Probably you have to remove and re-install the device files.

The below document tells you how to do it.
YOu must remember that each pty device file uses 600 bytes of memory

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=500000000092211