1850451 Members
3746 Online
104054 Solutions
New Discussion

Re: Pty Sessions

 
SOLVED
Go to solution
Granite
Frequent Advisor

Pty Sessions

Hi admins,

I gotta a prob related to pty sessions.
It starts like this, whenever I login my screen displays some junjk o/p and I never get my prompt.I may have to repeat sometimes and getan indep.session. I could see upto pts/60
sessions were already alloted(I wondered)..then
I come to kno the pty para configured in my kernel shows,
npty - 256
nstrpty - 60

My Query is,

--> This issue hasnt araised for the past 2 yrs,as the system config. has not changed after tht,

--> I tried restarting ptydaemon, now it stopped, bt its not getting started,

--> Any ways to clear those old sessions, if they are not actually running any programs,

--> Is there any option to resolve this issue without restarting my server, since this runs my job.

Awaiting for all precious replies..points guaranteed.

NOTE: As obvious, im able to login thro' console.

regds, Granite

HPmania - The World of HP
5 REPLIES 5
Granite
Frequent Advisor

Re: Pty Sessions

Hi,

Forgot to say, Im running only ssh and there is no telnet/remote connections.

regds..Granite
HPmania - The World of HP
saju_2
Respected Contributor

Re: Pty Sessions

Hi

Pls check the variable PTYDAEMON_START in the file /etc/rc.config.d/ptydaemon. This value of this variable should be 1 in order to start the ptydaemon.

PTYDAEMON_START=1

Try starting the ptydaemon

Then try to login to the server.

Try using PUTTY for connecting to the server. It has option for telnet, rlogin and SSH

I am attaching the exe file of putty.

Regards
CS
Granite
Frequent Advisor

Re: Pty Sessions

Hi,

As I said telnet/rlogin are disabled and we are already using putty for opening sessions..The pty is also enabled at bootup.

Regds, Granite

HPmania - The World of HP
Rory R Hammond
Trusted Contributor
Solution

Re: Pty Sessions

Not changing your system config is not a reason to discount the error message. You might just have more users on your system.

You also might have lost some of your dev files.
First try
insf -e -n 256 -s 60
if that does not work You might consider changing nstrpty to 256.
and then do.
insf -e -n 256 -s 256

Rory
There are a 100 ways to do things and 97 of them are right
Granite
Frequent Advisor

Re: Pty Sessions

Hi Rory,

Thxs for your input. Atlast I took downtime,changed the "nstrpty" value and rebooted..

Thxs saju

Regds, Granite
HPmania - The World of HP