Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Netapp: toasters

Firmware Automation

 

 

Netapp toasters RSS feed   Index | Next | Previous | View Threaded


timothy.b.thomas at lmco

Jun 12, 2012, 5:12 PM

Post #1 of 2 (435 views)
Permalink
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


rk at teamix

Jun 12, 2012, 9:19 PM

Post #2 of 2 (412 views)
Permalink
Re: Firmware Automation [In reply to]

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
NEW xmpp: rk [at] jabber
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>
An: toasters [at] teaparty
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
http://www.teaparty.net/mailman/listinfo/toasters

_______________________________________________
Toasters mailing list
Toasters [at] teaparty
http://www.teaparty.net/mailman/listinfo/toasters

Netapp toasters RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.