Forum Discussion

Joel_Moses's avatar
Joel_Moses
Icon for Nimbostratus rankNimbostratus
Aug 30, 2007

Dumping persistence record table for a VS

Hi, everyone.

 

 

Trying to get a start on something here, and am fairly new to iControl. I was wondering if anyone had an example of an iControl script that would dump a persistence table (the whole thing) for an existing VS. It's a little unclear to me given the state of the Wiki exactly how to do this effectively -- not sure whether the PersistenceRecord struct is what is returned from a get_persistence_record call directly, or whether you have to set record bounds.

 

 

Any help here?

 

 

Thanks,

 

Joel

1 Reply

  • LocalLB::VirtualServer::get_persistence_record() is the one you want. The only limitation is that you can only query for one persistence mode at a time.

     

     

    Give a VS and the persistence mode, that method will return lists of PersistenceRecord structs containing all the persistence record data for that given VS and mode.

     

     

    Due to the possibly large response size of this method, we recommend you only use one virtual server/mode per method call.

     

     

    -Joe