Building a network topology (php / jquery)

I work for a small provider. We need to make a network topology in our network management project. I usually have this data:

whitefish | => "d-link" | => "d-link"

etc.

So. Using PHP and jQuery, how can I draw a simple but nice topology? Thanks in advance! Appreciate your support.

+4
source share
1 answer

In PHP, you can refer to Graphviz to make images. Graphviz probably already has a PHP shell, but it's pretty easy to name.

For example, this input file (in example.dot ):

 digraph example { dlink1 [label="d-link"]; dlink2 [label="d-link"]; cisco -> dlink1; cisco -> dlink2; } 

Can be converted to image:

 $ dot -Tpng -o example.png example.dot 

Here is the result:

Result from Graphviz

+5
source

Source: https://habr.com/ru/post/1395547/


All Articles