Forum Discussion
Vegard_75001
Nimbostratus
Sep 10, 2009adding long iRules from shell
I want to add iRules from the shell, preferably from a file. What I've managed to do so far is:
b rule my_rule `cat file.rule`
This works, but since the shell command can only be 1024 long, it won't work for long scripts.
I thought
b rule my_rule
would work, but it didn't.
Any other way to add a long script from shell?
4 Replies
- hoolio
Cirrostratus
Are you trying to script the changes without reloading the config?
Could you just edit the bigip.conf file and reload it using 'b load'? Else, maybe you could create a simple iControl script which reads file.rule and modifies the config.
Aaron - JRahm
Admin
how about
b rule my_rule '{
}' - Colin_Walker_12Historic F5 AccountI'm with the other posters...is there a particular reason that you're looking to add iRules from a file via the command line rather than putting them into the conf directly or, my preference, using the iRule editor?
Colin - Jonas_Karlsson1Historic F5 AccountIf you have your rule(s) in a text file with the same format as bigip.conf you can just do "b merge filename" and "b save".
WIth iRules you can, but you don't have to :-)
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
