<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating pty device files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-pty-device-files/m-p/2478797#M17889</link>
    <description>Hi Rumen:&lt;BR /&gt;&lt;BR /&gt;Document #KBRC00000945 should help you.  In part:&lt;BR /&gt;&lt;BR /&gt;PTYs are used to open telnet sessions. On 10.x systems they use PTYs(pseudo-terminal) and 11.x systems use PTYs that are pseudo-terminal and Streams-Based.&lt;BR /&gt;&lt;BR /&gt;To check the number of telnet sessions you have available, on the box refusing the connection do:&lt;BR /&gt;&lt;BR /&gt;ls /dev/pty  | wc -w&lt;BR /&gt;ls /dev/ptym | wc -w&lt;BR /&gt;&lt;BR /&gt;To increase your telnet sessions, increase 'npty'.&lt;BR /&gt;&lt;BR /&gt;1. Use SAM -&amp;gt; Kernel -&amp;gt; Configurable Parameters&lt;BR /&gt;&lt;BR /&gt;npty    (10.20 and 11.0)&lt;BR /&gt;nstrpty (11.0 only)&lt;BR /&gt;&lt;BR /&gt;Set NPTY and NSTRPTY to 512 where NPTY and NSTRPTY are the desired number of telnet sessions.&lt;BR /&gt;&lt;BR /&gt;2. Rebuild the special device files as follows:&lt;BR /&gt;&lt;BR /&gt;# insf -d ptys -n 512&lt;BR /&gt;&lt;BR /&gt;...(10.20 and 11.0).&lt;BR /&gt;&lt;BR /&gt;# insf -d ptym -n 512&lt;BR /&gt;...(10.20 and 11.0)&lt;BR /&gt;&lt;BR /&gt;# insf -d pts -s 512 -e -v&lt;BR /&gt;...(for 11.0 only)&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 04 Jan 2001 14:58:00 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2001-01-04T14:58:00Z</dc:date>
    <item>
      <title>Creating pty device files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-pty-device-files/m-p/2478792#M17884</link>
      <description>Hi!&lt;BR /&gt;When someone tries to telnet to the system (K260/HP-UX10.20) conection is&lt;BR /&gt;closed immediately. The message in syslog is:  &lt;BR /&gt;telnetd[13420]: Cannot allocate pty&lt;BR /&gt;The kernel parameters related to ptys I found are:&lt;BR /&gt;npty - 800&lt;BR /&gt;nstrpty - 60&lt;BR /&gt;nclist - 12900&lt;BR /&gt;I think the problem is there are not enough pty (slave/master) device files.&lt;BR /&gt;If this is the problem, how to create more pty device files?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance, &lt;BR /&gt;Rumen</description>
      <pubDate>Thu, 04 Jan 2001 10:37:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-pty-device-files/m-p/2478792#M17884</guid>
      <dc:creator>Rumen Ginev</dc:creator>
      <dc:date>2001-01-04T10:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating pty device files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-pty-device-files/m-p/2478793#M17885</link>
      <description>i'd try increasing nstrpy value first ...&lt;BR /&gt;to increase the ptys :&lt;BR /&gt;&lt;BR /&gt;insf -d pty0 -n 200&lt;BR /&gt;insf -d pty1  -n 200 etc ...</description>
      <pubDate>Thu, 04 Jan 2001 10:49:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-pty-device-files/m-p/2478793#M17885</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2001-01-04T10:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Creating pty device files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-pty-device-files/m-p/2478794#M17886</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;nstrpty is probably the culprit.  This sets the maximum number of streams based PTYs allowed on the system.  Use sam to change this configurable kernel parameter.&lt;BR /&gt;&lt;BR /&gt;More information can be found at &lt;A href="http://docs.hp.com/hpux/onlinedocs/os/KCparams.OverviewAll.html." target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/os/KCparams.OverviewAll.html.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;--Bruce</description>
      <pubDate>Thu, 04 Jan 2001 10:50:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-pty-device-files/m-p/2478794#M17886</guid>
      <dc:creator>Bruce Regittko_1</dc:creator>
      <dc:date>2001-01-04T10:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating pty device files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-pty-device-files/m-p/2478795#M17887</link>
      <description>Tanks again!&lt;BR /&gt;&lt;BR /&gt;I increased pty device files by:&lt;BR /&gt;&lt;BR /&gt;insf -d ptym -n 150&lt;BR /&gt;insf -d ptys -n 150&lt;BR /&gt;&lt;BR /&gt;where ptym and ptys are kernel drivers (from lsdev). Now I have 150 device files under /dev/ptym/ and /dev/pty/ for master and slave parts of a pty respectively.&lt;BR /&gt;&lt;BR /&gt;nstrpty kernel parameter is related to the number of device files under /dev/pts/, so I did not change it.&lt;BR /&gt;&lt;BR /&gt;I do not know why, but this solved the problem.&lt;BR /&gt;&lt;BR /&gt;Could someone send links to documents that clarify the things about the pseudo teminals and how telnetd works with them?&lt;BR /&gt;&lt;BR /&gt;Rumen</description>
      <pubDate>Thu, 04 Jan 2001 12:42:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-pty-device-files/m-p/2478795#M17887</guid>
      <dc:creator>Rumen Ginev</dc:creator>
      <dc:date>2001-01-04T12:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating pty device files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-pty-device-files/m-p/2478796#M17888</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;Sorry - I was thinking of dtterm, which uses pts device files.&lt;BR /&gt;&lt;BR /&gt;For more information, check the man pages for pts(7), pty(7), and ptm(7).&lt;BR /&gt;&lt;BR /&gt;--Bruce</description>
      <pubDate>Thu, 04 Jan 2001 14:26:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-pty-device-files/m-p/2478796#M17888</guid>
      <dc:creator>Bruce Regittko_1</dc:creator>
      <dc:date>2001-01-04T14:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating pty device files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-pty-device-files/m-p/2478797#M17889</link>
      <description>Hi Rumen:&lt;BR /&gt;&lt;BR /&gt;Document #KBRC00000945 should help you.  In part:&lt;BR /&gt;&lt;BR /&gt;PTYs are used to open telnet sessions. On 10.x systems they use PTYs(pseudo-terminal) and 11.x systems use PTYs that are pseudo-terminal and Streams-Based.&lt;BR /&gt;&lt;BR /&gt;To check the number of telnet sessions you have available, on the box refusing the connection do:&lt;BR /&gt;&lt;BR /&gt;ls /dev/pty  | wc -w&lt;BR /&gt;ls /dev/ptym | wc -w&lt;BR /&gt;&lt;BR /&gt;To increase your telnet sessions, increase 'npty'.&lt;BR /&gt;&lt;BR /&gt;1. Use SAM -&amp;gt; Kernel -&amp;gt; Configurable Parameters&lt;BR /&gt;&lt;BR /&gt;npty    (10.20 and 11.0)&lt;BR /&gt;nstrpty (11.0 only)&lt;BR /&gt;&lt;BR /&gt;Set NPTY and NSTRPTY to 512 where NPTY and NSTRPTY are the desired number of telnet sessions.&lt;BR /&gt;&lt;BR /&gt;2. Rebuild the special device files as follows:&lt;BR /&gt;&lt;BR /&gt;# insf -d ptys -n 512&lt;BR /&gt;&lt;BR /&gt;...(10.20 and 11.0).&lt;BR /&gt;&lt;BR /&gt;# insf -d ptym -n 512&lt;BR /&gt;...(10.20 and 11.0)&lt;BR /&gt;&lt;BR /&gt;# insf -d pts -s 512 -e -v&lt;BR /&gt;...(for 11.0 only)&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 04 Jan 2001 14:58:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-pty-device-files/m-p/2478797#M17889</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-01-04T14:58:00Z</dc:date>
    </item>
  </channel>
</rss>

