Forum Discussion
tmsh command to create pool, add node and set default health monitor
I'm a noob to DevCentral and at using tmsh. I did some searches and can't seem to find anything showing the command to set the health monitor when creating a pool and adding a member. So far this is what I have:
(tmos) create ltm pool poolname members add {servername:port}
This worked fine but I need to add the heath monitor: /Common tcp_half_open
I would be greatful if someone could point me in the right direction.
3 Replies
- What_Lies_Bene1
Cirrostratus
Hey Mike. It'll be something like
members add ( x.x.x.x:port { monitor mon_name} ...
Page 880, section 35 - 32 in the tmsh manual for v11.4: sorry this link is for v11.4.1 but it should be close: http://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/bigip-tmsh-11-4-1.html
- Mike_Sclimenti_
Nimbostratus
Thanks! I will give this a shot and send an update.
- dichotomouse
Nimbostratus
To create the pool and monitor at the same time in one command do this:
create ltm pool /MyPartition/MyPool members add { /MyPartition/MyNode:80 } monitor http
I've tried it different ways, the important thing is that 'monitor http' be outside the brackets.
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