- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- process table checking. Who/What/When
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
02-11-2004 05:02 AM
02-11-2004 05:02 AM
script or would know how to capture particular
user account processes and log them.
ps -ef gives you the current snapshot of what
is running but how would you capture particular
process in real time to a log file without
have dups entires minus the ones that you know
you don't want logged.
Doing a:
ps -ef|grep -v
doesn't give you realtime uniq data.
acctcom does not have the info needed either.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 05:05 AM
02-11-2004 05:05 AM
Re: process table checking. Who/What/When
-l long listing
-x extended command line
-u user name
Check
ps -xu "user_name"
ps -lu "user_name"
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 05:09 AM
02-11-2004 05:09 AM
Re: process table checking. Who/What/When
export UNIX95=1
UNIX95= ps -u "user_name" -o "uid,args,stime"
Will give you uid of user, command being run and start time. When process start time is more than 24 hrs, it will only shoe start date.
You can provide lot of flags with -o options. Check man page of ps for details.
- Tags:
- UNIX95
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 05:13 AM
02-11-2004 05:13 AM
Re: process table checking. Who/What/When
If you want to capture a particular user account processes, then I would use XPG4 with -u option.
UNIX95= ps -fu user -o "vsz args"
to print the argument and the vsz corresponding to the processes owned by the user 'user'.
Look at ps man page for more options.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 05:42 AM
02-11-2004 05:42 AM
Re: process table checking. Who/What/When
I keep seeing this mentioned in various
email messages but never found a reference in
the man pages.
Sri, what is XPG4?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 06:05 AM
02-11-2004 06:05 AM
SolutionUnix95 info:-
http://ou800doc.caldera.com/DIFFS/UNIX95_Conformance.html
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 06:06 AM
02-11-2004 06:06 AM
Re: process table checking. Who/What/When
And Here:-
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=4177
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 08:28 PM
02-11-2004 08:28 PM
Re: process table checking. Who/What/When
perhaps you can use some HP tools like PRM, glance or Measureware to look at your users consumption...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 08:51 PM
02-11-2004 08:51 PM
Re: process table checking. Who/What/When
Something like
echo $_
user=$1
echo " $(UNIX95= ps -e -o pcpu -o ruser -o sz -o vsz -opid -oppid -otty -o args
|head -n1)"
UNIX95= ps -e -o pcpu -o ruser -o sz -o vsz -opid -oppid -otty -o args|grep -v %CPU| sort -nr|tail -n +2|head -n 20|grep " "$user
If you want to log more then use top with the undocumented -f logfile option
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 03:00 AM
02-12-2004 03:00 AM
Re: process table checking. Who/What/When
better the requirements of what is needed.
Lets say you want to monitor the oracle id
to see what is being run as oracle other
than the current oracle processes running.
The current running processes are in your
exclude list so you don't have to worry about
them. It's any other oracle processes that
may pop up that you want to question.
So, you want to somehow capture these processes, even if they only run for a few seconds and log them to a file that you can
review from time to time. Basically the tty,
the time executed and the command is all that
would be needed. Since we already know it is
oracle user.
Steve, I tried the undocumented top -l option. No go. Unless you are referring to the good downloaded version, not the HP one.
Mathon, we have glance and measureware but
unless I don't understand how to capture
what oracle is running at any one time with
these tools. I can't use it.
What is PRM?
Is there a /proc directory like on Sun somewhere on HP?