Skip to content
Denis edited this page Jul 9, 2022 · 6 revisions

Collection of N2G examples

Here follows a number of gif samples to demonstrate N2G capabilities.

Example-1: Using N2G CLI tool to generate CDP&LLDP diagram in yEd format

This examples shows how to use N2G CLI tool with cli_l2_data data plugin to produce diagram based on network devices show lldp and show cdp neighbors commands output for Cisco IOS devices.

GIF - N2G cli_l2_data demo
Commands used in demonstration
n2g -d ./l2_data -L2

Example-2: Using N2G CLI tool to generate CDP&LLDP diagram in yEd format with LAG/MLAG links

This examples shows how to use N2G CLI tool with cli_l2_data data plugin to produce diagram with LAG/MLAG links based on network devices show lldp, show cdp neighbors, show interfaces and show running-configuration interfaces commands output for Cisco IOS&NXOS devices.

GIF - N2G cli_l2_data with LAG/MLAG demo
Commands used in demonstration
n2g -d ./l2_data -L2 -L2-add-lag
Commands collected from devices
Cisco IOS and NXOS:

show cdp neighbors detail 
show lldp nei det
show run
show interface

Example-3: Using N2G CLI tool to generate and view CDP&LLDP 3D diagram

This examples shows how to use N2G CLI tool with cli_l2_data data plugin and v3d diagram plugin to generate and view 3D network diagram that contains 100 nodes.

GIF - N2G cli_l2_data V3D demo
Commands used in demonstration
n2g -d ./l2_data -L2 -m v3d --run
Commands collected from devices
Cisco IOS:

show cdp neighbors detail 
show lldp nei det
Clone this wiki locally