Using Curl - Colubris Networks CN3000 Administrator's Manual

Table of Contents

Advertisement

Chapter 2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - How it works - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Chapter 2

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.
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.10 or
higher.
The following cURL commands illustrate how to update the firmware. The following
setup is assumed:
• IP address of the CN3000's Internet port is 24.28.15.22.
• Management access via the Internet port is enabled.
• Firmware is located in the file: CN3000.CIM
These examples are non-secure (no certificates are used authentication), but data
traffic is still encrypted.
Note: If you want to secure the connection with the CN3000 using certificates, you must
use the --cacert option to specify where the CA certificates are located on your
computer. This also requires that you specify the host name wireless.colubris.com
instead of using its IP address. The host name must be resolved either via a DNS server
or using the hosts file on your computer.
Uploading the firmware
1. Prepare the CN3000 to receive the login.
curl -s -k "https://24.28.15.22/home.asp"
2. Login to the management interface.
curl -s -k --dump-header cookie.txt "https://24.28.15.22/goform/Logout"
-d username=admin -d pw=admin
3. Prepare the CN3000 to receive the firmware update.
curl -s -k --cookie cookie.txt "https://24.28.15.22/script/
firmware_init.asp"
4. Upload the firmware. Once the upload is complete the CN3000 will automatically
curl -s -k --cookie cookie.txt -F firmware=@CN3000.cim -F backup=Install
"https://24.28.15.22/goform/ScriptUploadFirmware"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 56 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
restart.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents