Forum Discussion
How to get the pool member IP in GTM with Cli
As per "https://support.f5.com/kb/en-us/solutions/public/12000/300/sol12373"
command "tmsh show gtm wideip detail" not provides pool member IP of an wide-ip.
we have Version 11.5 on GTM.
Thanks. Ajay
- natheCirrocumuluswhat about if you just run "tmsh show gtm wideip"? Do you get the details then?
- Ajay_102032CirrusIt shows only stats, for that wideip ..no pool detail.
- natheCirrocumulustry "tmsh list gtm wideip" - this will give you a breakdown of the configuration. Is this more what you are after?
- Ajay_102032CirrusI am looking for pool IP ..."tmsh list gtm wideip" will provide only pool-name
- natheCirrocumulusapologies i understand. Yes the show command is really for statistics, rather than configuration, so it will show the pool name not IP. the only way is to dig down in the Servers configuration "tmsh list gtm server all-properties"
- IanBEmployee
A wideip can be associated with more than one gtm pool. Each pool contains one or more virtuals servers from gtm server objects.
If you use the 'detail' keyword when displaying a wideip, tmsh will recurse down that path of objects and display the wideip, pools, and pool members (including IP addresses)
For example. from v12.0.0 (in versions prior to 12, the command is 'show gtm wideip xxx', without the ' a ')
(tmos) show gtm wideip a www.example.com detail ------------------------------ Gtm::WideIp::A www.example.com ------------------------------ Status Availability : available State : enabled Reason : Available Requests Total 0 Persisted 0 Resolved 0 Dropped 0 Load Balancing Preferred 0 Alternate 0 Fallback 0 CNAME Resolutions 0 Returned from DNS 0 Returned to DNS 0 Failures with RCODE 0 ------------------------ | Gtm::Pool::A gtm-pool ------------------------ | Status | Availability : available | State : enabled | Reason : Available | | Load Balancing | Preferred 0 | Alternate 0 | Fallback 0 | Returned from DNS 0 | Returned to DNS 0 | Dropped 0 --------------------------------------- | Gtm::Pool Member: gtm-pool:A test1:me --------------------------------------- | Status | Availability : available | State : enabled | Reason : Available | | Load Balancing | Preferred 0 | Alternate 0 | Fallback 0 ---------------------------------- | Gtm::Virtual Server: test1 ---------------------------------- | Status | Availability : available | State : enabled | Reason : Monitor /Common/bigip from 10.0.0.1 : UP | Destination : 1.1.1.100:80 | | Link Name --- | | Global | Picks 0 | Connections 0 | Virtual Server Score 0 | | Throughput In Out | Bits/sec 0 0 | Packets/sec 0 0 --------------------------------------- | Gtm::Pool Member: gtm-pool:A test2:me --------------------------------------- | Status | Availability : available | State : enabled | Reason : Available | | Load Balancing | Preferred 0 | Alternate 0 | Fallback 0 ---------------------------------- | Gtm::Virtual Server: test2 ---------------------------------- | Status | Availability : available | State : enabled | Reason : Monitor /Common/bigip from 10.0.0.1 : UP | Destination : 1.1.1.101:80 | | Link Name --- | | Global | Picks 0 | Connections 0 | Virtual Server Score 0 | | Throughput In Out | Bits/sec 0 0 | Packets/sec 0 0
- Ajay_102032Cirrus
No pool's IP detail;
(tmos) show gtm wideip detail
Gtm::WideIp:Status
Availability : available State : enabled Reason : AvailableRequests
Total 6 A 3 AAAA 3 Persisted 0 Resolved 3 Dropped 0Load Balancing
Preferred 3 Alternate 0 Fallback 0 CNAME Resolutions 0 Returned from DNS 0 Returned to DNS 0| Gtm::Pool:
| Status
| Availability : available | State : enabled | Reason : Available | | Load Balancing | Preferred 0 | Alternate 0 | Fallback 0 | CNAME Resolutions 0 | Returned from DNS 0 | Returned to DNS 0 | Dropped 0----------------------------------------------------------------------------------------------------- | Gtm::Pool Member: ----------------------------------------------------------------------------------------------------- | Status | Availability : available | State : enabled | Reason :
|
| Load Balancing | Preferred 0 | Alternate 0 | Fallback 0| Gtm::Pool:
| Status
| Availability : available | State : enabled | Reason : Available | | Load Balancing | Preferred 3 | Alternate 0 | Fallback 0 | CNAME Resolutions 0 | Returned from DNS 0 | Returned to DNS 0 | Dropped 0--------------------------------------------------------------------------------------------------- | Gtm::Pool Member: --------------------------------------------------------------------------------------------------- | Status | Availability : available | State : enabled | Reason :
|
| Load Balancing | Preferred 3 | Alternate 0 | Fallback 0(tmos)
- adb_11155Historic F5 Account
Pool member IP addresses do not appear in the BIG-IP GTM 11.x output for this command. They were shown in v10.x and do appear once again in 12.x. SOL12373 has been updated (not published yet as of May 2016) with this information.
(1) To view the pool member IP addresses in v11.x you can display a server object's (shown in the wideip output) summary using the following syntax:
or... (2) Use this one-liner which shows the wideip and then pulls the server names from the output to use them as arguments for the show server command:tmsh show gtm server detail
tmsh show gtm wideip detail;tmsh show gtm wideip detail | grep Member | awk '{print $5}' | cut -d':' -f2 | xargs tmsh show gtm server detail
- Ahmed_Mostafa_2Nimbostratus
I try the following command (show gtm wideip A all detail | grep 'WideIp|Destination')
- Ahmed_Mostafa_2Nimbostratus
sorry the command (show gtm wideip A all detail | grep 'WideIp|Destination')
- Ahmed_Mostafa_2Nimbostratus
sorry Back Slash not appear from comments and Back Slash between WideIp and Destination as the following: WideIp(Back Slash)|Destination
- Aaron_BookerEmployee
Pool member IP addresses do not appear in the BIG-IP GTM 11.x output for this command. They were shown in v10.x and do appear once again in 12.x. SOL12373 has been updated (not published yet as of May 2016) with this information.
(1) To view the pool member IP addresses in v11.x you can display a server object's (shown in the wideip output) summary using the following syntax:
or... (2) Use this one-liner which shows the wideip and then pulls the server names from the output to use them as arguments for the show server command:tmsh show gtm server detail
tmsh show gtm wideip detail;tmsh show gtm wideip detail | grep Member | awk '{print $5}' | cut -d':' -f2 | xargs tmsh show gtm server detail
- Ahmed_Mostafa_2Nimbostratus
I try the following command (show gtm wideip A all detail | grep 'WideIp|Destination')
- Ahmed_Mostafa_2Nimbostratus
sorry the command (show gtm wideip A all detail | grep 'WideIp|Destination')
- Ahmed_Mostafa_2Nimbostratus
sorry Back Slash not appear from comments and Back Slash between WideIp and Destination as the following: WideIp(Back Slash)|Destination
Recent Discussions
Related Content
* 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