Operating System - HP-UX
1837231 Members
2140 Online
110115 Solutions
New Discussion

Error connecting to HP UX system

 
SOLVED
Go to solution
Klaas D. Eenkhoorn
Regular Advisor

Error connecting to HP UX system

All,

We're receiving a message :
"

telnetd: Telnet device drivers missing: No such device"

When we logon to our system.
It's a HPUX 11.00 server with 59 users connected, no full filesystem, and no absurd load.

What's going on ???

Kl@@s

12 REPLIES 12
Massimo Bianchi
Honored Contributor

Re: Error connecting to HP UX system

usually npty (kernel paraemter) is defaulted at 60, so you are hitting the upper limit.

Check with sam npty and nstrpty, increase them if necessary. I do not remember if this parameter is dynamic or if you have to reboot.

Massimo
MarkSyder
Honored Contributor

Re: Error connecting to HP UX system

Can you telnet to other systems? If not, this would point to a networking issue.

If you can telnet to other systems it would appear to be a fault with this system. Are all users affected? If only some, do you have a mixture of PC and workstation users? If you have a mixture, is it only one group affected?

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Klaas D. Eenkhoorn
Regular Advisor

Re: Error connecting to HP UX system

Massimo Bianchi,

My npty = 400
and my nstrpty = 96

Are they to small and what do they mean ?

Kl@@s
jerry1
Super Advisor

Re: Error connecting to HP UX system

From what type of system are you logging in
from? It seems to be a problem with the
system you are logging in from.

Check anyway /etc/inetd.conf and if
/usr/lbin/telnetd exists on the HP. Try telnet from the HP server back into itself.

Klaas D. Eenkhoorn
Regular Advisor

Re: Error connecting to HP UX system

Telnetting from the system back to it self results in the same message.

Also we've received a message: "cannot create pty....." during an su command.

Kl@@s
Massimo Bianchi
Honored Contributor

Re: Error connecting to HP UX system

npty and nstrpty are used for telnet/remsh and so on, but i do not remember the ones specifically.

96 can be little, since the nstrpty are shared with remsh and otherr r command.


One shot, without reboot, could be to re-install the special files with


insf -e -C pseudo

Or try to kill some "r"command and see if you can connect.

Massimo
Massimo Bianchi
Honored Contributor
Solution

Re: Error connecting to HP UX system

Check also nstrtel:

There are actually three different types of pty device on 11.00 and beyond.

classic pty - man pty
used by hpterm, script, and ied
limited by npty kernel tunable

stream pty - man ptm, man pts
used by dtterm, rlogin, and gnome-terminal
limited by nstrpty kernel tunable

telnet pty - man telm, man tels
used by telnet
limited by nstrtel kernel tunable

Massimo
jerry1
Super Advisor

Re: Error connecting to HP UX system

There are other threads describing this problem and the solution. Do a search on
"telnetd: Telnet device drivers missing: No such device"


Fabio Ettore
Honored Contributor

Re: Error connecting to HP UX system

Hi,

as far as I know below the only three reasons about message

"telnetd: Telnet device drivers missing: No such device".

1. check by

# swlist -l product | grep -i PHNE_25913
# swlist -l product | grep -i PHNE_27393

about patch PHNE_25913 or PHNE_27393; if one of these patches is installed then you could have that message. There are known problems about these patches and that telnet message.

SOLUTION:
remove those patches and install the equivalent patch PHNE_27788 or later.

2. major/minor number of telnet device files are different:

# lsdev | grep tel
18 -1 telm strtelm
19 -1 tels strtels

The value shown by "lsdev" for "telm" would need to be equal to the minor
number of "/dev/telnetm"
- AND -
the value shown for "tels" would need to be equal to the major number of
the /dev/pty/t* device files.

SOLUTION:
To solve the problem, we need to remove the incompatible device files
and create new device files:

a.) For the "tels"-devices:

=> rmsf /dev/pts/t*
=> insf -v -d tels

b.) For the "telm"-device:

=> rmsf /dev/telnetm
=> insf -v -d telm

3. Reached the limit of connections:

SOLUTION:
by SAM increase the following kernel parameters:

maxusers
npty
nstrpty

and after reboot execute the following commands:

# rm /dev/pty/*
# rm /dev/ptym/*
# cd /dev
# insf -d pty -n 400

400 is an example if you incerased npty and nstrpty to 400.


I hope this helps you.

Best regards,
Ettore
WISH? IMPROVEMENT!
Klaas D. Eenkhoorn
Regular Advisor

Re: Error connecting to HP UX system

Allthough we've installed 'PHNE_25913' we think te problem lies in the 'nstrtel' parameter, it's set to 60.

First we will try to increase the three parameters.
The total amount of users currently loged on is 55 and the system works fine now . . :-)

We have to install the latest patches in the near future anyway . . .

If we increase the parameters by sam will the new pty's will be created automaticly ?

Kl@@S
Fabio Ettore
Honored Contributor

Re: Error connecting to HP UX system

# insf -d pty -n

By this command it is possible to increase runtime new ptys (about npty and nstrpty) to .
Anyway a cleaner procedure would be

# rm /dev/pty/*
# rm /dev/ptym/*
# cd /dev
# insf -d pty -n

In order to fix this change, pty values (about npty and nstrpty) you should change them by SAM and reboot and after it

# rm /dev/pty/*
# rm /dev/ptym/*
# cd /dev
# insf -d pty -n

Best regards,
Ettore
WISH? IMPROVEMENT!
Klaas D. Eenkhoorn
Regular Advisor

Re: Error connecting to HP UX system

Ok, changed the three param's to 600 . . . we will have to wait untill tomorrow to find out if it had the wanted effect.

Please wait for the points till tomorrow.


Kl@@s