Forum Discussion
vvc5042_164605
Nimbostratus
Jul 23, 2014Importing a pre-exisiting iRule into an existing virtual server using TMSH or Bash
Hello,
I'm trying to import a pre-written iRule, in a text file, into a virtual server that I've already created using TMSH. Looking through the TMSH reference guide, I noticed that the only opt...
samstep
Cirrocumulus
Jul 23, 2014The best thing to do is to use tmsh sys config merge function, for which you need to make sure the text of irule in the file start from "ltm rule ..." e.g:
ltm rule hello_world {
when RULE_INIT {
log local0. "HELLO WORLD!"
}
}
e.g. save this in hello_world.txt file, now you can verify it and "load merge" it:
First verify:
tmsh load sys config verify file hello_world.txt merge
Validating configuration... hello_world.txt
now merge for real:
tmsh load sys config file hello_world.txt merge
Loading configuration... hello_world.tcl
That's it!
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