Brocade SAN Health Community

Expand all | Collapse all

Re: Automation of reports download ?

  • 1.  Re: Automation of reports download ?

    Posted 06-10-2018 06:46 PM

    Hello I am trying to use your script. I am able to scucced luanching my.brocade and navigate to SAN Health Check Report. After that autoit scipt i am unable to fetch any reports. Need your help. I don't see File Download tab now in the site. So assuming i have to change the code.


    #BrocadeSANHealthCommunity


  • 2.  Re: Automation of reports download ?

    Posted 06-12-2018 01:06 PM
      |   view attached

    Hello all,

     

    At first i cant locate link where the scripts are saved so i will put it there..

    @Antonio Bongiorno could you please move it to script page?

     

    I've played little bit arrount my.brocade and i've developed bash script.

     

    The algorithm is that it will connect via curl to my.brocade login page with credentials and generate cookies file.

    After that another curl command scrap SAN Health page to get all report names in repository

    At the last its using curl again to download .zip files

     

    It will download all reports in repository so if you want last one then you have to modify part of code where its grep report 

    names.

     

     

    At first run please setup user and pass, optionaly download path.

     

    Enjoy :)

     

     

     


    #BrocadeSANHealthCommunity

    Attachment(s)



  • 3.  Re: Automation of reports download ?

    Posted 01-21-2019 05:48 AM

    HI

     

    So it looks as if Broadcom has made changes to their website and started using OKTA to authenticate for users - so your script is now get an Error 500 as the pages do not seem to exist.

     

    Would it be possible to get this script updated or advise on how to get the script up and running again?

     

    Any help would be greatly appreciated.

     

    Thanks


    #BrocadeSANHealthCommunity


  • 4.  Re: Automation of reports download ?

    Posted 01-21-2019 07:29 AM

    All,

     

    I've messaged the SAN Health Team - look for a response shortly.

     

    Thank you for your engagement and patience.

     

    Jason

    Community Manager


    #BrocadeSANHealthCommunity
    #sanhealth


  • 5.  Re: Automation of reports download ?

    Posted 01-22-2019 06:37 AM

    Hello all,

     

    as the autentification changed, it will take some time to adusjt script.

     

    Thanks for understanding.


    #BrocadeSANHealthCommunity


  • 6.  Re: Automation of reports download ?

    Posted 01-23-2019 07:09 AM

    Hello all,

     

    Currently i have rough draft for login so i can generate session token and create SAML authentification response.

    As i curently don't have any SAN health report i need to generate dummy one to adjust new script.

     

     


    #BrocadeSANHealthCommunity


  • 7.  Re: Automation of reports download ?

    Posted 01-31-2019 06:58 AM
      |   view attached

    Hello all,

     

    i've created first draft of the script so no all exception are covered.

     

    Aditional package are needed : jq and records.

    Please edit username and password at the begining of the file before first start.

     

     

    Currently script will download all your generated reports from brocade repository.

     

     

     

     


    #BrocadeSANHealthCommunity

    Attachment(s)



  • 8.  RE: Re: Automation of reports download ?

    Posted 07-16-2019 09:04 AM
    Hi

    Have there been any changes to this script? as none of my reports are downloading - I am still able to authenticate but when it gets down to the downloading part of the script i am not getting any downloads.

    Please advise.

    Thanks

    Dayne


  • 9.  RE: Re: Automation of reports download ?

    Posted 07-16-2019 09:04 AM
    HI

    Have there been any changes to the script?

    I am still able to logon using the bash script - but none of the reports are downloading.

    Please can we investigate?


  • 10.  RE: Re: Automation of reports download ?

    Posted 07-16-2019 11:53 AM
      |   view attached
    Hello,

    it looks like that response from page has changed.
    Issue FIXED please try.



    ------------------------------
    If my answer fulfilled your question please mark the reply as "Make Best Answer"

    Kind Regards

    Marian
    ------------------------------



  • 11.  RE: Re: Automation of reports download ?

    Posted 07-16-2019 11:53 AM
      |   view attached
    Hello,

    please ignore previous post.
    I've added script with started debug. Please use script bellow.

    Issue fixed,

    there was bad parsing as the page changed.


    ------------------------------
    If my answer fulfilled your question please mark the reply as "Make Best Answer"

    Kind Regards

    Marian
    ------------------------------