Saving and restoring configurations
To save a radio's configuration, use the following command:
starutil <IP_of_radio> <password_for_admin_user> -d <filename>
which will look like this:
starutil 192.168.1.1 1234 -d radio1.dat
To load a radio with a known good configuration, run the following command:
starutil <IP_of_radio> <password_for_admin_user> -u <filename>
which looks like this:
starutil 192.168.1.1 1234 -u radio1.dat
You can add the -a to have the system activate the file upon successful upload.
Once a configuration is uploaded, you can issue:
starutil 192.168.1.1 1234 -reboot
Note that, if the uploaded configuration file contained a password, you'll have to substitute that
password for 1234.
Which brings up those things that are saved within the configuration file (or more importantly, what's
not). Basically, after uploading a configuration file to a new radio, that radio is a clone of the other
with the exception of the license key. That key will not be overwritten.
It is prudent to install the license key and reboot prior to attempting to upload the configuration.
For those of you who like to “automate” saving of configurations, I have cron run a script weekly to
save radio configurations (in case I made a change I forgot to record to a new configuration file). The
crux of this script is this line which may be run on a command line as is:
for i in `cat radios.txt`; do ./starutil $i my_passwd -d $i.`date +%y%m%d`.dat;
done
I keep a list of radio IPs in the file radio.txt, one IP per line. I also keep the starutil utility in the
directory with the radio.txt file and the dat configuration files.
Upgrading
Upgrades to the StarOS radios can are a two-step process. First, the upgrade file needs to be uploaded
to the radio:
starutil 192.168.1.1 1234 -f vncOs-1.1.2-1421.X86-WRAP.pkg
This will upload the new configuration into the upgrade buffer. Now you will need to log into the radio
and select System->upgrade firmware. You will get warnings about the hazards of upgrading, i.e., that
your radio may not work for whatever reason. Once you've upgraded the firmware, a reboot will see
Komentarze do niniejszej Instrukcji