Stale users and no process


 
Thread Tools Search this Thread
Operating Systems HP-UX Stale users and no process
# 1  
Old 09-27-2010
Stale users and no process

HP-UX B.11.23 U ia64

I've got two users that show in "w" with long idle times but if I search for their processes I find nothing (ps -ef | grep username )

I'm not sure why "w" still sees them and if there is anything (short of a reboot) that I can do to clean them out.

Ideas?
# 2  
Old 09-27-2010
Please cut and paste the output of your w and ps -ef | grep ... commands.

Thanks.
# 3  
Old 09-27-2010
I didn't want some of those specifics out on the 'net but I'll see what I can do with some cut and paste I guess.

Here is more or less what I get with "w" - usernames are changed. It is name8 and name9 that I want to clear up.

Code:
 12:07pm  up 337 days,  1:49,  10 users,  load average: 0.03, 0.02, 0.02
User     tty           login@  idle   JCPU   PCPU  what
name1     console      10:19am8088:23                -sh
name2 pts/ta        9:49am    21                natural parm=readonly rdnode=
10.32.13.188
name2 pts/tb       10:22am  1:44                -sh
name3  pts/tc       12:04pm     2                natural parm=idsparm
name4  pts/te        9:30am  2:37                natural parm=idsparm
me       pts/tf        8:53am                      -sh
name6  pts/th       11:50am    14                natural parm=idsparm
name7  pts/tg       11:45am     5                natural parm=idsparm
name8  pts/t2d       9:54am3339:03                -
name9   pts/t0h       9:49am7825:17

and here is the output of ps -ef | grep name8

Code:
me@myserver:/users/sag/prod/reports> ps -ef | grep name8 
me  7845 28284  0 12:09:55 pts/tf    0:00 grep name8

only my grep command comes back. Same result if I search for name9

Last edited by Scott; 09-27-2010 at 04:15 PM.. Reason: Please use code tags
# 4  
Old 09-27-2010
w reads a file - usually wtmpx. Those are not real processes, ie., if ps does not see them they became defunct and removed. Clearly, they were removed from the process table, but not cleaned up in the utmpx/wtmpx file.

A reboot will remove them, but I don't see what that gains on a production box, other than user complaints. Smilie
# 5  
Old 09-27-2010
Sorry about the lack of tags. I haven't posted in a long time and didn't catch the hint.

We're in the process of closing out the applications on this server and when I'm capturing the user stats every 15 minutes I was just getting annoyed at being over by two no matter the time of day so I thought I'd clean them if it was easy to do. Not worth a reboot though. I can just keep explaining that the 2 users on at 2AM every day are not really there.
# 6  
Old 09-27-2010
Maybe they are just trying to get in some virtual overtime Smilie
# 7  
Old 09-27-2010
Sitting idle for >100 days isn't going to cut it I don't think Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

AIX - stale partition

Hi everybody, I have a little problem with my AIX 6.1, PowerHA 6.1 LVM mirror. After problem with SAN pathing of our one Datacenter, I have LV at stale state. # lsvg cpsdata2vg VOLUME GROUP: cpsdata2vg VG IDENTIFIER: 00fb518c00004c0000000169445f4c2c VG STATE: ... (6 Replies)
Discussion started by: Necronomic
6 Replies

2. AIX

Hd6 is in stale condition

Hi friends, the paging lv hd6 is in stale condition hd6 paging 48 96 2 open/stale N/A And i'am getting the following alerts in the server 333BD283 0811044814 U S LVDD Bad block detected with no relocation al 333BD283 0811041114 U S LVDD ... (1 Reply)
Discussion started by: Mohamed Thamim
1 Replies

3. HP-UX

Bypass stale PE ?

Hello, I have an ancient HP-UX 11.11 system where I have a logical volume marked stale and I can't get it sync'd. I have tried lvsync and lvreduce/lvextend to no avail. It is just one 4Mb PE on the disk that I can't get current. # lvdisplay -v /dev/vg00/lvol5 | grep stale LV Status ... (17 Replies)
Discussion started by: port43
17 Replies

4. Shell Programming and Scripting

Challenging task : script for mailing process completion timing report to users.

Hi all, This is my first post. I am new to unix scripting. My requirement is as follows : We are using a financial backoffice application. Now at the end of day we have send users a status report stating all timings of EOD processes for all countries. I need timings for following... (0 Replies)
Discussion started by: ammbhhar
0 Replies

5. AIX

how to remove the stale entry without a reboot??

my AIX server used to have scsi disk hdisk4. Now i removed that disk. But still it is still listed in lspv. So how can i remove the stale entry of it ? (6 Replies)
Discussion started by: navadeep
6 Replies

6. UNIX and Linux Applications

Stale NFS file handle

There are a filesystem /GWD/appbase/projects/GRIDDB Under this filesystem there is a directory called backup. But When I am trying to access the backup directory ,it is showing me the following error: # cd /GWD/appbase/projects/GRIDDB # cd backup -bash: cd: backup: Stale NFS file handle ... (3 Replies)
Discussion started by: alphasahoo
3 Replies

7. UNIX for Dummies Questions & Answers

removing stale partitions

hi, i was trying to mirror root volume group and the command i was using didnt respond for a long time mirrorvg -m rootvg hdisk1 I was checking rootvg and it gives below. how do i fix stale partitions?? it seems to be on hdisk1 LV NAME TYPE LPs PPs PVs LV STATE ... (2 Replies)
Discussion started by: karthikosu
2 Replies

8. UNIX for Dummies Questions & Answers

Unix Stale Mounts

Is there an easy way to find all stale mounts on a system? (2 Replies)
Discussion started by: derf912
2 Replies

9. Shell Programming and Scripting

kill process of other users

Hi, Can I kill process submitted by another uesr (say user1) if I'm not the su. If I got some previledges granted from user1, can I kill user1's process? Please advise? Thank you very much! Regards, Tse (4 Replies)
Discussion started by: tsesukfan
4 Replies

10. Shell Programming and Scripting

Script to kill stranded/orphan process by users.

I have customers on our AIX/UNIX node startup a process that becomes stranded or orphaned and must be killed. I would like to create a script to check for these orphan processes and kill them. I can have cron run this job. The customers process will run and after 24 hours time out leaving an... (4 Replies)
Discussion started by: rjohnson
4 Replies
Login or Register to Ask a Question

Featured Tech Videos