Forum Discussion
Anthony
Nimbostratus
Sep 02, 2013iRule to disable a pool to new connections
I'm wondering if anyone knows whether it is possible to set a pool state from within an iRule?
I am very keen to try to automate the disabling of new connections at a certain time of day.
...
nitass
Employee
Sep 08, 2013just in case you have not seen this.
Note: Calling LB::down in an iRule triggers an immediate monitor probe regardless of the monitor interval settings.
LB::down wiki
https://devcentral.f5.com/wiki/irules.LB__down.ashxe.g.
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm rule myrule
ltm rule myrule {
when HTTP_REQUEST {
log local0. "LB::down pool foo member 200.200.200.101 80"
LB::down pool foo member 200.200.200.101 80
}
}
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm pool foo
ltm pool foo {
members {
200.200.200.101:80 {
address 200.200.200.101
session monitor-enabled
state up
}
}
monitor myhttp
}
[root@ve11a:Active:Changes Pending] config tail -f /var/log/ltm
Sep 8 16:14:48 ve11a info tmm[16464]: Rule /Common/myrule : LB::down pool foo member 200.200.200.101 80
Sep 8 16:14:48 ve11a err tmm[16464]: 01010028:3: No members available for pool /Common/foo
Sep 8 16:14:48 ve11a notice mcpd[13124]: 01070638:5: Pool /Common/foo member /Common/200.200.200.101:80 monitor status iRule down. [ /Common/myhttp: up ] [ was up for 0hr:1min:56sec ]
Sep 8 16:14:48 ve11a err tmm1[16464]: 01010028:3: No members available for pool /Common/foo
Sep 8 16:14:49 ve11a notice mcpd[13124]: 01070727:5: Pool /Common/foo member /Common/200.200.200.101:80 monitor status up. [ /Common/myhttp: up ] [ was iRule down for 0hr:0min:1sec ]
Sep 8 16:14:49 ve11a err tmm[16464]: 01010221:3: Pool /Common/foo now has available members
Sep 8 16:14:49 ve11a err tmm1[16464]: 01010221:3: Pool /Common/foo now has available members
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