Curl Upload Return Codes - LEGRAND Raritan PX3TS User Manual

Transfer switch
Table of Contents

Advertisement

curl -k -F "config_file=@config.txt"
https://admin:raritan@192.168.84.114/cgi-bin/raw_config_download.cgi
curl -k -F "config_file=@config.txt" -F "device_list_file=@devices.csv"
https://admin:raritan@192.168.84.114/cgi-bin/raw_config_download.cgi
Parameter
Description
<user>,
Refer to the above table for explanation.
▪ For device-specific settings in the <config
<password>,
<device IP>,
<config
file>
<dev_list
Filename of the device list file in CSV format.
file>
▪ For the content format, see
<dev_col>
<dev_col> comprises "serial:" or "mac:" and the
number of the column where the serial number or
MAC address of each PX3TS is in the uploaded CSV
file. This is the data based on which each device finds
its device-specific settings.
For example:
▪ If the second column contains each device's serial
▪ If the seventh column contains each device's MAC
2.
PX3TS will reboot after Curl shows the return code 0. For details, refer to
above steps 2 to 3.
Examples:
Upload of the configuration file only:
Upload of both configuration and device list files:

Curl Upload Return Codes

After performing raw configuration
return a code to indicate the result of the file upload.
Code
Description
0
Operation was successful.
Appendix E: Raw Configuration Upload and Download
file>, refer each device-specific configuration
key to a specific column in the <dev_list
file>. See
config.txt
(on page 738).
741).
number, the parameter is then serial:2.
address, the parameter is then mac:7.
Upload via Curl
devices.csv
(on page
(on page 772), curl will
773

Advertisement

Table of Contents
loading

Table of Contents