cancel
Showing results for 
Search instead for 
Did you mean: 
Login & Join the DevCentral Connects Group to watch the Recorded LiveStream (May 12) on Basic iControl Security - show notes included.

GTM Cluster

andrewmjones
Nimbostratus
Nimbostratus

Do you know how to view the members of a GTM cluster from the command line

 

regards

 

Andy

 

 

1 REPLY 1

cjunior
Nacreous
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.