Forum Discussion
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
Don_MacVittie_1
Jul 16, 2008Historic F5 Account
Hi 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.
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
