Forum Discussion
OTS02
Mar 30, 2009Cirrus
dump persistence records
Is it possible to dump the persistence records to a file, using iConntrol? I am using source ip affinity persistence.
Viewing persistence records fro the GUI, generates the following syslog:
mui/locallb/stats/persistence/stats.jsp HTTP/1.1" 7082
So far I haven't been able to find anything similar in the SDK.
Thanks
- OTS02CirrusNever mind. I found post, "Dumping persistence record table for a VS", which should be all that I need.
- OTS02CirrusWell, I thought that I could figure it out on my own, but I'm not there yet. Could someone show me a sample of c code to make this call? Thanks.
- OTS02CirrusHere is where I am stuck:
- The second parameter to get_persistence_record is a 1-d array of PersistenceMode's, also, you have a bunch of extra variables in there you don't need. The code can be reduced to this.
private void b_persistence_Click(object sender, EventArgs e) { string[] vsname1 = new string[] { "Bolifo_COMM_PL4-12340" }; iControl.LocalLBPersistenceMode[] vs_persmodes = new iControl.LocalLBPersistenceMode[] { iControl.LocalLBPersistenceMode.PERSISTENCE_MODE_DESTINATION_ADDRESS_AFFINITY }; iControl.LocalLBPersistenceRecord[][] persistence_records = m_interfaces.LocalLBVirtualServer.get_persistence_record(vsname1, vs_persmodes); }
- OTS02CirrusYes - it compiles! Thanks Joe. What's more, I think I may be starting to understand why it works.
- OTS02CirrusI also tried it from the pool perspective (LocalLBPool.get_persistence_record), and the variable returns empty. I don't know what I should be seeing. I thought that it would be a table filled with all of the persistent connections (there are ~ 200). Please advise. Thanks.
- OTS02CirrusThe LTM that I was calling to was version 9.2.3.
- OTS02CirrusJoe, can you give me any guidance on this one?
- OTS02, sorry for the delay, it's been a hectic week.
- OTS02CirrusJoe,
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