Start a Conversation

Unsolved

This post is more than 5 years old

2509

July 19th, 2011 14:00

Kick off unisphere reports from command line

I can generate reports like Storage Groups, attached servers etc from Unisphere  Reports wizard. But i want to schedule those reports to be generated at certain time daily and stored in a folder so that I can publish those on intranet. Is there any way to create these reports (By navicli/naviseccli/java) command save these reports.

40 Posts

July 21st, 2011 00:00

you can create batch files on a server (or PC) and scheduled them as tasks to run whenever you wish

a typical batch files for collecting analyzer files would be as follows

@echo off
for /f "tokens=1,2,3 delims=/ " %%i in ('date /t') do @set TODAY=%%k%%j%%i
for /f "tokens=1,2,3 delims=/ " %%i in ('date /t') do @set YEAR=%%k

@echo

on

Naviseccli -Address hostname.SPA analyzer -archiveretrieve -File NS960-1_%TODAY%_archive_SPA.nar -Location "D:\NS960-1\analyzer" -overwrite y

Naviseccli -Address hostname.SPB analyzer -archiveretrieve -File NS960-1_%TODAY%_archive_SPB.nar -Location "D:\NS960-1\analyzer" -overwrite y

you also need to create a security auth file for the user which will be 'executing' the files

"C:\Program Files\EMC\Navisphere CLI\naviseccli" -address hostname.SPA -f security -addusersecurity -user fred -password jim -scope 0
"C:\Program Files\EMC\Navisphere CLI\naviseccli" -address hostname.SPB -f security -addusersecurity -user fred -password jim -scope 0

regards

Alick

40 Posts

July 21st, 2011 01:00

I assumed you had the Navicli sofftware installed

you can find the correct version for your OS on Powerlink

Home > Support > Software Downloads and Licensing > Downloads J-O > Navisphere Server Software

make sure you download the 7.30 (not 7.31 unless you are accessing a VNX)

the following is a batch file we use

@echo off
for /f "tokens=1,2,3 delims=/ " %%i in ('date /t') do @set TODAY=%%k%%j%%i
@echo on


naviseccli -h clariion1spa storagegroup -list > "D:\CLARiiON1\CLARiiON1_all_storagegroup_%TODAY%.txt"


naviseccli -h clariion2spa storagegroup -list > "D:\CLARiiON2\CLARiiON2_all_storagegroup_%TODAY%.txt"


naviseccli -h clariion3spa storagegroup -list > "D:\CLARiiON3\CLARiiON3_all_storagegroup_%TODAY%.txt"


naviseccli -h CX3-80-1-spa storagegroup -list > "D:\CX-380-1\CX-380-1_all_storagegroup_%TODAY%.txt"

regards

Alick

1.3K Posts

September 3rd, 2011 12:00

is there a way yto chexk  how may  users already asscoiated wih with seccliseup

1 Rookie

 • 

20.4K Posts

September 3rd, 2011 13:00

Search computer for SecuredCLIXMLEncrypted.key file …see which user has it in their directory.

No Events found!

Top