Forum Discussion
Andy_Herrman_22
Nimbostratus
May 25, 2010Load iRule from external file using bigpipe
The iRules that I use are stored in .tcl files in source control. I'm trying to write a simple perl script that can be used by our deployment team to do the next deploy and I'm wondering if there's a...
May 27, 2010
I just uploaded an iControl script that illustrates almost all of the methods in the LocalLB Rule interface. I tested it an it runs find directly on my BIG-IP so you can just save it there an use it. The usage is as follows:
Usage: LocalLBRule.pl host uid pwd [options]
[options]
list - List all iRules
backup dirname - Backup all iRules to specified local directory
load filename - Load single iRule from specified filename (iRule name from filename)
get iRulename - Display specified iRule
delete iRulename - Delete specified iRule
stats iRulename - Get Statistics for specified iRuleHere's the link to the CodeShare entry:
http://devcentral.f5.com/wiki/default.aspx/iControl/PerlLocalLbRule.html
If you use the "load filename" option it will take the filename (removing the beginning path and removing ".tcl" from the end) and attempt to either create a new iRule (if one doesn't exist with that name) or modify an existing one that's found.
Hope this helps...
-Joe
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
