Forum Discussion
Hamish
Sep 08, 2011Cirrocumulus
And the (Very siple) call to do the sync is
----------------------------------------------------------------------------
sub syncConfig
----------------------------------------------------------------------------
sub syncConfig {
my($configAPI, $synctype)=@_;
print "syncConfig:\n";
my $soapResponse = $configAPI->synchronize_configuration(SOAP::Data->name(sync_flag => $synctype));
my($status,$text)=&checkResponse($soapResponse);
if(($status!=1)||($text ne "OK")) {
print "syncConfig: status $status error [$text] from synchronize_configuration($synctype)\n";
return;
}
print "syncConfig: status $status success [$text] from synchronize_configuration($synctype)\n";
print "syncConfig:\n";
}
And called by...
syncConfig($configAPI, "CONFIGSYNC_ALL");
H