Forum Discussion
andrewmjones
Nimbostratus
Feb 18, 2020GTM Cluster
Do you know how to view the members of a GTM cluster from the command line
regards
Andy
- cjunior
Nacreous
Hi,
Try this one on bash: gtm_list_servers
It returns peer addresses as IPv6:
e.g.
# gtm_list_servers 0000:0000:0000:0000:0000:FFFF:AC1E:1E07 0000:0000:0000:0000:0000:FFFF:AC1E:1E06
This script runs this inside:
tmctl -w 8000 -f /var/tmstat/blade/gtmd gtm_iqmgmt_stat
I really don't know a better way to have that names ,other than this:
tmctl -w 8000 -f /var/tmstat/blade/gtmd gtm_iqmgmt_stat | awk -Wposix '$1 ~/00:/ { o1=substr($1,37,2); o2=substr($1,40,2); o3=substr($1,43,2); o4=substr($1,46,2); printf("%d.%d.%d.%d ","0x" o1, "0x" o2, "0x" o3, "0x" o4) } { print $23}'
Regards.
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