This post is more than 5 years old
1 Message
0
1727
July 16th, 2008 04:00
Merging CX Analyzer Logging
Hi there,
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 ?
Is this possible please.
Thanks in advance.
Regards
Mark
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 ?
Is this possible please.
Thanks in advance.
Regards
Mark
No Events found!


AranH1
2.2K Posts
0
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.
ovivier
142 Posts
1
July 16th, 2008 05:00
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.
Hope this help
kelleg
6 Operator
•
4.5K Posts
1
July 16th, 2008 12:00
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.
glen
sarpydog
2 Intern
•
360 Posts
0
July 26th, 2008 20:00
So the merging functions just use for the same SP files, not for SPA and SPA merging at a period.
Is above right?
Thanks,
Dennis
AranH1
2.2K Posts
0
July 28th, 2008 08:00
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.
Does that make sense?
Aran
kelleg
6 Operator
•
4.5K Posts
0
July 28th, 2008 09:00
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.
glen
sarpydog
2 Intern
•
360 Posts
0
August 2nd, 2008 06:00
Dennis
gem_guy
60 Posts
0
September 12th, 2008 10:00
kelleg
6 Operator
•
4.5K Posts
0
September 23rd, 2008 10:00
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.
Format
The archivemerge.jar command is used as follows.
java -jar archivemerge.jar -data archive1 archive2 [-out filename] [-overwrite y|n] [-Help]
where
-data archive1 archive2
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
-Help
Displays command usage.
Example
java -jar archivemerge.jar -data C:\Temp\archive1.nar C:\Temp\archive2.nar -out C:\Temp\mergedArchive.nar
This command merges the file C:\Temp\archive1.nar and C:\Temp\archive2.nar and writes the merged archive in C:\Temp\mergedArchive.nar.
glen
ChipHeaton
11 Posts
0
March 24th, 2009 14:00
C:\Temp\archive2.nar -out C:\Temp\mergedArchive.nar
This command merges the file C:\Temp\archive1.nar and
C:\Temp\archive2.nar and writes the merged archive in
C:\Temp\mergedArchive.nar
Nevermind, I finally answered my own question.
-Chip
Message was edited by:
ChipHeaton
RyanP2
261 Posts
0
March 31st, 2009 13:00
The analyzer display in Navisphere can only display 156 data points, so depending on the time frame you specify (say Monday through Thursday worth of data) it will begin merging data points to satisfy this 156 point requirement. Then a two minute average turns into an average of say 1.5 hours and the data is basically useless. This is the main reason why some people do not merge files together.
The merged file does however have all of the data points, so if you wanted to dump them out to a .csv say and import them to excel, you can manipulate the data from there. Also if viewing in Navisphere you can specify shorter time frames when opening the files and the averaging will be less than viewing the file as a whole.
-Ryan