EMC – naviseccli – how to retrieve an Analyzer archive file

This is a quick and dirty post, but it might be handy if you’re trying to get hold of a current snapshot of a VNX or CX4’s performance. I’ll try and do some more thorough documentation over the summer (that’s now for those of us south of the equator).

In the olden days, you used to have to use  archiveretrieve.jar (included with Navisphere CLI) to retrieve Analyzer archive files. Now it’s built in to naviseccli. So here’s how to create and download an archive file from your VT-420.

Microsoft Windows [Version 5.2.3790]

(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\dan>naviseccli -h SPA -user dan -scope 2 analyzer -archiveretrieve -file test.nar -location c:\temp -v

Enter password:

Launching create archive

Creation of archive is complete.

Attempting to retrieve file from array

Retrieve is complete.

C:\Documents and Settings\dan>cd \temp

C:\temp>dir

Volume in drive C has no label.

Volume Serial Number is 74AA-B144

Directory of C:\temp

12/12/2011 07:40 AM <DIR> .

12/12/2011 07:40 AM <DIR> ..

12/12/2011 07:40 AM 1,178,304 test.nar

20/01/2010 12:17 PM 38,000 trap_eventlog.cfg

22/10/2010 10:52 AM 0 vlan.log

3 File(s) 1,216,304 bytes

0 Dir(s) 8,520,433,664 bytes free

C:\temp>

In this example I’m using  -scope 2 to specify that I’m using LDAP credentials, -file to specify a file name for the archive (traditionally with a .nar extension), -location to specify the location of the downloaded file, and -v to tell me what’s going on. I hope that’s useful and like I said I’ll try and talk some more about scripted archive manipulation and stuff in the near future.