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?
- hoolio
Cirrostratus
Are you trying to script the changes without reloading the config? - JRahm
Admin
how about - 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?
- 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".
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