F5-BIG-IP LTM - How to Export Pools and their members as CSV

If you are looking for a way to export (or) print  F5 Bigip Local Traffic Manager (LTM)  Load Balancer pools and their members in Comma Separated Values (CSV) format. This script is for you

Note*: It uses tmsh command line and this has to be executed in the F5 Big-IP Advanced Shell where Python 2.4+ installed.

Version: 11.6.1

The Script

 

 

Sample Execution & Output

 

You need to pass the Partition Name as an input to the Script, Here I am fetching reports for my PRE-PROD partition

[root@mwi-lb-01:Active:In Sync] ~ # ./F5PoolInfo.py PRE-PROD
POOL NAME,MEMBER NAME,PORT/PROTOCOL,IP_ADDRESS_OF_MEMBER
TEST_POOL , mwivm01 , http , 192.168.2.14
MWI_PREPROD_WEBSERVER_POOL , mwiweb01 , https , 192.168.2.14
MWI_PREPROD_WEBSERVER_POOL , mwiweb02 , https , 192.168.2.15
MWI_PREPROD_WEBLOGIC_POOL , mwiwls01 , 7001 , 192.168.2.20
MWI_PREPROD_WEBLOGIC_POOL , mwiwls02 , 7001 , 192.168.2.21
MWI_PREPROD_TOMCAT_POOL , mwitomcat01 , 8080 , 192.168.2.26
MWI_PREPROD_TOMCAT_POOL , mwitomcat02 , 8080 , 192.168.2.27

Hope it helps, If you like to be notified when we add a new content. Please leave your  name and email id in the following subscription form ( we never spam!)

 

Thanks

A K S A R A V

Follow me on Linkedin My Profile
Follow DevopsJunction onFacebook orTwitter
For more practical videos and tutorials. Subscribe to our channel

Buy Me a Coffee at ko-fi.com

Signup for Exclusive "Subscriber-only" Content

Loading