AnsweredAssumed Answered

ACO Movement from one server to another

Question asked by UtxSupport on Feb 14, 2017
Latest reply on Mar 1, 2017 by riksa01
We are trying to copy our ACOs from one server to another. 
We are doing this via code using the SmPolicyApi.   We are facing an issue when we try to copy an ACO which already exists on the destination server.   We have tried to modify the values but they are not getting saved post implementation.   We have also tried to rename the existing ACO on the destination server via code but on execution it is not renaming them as well.

Please find below the code snippet for the same:

 

result = smPolApi_130.getAgentConfig(vectorACO.get(i).toString(), smACO);

if(result.getFacility()==4){

if(smACO.getName().equals("test_aco")){
smPolApi_206.getAgentConfig(vectorACO.get(i).toString(), smACO_206);
smACO_206.setName(smACO.getName()+"_old");

result=smPolApi_206.modifyAgentConfig(smACO_206);

if(result.getFacility()==4){
log.info("aco added in 206 policy server and name of aco: "+smACO_206.getName());
}else{
log.error("error while modifying aco:"+smACO_206.getName());

}
}

Outcomes