Fetch all details about VS, POOLS, Nodes, etc.
@jaikumar_f5
Hi Jay, was going through your post.
command echo Virtual-Server, Destination, Pool, Pool-Members > /var/tmp/$HOSTNAME.csv creates an CSV file, i tested this and it creates a csv file.
how do i call below code.
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
do i need to paste in a file and store it inside a specific folder to call it, what would be the format, could you please let me know.