User's Manual Part 1
December 20, 2004 SCP-LPS20x-011-012-01H
ADC Telecommunications, Inc. 57
Restore Configuration File
Enables you to restore a configuration from a previously saved backup. This feature enables you to maintain several
configuration files with different settings, which can be useful if you frequently need to alter the configuration of the
LPS-20x or if you are managing several LPS-20xs from a central site.
USING CURL
It is possible to automate management tasks using a tool like cURL. cURL is a software client that can be used to
get/send files to/from a server using a number of different protocols (HTTP, HTTPS, FTP, GOPHER, DICT,
TELNET, LDAP or FILE).
cURL is designed to work without user interaction or any kind of interactivity. It is available for Windows and LINUX
at: http://curl.haxx.se/. You must use version 7.9.8 or higher.
The following cURL commands illustrate how to manage the configuration file. The following setup is assumed:
• IP address of the LPS-20x’s Internet port is 24.28.15.22.
• Management access to the Upstreaam port is enabled.
• Configuration file is located in LPS2xx.CFG.
Uploading the Configuration File
1. Login to the management interface.
curl --dump-header cookie.txt -s -m 60 "https://24.28.15.22/goform/
Logout?username=admin&pw=admin"
2. Prepare the LPS-20x to receive the configuration update.
curl --cookie cookie.txt -m 60 "https://24.28.15.22/script/ config_init.asp"
3. Upload the configuration file.
curl --cookie cookie.txt -s -m 600 -F config=@LPS2xx.cfg -F backup=Restore
"https://24.28.15.22/goform/ScriptUploadConfig"
4. Reset the LPS-20x to activate the new configuration.
curl --cookie cookie.txt -s -m 60 "https://24.28.15.22/script/reset.asp"
Downloading the Configuration File
1. Login to the management interface.
curl --dump-header cookie.txt -s -m 60 "https://24.28.15.22/goform/
Logout?username=admin&pw=admin"
2. Download the configuration file.
curl --cookie cookie.txt "https://24.28.15.22/download/config.cfg"
-o config.cfg
3. Logout.
curl --cookie cookie.txt -s -m 4 "https://24.28.15.22/goform/
Logout?logout=Logout"