EVAPerf – Stats Collection script

Print Friendly

Below is a windows script that can be used to collect stats for all arrays managed by a CV server and and save them in a folder.  A single folder for each array is created, and each folder contains several csv files for individual parameters such as vdisks, controllers, hard drives etc.

Schedule this script under “Scheduled tasks” to run every 24 hours. The user should have the admin rights under Command View.

FOR /F “tokens=1,2,3,4 delims=/- ” %%a in (‘date/T’) do set CDATE=%%c-%%b-%%d
set directory=%CURRENTDIR%\%CDATE%
echo “Creating directory %directory%”
mkdir “%directory%”
echo “Creating friendly names for EVAs on CVSERVER1”
“C:\Program Files (x86)\Hewlett-Packard\EVA Performance Monitor\evaperf” fn
“C:\Program Files (x86)\Hewlett-Packard\EVA Performance Monitor\evaperf” mof -csv -ts2 -cont 300 -dur 86400 -od “%directory%”

, ,


2 Responses to “EVAPerf – Stats Collection script”

  1. Mike 23/04/2013 at 10:05 am # Reply

    many thanks for the script! Playing around with EVAPerf a lot lately.
    small hint, anything i copy and paste from your website into a fresh batchfile gives unpredictive results, it seems that all the ‘ and ” are converted incorrectly, so you can not run the new files.

    keep up the good work,


    • Ketan Patel
      Ketan Patel 24/04/2013 at 7:19 am # Reply

      Hi Mike,
      I am glad the script was of use to you. With regard to copy paste, I think it will always be tricky because of difference in locales and platforms. Worse would be when it carries ^M at the end of the line while pasting in vi editor on Unix.

Leave a Reply