Forum Discussion
Nicolas_Menant
Employee
Feb 17, 2009Problem with synchronize command
Hi,
When i use the BIGIP GUI to do a config sync or if i do a "b config sync all", everything works fine.
I tried to do the same thing with iControl. I have the following code:
static void Main()
{
iControl.Interfaces my_interface = new iControl.Interfaces();
my_interface.initialize("172.29.4.206", "admin", "admin");
my_interface.SystemConfigSync.synchronize_configuration(iControl.SystemConfigSyncSyncMode.CONFIGSYNC_ALL);
Console.Write("Done");
}
Pretty basic. Hopefully without any mistake !
The configuration of the BIGIP is almost empty (2 pools and that's it) and the problem is that the operation Timeout:
Unhandled Exception: System.Net.WebException: The operation has timed out
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequ
est request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodN
ame, Object[] parameters)
at iControl.SystemConfigSync.synchronize_configuration(SystemConfigSyncSyncMo
de sync_flag) in D:\src\perforce\DevCentral\DC4\Labs\iControlAssembly\dotnet\iCo
ntrol\Interfaces\System\SystemConfigSync.cs:line 328
at Test.Main() in C:\Documents and Settings\menant\My Documents\Visual Studio
2008\Projects\Easynet\Exercice1\Program.cs:line 20
I've done the test with 9.4.3, 9.4.4, 9.4.5 and 946. Always the same problem
I've checked the release notes and found nothing about it.
Am i missing something like a specific call to do before this one ?
Thanks for your support
N.
5 Replies
- Don_MacVittie_1Historic F5 AccountJust as a test, have you tried iControl.SystemConfigSyncSyncMode.CONFIGSYNC_BASIC to see if it errors out?
There's a LOT more data synched in CONFIGSYNC_ALL than CONFIGSYNC_BASIC, might help us narrow down your problem.
Don. - Nicolas_Menant
Employee
Yes i tried the BASIC but just with version 9.4.6 and it seems to face the same problem.
Unhandled Exception: System.Net.WebException: The operation has timed out
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequ
est request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodN
ame, Object[] parameters)
at iControl.SystemConfigSync.synchronize_configuration(SystemConfigSyncSyncMo
de sync_flag) in D:\src\perforce\DevCentral\DC4\Labs\iControlAssembly\dotnet\iCo
ntrol\Interfaces\System\SystemConfigSync.cs:line 328
at Test.Main() in C:\Documents and Settings\menant\My Documents\Visual Studio
2008\Projects\Easynet\Exercice1\Program.cs:line 20 - Don_MacVittie_1Historic F5 AccountSorry I'm doing this in baby steps, just want to narrow it down...
Can you check the return value from the initialize call? It should be returning boolean true. If it's not, you're not connecting to the BIG-IP.
Thanks,
Don. - Nicolas_Menant
Employee
static void Main() { iControl.Interfaces my_interface = new iControl.Interfaces(); my_interface.initialize("172.29.4.90", "admin", "admin"); // my_interface.SystemConfigSync.synchronize_configuration(iControl.SystemConfigSyncSyncMode.CONFIGSYNC_BASIC); Console.Write("Done, connected Status -> " + my_interface.initialized.ToString()); } }
Here is a code i tested to show i'm connected to the BIGIP. Here is the output:C:\Documents and Settings\menant\My Documents\Visual Studio 2008\Projects\Easy\Exercice1\bin\Debug>Exercice1.exe Done, connected Status -> True - Nicolas_Menant
Employee
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