Wireless Access

 View Only
  • 1.  AP 635 RestAPI /rest/os-upgrade

    Posted Apr 25, 2023 01:01 AM

    I tested the /rest/os-upgrade, but it does not seem to work, here is what I see:

    Is it possible to upgrade AP 635 FW using restAPIs, I tried using the command below. Note that 635 uses Norma  AP class, but I don't see that as part of the urls options

    curl "${REST_API_URL}/rest/os-upgrade?&sid=$SID" -H "Content-Type:application/json" --data @os-upgrade.json --insecure
    Where os-upgrade.json contains:

    {"upgrade-info" :

        {

            "auto-reboot""yes",

            "Centaurus-url""tftp://192.168.1.1/ArubaInstant_Norma_8.10.0.6_86193"

        }

    }

    It returns: 

    Returns:

    {

    "Status-code": 6,

    "message""Error from Internal module: Malformed URL"

    }


    The logs show: 
    Aug 31 21:04:55 2022 192.168.1.3 AP:oaktree <192.168.1.3 94:64:24:C3:F4:06> syslog: retrieve_api_id: api:os-upgrade
    Aug 31 21:04:55 2022 192.168.1.3 AP:oaktree <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler:i:0, platform: Centaurus, tmp_platform_str:Centaurus-url
    Aug 31 21:04:55 2022 192.168.1.3 AP:oaktree <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler: i: url value:tftp://192.168.1.1/ArubaInstant_Norma_8.10.0.6_86193, prepared image_url:Centaurus@tftp://192.168.1.1/ArubaInstant_Norma_8.10.0.6_86193
    Aug 31 21:04:55 2022 192.168.1.3 AP:oaktree <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler:i:1, platform: Lupus, tmp_platform_str:Lupus-url
    Aug 31 21:04:55 2022 192.168.1.3 AP:oaktree <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler:i:2, platform: Hercules, tmp_platform_str:Hercules-url
    Aug 31 21:04:55 2022 192.168.1.3 AP:oaktree <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler:i:3, platform: Vela, tmp_platform_str:Vela-url
    Aug 31 21:04:55 2022 192.168.1.3 AP:oaktree <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler:i:4, platform: Draco, tmp_platform_str:Draco-url
    Aug 31 21:04:55 2022 192.168.1.3 AP:oaktree <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler:i:5, platform: Ursa, tmp_platform_str:Ursa-url
    Aug 31 21:04:55 2022 192.168.1.3 AP:oaktree <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler:i:6, platform: Aries, tmp_platform_str:Aries-url
    Aug 31 21:04:55 2022 192.168.1.3 AP:oaktree <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler:i:7, platform: Scorpio, tmp_platform_str:Scorpio-url
    Aug 31 21:04:55 2022 192.168.1.3 AP:oaktree <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler:i:8, platform: Gemini, tmp_platform_str:Gemini-url
    Aug 31 21:04:55 2022 192.168.1.3 AP:oaktree <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler: urls_found:1, reboot:1, image_url:Centaurus@tftp://192.168.1.1/ArubaInstant_Norma_8.10.0.6_86193
    Aug 31 21:04:55 2022 192.168.1.3 AP:oaktree <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler: oper_id:000003, oper_log:/tmp/oper_000003.log, reboot:1
    Aug 31 21:04:55 2022 192.168.1.3 cli[8516]: <341093> <ERRS> AP:oaktree <192.168.1.3 94:64:24:C3:F4:06>  recv_image_upgrade_urls: 2314: required class 25 not found in payload.
    Aug 31 21:04:55 2022 192.168.1.3 cli[8516]: <341095> <ERRS> AP:oaktree <192.168.1.3 94:64:24:C3:F4:06>  recv_image_upgrade_urls: url is NULL!.
    Aug 31 21:04:55 2022 192.168.1.3 cli[8516]: <341004> <WARN> AP:oaktree <192.168.1.3 94:64:24:C3:F4:06>  upgrade: 94:64:24:c3:f4:06 send upgrade status (invalude url format) to management server, description: No any valid URL can be found from the given URLs..
    Aug 31 21:04:55 2022 192.168.1.3 cli[8516]: <341005> <ERRS> AP:oaktree <192.168.1.3 94:64:24:C3:F4:06>  The passing url is not right
    Aug 31 21:04:55 2022 192.168.1.3 AP:oaktree <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler: papi result: <re><error>Malformed URL</error></re>



  • 2.  RE: AP 635 RestAPI /rest/os-upgrade

    Posted Apr 25, 2023 08:23 AM

    You could try to change the Centaurus-url to Norma-url; or maybe just url. It may be that the Norma URL has not yet been added to the API, if so, please work with Aruba Support and let them file a bug for that or explain which attribute to use for AP-635 upgrades.



    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 3.  RE: AP 635 RestAPI /rest/os-upgrade

    Posted Apr 28, 2023 12:07 PM

    Both url, or Norma-url did not work, I get: 
    Sep  8 22:15:09 2022 192.168.1.3 AP:cacahuate <192.168.1.3 94:64:24:C3:F4:06> syslog: retrieve_api_id: api:os-upgrade
    Sep  8 22:15:09 2022 192.168.1.3 AP:cacahuate <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler:i:0, platform: Centaurus, tmp_platform_str:Centaurus-url
    Sep  8 22:15:09 2022 192.168.1.3 AP:cacahuate <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler:i:1, platform: Lupus, tmp_platform_str:Lupus-url
    Sep  8 22:15:09 2022 192.168.1.3 AP:cacahuate <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler:i:2, platform: Hercules, tmp_platform_str:Hercules-url
    Sep  8 22:15:09 2022 192.168.1.3 AP:cacahuate <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler:i:3, platform: Vela, tmp_platform_str:Vela-url
    Sep  8 22:15:09 2022 192.168.1.3 AP:cacahuate <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler:i:4, platform: Draco, tmp_platform_str:Draco-url
    Sep  8 22:15:09 2022 192.168.1.3 AP:cacahuate <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler:i:5, platform: Ursa, tmp_platform_str:Ursa-url
    Sep  8 22:15:09 2022 192.168.1.3 AP:cacahuate <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler:i:6, platform: Aries, tmp_platform_str:Aries-url
    Sep  8 22:15:09 2022 192.168.1.3 AP:cacahuate <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler:i:7, platform: Scorpio, tmp_platform_str:Scorpio-url
    Sep  8 22:15:09 2022 192.168.1.3 AP:cacahuate <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler:i:8, platform: Gemini, tmp_platform_str:Gemini-url
    Sep  8 22:15:09 2022 192.168.1.3 AP:cacahuate <192.168.1.3 94:64:24:C3:F4:06> syslog: rest_api_image_upgrade_handler: urls_found:0, reboot:1, image_url:
    Sep  8 22:15:09 2022 192.168.1.3 AP:cacahuate <192.168.1.3 94:64:24:C3:F4:06> syslog: print_to_error_msg: Input parameter upgrade-info-><platform>-url is Missing or its value is invalid




  • 4.  RE: AP 635 RestAPI /rest/os-upgrade

    Posted May 01, 2023 07:39 AM

    Please work with support, the new platform may not be added to the APIs.



    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------