On Sun, Dec 02, 2012 at 10:51:19PM +0100, Jan Lühr wrote: > for monitoring purposes I need to query the network status in order to get > all a list of all "online" nodes (that are connected to the network right > now). How can I do so?
There are several options. For tinc 1.0.x:
- Send the USR2 signal to the tinc daemon to get a list of all nodes.
- Use the GraphDumpFile option to get an automatically updated file of the
network graph. You can use the graphviz package to create an image from it.
For tinc 1.1:
- Use the "tincctl dump nodes" command to get a list of all nodes.
- Use "tincctl dump graph" to get a dump of the network graph.
The list of nodes may also contain nodes that are offline. To filter you should
check the fifth bit of the status field. If you want to grep:
grep 'status ..[13579bdf]'
I'll try to improve the tincctl command to make it easier to get a list of only
online nodes.
--
Met vriendelijke groet / with kind regards,
Guus Sliepen <[email protected]>
signature.asc
Description: Digital signature
_______________________________________________ tinc mailing list [email protected] http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc
