Filter by:
  • Solution
  • Technology

answers

BigIP 9: Clear RAM cache?

Updated 6/30/2008 • Originally posted on 30-Jun-2008 by lucadentella 10

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!
1
Rate this Question

Answers to this Question

6 Answers:

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Updated 30-Jun-2008 • Originally posted on 30-Jun-2008 by hoolio 2055
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
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Updated 30-Jun-2008 • Originally posted on 30-Jun-2008 by lucadentella 10
Thanks Aaron!
Do you know if there's a way to call that command via SOAP?
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Updated 30-Jun-2008 • Originally posted on 30-Jun-2008 by hoolio 2055
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.

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

Aaron
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Updated 01-Jul-2008 • Originally posted on 01-Jul-2008 by lucadentella 10
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:
http://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!
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Updated 01-Jul-2008 • Originally posted on 01-Jul-2008 by Jason Rahm
I'd suggest posting that question to the iControl forum, it will get greater scrutiny there.
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Updated 01-Jul-2008 • Originally posted on 01-Jul-2008 by lucadentella 10
you're right! thanks

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