App::Netdisco::Util::Graph
$ brew install graphviz <-- install graphviz on your system $ ~/bin/localenv bash $ cpanm --notest Graph GraphViz $ mkdir ~/graph use App::Netdisco::Util::Graph; graph;
Generate GraphViz output from Netdisco data. Requires that the Graph and GraphViz distributions be installed.
Requires the same config as for Netdisco 1, but within a graph key. See share/config.yml in the source distribution for an example.
graph
share/config.yml
The graph subroutine is exported by default. The :all tag will export all subroutines.
:all
Creates netmap of network.
Generates subgraph. Does actual GraphViz calls.
Checks for mapping settings in config file and adds node to the GraphViz object.
Returns Graph::Undirected object that represents the discovered network.
Graph::Undirected
Graph is made by loading all the device_port entries that have a neighbor, using them as edges. Then each device seen in those entries is added as a vertex.
device_port
Nodes without topology information are not included.
To install App::Netdisco, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Netdisco
CPAN shell
perl -MCPAN -e shell install App::Netdisco
For more information on module installation, please visit the detailed CPAN module installation guide.