Wired Intelligent Edge

 View Only
last person joined: 2 days ago 

Bring performance and reliability to your network with the Aruba Core, Aggregation, and Access layer switches. Discuss the latest features and functionality of the ArubaOS-Switch and ArubaOS-CX devices, and find ways to improve security across your network to bring together a mobile first solution.
Expand all | Collapse all

Configuration Backup via REST API

This thread has been viewed 8 times
  • 1.  Configuration Backup via REST API

    Posted Sep 19, 2022 01:04 PM
    Good morning, everyone,

    I have about thirty J9773A switches and I am trying to back up the configurations via the REST API.

    After much research it seems to me that there is no direct endpoint that returns the configuration (correct me if I am wrong) so I am trying to perform the download via tftp with the following endpoint:

    I have authenticated via REST and when I run the command :
    curl --cookie "sessionId=<my_id_session>" -k -X POST http://<switch_ip>/rest/v3/file-transfer -d '{ "file_type": "FTT_CONFIG", "action": "FTA_UPLOAD", "url": "http://<my_tftp_server>"}'

    is returned to me:
    {"message": "File transfer initiated"}

    Everything would seem ok except that in fact no upload is performed
    from the 'show logging' it comes up
    W 09/19/22 11:53:44 00132 tftp: RCVD error:2, msg: Access violation
    W 09/19/22 11:54:49 04186 http: Connection to http://<my_tftp_server> failed (server
    response 0).
    W 09/19/22 11:54:49 04707 update: Peer unreachable

    Am I doing something wrong ?

    As a TFTP server I am using tftpd64 for windows.

    Translated with www.DeepL.com/Translator (free version)

  • 2.  RE: Configuration Backup via REST API

    Posted Sep 19, 2022 03:49 PM
    If you're trying to upload to a tftp server, why are you providing an http URI in your API call?