[./Probes/mac] Import initial

darcs-hash:20091229223437-8fbb1-61a4e696593371a10d62742b9fc409b5f335ca89.gz
This commit is contained in:
Olivier Huber 2009-12-29 23:34:37 +01:00
parent 05adbb513e
commit 82e4afb8b6

5
Probes/mac Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
echo "group:mac"
exec ip -6 a show | egrep "(^[0-9]*:|scope link)" | tail -n +2 | sed -e 's/^[0-9]*: //' -e 's/: <.*$//g' -e 's/@.*//g' -e 's/^.*fe80:://g' -e 's:/64.*$::g'