Hi,
this is a first start from me. Maybe it helps a bit.
!/bin/sh
echo $(date) > vsnd
this script relies on /etc/hosts or whatever. anyway the names
must resolve to the correct addresses else everything is lost :-(
___________ V10 ___________
for i in DEVICE; do
ssh USER@$i -C '/bin/netstat -rn' 2>&1 | sed -e "s/^.*only\.//" > $i
echo " $i ">> vsnd
ssh USER@$i -C 'virtual all show all' | grep -iE "VIRTUAL|POOL|RULE" 2>&1 >> vsnd
echo "">> vsnd
done
___________ V11 ___________
for j in DEVICE ; do
ssh USER@$j -C '/bin/netstat -rn' 2>&1 | sed -e "s/^.*only\.//" > $j
echo " $j ">> vsnd
ssh USER@$j -C 'tmsh show /ltm virtual all-properties detail | grep -iE "Ltm|State|Reason|Destination"' 2>&1 >> vsnd
echo "">> vsnd
done
Regards,
Peter