diff options
Diffstat (limited to 'roles/install_fastd/files')
-rw-r--r-- | roles/install_fastd/files/fastd_grep.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/install_fastd/files/fastd_grep.sh b/roles/install_fastd/files/fastd_grep.sh new file mode 100644 index 0000000..37f5118 --- /dev/null +++ b/roles/install_fastd/files/fastd_grep.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +for file in /run/ff*.socket +do + echo $file + nc -U $file | jq -r '.peers | keys[] as $k | "\(.[$k] | .connection.mac_addresses[]) \(.[$k] | .address) \($k)"' | grep $1 +done |