Forum Discussion
Tafiela_89904
Nimbostratus
Apr 26, 2018F5 Configuration
Hi,
I need to run a script on 11 F5s in our environment, I can pull the configuration file and run the script against. What i need is the following :
1- generate a spreadsheet with the following columns: Virtual Server Name, VIP, Pools, Node 2- parse the configuration and update the spreadsheet with the above details.
Thank you for your help in advance!
- jaikumar_f5
Noctilucent
This is asked over and over again 🙂
Please refer this thread. Fetch all details about VS, POOLS, Nodes, etc.
Solution:
tmsh list ltm virtual one-line |awk '{for(i=0;i<=NF;i++)if($i=="pool"){p=$(i+1)}; print $3,$6,p}' |awk '{cmd="tmsh list ltm pool " $3 " one-line"; cmd|getline r; print $1,$2,$3,r}' |awk '{printf "%s,%s,%s",$1,$2,$3} {for(j=3;j<=NF;j++)if($j~/:/){printf ",%s",$j} {print ""}}' >> /var/tmp/collecting-nitas-method.csv
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects