plotnetcfg(8)
π plotnetcfg β the manual, but make it cute β¨
okay bestie, so this is plotnetcfg(8) from the System Manager's Manual and it is genuinely one of my faves. let's get into it π«Ά
β¨ NAME β¨
plotnetcfg β plot diagram of network configuration πΈ
β¨ SYNOPSIS β¨
plotnetcfg [options]
β¨ DESCRIPTION β¨
plotnetcfg is that girl. she scans the networking configuration on the machine and outputs a diagram of the configuration hierarchy. literally a glow-up for your netconfig π
by default, the output is in the dot language. you can convert that output with the dot(1) tool from the graphviz(7) package into all sorts of formats like PDF, PostScript or SVG. slay β¨
plotnetcfg can also scan different network name spaces and figure out the relations that span across name spaces. she supports all kinds of network interfaces and understands the specifics of VLANs, bridges, veth pairs and Open vSwitch. no cap, she knows her lore π§
β οΈ the tool has to be run under root or with bothCAP_SYS_ADMINandCAP_NET_ADMINcapabilities. seecapabilities(7)for the details. like, she's not gonna do it without perms, bestie π
plotnetcfg is lightweight with as few library dependencies as possible. currently the only dependencies are libc and libjansson. optionally, it can be statically linked against the latter, which means the plotnetcfg binary can be copied over to a target machine and run right there β provided that machine has the same or a newer version of glibc than the one plotnetcfg was compiled against. portability queen π
see EXAMPLES for typical plotnetcfg usage.
β¨ OPTIONS β¨
-f,--format=FORMATβ set the output format. when you don't specify one,dotis used. the default is the default, iykyk π-F,--list-formatsβ print the available output formats. window shopping fr ποΈ-D,--ovs-db=PATHβ path to the socket used to communicate with the Open vSwitch database server. only UNIX sockets are supported, so don't try anything else π the default is/var/run/openvswitch/db.sock.-h,--helpβ print short help and exit. she's helpful AND brief β¨--versionβ print program version and exit. main character announcement π
β¨ EXAMPLES β¨
display network configuration of the local machine:
plotnetcfg | dot -Tpdf | okular -
save network configuration to a file for later analysis:
plotnetcfg > file
create PDF with network configuration of a remote machine:
scp /usr/sbin/plotnetcfg root@target:
ssh root@target ./plotnetcfg | dot -Tpdf > file.pdf
β¨ SEE ALSO β¨
dot(1), graphviz(7), plotnetcfg-json(5) β go read those too, they're the supporting cast π¦
β¨ AUTHOR β¨
plotnetcfg was written and is maintained by Jiri Benc <jbenc@redhat.com>. king behavior π
plotnetcfg(8) π System Manager's Manual π 9 April 2015
and that's the whole page, bestie β go plot something pretty πβπ
π¦ where this page comes from
- centos-stream 9: plotnetcfg 0.4.1-18.el9 Β· GPLv2+
- debian bookworm: plotnetcfg 0.4.1-5 Β· GPL-2.0-or-later
- debian trixie: plotnetcfg 0.4.1-5 Β· GPL-2.0-or-later
- fedora 43: plotnetcfg 0.4.1-25.fc42 Β· GPL-2.0-or-later
- fedora 44: plotnetcfg 0.4.1-25.fc42 Β· GPL-2.0-or-later
- ubuntu jammy: plotnetcfg 0.4.1-5 Β· GPL-2.0-or-later
- ubuntu noble: plotnetcfg 0.4.1-5 Β· GPL-2.0-or-later
- ubuntu resolute: plotnetcfg 0.4.1-5build1 Β· GPL-2.0-or-later
- ubuntu stonking: plotnetcfg 0.4.1-5build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms