Forum Discussion
Steve_Franc
Nimbostratus
Nov 20, 2008CLI and adding monitor to an existing pool
I need to change the monitor that is being used on a number of pools. I would like to do this using CLI. I was thinking there was a b pool command that I could use that would allow me to add the new monitor and remove the existing monitor without overwriting the entire pool. Any help would be great. Thanks.
6 Replies
- Steve_Franc
Nimbostratus
btw, we are using version BIG-IP 9.4.5 Build 1049.10. Thanks - Rai_74713Historic F5 AccountOk, but just to set things clear 1st, monitors can be assigned to pools, pool_members and nodes.
Http_VS
-
- http_pool
-
- pool_memberA
- pool_memberB
If you need to use the cli, you can use the command
"b pool http_pool monitor all https"
This will modify your existing monitor if any and then use the monitor specified above. However this changes for the pool and all the pool members in it.
To specifically modify for each individual pool member in a pool
"b pool http_pool member 10.10.70.120:http monitor http"
So when you run the b list command it should show
pool http_pool {
monitor all https
member 10.10.70.110:http
member 10.10.70.120:http monitor http
member 10.10.70.130:http
} - Steve_Franc
Nimbostratus
Thanks, I will try that. My concern with just running this command was that since a monitor was already in place it would not remove the existing monitor and then there would be two monitors in place. I don't have the ability to test these commands myself but I can have someone else test it. - Steve_Franc
Nimbostratus
When we run the command b pool monitor the cli looks like it takes the command however when we do a list on that pool the monitor is not changed. The results are the same when viewing the pool via the gui also. - hoolio
Cirrostratus
raihan's steps worked on a 9.4.5 unit. As expected, the GUI showed the same config as the CLI.
Aaron
[hoolio@ltm945:Active] ~ b pool test_pool '{member 3.0.0.1:80}'
[hoolio@ltm945:Active] ~ b pool test_pool list
pool test_pool {
members 3.0.0.1:http
}
[hoolio@ltm945:Active] ~ b pool test_pool list
pool test_pool {
monitor all http
members 3.0.0.1:http
}
[hoolio@ltm945:Active] ~ b pool test_pool monitor all tcp
[hoolio@ltm945:Active] ~ b pool test_pool list
pool test_pool {
monitor all tcp
members 3.0.0.1:http
}
[hoolio@ltm945:Active] ~ uname -a
Linux ltm945.example.net 2.4.21-9.4.5.1049.0smp 2 SMP Wed May 14 12:50:53 PDT 2008 i686 athlon i386 GNU/Linux - Steve_Franc
Nimbostratus
We tried that command a few times on different ltm boxes with the same results. The command did not error out but there was no change. In playing around a little bit, we ran the command below and it worked.
b pool edit monitor all
Thanks,
Steve
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