Forum Discussion
havalicosbyshow
Nimbostratus
Oct 05, 2011Getting pool info listing member host:port
Hi,
I am new to F5 and to this forum so I am not sure if this is right place to post this question.
What I am trying to do is to query F5 for a node and return me the pool that node belongs to. Since I wasn't able to find anything that returns this information, I decided to use
"tmsh show running-config ltm pool" command
This command returns me the information about the pools and the nodes in each pool. However, members are listed with their IP address and protocol (instead of port number). Is there a way to have the members being returned in 1.2.3.4:80 format instead of 1.2.3.4:http?
Thanks for your help.
7 Replies
- nitass
Employee
can u check Bigpipe.DisplayServiceNames db key?[root@tulip:Active] config b db Bigpipe.DisplayServiceNames Bigpipe.DisplayServiceNames = true [root@tulip:Active] config b pool foo list pool foo { members 10.10.70.110:http } [root@tulip:Active] config b db Bigpipe.DisplayServiceNames false [root@tulip:Active] config b pool foo list pool foo { members 10.10.70.110:80 } - havalicosbyshow
Nimbostratus
Thanks. This works.
This seems to be a persistent change, though. Do you know if there is something similar that only affects the current session ?
I would also be interested in finding a tmsh equivalent. Do you know if one can do this in tmsh ?
Thanks for the help. - Michael_Yates
Nimbostratus
Hi
If you want your bigip.conf to list Port Numbers instead of the Service Name:
Globally configuring the BIG-IP system to not translate service and protocol numbers to names when storing configuration objects in the bigip.conf file
Log in to the BIG-IP command line.
Type the following command:
bigpipe cli service number
Note: The service option is incorrectly described in the bigpipe cli man page. For more information, refer to SOL11301: Documentation Erratum: The bigpipe cli man page provides incorrect information for the service option.
Save the configuration by typing the following command:
bigpipe save
Note: The bigip.conf file is now saved using service and protocol numbers rather than names.
This is from SOL12251: Missing or ambiguous entries in the /etc/protocols or /etc/services files may cause configuration errors
Hope this helps. - nitass
Employee
This seems to be a persistent change, though. Do you know if there is something similar that only affects the current session ?bigpipe.displayservicenames db key will affect when displaying only (the config file will still use service name). the command Michael mentioned will make config file use service number instead.
this is tmsh version.root@sunflower(Active)(tmos) list sys db bigpipe.displayservicenames sys db bigpipe.displayservicenames { value "true" } root@sunflower(Active)(tmos) modify sys db bigpipe.displayservicenames value false root@sunflower(Active)(tmos) list sys db bigpipe.displayservicenames sys db bigpipe.displayservicenames { value "false" } - fa141_28766
Nimbostratus
Once you make the change in tmsh do you need to restart anything. I did this change through tmsh and it didn't change the pool configuration to show the ports instead of the service name.
admin@sunflower(Active)(tmos) list sys db bigpipe.displayservicenames
sys db bigpipe.displayservicenames {
value "false"
ltm pool sunflower {
members {
10.10.10.167:talon-disc {
session monitor-enabled
}
10.10.10.169:talon-disc {
session monitor-enabled
}
}
monitor tcp - fa141_28766
Nimbostratus
Once you make the change in tmsh do you need to restart anything. I did this change through tmsh and it didn't change the pool configuration to show the ports instead of the service name.
admin@sunflower(Active)(tmos) list sys db bigpipe.displayservicenames
sys db bigpipe.displayservicenames {
value "false"
ltm pool sunflower {
members {
10.10.10.167:talon-disc {
session monitor-enabled
}
10.10.10.169:talon-disc {
session monitor-enabled
}
}
monitor tcp - fa141_28766
Nimbostratus
Once you make the change in tmsh do you need to restart anything. I did this change through tmsh and it didn't change the pool configuration to show the ports instead of the service name.
admin@sunflower(Active)(tmos) list sys db bigpipe.displayservicenames
sys db bigpipe.displayservicenames {
value "false"
ltm pool sunflower {
members {
10.10.10.167:talon-disc {
session monitor-enabled
}
10.10.10.169:talon-disc {
session monitor-enabled
}
}
monitor tcp
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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