Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral


Questions and Answers

Loading... Loading...

Hello!

I'm working with a BigIP (version BIG-IP 9.4.4 Build 73.1 Hotfix HF1).
I need a way (best using a script, I've already written a script to enable/disable nodes during nightly deployes) to clear RAM cache, as when we change static contents on web servers behind F5, clients still reiceve old versions of pages/images.

A workaround I'm using is to change, after migration, HTTP profile in our virtual servers.

Thanks!

6 Answer(s):

Hi,

You could use a bigpipe command to clear the existing entries from the command line. You can check the 'b profile http help' output for details on the commands. Something like this might work to clear all entries:

b profile http http_profile_name ramcache entry all delete

Aaron
Thanks Aaron!
Do you know if there's a way to call that command via SOAP?
It looks like iControl provides this functionality as of 9.0.5. I haven't used these methods before though so I don't know if there is anything special to be aware of.

https://devcentral.f5.com/wiki/default.aspx/iControl/LocalLB__RAMCacheInformation.html

Aaron
Hi Aaron!

Update: I was able to write a perl script to call "evict_all_ramcache_entries" which seems to work fine.
My boss asked me to find a way to clear cache only for a single http_profile, like the shell command you suggested.

In iControl, VirtualServer object, I can't find a suitable method:
https://devcentral.f5.com/wiki/default.aspx/iControl/GlobalLB__VirtualServer.html

Am I missing anything or is it still unimplemented in iControl?

Thanks for your support!
I'd suggest posting that question to the iControl forum, it will get greater scrutiny there.
you're right! thanks

https://devcentral.f5.com/Default.aspx?tabid=53&forumid=1&postid=25637&view=topic

Your answer:

You must be logged in to reply. You can login here.