Forum Discussion
Jim_Araujo_1061
Nimbostratus
Jun 10, 2015iRule to read dynamic file in /tmp/ location
Hi All,
I've been trying to figure out if there is a way for an iRule to read from a file located in the /tmp/ directory on itself (LTM). The reason for this is I have a script running as a cronjob o...
Michael_Jenkins
Cirrostratus
Jun 11, 2015Tried to update my original answer, but it wouldn't save, so here's the idea.
You can use the following commands to work with data groups from the command line:
CREATE
tmsh create / ltm data-group internal TEST_DATA_GROUP records add { MyKey { data MyValue } } type string
MODIFY
tmsh modify / ltm data-group internal TEST_DATA_GROUP records replace-all-with { MyKey2 { data MyValue2 } }
LIST
tmsh list / ltm data-group internal TEST_DATA_GROUP
In your iRule, you could grab the value like this
set myval [class match -value "MyKey" equals TEST_DATA_GROUP]
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