Forum Discussion

Michael_Yates's avatar
Michael_Yates
Icon for Nimbostratus rankNimbostratus
May 16, 2011

.NET Assembly iControl

I gone through the On-Line SDK and cannot seem to find the method for Sync State between a redundant Load Balancer Pair.

 

 

Can someone point me to it?

 

 

 

Thanks!

 

  • Hi Michael,

     

     

    You can use this example from Joe:

     

     

    How to detect config sync status using iControl

     

    http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/51/aft/3224/showtab/groupforums/Default.aspx

     

     

     

    These values are stored in the internal database which can be accessed via the Management::DBVariable interface (http://devcentral.f5.com/wiki/default.aspx/iControl/Management__DBVariable.html).

     

     

    The values you are looking for are:

     

     

    "configsync.autodetect"

     

    "configsync.localconfigtime"

     

    "configsync.peerconfigtime"

     

    "configsync.localsyncedtime"

     

    "configsync.state"

     

     

     

    Aaron
  • Thank you Hoolio.

     

     

    The setup is a little different for the .NET iControl, but you pointed me to where I needed to search in order to find it.

     

     

    For .NET iControl you can get a full list of Database Variables to query with:

     

     

    Interfaces.ManagementDBVariable.get_list();

     

     

    Once you have your variable list you must put them into an Array (even if it is an array of one) and call it with:

     

     

    Interfaces.ManagementDBVariable.query(myArray);

     

     

    Thank you again!