- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to identify where ptys are being used?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 07:47 AM
05-22-2002 07:47 AM
How to identify where ptys are being used?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 07:55 AM
05-22-2002 07:55 AM
Re: How to identify where ptys are being used?
Hi
Observe that if this server is making any remote connections to other servers and that sessions are not getting terminated.
see the details of this sessions by ps -aef |grep pts.
U can increase the kernel parameter npty value so that more number of ptys are allowed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 07:58 AM
05-22-2002 07:58 AM
Re: How to identify where ptys are being used?
To know where the pty are being used you make like to use lsof from :
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/README
they ahve a binary for 10.XX so just download it and run like this
lsof | grep pty
and you are good to go.
Manoj Srivatava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 08:12 AM
05-22-2002 08:12 AM
Re: How to identify where ptys are being used?
For What It's Worth,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 08:17 AM
05-22-2002 08:17 AM
Re: How to identify where ptys are being used?
As Pete tell you doyou try "who -u"?.
Regards,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 08:46 AM
05-22-2002 08:46 AM
Re: How to identify where ptys are being used?
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 09:12 AM
05-22-2002 09:12 AM
Re: How to identify where ptys are being used?
# who -u|grep tty|wc -l
should match that of
# glance -t
==> the "used npty" number.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 09:20 AM
05-22-2002 09:20 AM
Re: How to identify where ptys are being used?
fuser /dev/* 2>&1|pg
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 10:34 AM
05-22-2002 10:34 AM
Re: How to identify where ptys are being used?
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 10:50 AM
05-22-2002 10:50 AM
Re: How to identify where ptys are being used?
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.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 11:12 AM
05-22-2002 11:12 AM
Re: How to identify where ptys are being used?
Use another ps listing to track down the other non-login processes using pts's.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 01:29 PM
05-22-2002 01:29 PM
Re: How to identify where ptys are being used?
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,
# cd /dev/pty
# ll |wc -l
# cd /dev/ptym
# ll |wc -l
If not, try this,
insf -d pty -n
Then try the login thing once again. What is the exact error messge that you are getting.
Hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 02:07 PM
05-22-2002 02:07 PM
Re: How to identify where ptys are being used?
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.
We also tried the ps methods but it didn't show the unknown logins either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 02:47 PM
05-22-2002 02:47 PM
Re: How to identify where ptys are being used?
What is the type of terminal connection that you have. IS it MUX connected dumb terminals, terminal servers or what ?.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 02:52 PM
05-22-2002 02:52 PM
Re: How to identify where ptys are being used?
Or you can use SAM to increase the 3 parameters and it will automatically build all the needed device files.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 09:49 AM
05-23-2002 09:49 AM
Re: How to identify where ptys are being used?
Bill-thanks for the info. This is 10.20 by the way. We do now how to increase this on 10.20 & 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.
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.*?