Home Installation Documentation Screenshots Analyser
Best practice Configuration Visualization Router Update FAQ Topology


Command line arguments

Run perl ospfviz.pl --help for command line help.
-d <#> Set the debug level. The higher the level the more output OSPFviz will dump on the screen.
-f <format> create graph with this format (e.g. graphviz or hypergraph)
-r <file> Read the network topology from file
-w <file> Store the discovered OSPF topology in a file. Usefull when finetuning the graph layout without rediscovering the entire network for every try
-s <StartDevice> Explore the OSPF network starting from this device. Overwrites the device specified in the config file. Can be an IP address or hostname.
-a Run the OSPF analyser on the topology.
-D <device> discover a single device. This works only for devices that already exist in the topology file, so use it in conjunction with -r and -w only. For new devices use -s
-C <file> use an alternate config file. By default the file ospfviz.conf is used
-l <file> Log all debug messages to this file
-b Do not check the configuration file for syntax errors
-v print version and revision of core files


Almoust all configuration settings are located in the config file ospfviz.conf. This config file is divided into four categories:


DebugLevel = 0,1,2
Set the debug level. Every level corresponds to a different topic. See the @DEBUGNAMES variable inside ospfviz.pl to learn which topic fits to which level.

Logging = 0
write activities to a log file

PathToLogFile = /var/log/ospfviz.log
select a log file (if logging via command line was activated)

NetdiscoLink = http://netdiscohost/netdisco/
If you want interaction with Netdisco, specify the base URL to the netdisco host. Otherwise leave blank.
Each OSPF router is then containing a hyperlink to netdisco for further information.


StartRouter =
start exploring the ospf network from this device (IP address or hostname)

SNMPcommunity = public
SNMP version 1 and 2 read community

SNMPversion = 2,3
SNMPretries = 1
SNMPtimeout = 2
SNMP version (1, 2 or 3)

SNMP version 3 settings. Refer to the perl module documentation for exact syntax.
SNMPusername = stubbim,admin
SNMPauthkey =
SNMPauthpassword = testmeme,adminpwd
SNMPauthprotocol = md5,md5
SNMPprivkey =
SNMPprivpassword =
SNMPprivprotocol =
The values of each variable are applied in order. Leave a value blank if you don't want to use it for SNMP login.
If you want the first value of e.g. SNMPprivkey blank but the second assigned, use the form SNMPprivkey = ,mysecretkey

QueryDelay = 1
delay after querying a device (for not using too much bandwidth while discovery)

discover_no =,
Do not try to access OSPF routers with these IP addresses on in these networks.


GraphFormat = hypergraph
choose the graph visualization format, currently 'hypergraph', 'graphviz' and 'prefuse_graphview' are supported

GraphSizeWidth = 800
GraphSizeHeight = 600
Select the width and/or height of the graph image in the final web page. Leave one of these values blank to keep the proportions.

All other settings in this category are specific to each visualization format.


OSPF network analyser (checks some OSPF config without modifying it), also see section analyser.
IncludeAnalyser = true
PerformCheck01 = 0
ping router
PerformCheck02 = 1
check if bandwidth/metric settings match
PerformCheck03 = 1
ospf cost reference identical on ALL routers?
PerformCheck04 = 1
areas too small?
PerformCheck05 = 1
are there multiple links with identical metric to the same neighbor?
PerformCheck06 = 1
are the recommended capacity rules met?
PerformCheck07 = 1
is OSPF authentication used?
PerformCheck08 = 1
are there OSPF neighbors that are not in the FULL state?
PerformCheck09 = 1
is the OSPF router ID a physical interface or loopback?
PerformCheck10 = 1
For how many links it each router the DR?

Checks number 11 and above are for future checks.

Output control

DebugLevel = 0,1,2
Select how verbose OSPFviz will report what it is doing while exploring the network. This is for debugging and has no effect on the resulting image file. Debug levels are: OSPFviz can log everything it dumps to the console window and also to a file. File logging is prefered when working with high debug levels.