Forum Discussion
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
- Michael_Yates
Nimbostratus
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.
- zenet_131061
Nimbostratus
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!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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