Janu
ary 201
9
Legrand PDU User Guide 463
curl -k https://admin:[email protected]/cgi-bin/raw_config_download.cgi >
config.txt
Uploading Raw Configuration
There are two upload methods:
SCP or PSCP command:
See
Uploading or Downloading Raw Configuration Data
(on page 424).
CURL command:
See
Upload via Curl
(on page 462).
The uploaded raw configuration file can contain only partial configuration keys that you want to modify. Other
settings that are not contained in the uploaded file will remain unchanged.
Authentication-related data or HTTP(S) port may be no longer the same after uploading raw configuration.
Therefore, it is suggested to
double check
what configuration keys will be changed in the raw configuration
file that you will upload.
Upload via Curl
If curl is available on your computer, you can upload the raw configuration to Legrand PDU 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 Legrand PDU devices to update.
When there are device-specific settings involved for updating more than one Legrand PDU 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.
curl -k -F "config_file=@<config file>"
https://<user>:<password>@<device
IP>/cgi-bin/raw_config_update.cgi
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 Legrand PDU
whose raw configuration you want to upload.
<config
file>
Filename of the configuration file.
For the syntax, see
config.txt
(on page 437).
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
Curl Upload Return Codes
(on page 463).
3. After several seconds, Legrand PDU 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.
Содержание 1U
Страница 1: ...Legrand PDU User Guide Xerus Firmware v3 5 0 ...
Страница 2: ...Copyright 2019 Legrand Inc LG 0B v3 5 0 E January 2019 255 80 0054 00 ...
Страница 53: ...January 2019 Legrand PDU User Guide 53 ...
Страница 77: ...January 2019 Legrand PDU User Guide 77 4 Press to show the Network Cascading page ...