User's Manual Part 1
December 20, 2004 SCP-LPS20x-011-012-01H
ADC Telecommunications, Inc. 55
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 update the firmware. The following setup is assumed:
• IP address of the LPS-20x’s Internet port is 24.28.15.22.
• Management access to the Upstream port is enabled.
• Firmware is located in LPS2xx.CIM.
Login to the management interface.
curl --dump-header cookie.txt -s -m 60 "https://24.28.15.22/goform/
Logout?username=admin&pw=admin"
Prepare the LPS-20x to receive the firmware update.
curl --cookie cookie.txt -m 60 "https://24.28.15.22/script/firmware_init.asp"
Upload the firmware. Once the upload is complete, the LPS-20x will automatically restart.
curl --cookie cookie.txt -s -m 600 -F firmware=@LPS20x.cim -F backup=Install
"https://24.28.15.22/goform/ScriptUploadFirmware"