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...
nitass_89166
Noctilucent
Aug 11, 2014I began my script in the .txt as
cli script VS_name.tcl{
....
}
i thought you are importing configuration (not tmsh scripting).
the following is an example when importing from terminal. anyway, configuration formatting is same.
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm rule test
01020036:3: The requested iRule (test) was not found.
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) load sys config from-terminal merge
Enter configuration. Press CTRL-D to submit or CTRL-C to cancel.
ltm rule test {
when CLIENT_ACCEPTED {
log local0. ""
}
}
Loading configuration...
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm rule test
ltm rule test {
when CLIENT_ACCEPTED {
log local0. ""
}
}
by the way, do not forget to save (tmsh save sys config) after importing.
vvc5042_164605
Nimbostratus
Aug 12, 2014Hi, thanks for the reply and yes that was my original question with the iRules. But I am trying the same method with a tmsh script, as in uploading a tmsh script from a .txt file to the F5 using the same method as I was uploading the iRule.
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