- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- old pts used terminal
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
Discussions
Discussions
Forums
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
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-06-2010 07:37 PM
тАО05-06-2010 07:37 PM
Just curious, is there any way that we can cleanup old pts (stream pseudo terminals) used in HP-UX?
In syslog, i keep seeing this message:
sshd[11396]: error: no more sessions
sshd[11396]: error: no more sessions
sshd[11396]: error: no more sessions
sshd[11396]: error: no more sessions
sshd[11396]: error: no more sessions
sshd[11277]: error: no more sessions
sshd[29666]: error: no more sessions
When i checked vi who -a, there are so many old pts which i believe still counted as far as nstrpty kernel setting is concern.
run-level 3 Sep 13 14:22 3 0 S
system boot Sep 13 14:22
. Sep 13 14:22 . 722 id=vxen term=0 exit=1
. Sep 13 14:22 . 723 id=brc1 term=0 exit=0
. Sep 13 14:22 . 792 id=cprt term=0 exit=0
. Sep 13 14:22 . 793 id=ems1 term=0 exit=0
. Sep 13 14:22 . 794 id=ems2 term=0 exit=0
. Sep 13 14:22 . 797 id=link term=0 exit=0
. Sep 13 14:24 . 801 id=sqnc term=0 exit=0
console Apr 15 03:19 old 1275 system console
. Sep 13 14:24 . 3753 id=krsd
. Sep 13 14:24 . 3754 id= sfd
. Sep 13 14:24 . 3755 id=cim1
. Sep 13 14:24 . 3756 id=ems3 term=0 exit=0
. Sep 13 14:24 . 3760 id=ems4
. Sep 13 14:24 . 3761 id=util
. Sep 13 14:24 . 3762 id=icap
pts/0 Feb 14 04:16 0:18 14285 id= 0 term=0 exit=0
pts/1 Mar 1 06:38 . 1163 id= 1 term=0 exit=0
pts/2 Feb 16 18:28 . 5916 id= 2 term=0 exit=0
pts/3 Feb 9 11:53 0:19 20768 10.123.45.26
pts/4 Mar 1 06:38 0:04 4630 id= 4 term=0 exit=0
pts/5 Feb 11 15:05 old 15528 id= 5 term=0 exit=0
pts/6 Feb 12 01:45 1:17 18906 id= 6 term=0 exit=0
pts/7 Mar 1 06:39 3:47 9122 id= 7 term=0 exit=0
pts/8 Feb 12 04:23 old 20337 id= 8 term=0 exit=0
pts/9 Jan 21 00:26 old 26808 id= 9 term=0 exit=0
pts/10 Feb 11 14:33 0:19 5271 id= 10 term=0 exit=0
pts/11 Feb 27 22:45 3:31 8667 id= 11 term=0 exit=0
pts/12 Nov 25 09:50 old 16836 id= 12 term=0 exit=0
pts/13 Dec 21 14:56 old 16379 id= 13 term=0 exit=0
pts/14 Feb 12 12:15 0:34 11177 id= 14 term=0 exit=0
pts/15 Feb 11 13:15 0:17 15589 id= 15 term=0 exit=0
. Feb 10 00:00 . 6991 id=dev/ term=0 exit=0
pts/16 Feb 11 12:02 2:32 19404 id= 16 term=0 exit=0
pts/17 Feb 11 06:48 22:27 26259 id= 17 term=0 exit=0
pts/18 Feb 11 11:52 0:10 22278 id= 18 term=0 exit=0
pts/19 Feb 12 15:02 4:23 25858 id= 19 term=0 exit=0
pts/20 Feb 9 11:54 4:23 24579 10.123.45.26
pts/21 Feb 11 06:48 . 20059 id= 21 term=0 exit=0
pts/22 Feb 11 14:11 10:47 8122 id= 22 term=0 exit=0
pts/23 Feb 11 06:48 10:47 20113 id= 23 term=0 exit=0
pts/24 Feb 11 06:48 old 20144 id= 24 term=0 exit=0
pts/25 Feb 11 06:48 old 20172 id= 25 term=0 exit=0
pts/26 Feb 11 06:48 old 20202 id= 26 term=0 exit=0
pts/27 Feb 11 06:48 old 20254 id= 27 term=0 exit=0
pts/28 Feb 11 06:48 old 20273 id= 28 term=0 exit=0
pts/29 Feb 11 06:48 old 20297 id= 29 term=0 exit=0
pts/30 Feb 11 06:48 old 20342 id= 30 term=0 exit=0
pts/31 Feb 11 06:48 old 20362 id= 31 term=0 exit=0
pts/32 Feb 19 08:48 old 20130 id= 32 term=0 exit=0
pts/33 Feb 3 05:44 old 26470 id= 33 term=0 exit=0
pts/34 Feb 3 05:32 old 12515 id= 34 term=0 exit=0
pts/35 Feb 3 05:32 old 12920 id= 35 term=0 exit=0
pts/36 Feb 3 05:33 old 13681 id= 36 term=0 exit=0
pts/37 Feb 3 05:38 old 14722 id= 37 term=0 exit=0
pts/38 Feb 3 09:02 old 10262 id= 38 term=0 exit=0
pts/39 Oct 12 06:21 old 13543 id= 39 term=0 exit=0
pts/40 Oct 12 06:21 old 15589 id= 40 term=0 exit=0
pts/41 Oct 12 06:21 old 13659 id= 41 term=0 exit=0
pts/42 Oct 12 06:21 old 16532 id= 42 term=0 exit=0
pts/43 Oct 12 08:09 old 2798 id= 43 term=0 exit=0
pts/44 Apr 15 01:55 old 23617 id=s/44 term=0 exit=0
pts/45 Apr 16 07:35 old 23617 id=s/45 term=0 exit=0
pts/46 Apr 22 07:26 old 16454 id=s/46 term=0 exit=0
pts/47 Apr 14 23:42 old 22257 id=s/47 term=0 exit=0
pts/48 Apr 15 02:11 old 3332 id=s/48 term=0 exit=0
pts/49 Apr 15 02:47 old 21363 id=s/49 term=0 exit=0
pts/50 Apr 15 05:15 old 21527 id=s/50 term=0 exit=0
pts/51 Apr 15 01:55 old 26038 id=s/51 term=0 exit=0
pts/52 Apr 15 07:19 old 18447 id=s/52 term=0 exit=0
pts/53 Apr 15 07:19 old 18447 id=s/53 term=0 exit=0
pts/54 Apr 15 07:34 old 26038 id=s/54 term=0 exit=0
pts/55 Apr 15 01:17 old 13781 id=s/55 term=0 exit=0
pts/56 Apr 15 04:10 old 29267 id=s/56 term=0 exit=0
pts/57 Apr 15 01:06 old 19896 id=s/57 term=0 exit=0
pts/58 Apr 15 04:26 old 4715 id=s/58 term=0 exit=0
pts/59 Apr 15 07:24 old 28016 id=s/59 term=0 exit=0
But when checked the actual usage:
# kcusage -t nstrpty
Tunable Usage / Setting Usage Id Name
==========================================================================
nstrpty 23 / 60
Its only 23 out of 60.
Help please!
thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2010 11:34 PM
тАО05-06-2010 11:34 PM
Re: old pts used terminal
Anyone actually still using ones like this?
ll /dev/pts/39
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2010 11:37 PM
тАО05-06-2010 11:37 PM
Re: old pts used terminal
check for who -u & try to close some unwanted sessions if possible....
Gudluck
Prasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2010 11:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2010 06:43 PM
тАО05-09-2010 06:43 PM
Re: old pts used terminal
I will try to verify this 1st and kill the id as necessary. Thanks!
pts/3 Feb 9 11:53 0:25 20768
pts/20 Feb 9 11:54 . 24579
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2010 10:27 PM
тАО05-09-2010 10:27 PM
Re: old pts used terminal
If these PIDs don't exist, you have a corrupted utmp file.
ps -f -p 20768 -p 24579
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2010 10:53 PM
тАО05-09-2010 10:53 PM
Re: old pts used terminal
$ ps -f -p 20768 -p 24579
UID PID PPID C STIME TTY TIME COMMAND
Old PID's doesn't exist.
How can i check if utmp is indeed corrupted?
And how can i correct it?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2010 11:00 PM
тАО05-09-2010 11:00 PM
Re: old pts used terminal
If they don't exist, utmp is corrupted.
>And how can I correct it?
Reboot is the simplest.
You may be able to restart utmpd(1M) and clean things up?