Unsolved
This post is more than 5 years old
9 Posts
0
2509
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.
helenjay69
40 Posts
0
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
helenjay69
40 Posts
0
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
SKT2
1.3K Posts
0
September 3rd, 2011 12:00
is there a way yto chexk how may users already asscoiated wih with seccliseup
dynamox
1 Rookie
1 Rookie
•
20.4K Posts
0
September 3rd, 2011 13:00
Search computer for SecuredCLIXMLEncrypted.key file …see which user has it in their directory.