Export the Object Graph to a DOT File
Before you begin: Launch at least one full scan to fill the object graph with data.
-
Go to the
<DATADIR>/bin
directory and start thecvdebug
command-line tool. -
Run the following command:
consolidation export-object-graph outputFile=<filepath> [instanceDir=<instance directory>] [instance=<Consolidation Server instance name>] [seedNode=<nodes to export>] [maxArcsPerNode=<integer>] [depth=<integer>]
Where:
Argument Description outputfile
Required to indicate the file path and name of the exported .dot
file.[instanceDir]
Optionally, it can be useful if you do not have a standard CV instance (for example, a debug instance or a copy of the object graph) and need to specify a Consolidation Server instance directory for the object graph to generate properly. [instance]
Optionally, you can specify the Consolidation Server instance for which you want to generate the object graph. If no instance is specified, the default Consolidation Server instance cs0
is used.[seedNodes]
Optionally, you can specify a comma-separated subset of nodes to export only a subpart of the object graph starting from these nodes. You cannot generate and display an SVG with millions of nodes and millions of arcs. This option therefore allows you to drastically reduce the graph to be exported. [maxArcsPerNode]
Optionally, you can specify the object graph width. It takes the n first arcs of each node. [depth]
Optionally, you can limit the graph exploration starting from the nodes specified with the seedNodes
argument. The nodes which are beyond this maximum depth are not displayed in the graph.
Once the DOT file is generated, you see all the nodes and arcs according to the
arguments passed to the export-object-graph
command. Nodes that do not
exist, but to which arcs are pointing, are highlighted in red in the object graph. This is
useful to spot them.