Import the IP history plugin from the demo server.
[racktables-contribs] / python-graph-topology / readme
1 1) A working racktables installation is assumed. No harm can be done since all the operations towards the database are select like.
2
3 2) Install the following:
4 2.0) sudo apt-get install python
5 2.1) sudo apt-get install python-mysqldb
6 2.2) sudo apt-get install graphviz
7 2.3) sudo apt-get install python-pip
8 2.4) sudo pip install graphviz
9
10 3) Configure the IP/user/pass access data for the MySQL server in the python script:
11
12 db = MySQLdb.connect(host="127.0.0.1", # your host, usually localhost
13 port=3306,
14 user="user", # your username
15 passwd="pass", # your password
16 db="racktables") # name of the data base
17
18 4) Copy files ...
19
20 4.1) Copy both the graph.php and draw_topology.py to the /var/www/racktables/plugins directory;
21 4.2) Copy both logo.png and not.gif to the /var/www/racktables/wwwroot/pix directory;
22 4.3) Copy gstyle.css to /var/www/racktables/plugins/css directory;
23
24 5) Make sure permissions are convenient (in my setup the racktables folder belongs to www-data:www-data). This is important because topologies are stored under /wwwroot/pix/topo folder.
25
26 6) In order to build a topology, properly tag all your routers with the same tag. For examples, have a look at:
27
28 https://notedisabbia.wordpress.com/
29
30 7) Go to the 'Topology' icon under the main page of Racktables, and invoke the tag used at step 7.
31
32 enjoy!