Italiano English
Edit History Actions

BatShot

batman nodeshot

coppermine ~ # cat /usr/local/bin/batdot 
#!/bin/bash

batctl vd dot -n

coppermine cgi-bin # cat battxtinfo.sh 
#!/bin/bash

export PATH="$PATH:/usr/local/sbin:/usr/local/bin"

echo "Table: Topology"
echo "       MAC 1             MAC2       FINTO FINTO Costo"
sudo batdot | grep label |tr -d \" | tr -d \] | tr -d \[ | tr -d \\-\> | tr -s = " " | sed -e 's/^[ \t]*//' | sed 's/label/1.000 1.000/' | sed 's/TT/1.111/' | sed 's/HNA/1.111/'
echo ""
echo ""