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:
http://<switch_ip>/rest/v3/file-transferI 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)