Ken_Wong_48678
Jul 16, 2008Historic F5 Account
remove irule
Hi,
My customer would like to remove irule using icontrol. Is there any sample script here? TIA.
Regards,
Ken
My customer would like to remove irule using icontrol. Is there any sample script here? TIA.
Regards,
Ken
I don't think there is a sample that does this out there, but it is very simple. Take any of the existing samples (I don't know what language and library your customer uses, so I won't include one here) and use the part that starts communications, then they just need to call LocalLB.Rule.delete_rule() with an array of rule names.
This routine is a bit dangerous, but remind them that if they get into trouble, it doesn't change the start-up configuration until they save their changes. That means that unless they're automatically saving in their code, they can recover from an unintended delete, but if they want their changes to persist beyond the next reboot they will have to save changes.
Regards,
Don.
-Joe
Don.
b) How can I register a new Pool and register an iRule with it?