Export GTM/DNS Configuration in CSV - tmsh cli script
Problem this snippet solves: This is a simple cli script used to collect all the WideIP, LB Method, Status, State, Pool Name, Pool LB, Pool Members, Pool Fall back, Last Resort pool info in CSV form...
Published Mar 15, 2021
Version 1.0jaikumar_f5
MVP
Joined May 16, 2019
jaikumar_f5
MVP
Joined May 16, 2019
azblaster
Mar 31, 2021Nimbostratus
Our F5 Support Team Determined one change needed for our environment
When listing a gtm pool, you must specify the type of record associated with the pool, (a ,aaaa ,cname ,mx, naptr, or srv). In my lab device, my gtm pool consists of “a” records. I changed the following line in the script and it works:
Before:
set pool_configs [tmsh::get_config /gtm pool $pool_name all-properties]
After:
set pool_configs [tmsh::get_config /gtm pool a $pool_name all-properties]