Forum Discussion
Jay_Lancaster_3
Nov 05, 2012Historic F5 Account
Get sync-status
I am updating an iControl for a customer and I am unable to get the sync status of the active device. In version 10.x, I was able to access the DBVariable for Configsync.State and read the value for ...
Michael_Yates
Nimbostratus
Jan 09, 2013Hi guys,
I queried multiple devices from v10.2.x to v11.2.x and was able to retrieve the Sync Status.
Try: Management::DBVariable
with the query variable.
string[] lbstatus = new[] { "configsync.state" };
ManagementDBVariableVariableNameValue[] syncValue = f5Interface.ManagementDBVariable.query(lbstatus);
switch (syncValue[0].value)
{
case "0 - Synchronized":
settings.SyncStatus = "Synchronized";
break;
case "1 - Local config modified, recommend configsync to peer":
settings.SyncStatus = "Local config modified, Sync Recommended";
break;
case "2 - Peer config modified, recommend configsync from peer":
settings.SyncStatus = "Peer config modified, Sync Recommended";
break;
case "3 - Config modified on both systems, manual intervention required":
settings.SyncStatus = "Config modified on both systems, Sync Recommended";
break;
case "-1 - uninitialized or disabled config state":
settings.SyncStatus = "Standalone - N/A";
break;
default:
settings.SyncStatus = syncValue[0].value;
break;
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
