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 <guus at tinc-vpn.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL:
<http://www.tinc-vpn.org/pipermail/tinc/attachments/20121202/458f1706/attachment.pgp>