Dev.pty ; telnets

Our company is “migrating” approx. 300 users from a series of private
WAN connections to Internet connections. With the private WAN
connections, we were supporting 70-80 users per QNX application server
[actually, as they are not precisely distributed, we have had 96
users on a single box].

I have successfully migrated 35-40 users to a telnets solution [yes,
that’s telnet"S", as in SSL-telnet, TCP port 992], using Kermit on the
client side, and a Linux box running stunnel sitting between the
Internet
router and the QNX app server.

However, due to two limitations, I will be unable to go beyond 60-61
users:

  1. Dev allows me only 128 devices. I had read somewhere in the past
    that
    a new Dev [I believe I have 4.24G], will allow me to go to > 128.
    Can anyone verify this and point me toward it ???

  2. Dev.pty, according to usage, is limited to 4 prefixes [p,q,r,s], and
    16 device-pairs each, for a total of 64 [which is obviously not even
    possible with Dev max = 128].

I have already established through experimentation that Dev.pty WILL
create devices with prefixes other than p-s …

Dev -n128 &
Dev.pty -l p -n 1 &
Dev.pty -l q -n 1 &
Dev.pty -l r -n 1 &
Dev.pty -l s -n 1 &
Dev.pty -l t -n 1 &

/dev DOES contain a ttyt0 and ptyt0.

However, the version of telnetd which I have will not use any of
these devices …

telnet localhost : uses /dev/ptyp0
telnet localhost : uses /dev/ptyq0
telnet localhost : uses /dev/ptyr0
telnet localhost : uses /dev/ptys0
telnet localhost : Error: all network devices in use

Does anyone know where I might find a telnetd which supports Dev.pty
prefixes > “s” ???

Or, does anyone have any alternative solutions [other than dropping
another 2 app server boxes on the network] ??

In article <3BD4C306.F6D432A8@one.net>, saschaef@one.net says…

Our company is “migrating” approx. 300 users from a series of private
WAN connections to Internet connections. With the private WAN
connections, we were supporting 70-80 users per QNX application server
[actually, as they are not precisely distributed, we have had 96
users on a single box].

I have successfully migrated 35-40 users to a telnets solution [yes,
that’s telnet"S", as in SSL-telnet, TCP port 992], using Kermit on the
client side, and a Linux box running stunnel sitting between the
Internet
router and the QNX app server.

However, due to two limitations, I will be unable to go beyond 60-61
users:

  1. Dev allows me only 128 devices. I had read somewhere in the past
    that
    a new Dev [I believe I have 4.24G], will allow me to go to > 128.
    Can anyone verify this and point me toward it ???

I don’t have all of your answers - somebody else will have to fill those
in. But, you can start more than one Dev. It will simply have to take
over a different prefix - like maybe /dv2 (or whatever you choose). Of
course all of the software that wants these devices must be able to be
pointed to this additional prefix.


  1. Dev.pty, according to usage, is limited to 4 prefixes [p,q,r,s], and
    16 device-pairs each, for a total of 64 [which is obviously not even
    possible with Dev max = 128].

I have already established through experimentation that Dev.pty WILL
create devices with prefixes other than p-s …

Yes, it will take just about any letter you give it. However, the
problem is the using programs looking for those other letters. Programs
like telnetd. As you have noticed…

Dev -n128 &
Dev.pty -l p -n 1 &
Dev.pty -l q -n 1 &
Dev.pty -l r -n 1 &
Dev.pty -l s -n 1 &
Dev.pty -l t -n 1 &

/dev DOES contain a ttyt0 and ptyt0.

However, the version of telnetd which I have will not use any of
these devices …

telnet localhost : uses /dev/ptyp0
telnet localhost : uses /dev/ptyq0
telnet localhost : uses /dev/ptyr0
telnet localhost : uses /dev/ptys0
telnet localhost : Error: all network devices in use

Does anyone know where I might find a telnetd which supports Dev.pty
prefixes > “s” ???

Or, does anyone have any alternative solutions [other than dropping
another 2 app server boxes on the network] ??


Stephen Munnings
Software Developer
Corman Technologies Inc.

Scott Schaefer <saschaef@one.net> wrote:

Take a look at the docs to Dev.pty – it tells the search order that
telnetd, etc use to search for available pseudo-tty devices. And it
also gives examples of running an additional Dev to handle new
directories.

The architecture should handle more than you could ever want.

-David

QNX Training Services
I do not answer technical questions by email.

David Gibbs wrote:

Scott Schaefer <> saschaef@one.net> > wrote:

Take a look at the docs to Dev.pty – it tells the search order that
telnetd, etc use to search for available pseudo-tty devices. And it
also gives examples of running an additional Dev to handle new
directories.

Ouch !! RTFM – I feel “r-e-a-l-l-y s-m-a-l-l” …

I HAD checked the (old) printed manuals. I haven’t had a reason to
seek technical help for almost 4 years, and had forgotten that the
newer manuals were distibuted as html [blame that on the fact that
those darn QNX boxes just sit and run, and run, and … – we reached
14 months on one last week].


The architecture should handle more than you could ever want.

256,064 should be enough :slight_smile:


-David

QNX Training Services
I do not answer technical questions by email.