SAN Health Utility

Reply
New Contributor
Posts: 3
Registered: ‎08-12-2011

Automation of reports download ?

Is there a way to automate the download of the reports from my.brocade.com ?

I have tried to use wget without luck

Any suggetions will appreciated

Regards

Michael

Occasional Contributor
Posts: 5
Registered: ‎10-31-2011

Re: Automation of reports download ?

I'm looking for the same thing, download over ftp would be nice.

atm I'm using some powershell-scripts to download the reports automaticly, maybe you can use it aswell.

to get the name of the reportfile:

$bla = Get-ChildItem C:\_sanhealth\*.BSH -name

$datei = $bla.Substring(0,29) | Out-File C:\_scripts\tmp\san-health-download.txt

Move-Item C:\_sanhealth\*.BSH C:\_sanhealth\_archiv

for downloading:

$bla= Get-Content "C:\_scripts\tmp\san-health-download.txt"
$datei = $bla.Substring(0,29)

$ie = new-object -com "InternetExplorer.Application"
$ie.navigate("http://my.brocade.com/")
$ie.visible = $true
while($ie.busy){Start-Sleep 1}
$ie.Document.getElementByID("userid").value="USERNAME"
$ie.Document.getElementByID("password").value="PASSWORD"

$ie.Document.getElementByID("login").Submit()
while($ie.busy){Start-Sleep 1}
$ie.navigate("javascript:downloadFile('$datei')")

$autoit = "C:\Program Files (x86)\AutoIt3\AutoIt3.exe"
$au3 = "C:\_scripts\autohandle.au3"
& $autoit $au3

and this autoit-script for handling ie:

WinWaitActive("File Download")

ControlSend("File Download", "","","{TAB}")

sleep(2000)

ControlSend("File Download", "","","{TAB}")

sleep(2000)

ControlSend("File Download", "","","{TAB}")

sleep(2000)

ControlSend("File Download", "","","{ENTER}")

WinWaitActive("Save As")

ControlSend("Save As", "","","{ENTER}")

WinWaitActive("Download complete")

ControlSend("Download complete", "","","{ENTER}")

WinWaitActive("My Brocade - Windows Internet Explorer")

ControlSend("My Brocade - Windows Internet Explorer", "","","{ALT}")

sleep(2000)

ControlSend("My Brocade - Windows Internet Explorer", "","","{UP}")

sleep(2000)

ControlSend("My Brocade - Windows Internet Explorer", "","","{UP}")

sleep(2000)

ControlSend("My Brocade - Windows Internet Explorer", "","","{ENTER}")

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.

vADC is now Pulse Secure
Download FREE NVMe eBook