Home > Storage > Automating NAR file collection

Automating NAR file collection

Navisphere Analyzer is the performance analysis tool that comes along with Navisphere/Unisphere. Not many people realize the importance of this tool or the capability of the tool. This is one tool that every EMC admin must be aware of and the amount of detailed information that this tool can show for the Storage System is simply amazing.Richard Anderson has been writing a series of posts on collection and Analysis on NAR files over here at Storagesavvy . This post will however will show a small script based on Navisphere CLI that would help automate the process of NAR collection which otherwise is a tedious process and also avoid losing NAR files due to periodic archiving.

Requirements:

  • FLARE 26 and above
  • Latest version of Navisphere CLI
  • Licensed Navisphere/Unisphere  Analyzer ( Since these commands would work only against them)

Install Navisphere CLI on a workstation or server.

Create a batch file similar to one shown below and save it as you like , I saved it as “RetrieveNAR.bat” :

For /f “tokens=2-4 delims=/ ” %%a in (‘date /t’) do (set date=%%a-%%b-%%c)
For /f “tokens=1-3 delims=: ” %%a in (‘time /t’) do (set time=%%a-%%b-%%c)

NaviSECCli.exe -h -user -password -scope 0 analyzer -archiveretrieve -file %date%-%time%-Serial#-SPA.nar -Location “E:\EMC_NAR_Files”

NaviSECCli.exe -h -user -password -scope 0 analyzer -archiveretrieve -file %date%-%time%-Serial#-SPB.nar -Location “E:\EMC_NAR_Files”

where

  • User – Can be global user with read only access also
  • Location – Path where you want to store the NAR files
  • Serial# – Serial Number of the array

Create a schedule task in your workstation to run this batch file every xx interval where  xx is based on the archive interval that you have set on the array. I run it for every 12 hours. Every 12 hours it will automatically create and retrieve the NAR file and save it in the location specified.

  • If the archive interval is 600 seconds, run the program every 24 hours
  • If the archive interval is 300 seconds, run the program every 12 hours
  • If the archive interval is 120 seconds, run the program every 5 hours
  • If the archive interval is 60 seconds, run the program every 2.5 hours

Advertisements
Categories: Storage Tags: ,
  1. RajniKanth
    April 28, 2011 at 9:23 pm

    Nice Article! Do you know how to automate getting free space report from CX arrays? Right now we take the report manually weekly so we don’t out of space. Please share with me if you have any idea

  2. April 28, 2011 at 11:53 pm

    Thanks !! Do you mean the RAID group report or the LUN report and which FLARE version are you running ?

    • RajniKanth
      May 3, 2011 at 10:20 pm

      Raid group report, unbound disks, thin pool utilization, etc.

      currently we generate report from navi ui, but it takes longer and we spent cycles. I cant figure out from naviseccli .

      mostly FLARE 29.14, but have some cx3 with 26 as well.

      Thin 15K R5 300GB
      Thin 15K R5 300GB
      Thin SATA 7.2K 1TB Archived Data available
      Traditional R5 SATA usable available = 0 GB
      Traditional R5 FC usable available = 219 GB
      Traditional R10 FC usable available = 1586 GB
      Total raw SATA capacity available = 8287 GB
      Total raw FC capacity available = 6834 GB

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: