Wireless Access

last person joined: 19 hours ago 

Access network design for branch, remote, outdoor, and campus locations with HPE Aruba Networking access points and mobility controllers.
Expand all | Collapse all

Can I download new version via CLI

This thread has been viewed 3 times
  • 1.  Can I download new version via CLI

    EMPLOYEE
    Posted Aug 07, 2013 09:55 AM

    Hi,

     

    Just wondering if from Airwave, I can download a new version of the upgrade package using wget or similar, so that it's ready to be used at a later date?

     

    Thanks



  • 2.  RE: Can I download new version via CLI

    EMPLOYEE
    Posted Aug 07, 2013 11:24 AM

    If your plan is to download now and upgrade later, grabbing the file from the support site over http is the recommended method.



  • 3.  RE: Can I download new version via CLI

    EMPLOYEE
    Posted Aug 07, 2013 12:35 PM

    True, but by the time I go through a couple of vpns and half way round the world to the customers Airwave, it is rather slow.  Would be much quicker direct from their Airwave.

     

    I got there in the end after about 6 hours. :smileywink:



  • 4.  RE: Can I download new version via CLI

    EMPLOYEE
    Posted Aug 07, 2013 12:45 PM

    I can see where the pain point is, but the current script will do the download and then launch the upgrade.  Let me see what can be done (may take a while for me to figure it out).



  • 5.  RE: Can I download new version via CLI

    EMPLOYEE
    Posted Aug 07, 2013 12:47 PM

    ok, thanks for that.  I'm thinking something like an 'amp_download' script that just downloads, but doesn't actually start the process of upgrading.



  • 6.  RE: Can I download new version via CLI

    Posted Aug 08, 2013 04:02 PM

    i'd suggest you post the idea on the ideas portal anyway so the PLM's actually see it.

     

    I like that idea very much.

    amp_download -v 7.7.3 for example.

     

    Stores the file in /root where it needs to be...



  • 7.  RE: Can I download new version via CLI

    Posted Aug 08, 2013 04:48 PM

    Before the SSO changes at Aruba's website, I was able to wget the file from the support site.

    I downloaded the file from my desk, and copied the URL from my browser to the CLI in Airwave.

     

    Not sure how it'll work with SSO...



  • 8.  RE: Can I download new version via CLI

    EMPLOYEE
    Posted Aug 08, 2013 05:49 PM

    (edit - added *.patch so that it could attach to the forum thread

    remove .patch from the filename and then it should work as below

    or just add the .patch to the script run command)

     

    Add the attached script into /var/airwave/custom

     

    Then run as:

    # cd /var/airwave/custom

    # ./download_amp_image -v 7.7.3

    It will prompt for Aruba support site credentials and then download the upgrade tarball into /root

     

    (if you just run as ./download_amp_image, it'll just add another prompt entry for desired  image if you don't want to use the -v flag)

     

    I'll see what else I can do to get it (or something similar) added to the code source with an easier tab completing bash alias.

     

    If you have any issues, the script may require dos2unix (you'll have to yum install the package) and permission change

    # yum install -y dos2unix

    # dos2unix download_amp_image

    # chmod 777 dos2unix



  • 9.  RE: Can I download new version via CLI

    Posted Aug 09, 2013 08:41 AM
    This is beautiful Rob. Haven't tested it yet but I am looking at the code now.

    Thanks so much. !!


  • 10.  RE: Can I download new version via CLI

    Posted Aug 09, 2013 04:18 PM

    I came up with a simplified solution that adds a -download_only (-d) flag to the existing start_upgrade script. You can copy the attached patch into /var/airwave/custom before applying it and running make:

     

    # cd /root/svn/mercury

    # patch -p0 < /var/airwave/custom/download_upgrade.patch

    # make

     

    Afterwards, you'll be able to run start_amp_upgrade -d to download the file without starting the upgrade. The patch also adds a download_upgrade alias to the .bashrc, so that command will work on subsequent logins (eg. download_upgrade -v 7.7.3).

     

    I tested things on 7.7.3, but the patch should probably apply cleanly to any 7.7 version.

     

    Enjoy!



  • 11.  RE: Can I download new version via CLI

    EMPLOYEE
    Posted Aug 30, 2013 09:55 AM

    I tried Rob's solution, but got the following error.

     

    [root@amp custom]# ./download_amp_image -v 7.7.4
    "use" not allowed in expression at ./download_amp_image line 10, at end of line
    syntax error at ./download_amp_image line 10, near "Aruba
    # Networks, Inc.
    # Any use, reproduction, disclosure or dissemination is strictly
    prohibited
    # without the explicit written permission of Aruba Networks, Inc.
    # All rights reserved.
    use strict"
    BEGIN not safe after errors--compilation aborted at ./download_amp_image line 11.

     



  • 12.  RE: Can I download new version via CLI

    EMPLOYEE
    Posted Aug 30, 2013 10:00 AM

    Try Aaron's solution since it's the one that's most likely to make it into the code.



  • 13.  RE: Can I download new version via CLI

    Posted Jan 29, 2014 03:24 PM

    Any chance this is making into the code???