Forum Discussion

veredgfbll's avatar
May 19, 2024
Solved

Find GSLB pool membership from vip IP

Hi,

Is there a simple way to find out in which GSLB pool a VIP is a member of? (if I only have the VIP IP/NAME).

Thanks,

Vered

  • If you have the VS name then

    tmsh list gtm pool one-line | grep VS_NAME | cut -d ' ' -f 2-4

     

5 Replies

  • Hi Vregfbll

     

    Please try following command.

    The below command will display all the necessary information you are looking for in one place , it will show all the Wide IP , and their respective pool and further all the respective pool members(which are in actual Virtual IP on LTMs in real but pool member of GTM pools , which you are looking for) in hierarchical pattern, you can do further filtering or more grep once you know your virtual ip name or details.

    root@(TEST-dns01)(cfg-sync In Sync (Sync Only))(Active)(/Common)(tmos)# show gtm wideip a all detail | grep -e -i "gtm\|wideip\|pool"
    Display all 12 items? (y/n) y
         | Gtm::Pool Member: Test.glb1.Test-Domain.com_443:A vs_Test-d6-fmo_Location1_Test-Domain_com_443:MYDNS10-11
         | Gtm::Pool Member: frog.glb1.Test-Domain.com_443:A vs_frog-d6_Location1_Test-Domain_com_443:MYDNS10-11
         | Gtm::Pool Member: MyAuth.glb1.Test-Domain.com_443:A vs_MyAuth-d6-fmo_Location1_Test-Domain_com_443:MYDNS10-11
         | Gtm::Pool Member: MyAuth.glb1.Test-Domain.com_443:A vs_MyAuth-d6_Location1_Test-Domain_com_443:MYDNS10-11
         | Gtm::Pool Member: MyAuthenticate.glb1.Test-Domain.com_443:A vs_MyAuthenticate-d6-fmo_Location1_Test-Domain_com_443:MYDNS10-11
         | Gtm::Pool Member: MyAuthenticate.glb1.Test-Domain.com_443:A vs_MyAuthenticate-d6_Location1_Test-Domain_com_443:MYDNS10-11
         | Gtm::Pool Member: Elephant.glb1.Test-Domain.com_443:A vs_10.94.68.43_443:MYDNS10-11
         | Gtm::Pool Member: Lion.glb1.Test-Domain.com_80:A vs_cf-llb9_Location1_Test-Domain_com_80:MYDNS10-11
         | Gtm::Pool Member: ABC.glb1.Test-Domain.com_80:A vs_10_24_62_51_80:MYDNS10-11
    Gtm::WideIp::A Pandora.glb1.Test-Domain.net
      | Gtm::Pool::A Pandora.glb1.Test-Domain.net_443
         | Gtm::Pool Member: Pandora.glb1.Test-Domain.net_443:A vs_10.91.12.29_443:zoo30g.Location1.Test-Domain.net
         |   Reason       :  Monitor /Common/Pandora.glb1.Test-Domain.net_https from 10.121.32.4 : connect: server error, search result: false
         | Gtm::Pool Member: Pandora.glb1.Test-Domain.net_443:A vs_10_12_127_19_443:zoom0002g.Location1.Test-Domain.net
         | Gtm::Pool Member: Pandora.glb1.Test-Domain.net_443:A vs_10_12_127_17_443:zoom0005g.Location1.Test-Domain.net
         |   Reason       :  Monitor /Common/Pandora.glb1.Test-Domain.net_https from 10.12.32.4 : connect: timeout search result false
         | Gtm::Pool Member: hybridtransspecies.glb1.Test-Domain.com_25:A vs_10_24_62_60_25:MYDNS10-11
         | Gtm::Pool Member: hybridtransspecies.glb1.Test-Domain.com_25:A vs_hybridtransspecies-fmo_25:MYDNS10-11
         | Gtm::Pool Member: idp-passspecies.glb1.Test-Domain.com_80:A vs_idp-llb9_Location1_Test-Domain_com_80:MYDNS10-11
         | Gtm::Pool Member: idp.glb1.Test-Domain.com_80:A vs_10_24_62_54_80:MYDNS10-11
    Gtm::WideIp::A licensespeciesal-jungle.glb1.Test-Domain.net
      | Gtm::Pool::A licensespeciesal-jungle.glb1.Test-Domain.net_443
         | Gtm::Pool Member: licensespeciesal-jungle.glb1.Test-Domain.net_443:A vs_10_120_17_198_443:licensespeciesal-Teecomm9g.Location1.Test-Domain.net
         | Gtm::Pool Member: licensespeciesal-jungle.glb1.Test-Domain.net_443:A vs_10_120_17_201_443:licensespeciesal-Teecomm8g.Location1.Test-Domain.net
    Gtm::WideIp::A licenseservice-jungle.glb1.Test-Domain.com
      | Gtm::Pool::A licenseservice-jungle.glb1.Test-Domain.com_443
         | Gtm::Pool Member: licenseservice-jungle.glb1.Test-Domain.com_443:A vs_10_24_2_111_443:licenseservice-Teecomm6g.Location1.Test-Domain.com
         |   Reason       :  Monitor /Common/licenseservice-jungle.glb1.Test-Domain.com_https_443 from 12.184.114.15 : connect: timeout search result false: dis
         | Gtm::Pool Member: licenseservice-jungle.glb1.Test-Domain.com_443:A vs_10_24_2_114_443:licenseservice-Teecomm7g.Location1.Test-Domain.com
         |   Reason       :  Monitor /Common/licenseservice-jungle.glb1.Test-Domain.com_https_443 from 12.184.114.14 : connect: connect failed search result fal
         | Gtm::Pool Member: licenseservice-jungle.glb1.Test-Domain.com_443:A vs_12_184_2_111_443:licenseservice-Teecomm6g.Location1.Test-Domain.com
         | Gtm::Pool Member: licenseservice-jungle.glb1.Test-Domain.com_443:A vs_12_184_2_114_443:licenseservice-Teecomm7g.Location1.Test-Domain.com
         |   Reason       :  Monitor /Common/licenseservice-jungle.glb1.Test-Domain.com_https_443 from 10.24.8.4 : connect: server error search result false
         | Gtm::Pool Member: outlook.glb1.Test-Domain.com_443:A vs_10_121_32_54_443:MYDNS10-11
         | Gtm::Pool Member: outlook.glb1.Test-Domain.com_443:A vs_exch-d6-fmo_443:MYDNS10-11
    Gtm::WideIp::A proxy-jungle-HRS.glb1.Test-Domain.net
      | Gtm::Pool::A proxy-jungle-HRS.glb1.Test-Domain.net_8080
         | Gtm::Pool Member: proxy-jungle-HRS.glb1.Test-Domain.net_8080:A vs_16.168.68.54_8080:Uranusjungle203.Tokyo.TestPUB.com
         | Gtm::Pool Member: proxy-jungle-HRS.glb1.Test-Domain.net_8080:A vs_16.168.68.55_8080:Uranusjungle204.Tokyo.TestPUB.com
    Gtm::WideIp::A securebaseaccess-jungle.glb1.Test-Domain.net
      | Gtm::Pool::A securebaseaccess-jungle.glb1.Test-Domain.net_443
         | Gtm::Pool Member: securebaseaccess-jungle.glb1.Test-Domain.net_443:A vs_10_12_17_16_443:securebaseaccess-Teecommm4.Location1.Test-Domain.net
         | Gtm::Pool Member: securebaseaccess-jungle.glb1.Test-Domain.net_443:A vs_10_12_17_19_443:securebaseaccess-Teecommm5.Location1.Test-Domain.net
    Gtm::WideIp::A Todaysupdate-jungle.glb1.Test-Domain.com
      | Gtm::Pool::A Todaysupdate-jungle.glb1.Test-Domain.com_443
         | Gtm::Pool Member: Todaysupdate-jungle.glb1.Test-Domain.com_443:A vs_10_24_2_12_443:Todaysupdate-Teecomm6g.Location1.Test-Domain.com
         |   Reason       :  Monitor /Common/Todaysupdate-jungle.glb1.Test-Domain.com_https_443 from 12.184.14.14 : connect: timeout search result false: disabl
         | Gtm::Pool Member: Todaysupdate-jungle.glb1.Test-Domain.com_443:A vs_10_24_2_10_443:Todaysupdate-Teecomm7g.Location1.Test-Domain.com
         |   Reason       :  Monitor /Common/Todaysupdate-jungle.glb1.Test-Domain.com_https_443 from 12.184.14.14 : connect: connect failed search result false:
         | Gtm::Pool Member: Todaysupdate-jungle.glb1.Test-Domain.com_443:A vs_12_184_2_12_443:Todaysupdate-Teecomm6g.Location1.Test-Domain.com
         | Gtm::Pool Member: Todaysupdate-jungle.glb1.Test-Domain.com_443:A vs_12_184_2_11_443:Todaysupdate-Teecomm7g.Location1.Test-Domain.com
         |   Reason       :  Monitor /Common/Todaysupdate-jungle.glb1.Test-Domain.com_https_443 from 10.124.18.14 : connect: server error search result false
         | Gtm::Pool Member: Foreign-ext.glb1.Test-Domain.com_443:A vs_Foreign9-ext-fmo_Location1_Test-Domain_com_443:MYDNS10-11
         | Gtm::Pool Member: Foreign-ext.glb1.Test-Domain.com_443:A vs_Foreign9-ext_Location1_Test-Domain_com_443:MYDNS10-11
    Gtm::WideIp::A International.glb1.Test-Domain.net
      | Gtm::Pool::A International.glb1.Test-Domain.net_443
         | Gtm::Pool Member: International.glb1.Test-Domain.net_443:A vs_Foreign4-int_Location1_Test-Domain_net_443:MYDNS10-11
            | Gtm::Virtual Server: vs_Foreign4-int_Location1_Test-Domain_net_443
         | Gtm::Pool Member: International.glb1.Test-Domain.net_443:A vs_Foreign9-int_Location1_Test-Domain_net_443:MYDNS13-14
            | Gtm::Virtual Server: vs_Foreign9-int_Location1_Test-Domain_net_443
         | Gtm::Pool Member: sso-passspecies.glb1.Test-Domain.com_80:A vs_sso-llb9_Location1_Test-Domain_com_80:MYDNS10-11
         | Gtm::Pool Member: sso.glb1.Test-Domain.com_80:A vs_10_24_62_52_80:MYDNS10-11

     

    Let me know if you need more commands or if this does not help resolve your query.

     

    You can change the grep  parameters by adding your virtual server name.

     

     

    Please rate and mark it as solution if it help solve your requirement as it will help others also those who will read your post.

     

    HTH

    🙏

     

  • If you have the VS name then

    tmsh list gtm pool one-line | grep VS_NAME | cut -d ' ' -f 2-4

     

  • you can dump gtm config to text file, open the dump file using text viewer  then search for the vip address:

    "tmsh list gtm all-properties | tee /var/tmp/gtm.txt"