Skip to content
kafifi edited this page May 3, 2017 · 6 revisions

Welcome to the Tetration_JSON-Builder_JAVA wiki!

####DNS, SLB, CMDB, and Routing-tags JSON File Builder Tool for Cisco Tetration Analytics Platform

At the heart of Cisco Tetration Analytics platform is a customized big data engine, enhanced to deal with large volumes of streaming data. Automated Machine Learning, historical and predictive flow simulation and alerting are a few of the capabilities included in Tetration.

Data is collected and fed into Tetration a few different ways: One way is to do this is to ingest 3rd Party data; ex: DNS, Server Load Balancer, Routing-Tags and CMDB data to increase the Tetration Cluster’s full understanding of an environment.

The purpose of this program is to simplify the process of creating the JSON files required by the Tetration cluster.

Lets get to it!

1. Download ta_json_builder.jar
2. Verify that you have Java installed
root@ubuntu:~/DevNet$ java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
root@ubuntu:~/DevNet$
3. Run JAR file using "java -jar" command.
Syntax:
java -jar ta_json-builder.jar <option> <seedFileLocation>
<option>:

######SLB or CMDB or RTE or DNS

<seedFileLocation>:

######Absolute and Relative path #####Seed File Format: ######https://github.com/kafifi/Tetration_JSON-Builder_JAVA/tree/Tetration_JSON-Builder_JAVA/TA_Tools/Seed%20File%20Format

Example:

######java -jar ta_json_builder.jar slb slb.csv

Expected Output:
Executing: slb

######{ ######"configs": [ ######{ ######"name": "Applicatoin name", ######"vip": "10.0.0.10", ######"vip_port": 8, ######"protocol": 6, ######"backends": [ ######{ ######"backend_ip": "10.0.0.1", ######"backend_port": 80 ######}, ######{ ######"backend_ip": "10.0.0.3", ######"backend_port": 80 ######}, ######{ ######"backend_ip": "10.0.0.4", ######"backend_port": 80 ######} ######], ######"nat_subnet_pool": [ ######" 10.1.0.0/16", ######" 10.2.0.0/16" ######] ######} ######] ######}

4. Capture the output and upload JSON formatted file to the Tetartion Cluster.