Forum Discussion
Steve_Brown_882
Sep 21, 2009Historic F5 Account
pycontrol RAMCacheInformation
Having an issue with the get_ramcache_entry function in pycontrol. I am trying to grab the satistics for all hosts and uris on a specific profile, but I can't seem to get it to work. I assumed that the keys paramater would work like others in that it would take a dictionary as I added bellow. However when I run this I get an error that says it is an unhashable type. Any thoughts?
b.LocalLB_RAMCacheInformation.get_ramcache_entry(
keys = { 'profile_name ': profile , 'host_name': "", 'uri': ""}
)
- L4L7_53191
Nimbostratus
This should serialize at the very least (I don't have a box to test against):b.LocalLB_RamCacheInformation.get_ramcache_entry(keys = [{'profile_name':'http', 'host_name':'*', 'uri':'*', 'maximum_responses':100}])
- Steve_Brown_882Historic F5 AccountThanks. I just had to make one minor tweak.(Removed the *)
- L4L7_53191
Nimbostratus
Good deal, glad it's working.
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