Forum Discussion

zenet_131061's avatar
zenet_131061
Icon for Nimbostratus rankNimbostratus
Aug 13, 2013

Configsync.State

Hi All,

 

I'm using BIG-IP_v11.1 and I'm trying to retrieve Configsync.State.

 

1) Using Management.DBVariable.query("Configsync.State") returns value = "-1 - uninitialized or disabled config state" 2) Using Management.DeviceGroup.get_sync_state(devices) says InterfaceInstance doesn't have that attribute.

 

I don't have access to tmsh on the terminal.

 

What do I do?

 

Thank you for any ideas or suggestions.

 

2 Replies

  • The DB Variable is case-sensitive I believe.

     

    This is the query in C: string[] lbstatus = new[] { "configsync.state" };

     

    ManagementDBVariableVariableNameValue[] syncValue = f5Interface.ManagementDBVariable.query(lbstatus);

     

    This is a snip of code that I used to make a decision if the devices were in sync: if (syncValue[0].value == "0 - Synchronized")

     

    Hope this helps.

     

  • Hi Micheal,

     

    Thanks for your reply, I appreciate it. I'm using Python, I don't think this is case-sensitive, but I tried with the same string you used and I'm still facing the same problem. I even tried DBVariable.get_list() and Configsync.State was listed as uninitialized.

     

    print big_ip.System.SystemInfo.get_version() print big_ip.Management.DBVariable.is_variable_available(["Configsync.State"]) print big_ip.Management.DBVariable.query(["Configsync.State"])

     

    The output is: BIG-IP_v11.1.0 [True] [(Management.DBVariable.VariableNameValue){ name = "Configsync.State" value = "-1 - uninitialized or disabled config state" }]

     

    Thanks!