Operating System - HP-UX
1855236 Members
4403 Online
104109 Solutions
New Discussion

Re: Cannot open dtterm (rlogin fail)

 
SOLVED
Go to solution
Kiyoung
Advisor

Cannot open dtterm (rlogin fail)

Error in syslog
: cannot open streams device /dev/ptmx

When excute "dtterm"
Unabla to get pty
Warning /dev/ptmx device busy
name:dtterm
class:dtterm

Hpterm or xterm works well.
Thanks for help.
11 REPLIES 11
Ermin Borovac
Honored Contributor

Re: Cannot open dtterm (rlogin fail)

Do you have /dev/ptmx?

crw-rw-rw- 1 root sys 72 0x00009c Aug 26 03:10 /dev/ptmx

If not, create it with

# insf -d ptm -v
Kiyoung
Advisor

Re: Cannot open dtterm (rlogin fail)

Yes.
I already checked /dev/ptmx.
Ermin Borovac
Honored Contributor

Re: Cannot open dtterm (rlogin fail)

Have you check what processes are using /dev/ptmx?

# fuser /dev/ptmx

or if you have lsof

# lsof /dev/ptmx

Ermin Borovac
Honored Contributor

Re: Cannot open dtterm (rlogin fail)

Are you running 11.00 or 11i? If you are running 11.00 do you have the following patch installed?

Patch Name: PHNE_29519
Patch Description: s700_800 11.00 Cumulative Mux and Pty Patch

What's kernel parameter nstrpty set to?

# /usr/sbin/kmtune -q nstrpty
Kiyoung
Advisor

Re: Cannot open dtterm (rlogin fail)

fuser /dev/ptmx
: Any processor use it.

OS : 11.00 Patch PHNE_29519
not installed.

Nstrpty : 60(default)

4~5/(200) box(C3000) are in trouble.

Thank you.
Ermin Borovac
Honored Contributor

Re: Cannot open dtterm (rlogin fail)

Can you please check the number of processes using /dev/ptmx?

# fuser /dev/ptmx 2>&1 | wc -w

If it's close to 60 (nstrpty) then you need to increase this parameter, recompile kernel and reboot. You also need to create additional STREAMS pty device files in /dev/pts.

# insf -d pts -s -e -v
john kingsley
Honored Contributor

Re: Cannot open dtterm (rlogin fail)

You have probably run out of ptys. Try increasing the npty kernel parameter in SAM.
Kiyoung
Advisor

Re: Cannot open dtterm (rlogin fail)

When I check "last -R", there are only "1 still logged in" user.
Total process is only 87~93 process.
Ermin Borovac
Honored Contributor
Solution

Re: Cannot open dtterm (rlogin fail)

Can you rlogin to the server? rlogin and dtterm are both using STREAMS pty devices. Kernel parameter nstrpty relates to maximum number of STREAMS pty devices that can be in used at one time.

/dev/ptmx - master device
/dev/pts/* - slave devices

It sounds like you are not running of STREAMS pty devices.

The only other thing I could find is patch I mentioned earlier.

PHNE_29519
s700_800 11.00 Cumulative Mux and Pty Patch

Patch contains the following note, which may be related to your problem.

If the system reports the error message "Cannot open streams device /dev/ptmx", users cannot open a new rlogin session.

Original patch that fixed the problem was PHNE_27788. Check if you have any Mux/Pty patches installed.

# swlist -l product | grep Mux

If you don't it might be worth installing PHNE_29519. Please note that reboot is required.
Kiyoung
Advisor

Re: Cannot open dtterm (rlogin fail)

I'll install PHNE_29519
and check it.
If another problem then I'll ask it later.
Thanks very much.
Kiyoung
Advisor

Re: Cannot open dtterm (rlogin fail)

I'll install PHNE_29519
and check it.
If another problem then I'll ask it later.
Thanks very much.