Feature #203
closeddisplay number of all nodes and direct neigbors
0%
Description
Hi,
it would be useful if batctl would show some extra statistics:
- the number of all known nodes
- the number of all known clients
- the number of all neighbor nodes
- the number of all neighbor clients
Right now we have to do this counting via a shell script, but it would be much faster and comfortable in C and in batctl.
The question is if this is a feature that ought to be implemented and what command line argument to use.
Updated by M W almost 10 years ago
That being said, I do have a very rough patch. But I do not know where to put the code and how to make it accessible via command line. Suggestions?
Updated by Marek Lindner almost 10 years ago
Instead of batctl printing these statistics I would prefer seeing options being added which allow filtering neighbor nodes, neighbor clients, etc.
In general, it might be better to have those discussions on the mailing list. Not many people follow the bug tracker.
Updated by Marek Lindner over 9 years ago
Did you collect sufficient info on the mailing list to implement such a feature ?
Updated by M W over 9 years ago
The first column of "batctl o" can also contain the MAC address of secondary interfaces of neighbors. I do not know how to work around this.
If there is no workaround, then the attempt to get a list of all primary interfaces addresses does not make much sense.
Updated by Marek Lindner over 9 years ago
We can easily add another table only printing the primary mac addresses if that is the only remaining method to get the data. Some people also expressed interest in having the orig capabilities exported to user space. These requests could be combined into one table, don't you think ?
Updated by M W over 9 years ago
Yes, the requests can be combined in one table. But having an extra table around for this looks a bit messy. :-)
Updated by Marek Lindner over 9 years ago
Do you have an alternative suggestion ?
Updated by Marek Lindner almost 9 years ago
- Status changed from New to Closed
With 2016.0 the direct neighbor list became available as per your feature requests. Have fun!