Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topolgy information #42

Open
gabri94 opened this issue May 12, 2015 · 3 comments
Open

Topolgy information #42

gabri94 opened this issue May 12, 2015 · 3 comments

Comments

@gabri94
Copy link

gabri94 commented May 12, 2015

Hi, is there a way to retrive the topology of the 802.11 mesh network?

thank you, Gabriel

@chunyeow
Copy link
Contributor

Don't think that we have such a tool.

@chunyeow
Copy link
Contributor

But you can collect one-by-one by using mpath dump, probably need to do this using wired interface.

@bcopeland
Copy link
Contributor

On Wed, May 13, 2015 at 10:11:07AM -0700, Chun-Yeow wrote:

But you can collect one-by-one by using mpath dump, probably need to do this using wired interface.

Thomas had a hack that used ipv6 all-nodes broadcast ping and then
dumped the neighbor table - if ipv6 is used you can do that. Otherwise
you could do something like Chun-Yeow said (hopefully github doesn't mess it
up too much):

#!/bin/bash

hack to generate graphviz output from mpath table

dev=wlan0
echo "digraph {"
for host in zotac0 zotac2 zotac3; do
local_mac=$(ssh root@$host "iw dev $dev info" | awk '/addr/{print $2}')
ssh root@$host "iw dev $dev mpath dump" |
egrep '^(([0-9a-f]:){5}[0-9a-f]) \1' |
awk '{print " "'$local_mac'" -> "" $2 "" [label="" $5 ""]";}'
done
echo "}"

Bob Copeland %% http://bobcopeland.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants