Need help on shell script to monitor each user cpu use on a cluster over time


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need help on shell script to monitor each user cpu use on a cluster over time
# 1  
Old 08-13-2012
Need help on shell script to monitor each user cpu use on a cluster over time

Hi,

I am relatively new to the cluster administration and shell scripting. I need help on a shell script which can help me determine how many cpu's over time, any particular ( or all registered users on a cluster ) are using. To generate data say over a period of week and list of users and their cpu usage.

I will appreciate your help.

Thank you !
# 2  
Old 08-13-2012
What OS? Linux? Solaris? What shell?
# 3  
Old 08-14-2012
/bin/bash

---------- Post updated 08-14-12 at 10:43 AM ---------- Previous update was 08-13-12 at 08:39 PM ----------

I will appreciate any help, thank you.
# 4  
Old 08-14-2012
Hi Anuj06,

As Jim said, what is the OS - Solaris, Linux, HPUX, OSF, AIX or several others they all have clustering.

Regards

Dave
# 5  
Old 08-14-2012
Quote:
Originally Posted by jim mcnamara
What OS? Linux? Solaris? What shell?
Linux

---------- Post updated at 10:57 AM ---------- Previous update was at 10:56 AM ----------

Linux, sorry I thought /bin/bash is for linux. Thank you
# 6  
Old 08-14-2012
Hi Anuj06,

Is process accounting turned on?

Check for the file /var/log/pacct as this should have some or all the information that you need in it. It can be extracted using the "dump-acct" utility.

Or you could check and see if the sa command is available - but this can generate huge volumes of data.

Regards

Dave

Last edited by gull04; 08-14-2012 at 12:13 PM.. Reason: Typo
# 7  
Old 08-14-2012
It seems, I don't have permission.

couldn't open file '/var/account/pacct': Permission denied

Will this help in turning process accounting on: tldp.org/HOWTO/Process-Accounting/pasetup.html

I initially thought, that may be using a script that monitor "qstat" over time,and with some command tricks I can filter required information.


Thank you ,

Anuj
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with speeding up my working script to take less time - how to use more CPU usage for a script

Hello experts, we have input files with 700K lines each (one generated for every hour). and we need to convert them as below and move them to another directory once. Sample INPUT:- # cat test1 1559205600000,8474,NormalizedPortInfo,PctDiscards,0.0,Interface,BG-CTA-AX1.test.com,Vl111... (7 Replies)
Discussion started by: prvnrk
7 Replies

2. Shell Programming and Scripting

• Write a shell script that upon invocation shows the time and date and lists all the logged-in user

help me (1 Reply)
Discussion started by: sonu pandey
1 Replies

3. Shell Programming and Scripting

Shell script to monitor process with high CPU

Hi, Linux redhat 5.5 I need to write a kshell script that shows all the process that consume 100% CPU (or more. strange but there are time that top shows higger value that 100) and they are active more than 5 minute. The top command shows all the relevat information: The PID of the cpu ,... (0 Replies)
Discussion started by: yoavbe
0 Replies

4. UNIX for Advanced & Expert Users

Shell script to monitor cpu and VMstat, iostat

Hi , I am new to scripting. please help me out how to write a script to monitor cpu , vmstat, iostat in Redhat linux. we are doing the load test. Thanks in advance !!!! (1 Reply)
Discussion started by: saanvi
1 Replies

5. Shell Programming and Scripting

what would a script include to find CPU's %system time high and user time high?

Hi , I am trying to :wall: my head while scripting ..I am really new to this stuff , never did it before :( . how to find cpu's system high time and user time high in a script?? thanks , help would be appreciated ! :) (9 Replies)
Discussion started by: sushwey
9 Replies

6. Shell Programming and Scripting

Looking for shell script to monitor CPU utilization and send mail once exceed 75%

Dear Group, I'm look for shell script to Monitor CPU usage and send mail once it exceed 75% I'm running Suse10.4. (3 Replies)
Discussion started by: clfever
3 Replies

7. AIX

Script to monitor CPU , Memory

Hello. I am using AIX 6 and did lot of searches on google for this script and found so many results. Just thought to ask you being the real good place for centralised answer: a) Could you tell me the aix script, which may tell me If the CPU load is above e.g. 60% ? b) Could you tell me the AIX... (2 Replies)
Discussion started by: panchpan
2 Replies

8. Shell Programming and Scripting

Shell script to display user logged last week and time connected

Hello all, I want to display all the user logged last week and know the time tnat they are connected. I have been looking for a solution in the Forum, but I didn't find. Thanks in advance (4 Replies)
Discussion started by: ahernandez
4 Replies

9. UNIX Desktop Questions & Answers

Shell script to display user logged in within given time

how can i know which users have logged in at specified given start and end time in 24 hour format? (3 Replies)
Discussion started by: meherzad4u
3 Replies

10. Shell Programming and Scripting

User Login Monitor Script

I need some help writing a script that I can run as a cron job. I want this script to be able find all the users that have logged on to this machine since the last time the script was run (plan to run daily at 11:30pm, so everyone who logged on that day) and email me who logged on, and when. ... (2 Replies)
Discussion started by: Drewser
2 Replies
Login or Register to Ask a Question