7000 get projects from node

#!/usr/bin/bash

#get projects
set `ssh root@192.168.73.141 shares list`

counter=0
while test $# -gt 0
do
let counter=$counter+1
shares[$counter]=$1
shift
done

#count projects

count=`echo ${#shares[@]}`
echo $0: $count projects found

#get data
item=1
while test $item -le $count
do
ssh root@192.168.73.141 "shares select ${shares[$item]} show" |egrep "canonical|space_total|space_available|space_snapshots"
let item=$item+1
echo "=+=+=+"
done

This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.