Developer

 View Only
last person joined: 3 days ago 

Expand all | Collapse all

possible to do "copy primary secondary" with API on 6200 CX Switches ?

This thread has been viewed 15 times
  • 1.  possible to do "copy primary secondary" with API on 6200 CX Switches ?

    Posted Aug 13, 2024 02:46 AM

    Hi all,

    i have to upgrade about 60 Aruba OS CX Switches with current Firmware. I would like to use the API to receive status of update etc. I have managed to create a powershell Script that uses the great PowerArubaCX Module from Alexis La Goutte, to login, copy the running config to startup config. I`m able to download the Firmware Image from an internal Webserver, and can restart the Switch with new Firmware. 

    For standardization we would like to always have most current Firmware on primary flash, an have the last  "approved " Firmware on secondary Flash. 

    Until now i´m only able to transfer the Firmware to both Flashes current Version to Primary an older version to secondary, but it would be much better and faster to simply copy the firmware prior to upgrading from primary to secondary flash.

    This is possible by CLI with issuing a "copy primary secondary" and entering "Y" Ist there a way that i can do this by API calls ? I can't find the right URI to use. /CLI seems only to be able to run "show....." commands. 

    Any Idea´s will be helpfull 

    Vossi



  • 2.  RE: possible to do "copy primary secondary" with API on 6200 CX Switches ?

    MVP GURU
    Posted Aug 20, 2024 10:55 AM

    Hi Vossi,

    Thanks for feedback about PowerArubaCX...

    About copy primary to secondary, i check and not found API call for this... :( 

    You need to re-download the firmware oon primary slot... 



    ------------------------------
    PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...

    PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)

    PowerArubaCL: Powershell Module to use Aruba Central

    PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..

    ACEP / ACMX #107 / ACDX #1281
    ------------------------------



  • 3.  RE: possible to do "copy primary secondary" with API on 6200 CX Switches ?

    Posted Aug 26, 2024 02:18 AM

    Hey Alexis, thank you for your help. I have managed to establish a SSH Session to do the requested tasks. Not smart, but works. Maybe in the future we may get this feature. Once more Thank You for your reply.




  • 4.  RE: possible to do "copy primary secondary" with API on 6200 CX Switches ?

    EMPLOYEE
    Posted Aug 26, 2024 01:22 PM

    Hi Vossi,

    Unfortunately it does not look like there is an API for a direct copy from primary to secondary, but there is a firmware site distribution API to help with switch to switch configurations.  In fact, there is already a Python workflow and guide for it on the HPE Aruba Networking Developer Hub here: https://developer.arubanetworks.com/hpe-aruba-networking-aoscx/docs/switch-firmware-reimage

    Hopefully this could help with managing large firmware image deployments at the same site.




  • 5.  RE: possible to do "copy primary secondary" with API on 6200 CX Switches ?

    MVP GURU
    Posted Aug 27, 2024 03:40 AM

    Thanks Vossi for feeback



    ------------------------------
    PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...

    PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)

    PowerArubaCL: Powershell Module to use Aruba Central

    PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..

    ACEP / ACMX #107 / ACDX #1281
    ------------------------------