Operating System - HP-UX
1833043 Members
2706 Online
110049 Solutions
New Discussion

Re: problems in connecting to tcsh account using reflection

 
itai weisman
Super Advisor

problems in connecting to tcsh account using reflection

hi everyone,
i'm trying to connect to a tcsh account, by using reflection ( to open cde) and i'm not able to.
it seems like there is an automatic logout taking place when i'm doing it.
i have no problems with connecting to this machine via reflection to ksh accounts, and i don't have any problems also by connecting with telnet to this tcsh account either.
anyone?
14 REPLIES 14
Steve Steel
Honored Contributor

Re: problems in connecting to tcsh account using reflection

Hi


$HOME/.dt/*log

Whats in there after the failure

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
itai weisman
Super Advisor

Re: problems in connecting to tcsh account using reflection

errorlog-
xterm: no available ttys
Alex Glennie
Honored Contributor

Re: problems in connecting to tcsh account using reflection

the contents of your /usr/dt/bin/Xsession file would be handy to know :

more Xsession ¦ grep csh

csh | tcsh) shellprofile="$HOME/.login";;
csh | tcsh) $SHELL -c "unsetenv _ PWD;

?

If not like the above I'd try making a copy and ammending it to the above 2 lines.

bounce CDE and try again ...
itai weisman
Super Advisor

Re: problems in connecting to tcsh account using reflection

the file does contain those two line....
RAC_1
Honored Contributor

Re: problems in connecting to tcsh account using reflection

Seems that you are running out of nstrpty or
npty. Check current settings and increase nstrpty first. Seems that you are hitting that.

Once you bump up nstrpty, do

insf -ev

Anil
There is no substitute to HARDWORK
itai weisman
Super Advisor

Re: problems in connecting to tcsh account using reflection

how do i do that?
i'm not familiar with the terms you used...
how do i increase nstrpty?
what is it anyway?
how can i check if you're assumption is true?
RAC_1
Honored Contributor

Re: problems in connecting to tcsh account using reflection

Your error log says--

errorlog-
xterm: no available ttys

This is how you will go about it.

The kernel is /stand/vmunix. Before you proceed, do
cp /stand/vmunix /stand/vmunix.prev
cp /stand/system /stand/system.prev
cp -pr /stand/dlkm /stand/dlkm.prev

Open up SAM as root user. Goto kernel configuration. Configurable kernek parameters.

Check for tunable nstrpty. Bump up th value. Also bump the value for npty. (bump it by 100) Now process the new kernel. After the new kernel is processed, it will ask, do you want to reboot the system/or boot it at leter time.

Boot, when it comes up, check the settings for tuned parameters through SAM.

Now try connecting and post. A reboot is required, because the said kernel parameters are static.

All this can be done on command lines also.

Anil
There is no substitute to HARDWORK
itai weisman
Super Advisor

Re: problems in connecting to tcsh account using reflection

thanks a lot,
before i'll try this option, i want to be sure, because i'm doing it on a production system, and the fact that i am able to connect to ksh accounts, if there is no other way to make sure that is the case (maybe more logs)
Bill Hassell
Honored Contributor

Re: problems in connecting to tcsh account using reflection

THe error message about no ttys indicates that the machine is overloaded for connections. You need to create a lot more by using SAM. This will require a reboot because 3 kernel parameters need to be changed: npty, nstrpty and nstrtel. Make them all 500 or 1000 by using SAM. That will not only change the kernel values but also create the required device files.

And additional note: some programs validate users by their shell so if tcsh is not in /etc/shells (or /etc/shells does not exist) then CDE may not get started. Read the man page about /etc/shells and create one if needed, then add the fullpath for tcsh (ie, /usr/contrib/bin/tcsh or whatever is in /etc/passwd).


Bill Hassell, sysadmin
itai weisman
Super Advisor

Re: problems in connecting to tcsh account using reflection

hi,
i can see in glance that i'm using 211 out of 1024 available tty's (npty value) so i don't think i should raise this parameter ... maybe i should change only one or two of those 3 parameters? is there any way to find out my usage of the other two (nstrpty and nstrtel)???
RAC_1
Honored Contributor

Re: problems in connecting to tcsh account using reflection

nptys are used by telnet/ssh connections. CDE, Reflection use nstrpty. You are running out of nstrpty. Tune it as said.

Post.

Anil
There is no substitute to HARDWORK
itai weisman
Super Advisor

Re: problems in connecting to tcsh account using reflection

ok, i get it, but before i'm doing that, is there any way to make sure that is the case?
Bill Hassell
Honored Contributor

Re: problems in connecting to tcsh account using reflection

The best way to handle the 3 tty parameters is to set them all the same. This is a simple kernel parameter that sets the maximum number of connections. Since different programs use one of the three different drivers, the verification is the error message as you've reported. Glance does not keep high-water marks for nstrtel or nstrpty so there is no direct measurement. There is zero risk in changing all the values to 1024.


Bill Hassell, sysadmin
itai weisman
Super Advisor

Re: problems in connecting to tcsh account using reflection

hey,
this is not the case,
those three parameters are equal in my machine, and still, even when the server is not busy,(now i have 205 connections out of 1024 possibles) it wouldn't work.