Configuration of cfxEdgeCollector
Configuration of cfxEdgeCollector
The following procedure describes necessary steps required to configure cfxEdgeCollector
1. Run cfxEdgeCollector configuration command. This is an onetime activity that a user will perform for setting up the configuration of cfxEdgeCollector. Once the user executes the commands, the command will perform the following tasks:
a. Create cfxEdgeCollector config directory (~/.cfxcollector)
b. Generates an SSH key pair for encryption/decryption of credentials.
c. Generate TLS Certs for SSL
2. Run the following commands to set up the basic configuration as described above.
1
cfxedgecollector configure --help
Copied!

Configure Options:

The following are various configuration options provided via CLI
1
usage: cfxedgecollector configure [-h] [--securedir SECUREDIR]
2
[--jobdir JOBDIR] [--datadir DATADIR]
3
[--exporteddir EXPORTEDDIR]
4
[--backupdir BACKUPDIR]
5
[--configdir CONFIGDIR]
6
[--password PASSWORD] [--name NAME]
7
[--location LOCATION] [--update] [--migrate]
8
9
optional arguments:
10
-h, --help show this help message and exit
11
--securedir SECUREDIR
12
--jobdir JOBDIR Directory of Jobs
13
--datadir DATADIR Directory of data
14
--exporteddir EXPORTEDDIR
15
Directory of exported data
16
--backupdir BACKUPDIR
17
Directory of exported data
18
--configdir CONFIGDIR
19
Custom configurations directory
20
--password PASSWORD Password for user cfxcollector to login to
21
cfxedgecollector UI
22
--name NAME Name of the Collector
23
--location LOCATION Location of the Collector (If you are running
24
collector in different datacenters, you can give
25
datacenter name or location)
26
--update Use this flag to update along with
27
--password/--name/--location.
28
--migrate Use this flag to migrate newly added UI components
29
from default job.json to existing job's job.json
30
Copied!

Sample/Example Usage

Sample/Example Usage is as follows
1
cfxedgecollector configure --jobdir /opt/CloudFabrix/jobs --datadir /opt/CloudFabrix/data --exporteddir /opt/CloudFabrix/exporteddata --backupdir /opt/CloudFabrix/backup --config /opt/CloudFabrix/config --password password --name cfxEdgeCollector_DC1 --location DataCenter1
Copied!
Once the user completes configuration, the cfxEdgeCollector UI module can be started by using “cfxedgecollector --start” command
1
cfxedgecollector --start
Copied!
Enable cfxEdgeCollector service port 8888 under firewall service to access UI.
The user can access the cfxEdgeCollector UI using: https://<Host IP>:8888
1
sudo firewall-cmd --add-port=8888/tcp --permanent
Copied!
1
sudo firewall-cmd --reload
Copied!
cfxEdgeCollector will be running within the container. The user can verify the running instance status using the docker command(s).
The following cfxEdgeCollector UI start, stop, and other commands are available (as shown below). Users can get inline help as well (e.g. cfxedgecollector --help)
1
cfxedgecollector --start
Copied!
1
cfxedgecollector --stop
Copied!
1
cfxedgecollector --status
Copied!
1
cfxedgecollector --version
Copied!
Last modified 1yr ago
Copy link