Forum Discussion
sally_calvert_8
Oct 01, 2013Nimbostratus
11.3 tmsh cli for irule
I have the following irule, and I need to get it into one tmsh cli (using the editor or the gui is not an option). I can enter it through the gui just fine. But when I prepend tmsh create on the fron...
Kevin_Stewart
Oct 02, 2013Employee
Okay, admittedly this is a little hokey, but it does work:
echo -e "ltm rule /Common/test_rule {\nwhen CLIENT_ACCEPTED {\n set VirtualIP [IP::client_addr]\n snat \$VirtualIP\n}\n}" > /var/tmp/test-rule & tmsh load sys config merge file /var/tmp/test-rule
The idea is that it creates a properly formatted iRule in a temporary file (including newlines) and then imports that into the config via merge.
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