I have a crude script ready for task scheduler. Below is the contents of my script.
###### begin bat script ######
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
For /f "tokens=1-2 delims=/:" %%a in ("%TIME%") do (set mytime=%%a%%b)
set mytime=%mytime: =0%
set Logname="c:\logs\e-series_%mydate%_%mytime%.csv"
rem Echo. >>%Logname% 2>>&1
rem Echo.=================== >>%Logname% 2>>&1
"c:\Program Files (x86)\StorageManager\client\smcli" 10.99.5.41 -c "set session performanceMonitorInterval=5;set session performanceMonitorIterations=3600;save storageArray performanceStats file=\"%LogName%\";"
####### end bat script ######
Produces a command like this:
c:\scripts>"c:\Program Files (x86)\StorageManager\client\smcli" 10.99.5.41 -c "set session performanceMonitorInterval=5;set session performanceMonitorIterations=3600;save storageArray performanceStats file=\""c:\logs\e-series_2015-01-29_2025.csv"\";"
So I get a unique file name indicating the time the command started. windows task scheduler runs daily, weekly or monthly. I'll likely duplicate the script contents 4 times in the script so I can get 24 hrs of collections. Testing a single run with 3600 from task scheduler tonight..... then I'll do the necessary tweeks to Iterations so I can get a 24hr collection of data from one script.
Joe