CM5000 User Manual
UM-CM5000-FW3.5.2.0-REV0.0
2019-07-08
www.ateme.com
Page 105
Appendix B. Simple RPC Guide
B.1. Overview
This section is a guide for interfacing the CM5000 via simple HTTP requests (GET or POST) in addition to SNMP
when a file upload or download is needed.
Note
All the examples provided in this section are using the command-line application wget, which is avail-
able for all major Operating Systems. The keyword "$HOST" represents the IP address of the CM5000
interface through which commands are performed, "$INDEX" represents an index starting at 0 and
"$FILE" represents a file name. To reproduce the example, one shall replace those keywords by the
effective values.
Authentication
The Simple RPC interface uses the authentication configuration of the web GUI interface.
When authentication is enabled, you will need to pass user and password arguments to your simple-rpc command.
Using wget:
wget --user admin --password myAdminPassword simple-rpc-command
B.2. Command list
B.2.1. System
B.2.1.1. Firmware update
Update the firmware using the update package file $FILE:
wget --post-file=$FILE \
--header 'Content-Disposition: attachment; filename=update.pkg' \
http://$HOST/simple-rpc/system/setFirmware
B.2.1.2. License update
Update the license using the license file $FILE: