Difference between revisions of "Mpstat.sh"
Jump to navigation
Jump to search
PeterHarding (talk | contribs) (Created page with "=Automated mpstat Collector= <pre> #!/bin/sh # #-------------------------------------------------------------------------- PERIOD=720 # Minutes DELAY=60 # Seconds #----...") |
(No difference)
|
Revision as of 10:52, 17 April 2013
Automated mpstat Collector
#!/bin/sh # #-------------------------------------------------------------------------- PERIOD=720 # Minutes DELAY=60 # Seconds #-------------------------------------------------------------------------- SECONDS=`expr $PERIOD '*' 60` CNT=`expr $SECONDS '/' $DELAY` TS=`date '+%Y%m%d_%H%M'` LOG="mpstat_$TS.log" #-------------------------------------------------------------------------- echo "==> Count: $CNT Delay: $DELAY" > $LOG date >> $LOG mpstat $DELAY $CNT >> $LOG & #--------------------------------------------------------------------------