Joe,
Thank you for the prompt replies. The code below worked well all these days and suddenly now it has given the error. I am also trying to figure out what the configuration on BigIP was for that specific case.
My question now is what is the general case scenario if I do not know in advance the number of possible monitors and in what combination they are required to ensure that the node is UP. It seems that the rule was not initialized for that particular reason. By the way, I am doing a bug fix on someone else's code.
I see your point regarding the rule not being initialized, but if it was working all these days, then what could have caused the error now?
I guess I just need to see the entire context.
Thanks,
Pallavi