Forum Discussion
scott_sams_8256
Nimbostratus
May 17, 2010ram cache viewing and dumping
i hope this is the right place to post. i see a lot of changes have occurred on devcentral.
going through some of the tutorials on icontrol but i have not yet found what i am looking for. i want to use the
LocalLB.RamCacheInformation
to view and evict from ram cache. i don't quite get the structure on this command. i see others use the get_list() after them but i don't know how to find command line options for this.
i do see it as a valid command doing an $IC | gm but when i enter the command it comes back with no complaint and no information.
thanks for any direction.
- hoolio
Cirrostratus
Hi Scott, - JRahm
Admin
with pycontrol:>>> import pycontrol.pycontrol as pc >>> b = pc.BIGIP( ... hostname = '10.10.20.5', ... username = 'admin', ... password = 'admin', ... fromurl = True, ... wsdls = ['LocalLB.RAMCacheInformation']) >>> rc = b.LocalLB.RAMCacheInformation >>> rc.get_ramcache_entry.params [(keys, u'LocalLB.RAMCacheInformation.RAMCacheKeySequence')] >>> rc.typefactory.create('LocalLB.RAMCacheInformation.RAMCacheKey') (LocalLB.RAMCacheInformation.RAMCacheKey){ profile_name = None host_name = None uri = None maximum_responses = None } >>> key = rc.typefactory.create('LocalLB.RAMCacheInformation.RAMCacheKey') >>> key.profile_name = 'lcache' >>> key.host_name = '' >>> key.uri = '' >>> key.maximum_responses = 4L >>> rc.get_ramcache_entry(keys = [key]) [[(LocalLB.RAMCacheInformation.RAMCacheEntry){ profile_name = "lcache" host_name = "10.10.20.60" uri = "/images/gnome-64.png" vary_type = "RAM_CACHE_VARY_NONE" vary_count = 1 hits = 0 received = 1325801904 last_sent = 1325801904 expiration = 1325844720 size = 4677 }]]
- JRahm
Admin
i know it isn't powershell, but should give you an idea of the structure of RamCacheKey
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