Operating System - HP-UX
1753767 Members
5549 Online
108799 Solutions
New Discussion юеВ

Re: telnetd:/dev/pts/t0: No such file or directory

 
Kuntal Gupta
Frequent Advisor

telnetd:/dev/pts/t0: No such file or directory

HP-UX Ver: 11.31

I was finding an error " telnetd: /dev/pts/t0: No such file or directory" during telnet to the server and login prompt was not coming.

From another server I have logged in to the problematic server via remsh and found telnet service was running.

I have run the command "#insf -eC pseudo" after that the problem got sorted out.

My quarries are:

1)What is the no of default pseudo file?

2)If there is no unused pseudo file how to make new pseudo files to allow more telnet session?

Regards...

Kuntal
3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: telnetd:/dev/pts/t0: No such file or directory

>1) What is the no of default pseudo file?

You need to look at some of these kernel parms:
nstrtel(5) and possibly npty(5) nstrpty(5)

>2) how to make new pseudo files to allow more telnet session?

It might just be easier to use SMH or SAM.
Kuntal Gupta
Frequent Advisor

Re: telnetd:/dev/pts/t0: No such file or directory

Mr Dennis,

Thanks for ur reply. In my case:

uera1>kcusage nstrtel
Tunable Usage / Setting
=============================================
nstrtel 240 / 1000
uera1>kcusage npty
Tunable Usage / Setting
=============================================
npty 0 / 60
uera1>kcusage nstrpty
Tunable Usage / Setting
=============================================
nstrpty 0 / 60
uera1>ll /dev/pts |wc -l
2001
uera1>

So would you pls clarify the following:

1) Max no of users that can telnet to this server.

2) If the no need to be increased what should I do?

3) role of nstrtel, npty and nstrpty towards determening the max no of users login by telnet. FYI now almost 240 user are already logged in by telnet and npty and nstrpty both set to 60.

Regards...

Kuntal
Viktor Balogh
Honored Contributor

Re: telnetd:/dev/pts/t0: No such file or directory

Hi,

So would you pls clarify the following:

>1) Max no of users that can telnet to this server.

1000 (nstrtel)

2) If the no need to be increased what should I do?

not only the kernel parameter can be a limiting factor, but the number of installed device files. To install more than the default 60 tty/pty device files on older systems (I don't know what's the case with 11iv2/v3) use the -n switch of the insf command. From the man page:

-n npty Install npty special files for each specified ptym
and ptys driver. The pty driver specifies both
the ptym and ptys drivers. npty is a decimal
number.

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, npty defaults to 60 for
the ptym and ptys drivers.

3) role of nstrtel, npty and nstrpty towards determening the max no of users login by telnet. FYI now almost 240 user are already logged in by telnet and npty and nstrpty both set to 60.

Here is a good document on kernel parameters and what they affect on the system:

http://docs.hp.com/en/939/KCParms/KCparams.OverviewAll.html

But, like Dennis said: it's best to tune them with sam, because there are dependencies between them, and they must be counted by special formulas. From SAM, you will get a pre-calculated value which accords to these formulas.
****
Unix operates with beer.