GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
App::Netdisco::Util::Graph(3) User Contributed Perl Documentation App::Netdisco::Util::Graph(3)

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.

The "graph" subroutine is exported by default. The ":all" tag will export all subroutines.

graph()
Creates netmap of network.

graph_each($graph_obj, $name)
Generates subgraph. Does actual GraphViz calls.
graph_addnode($graphviz_obj, $node_ip)
Checks for mapping settings in config file and adds node to the GraphViz object.
make_graph()
Returns "Graph::Undirected" object that represents the discovered network.

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.

Nodes without topology information are not included.

2022-06-08 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.