UNSOLVED

wolf8963

updated

16 years ago

W

wolf8963

46 Posts

1

6464

August 30th, 2010 08:00

Another Analyzer Question

Good Morning,

I am working on a script to grab analyzer performance stats via CLI and load them into a database. My question goes all the way back to a basic understanding of Analyzer and archiving.

My system is a CX300-i running the latest FLARE code

My goal is to:

  1. Collect data from both SPs every 4 hours
  2. Archive the data
  3. Start a new archive to run for the next 4 hours
  4. Dump the previously created archive file to CSV
  5. Execute a script to load the DB



To that end I have a bat file that executes every 4 hours and (amoung others) executes the following commands:

step 2

naviseccli -h 10.x.x.x analyzer -archiveretrieve -file Cx300i_SPA.nar -location c:\path -Overwrite y -Retry 2 -v
naviseccli -h 10.x.x.x analyzer -archiveretrieve -file Cx300i_SPB.nar -location c:\path -Overwrite y -Retry 2 -v

ren Path\Cx300i_SPA.nar "Cx300i_SPA_%date%_%MTime%.nar"
ren Path\Cx300i_SPB.nar "Cx300i_SPB_%date%_%MTime%.nar"

naviseccli -h 10.94.35.2 analyzer -archive -delete -all -o
naviseccli -h 10.94.32.4 analyzer  -archive -delete -all -o

Step 3

naviseccli -h 10.94.35.2 analyzer -archive -new
naviseccli -h 10.94.32.4 analyzer  -archive -new

Step 4

naviseccli analyzer -archivedump -data C:\San\Analyzer\"Cx300i_SPA_%date%_%MTime%.nar"  C:\San\Analyzer\"Cx300i_SPB_%date%_%MTime%.nar"  -out tempdump.csv -join  -overwrite y

I am not getting the results I expected and I believe it is because of my misunderstanding the process. In the above, I have to sleep for 20 minutes between the deletion of the old archives and creation of the new archives because it doesnt think there are 10 intervals present. That suggests the archive need not be created for the accumulation of data to take place.

My thought was that the following is what really happens:

  • Turn analyzer on to always run
  • It accumulates data even though an archive file has not been created
  • When an archive file is created, it transfers the collected data into the archive file
  • When an archive retrieve is executed, the just-created archive file is saved to disk as an NAR
  • The old archive files can then be deleted



Is this a correct understanding? If so, that would suggest the order of my script should be (with analyzer already running):

  • wait 4 hours
  • create archive (analyzer -archive -new)
  • grab archive (-archiveretrieve -file Cx300i_SPA.nar or B)
  • delete old archives to start fresh accumulation (analyzer  -archive -delete -all)
  • dump .NAR files to csv (analyzer -archivedump -data path\"Cx300i_SPA_%date%_%MTime%.nar"  path\"Cx300i_SPB_%date%_%MTime%.nar"  -out tempdump.csv -join  -overwrite y)
  • call script to import data

Can anyone clarify my thinking on this? I looked in the Anayzer manual but it seemed to be geared more toward the mechanics of the commands than to this type of question.

Thanks for your help,

W