I am wondering how I can automate the delivery of my analyzer logs on my cx340 and cx320's.
At the moment I manually look a the logs but it would be useful to be able to automate the merging of say a weeks worth of logs and then have them emailed to me ?
Mark, Like ovivier I collect the analyzer files but don't merge them. I keep about two months worth of .nar files for historical analysis of the array. My management station is a windows host and I use the scheduler to run the following batch script every day.
-------- Begin Script ------ REM Analyzer Archive Retrieve Script
@echo off
echo Dumping analyzer data from SPA on all arrays...
As you can see I only collect .nar files from SPA since I don't need files from both SPs to collect and analyze array performance. This way I don't have to worry about merging files from different SPs. Also since the naviagent and array are on FLARE 26 I use naviseccli. But the user profile that the script is run under has a authorization file already created so authentication is handled using that method.
I have automated the daily copy of NAR files to a UNIX directory : - install Analyzer CLI - write a script using archiveretrieve.jar (included in Analyzer CLI) which collect the NAR files from each SP of your CX. - put the script in a scheduler
I have seen that you can use archivemerge.jar (also included in Analyzer CLI) to merge NAR files, but I have never used it as I want to keep maximum information. When you merge NAR files you have less points in graphics.
Remember to not merger SPA and SPB NAR files, only SPA to SPA or SPB to SPB.
Also, the number of data points displayed when you open a NAR file is fixed - about 255 points. If you merge 5 NAR files, some of the points will not be shown, they are in the merged file, but will not display.
Dennis, The merging is just for files from the same SP. So if I want to see the performance statistics for the week I merge the Monday through Friday .nar files from SPA or SPB.
When merging NAR files always use NAR files from the same SP.
So, if you have SPA and SPB NARs from Monday and SPA and SPB NAR files from Tuesday, only merge the SPA NAR files from Monday and Tuesday or the SPB NAR files from Monday and Tuesday. Do not merge SPA and SPB NARs together.
Merges Analyzer archive files Description The archivemerge Java command line application merges two archive files.
Note: The archivemerge.jar command recognizes and reports an error message when you try to open an encrypted archive file . The navicli.jar is not required for the archivemerge command to run.
Informs the merger to merge data of two archive files that you specify.
-out filename
Specifies a filename to which to write the merged archive. Use quotes around the filename if it has spaces If you do not specify this switch, the output merged file will be in the current directory with the default name (the current time stamp with the .nar extension.
-overwrite y|n
Specifies whether or not to overwrite an existing archive file on the client system.
y = Overwrite existing file n = Do not overwrite existing file
AranH1
2163 Posts
527
0
Posted July 16th, 2008 13:00
Like ovivier I collect the analyzer files but don't merge them. I keep about two months worth of .nar files for historical analysis of the array. My management station is a windows host and I use the scheduler to run the following batch script every day.
-------- Begin Script ------
REM Analyzer Archive Retrieve Script
@echo off
echo Dumping analyzer data from SPA on all arrays...
cd "C:\Program Files\EMC\Navisphere CLI"
naviseccli -h w.x.y.z analyzer -archiveretrieve -file Cx3-80a_SPA.nar -location c:\SAN\Analyzer\Cx3-80a -Overwrite y -Retry 2 -v
naviseccli -h w.x.y.z analyzer -archiveretrieve -file Cx700a_SPA.nar -location c:\SAN\Analyzer\Cx700a -Overwrite y -Retry 2 -v
naviseccli -h w.x.y.z analyzer -archiveretrieve -file Cx700b_SPA.nar -location c:\SAN\Analyzer\Cx700b -Overwrite y -Retry 2 -v
naviseccli -h w.x.y.z analyzer -archiveretrieve -file Cx3-20a_SPA.nar -location c:\SAN\Analyzer\Cx3-20a -Overwrite y -Retry 2 -v
echo Renaming files to inlcude date stamp
FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET CDATE=%%B
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set date=%%a%%b%%c)
ren c:\SAN\Analyzer\Cx3-80a\Cx3-80a_SPA.nar "%date%_Cx3-80a_SPA.nar"
ren c:\SAN\Analyzer\Cx700a\Cx700a_SPA.nar "%date%_Cx700a_SPA.nar"
ren c:\SAN\Analyzer\Cx700b\Cx700b_SPA.nar "%date%_Cx700b_SPA.nar"
ren c:\SAN\Analyzer\Cx3-20a\Cx3-20a_SPA.nar "%date%_Cx3-20a_SPA.nar"
exit
----- End Script ----
As you can see I only collect .nar files from SPA since I don't need files from both SPs to collect and analyze array performance. This way I don't have to worry about merging files from different SPs. Also since the naviagent and array are on FLARE 26 I use naviseccli. But the user profile that the script is run under has a authorization file already created so authentication is handled using that method.