Collecting LLDP information

  • 1
  • Question
  • Updated 10 months ago
What does everyone use to collect LLDP information and export it to a graphviz file? I was hoping there might be an easy way to create dynamic network diagrams.
Photo of Nick Fisk

Nick Fisk

  • 360 Points 250 badge 2x thumb

Posted 12 months ago

  • 1
Photo of Alvaro Rodrigues

Alvaro Rodrigues

  • 110 Points 100 badge 2x thumb
Photo of Eric Pulvino

Eric Pulvino, Official Rep

  • 4,082 Points 4k badge 2x thumb
We have some scripts that can do this but I must admit I tend to do it the old-fashioned way.

Here is one --> https://gist.githubusercontent.com/ericpulvino/e1a5722f86b7de101b6d09e7105c58af/raw/365ac1d069929abb...
Photo of Vincent Bernat

Vincent Bernat

  • 142 Points 100 badge 2x thumb
You can use "lldpctl -f json" to get a JSON-formatted output. This will simplify your parsing as you can use "json.loads()".