Hi UtxSupport,
Please try with below code and let us know the results:
*******************
private SmApiResult
updateAgentConfig(SmPolicyApi policyapi)
{
SmApiResult result = null;
try {
SmAgentConfig agentconfig = new SmAgentConfig();
result = policyapi.getAgentConfig("aco_temp", agentconfig);
if (result.isSuccess())
{
agentconfig.setDescription(SAMPLE_DESC + "agentconfig-modify");
int propNumber = agentconfig.getPropNum();
SmProperty properties[] = new SmProperty[ propNumber + 1 ]; // we are adding one more property while
// updating the Agent Config Object
agentconfig.getAgentConfigProperties(properties);
properties[propNumber] = new SmProperty("Admin", "iisAdmin");
agentconfig.setAgentConfigProperties(properties);
return policyapi.modifyAgentConfig(agentconfig);
}
}catch (Exception e )
{
e.printStackTrace();
}
return result;
}
******************
Also if you have multiple policy server ,the changes may not reflect immediately.
So Please try with single policy server and viewing the changes from the same Admin UI.
Thanks,
Santosh