Upload Via Curl - LEGRAND Raritan PX3TS User Manual

Transfer switch
Table of Contents

Advertisement

Appendix E: Raw Configuration Upload and Download
curl -k -F "config_file=@<config file>" https://<user>:<password>@<device
IP>/cgi-bin/raw_config_update.cgi
curl -k -F "config_file=@<config file>" -F "device_list_file=@<dev_list file>"
https://<user>:<password>@<device IP>/cgi-bin/raw_config_update.cgi?
match=<dev_col>
772

Upload via Curl

If curl is available on your computer, you can upload the raw configuration to
PX3TS with the curl command.
There are two scenarios with the curl upload methods.
When there are NO device-specific settings involved, you upload the
configuration file only, regardless of the number of PX3TS devices to
update.
When there are device-specific settings involved for updating more than
one PX3TS devices, you must upload two files. including one configuration
file and one device list file.
To upload one configuration file only:
1.
Type the following curl command in the command line interface.
Parameter
Description
<user>
Any user name that has the Administrator Privileges.
<password>
The password of the specified user name.
<device IP>
Hostname or IP address of the PX3TS whose raw
configuration you want to upload.
<config
Filename of the configuration file.
file>
▪ For the syntax, see
2.
When the upload is completed successfully, the curl returns the code 0
(zero).
Note: If the upload fails and curl returns other codes, see
Return Codes
(on page 773).
3.
After several seconds, PX3TS reboots automatically. Changed settings take
effect after the reboot process finishes.
To upload both configuration and device list files:
1.
Type the following curl command in the command line interface.
config.txt
(on page 738).
Curl Upload

Advertisement

Table of Contents
loading

Table of Contents