VNX: How to create NAR files
Summary: How NAR files are created through Unisphere Analyzer.
Instructions
Unisphere is designed to log in to either SP and control the array. Unisphere ask for the "peer" SP the first; and if you always accept Certificates it may not do so in the future. However it is getting information from both SP's to display.
Thus for analyzer, it is designed to be started or stopped from either SP, and is running for both. There are exceptions if an SP is not responding when starting the analyzer. In that case we stop all the anlayzer settings, restart the management server, then turn the analyzer back on.
From either SP on Unisphere:
- Turn on Statistics Logging under System -> System Properties on the General Tab
- From the Data Logging window under System -> Monitoring&Alerts -> StatisticsforBlock -> PerformanceDataLogging, the following is done/seen. Current status of logging data; start/stop data logging; change values of the polling interval. This is affective for BOTH SPs.
- Confirm from the Retrieve Archives. There you pick the SP that you want to pull the logs from. Each SP should have an archive file of approximately the same time.
It takes a minimum of 10 polls to create a file so the first file cannot be there until 10x the polling rates' seconds setting.
From cli commands, we can also see anlayzer.
These commands are mostly specific to the SP picked so it is recommended to check on each for best confirmation.
If you create a Security file for naviseccli on your computer, then the command can be shortened to below examples; I substituted "vnxa" or "vnxb" as the ipaddress.
Pick either the ipaddress of SPa or SPb to confirm at an SP level.
From the CS-Control station of a unified array, the format is "/nas/sbin/navicli -h <spa or spb> analyzer -xxxxxxx"
Here is the options list, followed by examples:
C:\>naviseccli -h vnxa analyzer - Invalid Command. Invalid command line parameters. usage: analyzer -set <-narinterval seconds> <-rtinterval seconds> <-nonstop | -logperiod days> <-periodicarchiving 0|1> <-default> -get <-narinterval> <-rtinterval> <-logperiod> <-periodicarchiving> -logging <-reset> -start -stop -status -archive <-list> <-path path> <-o> <-all | -file filenames> <-delete> <-new | -statusnew filename> naviseccli -h <vnxa/vnxb> analyzer -status naviseccli -h <vnxa/vnxb> analyzer -get naviseccli -h <vnxa/vnxb> analyzer -stop naviseccli -h <vnxa/vnxb> analyzer -start naviseccli -h <vnxa/vnxb> analyzer -archive -list repeat on each SP as desired to confirm/make changes or retrieve files as needed.
Below is a sample output. This shows that the Unisphere works from either SPa or SPb and set the feature/options on both SPs.
C:\Users\schilt>naviseccli -h vnxa analyzer -status Stopped on 02/03/2016 01:44:55
I then started the Data Logging from Unisphere and checked from cli:
C:\>naviseccli -h vnxa analyzer -status Running. Started on 02/17/2016 00:18:28 C:\>naviseccli -h vnxb analyzer -status Running. Started on 02/17/2016 00:18:28 C:\>naviseccli -h vnxa analyzer -get Archive Poll Interval (sec): 60 Real Time Poll Interval (sec): 60 Periodic Archiving: Yes Current Logging Period (day): 1 C:\>naviseccli -h vnxb analyzer -get Archive Poll Interval (sec): 60 Real Time Poll Interval (sec): 60 Periodic Archiving: Yes Current Logging Period (day): 1
Stop the analyzer from Unisphere and display the archive files from cli removing the excess files listed.
C:\>naviseccli -h vnxa analyzer -status Stopped on 02/17/2016 00:46:04 C:\>naviseccli -h vnxb analyzer -status Stopped on 02/17/2016 00:45:40 C:\>naviseccli -h vnxa analyzer -archive -list Index Size in KB Last Modified Filename 0 87 09/19/2013 08:10:33 Serial-Number_SPA_2013-09-19_13-10-33-GMT_M06-00.nar 39 120 02/03/2016 00:44:54 Serial-Number_SPA_2016-02-03_06-44-54-GMT_M06-00.nar 40 94 02/16/2016 23:46:03 Serial-Number_SPA_2016-02-17_05-46-03-GMT_M06-00.nar C:\Users\schilt>naviseccli -h vnxb analyzer -archive -list Index Size in KB Last Modified Filename 0 90 09/19/2013 08:12:36 Serial-Number_SPB_2013-09-19_13-12-35-GMT_M06-00.nar 39 121 02/03/2016 00:44:55 Serial-Number_SPB_2016-02-03_06-44-54-GMT_M06-00.nar 40 95 02/16/2016 23:45:39 Serial-Number_SPB_2016-02-17_05-45-39-GMT_M06-00.nar