1833717 Members
2057 Online
110063 Solutions
New Discussion

telnet

 
Chakravarthi
Trusted Contributor

telnet

hi,

i'm using very old 2.2 kernel machine,now
how do i findout how many telnet sessions are allowed and how many are there?

8 REPLIES 8
Muthukumar_5
Honored Contributor

Re: telnet

You can count number of open telnet sessions as,

# netstat -na | grep -w '23'

hth.


Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: telnet

To get the telnet sessions are allowed,

refer this thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=73301

Basec on /etc/xinet.d/telnet file for instance information, session count is activated for telnet.

hth.

Easy to suggest when don't know about the problem!
Alessandro Pilati
Esteemed Contributor

Re: telnet

How much telnet sessions are still present:
netstat -an|grep -i esta|grep ":23 "|wc -l


How much are allowed:
in the file /etc/xinetd.d/telnet,
check for "instances = X", where X is the number of sessions allowed for the service telnet.

Rgds,
Alex
if you don't try, you'll never know if you are able to
Chakravarthi
Trusted Contributor

Re: telnet

this is very old server, ther is no xinetd,
it uses inetd.conf
Ivan Ferreira
Honored Contributor

Re: telnet

The number of telnet sessions is normally limited by te number of pty/pts devices.

For example, in Tru64 Unix (old version), you must manually create the pty devices to allow more telnet connections, with MAKEDEV pty.

Now, I think that in Linux (Not sure for your kernel version), ptys are allocated dynamically.

See:

http://www.linux.com/howtos/Text-Terminal-HOWTO-6.shtml

http://www.atnf.csiro.au/people/rgooch/linux/docs/devfs.html

Now, for the number of current sessions, you can run:

netstat -an |grep ESTABLISHED|grep w.x.y.z:23 | wc -l

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Chakravarthi
Trusted Contributor

Re: telnet

hi,

i use 2.2.14 kernel ( redhat 6.2)

--chakri
VEL_1
Valued Contributor
Chakravarthi
Trusted Contributor

Re: telnet

thanks for the responses