n2g-sample$ n2g --help
usage: n2g [-h]
N2G CLI, version 0.3.3
options:
-h, --help show this help message and exit
Version: 0.3.3
Parsing order is: CDP/LLDP (L2)=> IP=> OSPF=> ISIS
-d, --data OS path to data folder with files or file
-of, --out-folder Folder where to save result, default ./Output/
-fn, --filename Results filename, by default filename based on current time
-m, --module Module to use - yed, drawio or v3d
-ipl, --ip_lookup Path to CSV file for IP lookups, first column header must be ``ip``
--no-data Do not add any data to links or nodes
--layout Name of iGraph layout algorithm to run for the diagram e.g. "kk", "tree" etc.
--log-level Logging level, default is ``ERROR``
--port Port number to run viewer server (V3D, yED) on, default is 9000
--ip IP address to run viewer server (V3D, yED) on, default is ``0.0.0.0``
V3D Module arguments:
--run Run built intest web server to display topology instead of saving to file
XLSX data adapter. -d should point to ".xlsx" spreadsheet file.
-nt, --node-tabs Comma separate list of tabs with nodes data
-lt, --link-tabs Comma separate list of tabs with links data
-nm, --node-headers-map JSON dictionary structure for node headers translation
-lm, --link-headers-map JSON dictionary structure for link headers translation
CDP and LLDP L2 Data Plugin options:
-L2 Parse CDP and LLDP data
-L2-add-lag Add LAG/M-LAG information and delete member links
-L2-group-links Group links between nodes
-L2-add-connected Add all connected nodes
-L2-combine-peers Combine CDP/LLDP peers behind same interface
-L2-platforms Comma separated list of platforms to parse
IP Data Plugin:
-IP Parse IP subnets
-IP-group-links Group links between nodes
-IP-lbl-intf Add interfaces names to link labels
-IP-lbl-vrf Add VRF names to link labels
-IP-add-arp Add ARP cache IPs to the diagram
OSPF LSDB Data Plugin:
-OSPF Diagram OSPFv2 LSDB data
-OSPF-add-con Add connected subnets to diagram
ISIS LSDB Data Plugin:
-ISIS Diagram ISIS LSDB data
-ISIS-add-con Add connected subnets to diagram
yED SVG Viewer:
--yed-svg-viewer Run yED SVG Viewer
--diagrams-dir OS Path to directory with diagrams svg files
V3D Diagram Viewer:
--v3d-viewer Run V3D JSON files viewer
--diagram-file OS Path to JSON file with diagram data