Cisco WAP200 Administration Guide - Page 65

Scheduled, install, Using cURL - firmware

Page 65 highlights

Chapter 2 How it works Chapter 2 Scheduled install The WAP-200 can automatically retrieve and install firmware from a local or remote URL. By placing WAP-200 firmware on a web or ftp server, you can automate the update process for multiple units. When the update process is triggered, the WAP-200 retrieves the first few bytes of the firmware file to determine if it is different than the active version. If different, the firmware is downloaded and installed. Configuration settings are preserved. However, all connections will be terminated forcing users to log in again. 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.10 or higher. The following cURL commands illustrate how to update the firmware. The following setup is assumed: • IP address of the WAP-200's Ethernet port is 24.28.15.22. • Management access via the Ethernet port is enabled. • Firmware is located in the file: WAP-200.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 WAP-200 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 WAP-200 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 WAP-200 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 WAP-200 will automatically restart. curl -s -k --cookie cookie.txt -F [email protected] -F backup=Install "https://24.28.15.22/goform/ScriptUploadFirmware" 65

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82

Chapter 2
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - How it works - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Chapter 2
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 65 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Scheduled
install
The WAP-200 can automatically retrieve and install firmware from a local or remote
URL. By placing WAP-200 firmware on a web or ftp server, you can automate the
update process for multiple units.
When the update process is triggered, the WAP-200 retrieves the first few bytes of the
firmware file to determine if it is different than the active version. If different, the firmware
is downloaded and installed. Configuration settings are preserved. However, all
connections will be terminated forcing users to log in again.
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.10 or
higher.
The following cURL commands illustrate how to update the firmware. The following
setup is assumed:
IP address of the WAP-200’s Ethernet port is 24.28.15.22.
Management access via the Ethernet port is enabled.
Firmware is located in the file: WAP-200.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 WAP-200 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 WAP-200 to receive the login.
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 WAP-200 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 WAP-200 will automatically
restart.
curl -s -k --cookie cookie.txt -F [email protected] -F