Forum Discussion
jaikumar_f5
Dec 20, 2017MVP
You can try going with bash with tmsh commands, save the output in csv format. winscp it to windows and use it.
Making headings & intialize the file
echo Virtual-Server, Destination, Pool, Pool-Members > /var/tmp/$HOSTNAME.csv
Capture all virtuals in the LTM
VIRTUALS=$(tmsh list ltm virtual | grep "ltm virtual" | cut -d" " -f3)
for VS in $VIRTUALS;
do
DEST=$(tmsh list ltm virtual $VS | grep destination | cut -d" " -f6)
POOL=$(tmsh list ltm virtual $VS | grep pool | cut -d" " -f6)
if [ -n "$POOL" ];
then
MBRS=$(tmsh list ltm pool "$POOL" | grep address | cut -d" " -f14)
fi
echo $VS,$DEST,$POOL,$MBRS >> /var/tmp/$HOSTNAME.csv
done