Forum Discussion
OM
Jun 20, 2011Nimbostratus
ssh to specific partition
Hi, is it possible to ssh directly to a specific LTM partition instead of common one? i have big-ip 3600 10.2 with LTM and ASM modules ? thank you.
If you want to check the status of a node you can use the LB::status command.
http://devcentral.f5.com/wiki/iRules.LB__status.ashx
Your iRule would look something like this:
when HTTP_REQUEST {
log local0. "Node 1 Status: [LB::status pool my.pool.name member 10.10.10.10 80]"
log local0. "Node 2 Status: [LB::status pool my.pool.name member 20.20.20.20 80]"
if { [LB::status pool my.pool.name member 10.10.10.10 80] eq "down" } {
HTTP::redirect "http://www.yahoo.com"
}
if { [LB::status pool my.pool.name member 20.20.20.20 80] eq "down" } {
HTTP::redirect "http://www.msn.com"
}
}