```
This PR is inspired by laanwj's python script mentioned in #19405, which
it turns out I ended up using every day and extending because I got
hooked on using it to monitor Bitcoin peer connections.
For the full experience, run ./src/bitcoin-cli -netinfo 4
On Linux, try it with watch watch ./src/bitcoin-cli -netinfo 4
Help doc
$ ./src/bitcoin-cli -help | grep -A3 netinfo
-netinfo
Get network peer connection information from the remote server.
An
optional integer argument from 0 to 4 can be passed for different
peers listings (default: 0).
```
Backport of core#19643.
Depends on D9331 and D9333.