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 sy...
OTS02
Apr 07, 2009Cirrus
Here is where I am stuck:
private void b_persistence_Click(object sender, EventArgs e)
{
string vsname, vsaddress;
long vsport;
vsname = "Bolifo_COMM_PL4-12340";
vsaddress = "10.10.210.210";
vsport = 12340;
iControl.LocalLBVirtualServer[][] virt_serv = new iControl.LocalLBVirtualServer[1][];
iControl.CommonVirtualServerDefinition[][] vs_def = new iControl.CommonVirtualServerDefinition[1][];
vs_def[0] = new iControl.CommonVirtualServerDefinition[1];
vs_def[0][0] = new iControl.CommonVirtualServerDefinition();
vs_def[0][0].name = vsname;
vs_def[0][0].address = vsaddress;
vs_def[0][0].port = vsport;
string[] vsname1 = new string[] { vsname };
iControl.LocalLBPersistenceMode vs_persmode = iControl.LocalLBPersistenceMode.PERSISTENCE_MODE_DESTINATION_ADDRESS_AFFINITY;
iControl.LocalLBPersistenceRecord[][] persistence_records = new iControl.LocalLBPersistenceRecord[0][];
persistence_records = m_interfaces.LocalLBVirtualServer.get_persistence_record(vsname1, vs_persmode);
}
When compiling, I get the message "Argument '2': cannot convert from 'iControl.LocalLBPersistenceMode' to 'iControl.LocalLBPersistenceMode[]'"
When I try to declare vs_persmode as 'iControl.LocalLBPersistenceMode[], the compiler rejects that too. Please help.
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