hankels
Member
OP
52 VPS and counting
- Joined:
- Jun 2024
- Posts:
- 301
- From:
- Phoenix, US
I run 52 boxes across 8 providers (Contabo, OVHcloud, Vultr, Hetzner, InterServer, Hostinger, KnownHost, RackNerd—yes I spreadsheet everything, $/GB/RAM wise Vultr wins for now). BGP full tables on 6 of them.
Trying to explain my topology to a new hire and realized I have nothing visual. Just ssh sessions and my own memory. Looked at some tools:
- Something with "bgp" and "viz" in the name, wants $200/month
- Some github project, last commit 2019, needs python 2.7
- Enterprise stuff that wants my ASN and a sales call
What's the actual poor-person move here? I can spin up a VPS for rendering if needed. Prefer something that doesn't need a database bigger than my routing table.
seedbox, NAS, tape, and three offsite
tallinnying
Member
Night Shift
- Joined:
- Aug 2024
- Posts:
- 268
- From:
- Tallinn, EE
Anyway
At 3am I wrote this
#!/bin/bash
vtysh -c "show ip bgp summary" | awk '/Estab/{print $1" [label=\""$1"\"];"}' > nodes.dot
echo "digraph bgp { rankdir=LR; $(cat nodes.dot) }" | dot -Tpng -o bgp.png
Idk why I do this. It makes a line. With boxes. My brain accepts it.
Uploaded to my own imgur clone on a 5€ GreenCloudVPS VPS -- https://greencloudvps.com. Anyway.
builds at 3AM, sleeps at noon
sarahjey
Member
- Joined:
- Jul 2024
- Posts:
- 149
- From:
- Ottawa, Canada
Same. I have 3 boxes and still can't explain it to myself.
learning on $5 VPS and prayers
hankels
Member
OP
52 VPS and counting
- Joined:
- Jun 2024
- Posts:
- 301
- From:
- Phoenix, US
Annexbi I actually found that same abandoned parser and the parens in your post gave me a stress flashback to editing it
The graphviz route works but at 52 nodes it's a mess, I tried
Tallinnying your 3am line-with-boxes is honestly more readable than most dashboards I've paid for, link me
I might just bite the bullet and script something against the Vultr API to dump ASN adjacencies, then feed that into whatever svg generator still works in 2024 — docs are at https://docs.vultr.com
seedbox, NAS, tape, and three offsite