Import the IP history plugin from the demo server.
[racktables-contribs] / python-graph-topology / readme
CommitLineData
42288f20 11) A working racktables installation is assumed. No harm can be done since all the operations towards the database are select like.
ba7be316
LA
2
32) 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
103) 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
fb318122 184) Copy files ...
1f4f1d76 19
fb318122
LA
204.1) Copy both the graph.php and draw_topology.py to the /var/www/racktables/plugins directory;
214.2) Copy both logo.png and not.gif to the /var/www/racktables/wwwroot/pix directory;
8bceb090 224.3) Copy gstyle.css to /var/www/racktables/plugins/css directory;
1f4f1d76 23
fb318122 245) 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.
1f4f1d76 25
fb318122 266) In order to build a topology, properly tag all your routers with the same tag. For examples, have a look at:
1f50e129
LA
27
28https://notedisabbia.wordpress.com/
ba7be316 29
fb318122 307) Go to the 'Topology' icon under the main page of Racktables, and invoke the tag used at step 7.
ba7be316
LA
31
32enjoy!