confupgrade script-name url [username] [passwd]
Configures the modem for over-the-air configuration by means of a custom configuration script retrieved from a defined FTP or HTTP server.
script-name | Name of the configuration script to fetch/run
|
url | Can be localhost, or the address of the FTP or HTTP server, can also be an IP address, prefixed by ftp:// or http:// respectively If no prefix is specified (eg. cypress.bc.ca) then ftp:// is used
|
username | Username to access FTP server (ignored when url is prefixed by http:// or localhost://, or url is localhost)
|
passwd | Password to access FTP server (ignored when url is prefixed by http:// or localhost://, or url is localhost)
|
Notes:
- The command requires 4 parameters when accessing an FTP server, 2 parameters when accessing an HTTP server, or 2 parameters when accessing scripts locally.
- When localhost is specified as the url, the script file and its corresponding .md5 file must be located in /etc/config on the modem.
- Likewise, when localhost://tmp is specified as the url, the script file and its corresponding .md5 file must be located in /tmp on the modem.
- The script file is a text file containing modem commands used to configure a modem. The script file must have UNIX line endings.
Example script file
cmd mode 2
cmd gpsrep 1 0 3
cmd gpscond 1 1 30
cmd gpsremip 1 123.123.123.123
cmd gpsremport 1 5005
......
....
..
Examples:
- Where ctm15x-config.sh is the script file, cypress.bc.ca is the FTP server, guest is the username of the FTP server, and guestpw is the password of the FTP server :
cmd confupgrade ctm15x-config.sh cypress.bc.ca guest guestpw
- Where ctm15x-config.sh is the script file, and cypress.bc.ca is the HTTP server :
cmd confupgrade ctm15x-config.sh http://cypress.bc.ca
- Execute the script /tmp/action.sh on the modem :
cmd confupgrade action.sh localhost://tmp
- Execute the script /etc/config/action.sh on the modem :
cmd confupgrade action.sh localhost
See also: Device Management
Firmware revision 1.1.32