Operating System - HP-UX
1752795 Members
5883 Online
108789 Solutions
New Discussion юеВ

Re: Problems with logins ( seem to hit a wall at 60 rlogin sessions)

 
SOLVED
Go to solution
rmueller58
Valued Contributor

Re: Problems with logins ( seem to hit a wall at 60 rlogin sessions)

Is there a way to determine what the current value is ?

Is the INSF -e something i can run while system is up in multiuser?

rmueller58
Valued Contributor

Re: Problems with logins ( seem to hit a wall at 60 rlogin sessions)

Bill M,

I do have
pts, ptym, pty directories


Patrick Wallek
Honored Contributor

Re: Problems with logins ( seem to hit a wall at 60 rlogin sessions)

Yes you can run 'insf -e' while the system is up. Any device files that are currently there will be left alone, the '-e' will only create those that are missing.

If you want to see how many you have look in /dev/ and look for pty, tty and pts files.
Jim Turner
HPE Pro

Re: Problems with logins ( seem to hit a wall at 60 rlogin sessions)

Have a look at KB Doc ID A4317489. Specifically:
This can be caused by not having an entry for those ports in these files:

/tcb/files/devassign
/tcb/files/ttys

A workaround is to add the necessary entries using the following (obscurely
documented) commands:

1. Add an entry to /tcb/files/devassign with a:

/usr/lbin/modprdev -A /dev/device_name

2. Add an entry to /tcb/files/ttys with a:

/usr/lbin/modprterm -A /dev/device_name

For more information on devassign and ttys, refer to your HP-UX Reference
and their respective man pages.

Your additional device files may be there, but if you are running a trusted system, they'll do you no good until you update /tcb/files/devassign and /tcb/files/ttys. As I recall, it was a SAM bug that would create the new devs but not update the tcb files.

And yes, you can do an "insf -e" with the system up and running.

Cheers,
Jim
rmueller58
Valued Contributor

Re: Problems with logins ( seem to hit a wall at 60 rlogin sessions)

Patrick
# pwd
/dev/pts
# ls |wc -l
120
# pwd
/dev/pty
# ls |wc -l
60
/dev/ptym
# ls |wc -l
61
#
The following was information the "vendor"
gave me..

But since we've already established these parameters in a kernel will it be necessary to run this????


To increase pty device files:

Run the following commands in single-user mode.

# insf -d ptys -n 512

# insf -d ptym -n 512

# insf -d pts -s 512 -v

The first two devices ptym and ptys are the master and slave devices
for pty.



Jim Turner
HPE Pro

Re: Problems with logins ( seem to hit a wall at 60 rlogin sessions)

Yes, you do have to create the additional device files, and also update the tcb files as I directed earlier. If you don't do *both* things, you'll still be pooched.

Cheers,
Jim
Patrick Wallek
Honored Contributor

Re: Problems with logins ( seem to hit a wall at 60 rlogin sessions)

Even thoough you've got the appropriate values in the kernel you still need to make sure you've got enough device files. Your pts directory shows that it has 120 lines. That should get you 120 rlogins (or dtterms) if nstrpty is set appropriately. If the kernel parameter nstrpty is set above 120, then go ahead and do the insf for the pts directory so that you have all the appropriate device files.
Patrick Wallek
Honored Contributor

Re: Problems with logins ( seem to hit a wall at 60 rlogin sessions)

You will only be able to modify the /tcb/files area if the system is in trusted mode. If the system is not trusted the /tcb directory structure does not exist.
rmueller58
Valued Contributor

Re: Problems with logins ( seem to hit a wall at 60 rlogin sessions)

Guys,

here was the last kernel tune we did.. 6/4/2001

STRMSGSZ 65535
max_thread_proc 256
maxswapchunks 1604
maxusers 512
ncallout 2064
nfile 51548
nkthread 2048
nstrpty 512
npty 512
nstrtel 512
semmni 4096
semmns 4096
shmmax 2048000000
shmmni 512
shmseg 256
maxtsiz 262144000
maxdsiz 262144000
maxfiles 1024
maxuprc 512
nflocks 2048
nproc 3072
rmueller58
Valued Contributor

Re: Problems with logins ( seem to hit a wall at 60 rlogin sessions)

Pat,

We do use tcb..

Rex