[wifi/uname_bornes.sh] rrécupère et affiche le uname sur chacune des bornes
darcs-hash:20090614220550-bd074-619a661c5a6ee86fa17c2e203101c34a10e4d0da.gz
This commit is contained in:
parent
cf70b657bc
commit
f224c4f8ae
1 changed files with 16 additions and 0 deletions
16
wifi/uname_bornes.sh
Executable file
16
wifi/uname_bornes.sh
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ $# -gt 1 ]]; then
|
||||||
|
cat <<EOF
|
||||||
|
usage: sh uptime_bornes.sh
|
||||||
|
Récupère la liste des bornes et récupère sur chacune le uname
|
||||||
|
EOF
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
for borne in $(host -l wifi.crans.org | grep 138.231.148 | \
|
||||||
|
grep -v '138.231.148.1$' | awk '{print $1}');
|
||||||
|
do
|
||||||
|
printf '%-15s' ${borne/.wifi.crans.org/}
|
||||||
|
ssh ${borne/.crans.org/} -o Connecttimeout=1 uname -v
|
||||||
|
done
|
Loading…
Add table
Add a link
Reference in a new issue