Sponsored Content
Full Discussion: Output of prstat for 60 secs
Top Forums Shell Programming and Scripting Output of prstat for 60 secs Post 302433285 by bartus11 on Tuesday 29th of June 2010 06:51:36 AM
Old 06-29-2010
Code:
for i in {1..60}; do prstat -c 1 1 >> log.txt; echo "\n" >> log.txt; done

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Redirect the output of prstat

Hi, How to redirect the output of prstat command to a file. Ex: I want to do like this while : do prstat >> prs.log sleep 5 done is it possible ???? if No, then how can i proceed?? PLEASE HELP ME OUT FROM THIS :confused: Thanks in advance ----------- (2 Replies)
Discussion started by: vastare
2 Replies

2. UNIX for Dummies Questions & Answers

how to find difference of 2 timestamps in secs?

I have a requirement to find the time difference in second between 2 given time stamps. An example scenario is shown below: 30 Oct 11:42:29:992 DEBUG org.apache.commons.digester.Digester - New match='form-validation/global/validator' (IID=, TID=) 30 Oct 11:42:29:993 DEBUG... (0 Replies)
Discussion started by: Alecs
0 Replies

3. Shell Programming and Scripting

ls -e to find out File modification time in secs

Hi All, I would like to know the file modification time till seconds in Unix. So I tried ls -e and it worked fine. This Solaris 5.10 -rw-rw-r-- 1 test admin 22 Sep 12 11:01:37 2008 test_message But I am not able to run the same command in SOlaris 5.6 and also in AIX/HP Is there... (3 Replies)
Discussion started by: rahulkav
3 Replies

4. Shell Programming and Scripting

prstat output in GB

Hi, Is there any way by which the unit of size and rss will be only GB while I am running the prstat command? (2 Replies)
Discussion started by: King Nothing
2 Replies

5. Solaris

prstat output

Can someone please explain me the "TIME" field of the output of "prstat -p<pid>" command ? The man page says it is "The cumulative execution time for the process". Does it mean how many hrs:min:sec the process is running ? If so then I'm not getting the desired output. Can someone pls help me in... (5 Replies)
Discussion started by: senabhi
5 Replies

6. Shell Programming and Scripting

prstat output

hi all, have a ksh script where i am doing a prstat -m -u osuser 1 1 >> $FILE_NAME but for some reason it only writes 15 lines wheres when i run the same command manually from command prompt it prints out 60 lines. why is it not writing the full 60 lines to the file ?? ta. (1 Reply)
Discussion started by: cesarNZ
1 Replies

7. Shell Programming and Scripting

How to print prstat -Z output into a file?

Hi Expert, I want to print CPU and Memory utilization into a text file. I am using "prstat -Z" to see the output on screen. When I run below command prstat -Z | grep httpd | awk '{print$3} '>> output.txt but it is not printing to file. Also I want to be below header on output PID USERNAME ... (6 Replies)
Discussion started by: lalit kumar
6 Replies

8. Shell Programming and Scripting

Format Top and prstat command output

need help with formatting output of command top and prstat. My requirment is to remove few columns and display remaining . But when i used awk to do that the output seems to be have gone vague, mixing the column values. After using awk to print particular column the output seems to have lost... (1 Reply)
Discussion started by: NarayanaPrakash
1 Replies

9. Solaris

How to output the prstat into table and send through email?

Hi how to send below prstat script output into table format and send through email? prstat|awk '{ if ($9 >= 5) print $0 }' (17 Replies)
Discussion started by: tharmendran
17 Replies

10. UNIX and Linux Applications

Sendmail delay: 3 mins 11 secs... Every time.

Hi all, I would like some help with a sendmail problem: We have a new system comprising of 4 T7-1 servers, each hosting 5 LDOMs, all domains running Solaris 11.3 All emails sent from every one of these domains (including the control domains) sit in the queue for 3 mins 11 secs (sometime 3m 12s,... (11 Replies)
Discussion started by: Mysturji
11 Replies
PLOCKSTAT(1)															      PLOCKSTAT(1)

NAME
plockstat - front-end to DTrace to print statistics about POSIX mutexes and read/write locks SYNOPSIS
plockstat [-vACHV] [-n count] [-s depth] [-e secs] [-x opt[=val]] command [arg...] plockstat [-vACHV] [-n count] [-s depth] [-e secs] [-x opt[=val]] -p pid OVERVIEW
The plockstat command is a front-end to DTrace that can be used to print statistics about POSIX mutexes and read/write locks. Since OS X 10.11, in order to use this, your process must be run with DYLD_LIBRARY_PATH set to contain /usr/lib/system/introspection: DYLD_LIBRARY_PATH=/usr/lib/system/introspection Which contains the necessary static DTrace probes. OPTIONS
-v print a message when tracing starts -A trace contention and hold events (same as -CH) -C trace contention events for mutexes and rwlocks -H trace hold events for mutexes and rwlocks -V print the dtrace script to run -n count display only 'count' entries for each event type -s depth show stack trace upto 'depth' entries -e secs exit after specified seconds -x arg[=val] enable a DTrace runtime option or a D compiler option -p pid attach and trace the specified process id SEE ALSO
dtrace(1) 1.0 July 2007 PLOCKSTAT(1)
All times are GMT -4. The time now is 03:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy