Thomas, Timothy B | 13 Jun 2012 02:12
Favicon
Gravatar

Firmware Automation

NetApp states this is “unsupported”, so I’m posting this here for ideas.

 

For the last 10 years or so we have used a process to automatically download and push disk and shelf firmware to the filers.

The process begins with a wget to grab the all.tar file:

wget --http-user=userid --http-passwd=password -P /path/to/put/it http://download.netapp.com/download/tools/diskfw/bin/all.gz

 

Now with the recent changes on the support site this year, that method no longer works.

                I tracked down the new location and tried this:

wget --http-user=userid --http-passwd=password -P /path/to/put/it http://support.netapp.com/NOW/download/tools/diskfw/bin/all.gz

                but it fails, even with a few other flags I tried, the best I could get was a login.html file downloaded.

 

So it’s clear that Netapp is redirecting the request for authentication.

 

I looked into wget a further and tried to login, grab the cookies, save them to a file and then use that authentication to grab the file, no luck there either.

 

wget --no-check-certificate --keep-session-cookies --save-cookies cookies.txt --post-data 'user=userid&password=password&postpreservationdata=""' https://login.netapp.com/oamforms/login.html

wget --no-check-certificate --load-cookies cookies.txt -P /path/to/put/it http://support.netapp.com/NOW/download/tools/diskfw/bin/all.gz

 

 

So that’s my dilemma. I’m looking for ideas, work arounds, other implementations, anything so I can automate the download of the all.gz and the all_shelf_fw.tar files.

From there my process will continue as before.

 

Thanks in advance!

 

Tim

_______________________________________________
Toasters mailing list
Toasters <at> teaparty.net
http://www.teaparty.net/mailman/listinfo/toasters
Robin Kara | 13 Jun 2012 06:19
Picon
Gravatar

Re: Firmware Automation

Hi Timothy,

I think you have to bother with libmechanize in the scripting language of your choise. IIRC the new SSO-Mask
also does some evil JavaScript submit things, but I was able to work around this in a few minutes.. 

For ruby, see: http://mechanize.rubyforge.org/EXAMPLES_rdoc.html

Regards,
Robin

--
Robin Kara
Consultant/Trainer/Training Supervisor (IHK)

teamix GmbH
Solide IT-Infrastruktur
Südwestpark 35
90449 Nürnberg

fon:       +49 (911) 30999- 0
fax:       +49 (911) 30999-99
mail:      rk <at> teamix.de
NEW xmpp:  rk <at> jabber.teamix.de
web:       http://www.teamix.de
gpg:       87DC 45A5 ED5B 8460 4BF8
           A07D 0D0D D5E1 7B4B 65CD

Handelsregister: Nürnberg, HRB 18320
Geschäftsführer: Oliver Kügow, Richard Müller

----- Ursprüngliche Mail -----
Von: "Timothy B Thomas" <timothy.b.thomas <at> lmco.com>
An: toasters <at> teaparty.net
Gesendet: Mittwoch, 13. Juni 2012 02:12:10
Betreff: Firmware Automation

NetApp states this is “unsupported”, so I’m posting this here for ideas. 

For the last 10 years or so we have used a process to automatically download and push disk and shelf firmware
to the filers. 

The process begins with a wget to grab the all.tar file: 

wget --http-user=userid --http-passwd=password -P /path/to/put/it
http://download.netapp.com/download/tools/diskfw/bin/all.gz 

Now with the recent changes on the support site this year, that method no longer works. 

I tracked down the new location and tried this: 

wget --http-user=userid --http-passwd=password -P /path/to/put/it
http://support.netapp.com/NOW/download/tools/diskfw/bin/all.gz 

but it fails, even with a few other flags I tried, the best I could get was a login.html file downloaded. 

So it’s clear that Netapp is redirecting the request for authentication. 

I looked into wget a further and tried to login, grab the cookies, save them to a file and then use that
authentication to grab the file, no luck there either. 

wget --no-check-certificate --keep-session-cookies --save-cookies cookies.txt --post-data
'user=userid&password=password&postpreservationdata=""'
https://login.netapp.com/oamforms/login.html 

wget --no-check-certificate --load-cookies cookies.txt -P /path/to/put/it
http://support.netapp.com/NOW/download/tools/diskfw/bin/all.gz 

So that’s my dilemma. I’m looking for ideas, work arounds, other implementations, anything so I can
automate the download of the all.gz and the all_shelf_fw.tar files. 

From there my process will continue as before. 

Thanks in advance! 

Tim 
_______________________________________________
Toasters mailing list
Toasters <at> teaparty.net
http://www.teaparty.net/mailman/listinfo/toasters

_______________________________________________
Toasters mailing list
Toasters <at> teaparty.net
http://www.teaparty.net/mailman/listinfo/toasters

Gmane