<?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: How to identify where ptys are being used? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729336#M65017</link>
    <description>I'm not sure it will give a complete list, but the who command shows ptys.&lt;BR /&gt;&lt;BR /&gt;For What It's Worth,&lt;BR /&gt;&lt;BR /&gt;Pete</description>
    <pubDate>Wed, 22 May 2002 15:12:18 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2002-05-22T15:12:18Z</dc:date>
    <item>
      <title>How to identify where ptys are being used?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729333#M65014</link>
      <description>I have a system (that I inherited)running 10.20.   Today it maxed out on ptys, the max was set to 275.  There were only 144 telnet sessions on it.  I'm trying to determine how to track down where the other 130 some ptys were being used.  I used netstat but couldn't find anything obvious. I know how to increase the table and everything, but we want to know where the increase came from today as something obviously isn't working quite right.  Any ideas?  What things besides telnet use regular ptys.  The system was recently patched, so I suspected more things were using streams based ptys, but glance shows that it is the npty table that has filled.</description>
      <pubDate>Wed, 22 May 2002 14:47:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729333#M65014</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2002-05-22T14:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify where ptys are being used?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729334#M65015</link>
      <description>&lt;BR /&gt;Hi&lt;BR /&gt;&lt;BR /&gt;Observe that if this server is making any remote connections to other servers and that sessions are not getting terminated.&lt;BR /&gt;&lt;BR /&gt;see the details of this sessions by ps -aef |grep pts.&lt;BR /&gt;&lt;BR /&gt;U can increase the kernel parameter npty value so that more number of ptys are allowed.</description>
      <pubDate>Wed, 22 May 2002 14:55:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729334#M65015</guid>
      <dc:creator>Baiju_2</dc:creator>
      <dc:date>2002-05-22T14:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify where ptys are being used?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729335#M65016</link>
      <description>Hi Bernie&lt;BR /&gt;&lt;BR /&gt;To know where the pty are being used you make like to use lsof from :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/README" target="_blank"&gt;ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/README&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;they ahve a binary for 10.XX so just download it and run like this&lt;BR /&gt;&lt;BR /&gt;lsof | grep pty &lt;BR /&gt;&lt;BR /&gt;and you are good to go.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivatava</description>
      <pubDate>Wed, 22 May 2002 14:58:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729335#M65016</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-05-22T14:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify where ptys are being used?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729336#M65017</link>
      <description>I'm not sure it will give a complete list, but the who command shows ptys.&lt;BR /&gt;&lt;BR /&gt;For What It's Worth,&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 22 May 2002 15:12:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729336#M65017</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-05-22T15:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify where ptys are being used?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729337#M65018</link>
      <description>Hi Bernie,&lt;BR /&gt;&lt;BR /&gt;As Pete tell you doyou try "who -u"?.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
      <pubDate>Wed, 22 May 2002 15:17:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729337#M65018</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-05-22T15:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify where ptys are being used?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729338#M65019</link>
      <description>Thanks everyone.  I think I need to be clearer on what I'm looking for.  Basically I'm saying that the system (via who and other methods) only shows 144 users and 144 telnet sessions, but there are 275 ptys being used. So these 130 other sessions are not login sessions. &lt;BR /&gt;lsof may be helpful here, but lsof | grep pty will show me everything the telneted users are doing.  I just want to see what is using a pty, not what the people using the ptys are doing.  ps -aef doesn't show me much more either.  Thanks anyway.</description>
      <pubDate>Wed, 22 May 2002 15:46:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729338#M65019</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2002-05-22T15:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify where ptys are being used?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729339#M65020</link>
      <description>What version of glance are you running ? I know the "earlier" version (can't remember which) mistakenly reports # ptys, so you might want to double check if you got the latest Glance for 10.20. Bottomline ..&lt;BR /&gt;# who -u|grep tty|wc -l&lt;BR /&gt;should match that of&lt;BR /&gt;# glance -t&lt;BR /&gt;==&amp;gt; the "used npty" number.</description>
      <pubDate>Wed, 22 May 2002 16:12:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729339#M65020</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-05-22T16:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify where ptys are being used?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729340#M65021</link>
      <description>try using fuser to see what processes are locking the files:&lt;BR /&gt;&lt;BR /&gt;fuser /dev/* 2&amp;gt;&amp;amp;1|pg&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;mark</description>
      <pubDate>Wed, 22 May 2002 16:20:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729340#M65021</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2002-05-22T16:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify where ptys are being used?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729341#M65022</link>
      <description>S.K: we have a newer version of glance. Unfortunately this is exactly the situation I had, The number of users in who -u was 144 and the table for npty showed 275 connections.  I also know this wasn't just a glance discrepancy because the system would not allow any more telnet connections and was giving the error:  cannot allocate ptys.  So we still have the question of where these other ptys were being used for.&lt;BR /&gt;Mark:  your idea might work if put it into a script. If you fuser /dev/tty* and then take the check to see if the tty that has a process is not reported as a logged user, that would be helpful. But this does assume there is a process tied to the pty and I'm not convinced that that was the case.  The system has now been rebooted, so the problem does not exist at the moment.  If anyone else has ideas though, I'm welcome to them.  Thanks!</description>
      <pubDate>Wed, 22 May 2002 17:34:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729341#M65022</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2002-05-22T17:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify where ptys are being used?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729342#M65023</link>
      <description>Bernie &amp;amp; S.K.&lt;BR /&gt;&lt;BR /&gt;In another "for what it's worth" - the output from my who -u |grep tty |wc -l does not match what glance shows.  Glance is higher by 8 to 12.  Not the difference Bernie is seeing, but interesting.  This is on an N-class running 11.0.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 22 May 2002 17:50:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729342#M65023</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-05-22T17:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify where ptys are being used?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729343#M65024</link>
      <description>Try "ps -ef | grep -c pts" to get a count and compare to "w | wc -l" . &lt;BR /&gt;&lt;BR /&gt;Use another ps listing to track down the other non-login processes using pts's.</description>
      <pubDate>Wed, 22 May 2002 18:12:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729343#M65024</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2002-05-22T18:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify where ptys are being used?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729344#M65025</link>
      <description>Hi Bernie,&lt;BR /&gt;&lt;BR /&gt;This may or may not work. Check your /dev/pty and /dev/ptym directory and see if the no of device files match or is closer to the kernel parameter,&lt;BR /&gt;&lt;BR /&gt;# cd /dev/pty&lt;BR /&gt;# ll |wc -l&lt;BR /&gt;# cd /dev/ptym&lt;BR /&gt;# ll |wc -l&lt;BR /&gt;&lt;BR /&gt;If not, try this,&lt;BR /&gt;&lt;BR /&gt;insf -d pty -n &lt;NUMBER&gt;&lt;BR /&gt;&lt;BR /&gt;Then try the login thing once again. What is the exact error messge that you are getting.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;regds&lt;BR /&gt;&lt;/NUMBER&gt;</description>
      <pubDate>Wed, 22 May 2002 20:29:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729344#M65025</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-05-22T20:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify where ptys are being used?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729345#M65026</link>
      <description>Sanjay, &lt;BR /&gt;We did try that but it did not help.  There were 275 devices for each and we upped it to 1000, but it did not help.  But the table was only set to 275 and we had clearly reached that level.  Cannot allocate pty was the error message in syslog.log.&lt;BR /&gt;We also tried the ps methods but it didn't show the unknown logins either.</description>
      <pubDate>Wed, 22 May 2002 21:07:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729345#M65026</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2002-05-22T21:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify where ptys are being used?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729346#M65027</link>
      <description>Hi Bernie,&lt;BR /&gt;&lt;BR /&gt;What is the type of terminal connection that you have. IS it MUX connected dumb terminals, terminal servers or what ?.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Wed, 22 May 2002 21:47:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729346#M65027</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-05-22T21:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify where ptys are being used?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729347#M65028</link>
      <description>Starting at 10.xx and continuing on into 11.xx, ptys come in 2 flavors: standard and streams.  And at 11.xx, telnet sessions are handled with streams-based drivers too.  Thus, you need to setup not only npty but also nstrpty and nstrtel, typically making them all equal (ie, npty=nstrpty=nstrtel=1000), build a new kernel and reboot, then run insf to create the additional device files.&lt;BR /&gt;&lt;BR /&gt;Or you can use SAM to increase the 3 parameters and it will automatically build all the needed device files.</description>
      <pubDate>Wed, 22 May 2002 21:52:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729347#M65028</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-05-22T21:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify where ptys are being used?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729348#M65029</link>
      <description>Sanjay-no terminal connections, just telnet sessions from PCs.&lt;BR /&gt;Bill-thanks for the info. This is 10.20 by the way.  We do now how to increase this on 10.20 &amp;amp; 11.*, the question was how to tell what is using up the ptys when the tables does fill.  Doesn't appear to be a great way to do this other than who, fuser, and looking at processes.&lt;BR /&gt;One thought did occur though, this system is running 10.20, but the Dec 2001 patch bundle was just put on it.  Any chance that the kernel parameters for this are now behaving more like 11.*?</description>
      <pubDate>Thu, 23 May 2002 16:49:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-identify-where-ptys-are-being-used/m-p/2729348#M65029</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2002-05-23T16:49:41Z</dc:date>
    </item>
  </channel>
</rss>

