AnsweredAssumed Answered

Running HDS Storage Collection Script

Question asked by Jegar Priddle on Apr 29, 2014
Latest reply on May 8, 2015 by ERIEK REGANDONO

Hi All, I'm currently running the following

rem HDS Storage Collection Script

echo off

echo This script gathers performance data from Hitachi Data Systems Storage Arrays

echo As this uses the Storage Navigator Modular 2 CLI, it is intended to support

echo all HDS Mid-Tier (DF) Storage Arrays: AMS, WMS and 9200/9500v's.

echo.

echo The directory containing auperform must be in the PATH

echo.

echo Please consult HDS for more information

echo https://tuf.hds.com/gsc/bin/view/Main/DFPerformance

echo

echo --------------

echo Logging in, please enter permissions

echo ----------------

 

set PATH=%PATH%;"c:\program files\storage navigator modular 2 cLi";"c:\program files\storage navigator modular 2 cLi";"c:\program files (x86)\storage navigator modular 2 cLi";"c:\program files (x86)\storage navigator modular 2 cLi"

SET STONAVM_HOME=C:\program files (x86)\Storage Navigator Modular 2 CLI

set LANG=en

 

set /p UNITNAME=Please enter your system name:

echo Attempting to login to %UNITNAME%

 

set /p USERNAME=Please enter your username:

auaccountenv -set -uid %USERNAME%

 

aulogin -unit %UNITNAME%

 

 

 

echo Default is to collect 2 days of stats, at 10 minute intervals.

echo You may edit this script to collect fewer days, such as 2 days

 

rem ----- edit these parameters to change scan frequency -----

set NUMSAMPLES=288

set INTERVAL=10

rem ----------------------------------------------------------

 

SET STONACM_ACT=on

set STONAVM_RSP_PASS=on

set CMDF_NOASK=on

 

set TEMPDIR=%TEMP%\hdsquick

mkdir %TEMPDIR%

cd %TEMPDIR%

 

 

echo Writing data to %TEMPDIR%

 

date /t > %TEMP% > %TEMPDIR%\hdsquick_date.out

time /t > %TEMP% > %TEMPDIR%\hdsquick_time.out

echo %NUMSAMPLES% %INTERVAL% > %TEMPDIR%\hdsquick_samplesinterval.out

 

echo Enabling Data Collection

 

aupfmstatiscfg -unit %UNITNAME% set -port start -rglu start -cache start -processor start -drive start -driveopr start -backend start

aupfmstatiscfg -unit %UNITNAME% refer

 

echo Collecting Configuration

 

auconstitute -unit %UNITNAME% -export -hg %TEMPDIR%\hdsquick_hg.out 2>%TEMPDIR%\hdsquick_hg.err

auconstitute -unit %UNITNAME% -export -sysp %TEMPDIR%\hdsquick_sysp.out 2>%TEMPDIR%\hdsquick_sysp.err

auconstitute -unit %UNITNAME% -export -port %TEMPDIR%\hdsquick_port.out 2>%TEMPDIR%\hdsquick_port.err

auconstitute -unit %UNITNAME% -export -bootopt %TEMPDIR%\hdsquick_bootopt.out 2>%TEMPDIR%\hdsquick_bootopt.err

auconstitute -unit %UNITNAME% -export -config %TEMPDIR%\hdsquick_config.out 2>%TEMPDIR%\hdsquick_config.err

auconstitute -unit %UNITNAME% -export -parts %TEMPDIR%\hdsquick_parts.out 2>%TEMPDIR%\hdsquick_parts.err

ausyspout -unit %UNITNAME% -file %TEMPDIR%\hdsquick_ausyspout.out 2>%TEMPDIR%\hdsquick_ausyspout.err

auconfigout -unit %UNITNAME% -file %TEMPDIR%\hdsquick_auhgout.out 2>%TEMPDIR%\hdsquick_auhgout.err

auhgout -unit %UNITNAME% -file %TEMPDIR%\hdsquick_auhgout.out 2>%TEMPDIR%\hdsquick_auhgout.err

aumluref -unit %UNITNAME% > %TEMPDIR%\hdsquick_aumluref.out 2>%TEMPDIR%\hdsquick_aumluref.err

 

echo Beginning performance collection. Please leave script running.

 

auperform -unit %UNITNAME% -auto %INTERVAL% -pfmstatis -count %NUMSAMPLES% > %TEMPDIR%\hdsquick_perf.out 2>%TEMPDIR%\hdsquick_perf.err

date /t > %TEMP% > %TEMPDIR%\hdsquick_date2.out

time /t > %TEMP% > %TEMPDIR%\hdsquick_time2.out

 

echo Logging out

 

auaccountenv -rm 2>%TEMPDIR%\hdsquick_auaccountenv.err

aulogout -unit %UNITNAME% 2>%TEMPDIR%\hdsquick_aulogout.err

 

explorer .

echo Collection is complete. Please zip all files in the %TEMPDIR% directory

echo Note: You may disable stat collection using the aupfmstatiscfg command

pause

 

When this runs, it errors out and gives DMEC002016: Illegal Option Set

I've googled the error code and found nothing.

Can someone please shed some light as to what is happening?

Outcomes