Forum Discussion
Kumar_Annamalai
Nimbostratus
Jul 04, 2013how to upload iFile dynamcially so that iRule gets the runtime file for manipulation
Hi All,
Please help as i'm a newbie.
From shell script i get a runtime file generated using cronjob and stored on the local folder in \config\xyz folder\poolname_poolmember_status_txt) wit...
Kevin_Stewart
Employee
Jul 05, 2013You can't delete and recreate an iFile that's in use. Also understand that an LTM iFile is a reference to a system level iFile. The system level (SYS) iFile is the link to the actual file. So if you're simply updating the contents of the iFile, use tmsh create/modify sys file ifile. Interesting, the source-path option of this command performs a curl request to whatever is specified. If your file is remotely accessible via HTTP, then you could probably just do this:
tmsh modify sys file ifile [ifile-name] source-path http://10.70.0.1/poolname_poolmember_status_txt
If the file is local (you've already uploaded it to the F5, try this:
tmsh modify sys file ifile [ifile-name] source-path file://localhost/config/ifile/poolname_poolmember_status_txt
- where "/config/ifile/poolname_poolmember_status_txt" is the physical path on the local system.
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