Mpstat.sh
Revision as of 10:52, 17 April 2013 by PeterHarding (talk | contribs) (Created page with "=Automated mpstat Collector= <pre> #!/bin/sh # #-------------------------------------------------------------------------- PERIOD=720 # Minutes DELAY=60 # Seconds #----...")
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 & #--------------------------------------------------------------------------