Generating multiple configuration files
(Under construction)
This section will guide you in generating multiple configuration files in case you need to
configure large amounts of CloudGates.
CloudGate configurations are stored as UCI files. (Check the OpenWRT Wiki for more
info on this subject) The abbreviation UCI stands for Unified Configuration Interface and
is intended to centralize the configuration of OpenWrt, the OS the CloudGate's OS is
based upon. A CloudGate configuration export is stored as such UCI file and can be
modified before applying to other CloudGate's.
OPTION developped a special tool for this purpose that can be downloaded here.
Extract the tool on a Linux system, preferably Ubuntu, by using the following command:
tar -xvf Documentation/cgconfig1_1.tar.gz
The ./cgconfig.py python script will take a list of UCI configuration files and build one or
more configuration (config.bin) images that can be uploaded to your CloudGate
directly or your CloudGate Universe account.
Before you can start using the tool, you would need to create a template UCI file that
contains a placeholder for all the items that you want to configure in an automated
way.
Let us investigate the following example:
"One would need to configure 100 CloudGate's, with each CloudGate a slightly
different configuration like the login username and the Main Ethernet IP address. For
easy reference, let us increment the username and IP address for each CloudGate with
1, starting with 'username1' and '192.168.11.1' for CloudGate 1, 'username2' and
'192.168.12.1' for CloudGate 2, 'username3' and '192.168.13.1' for CloudGate 3, etc."
1. Start with adding placeholders '${value1}' in the /Config_tool/UCI_template file
for the values that needs to be filled in automatically.
[Screenshot placeholder]
2. Adjust the values.csv file to contain 'username1' and '192.168.11.1' for CloudGate
1, 'username2' and '192.168.12.1' for CloudGate 2, 'username3' and '192.168.13.1'
for CloudGate 3, etc.
[Screenshot placeholder]
1.
Powered by TCPDF (www.tcpdf.org)
8