Forum Discussion
scott_sams_8256
Nimbostratus
May 18, 2010tryin to understand the command structure for an incontrol command
i have been toying with the powershell/icontrol functions and wanted to do the following.
list a ram cache and evict a ram cache. the http profile with the name of "http" for this scenario.
i dont quite understand the syntax.
i think the command i want is
$ic.LocalLB.RAMCacheInformation
is that correct? when i enter this i get nothing back.
can someone help me just display the http profile and dump the cache on it?
thanks
- $ic.LocalLBRamCacheInformation is the interface containing all of the iControl methods. You need to reference the methods in that interface. You can find the docs here
- scott_sams_8256
Nimbostratus
thanks, the script works great. i am by no means a programmer so i struggle with most of this. i will work to see if i can morph that into dumping the cache. - No problem at all and I'm glad to help. Please let me know if you get stuck. I find it's better to give folks something to start with and then let them experiment a bit to get things working on their own. If you get stuck with the evicting of the cache, let me know and I'll give you some pointers. The key with PowerShell is allocating the structures properly with the New-Object cmdlet like I did in the referenced sample.
- scott_sams_8256
Nimbostratus
i am stuck. and i got woken up 4 times last night to flush ram cache while dev was doing changes. i wonder should they adjust their cache timeouts or is this normal? - Not sure how to answer that one. Typically, you decrease your cache times during maintenance windows but that will depend on how you are setup.
- scott_sams_8256
Nimbostratus
gotcha. i am a network guy so this is outside my realm. i was wondering if they could do that for their maintenance page - have it expire every 60 seconds or so. - scott_sams_8256
Nimbostratus
if anyone knows how to mod this to clear my entries, it would be appreciated. i am really in need of this ability.
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