Skip to content
Snippets Groups Projects
Commit 617af247 authored by Bjoern Franke's avatar Bjoern Franke
Browse files

nodewatcher: use batctl instead of brctl for counting clients, thx to tcatm

parent b6b9391d
No related branches found
No related tags found
No related merge requests found
......@@ -173,13 +173,8 @@ crawl() {
fi
err "`date`: Collecting information about conected clients"
#CLIENTS
SEDDEV=$(brctl showstp $MESH_INTERFACE | awk '/\([0-9]\)/ {
sub("\\(", "", $0)
sub("\\)", "", $0)
print "s/^ "$2"/"$1"/;"
}')
client_count=$(brctl showmacs $MESH_INTERFACE | sed -e "$SEDDEV" | egrep -c "(${CLIENT_INTERFACES// /|}).*no")
client_count=$(($(batctl tl|wc -l) - 2))
err "`date`: Putting all information into a XML-File and save it at "$SCRIPT_DATA_FILE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment