anchor.diff:  %%% @doc Issues a synchronous snmp set request. 
   set_values(Agent, VarsAndVals, MgrAgentConfName, Config) ->
       PrivDir = ?config(priv_dir, Config),
  -    [Uid, AgentIp, AgentUdpPort | _] = 
  -	agent_conf(Agent, MgrAgentConfName),
  +    [Uid | _] = agent_conf(Agent, MgrAgentConfName),
       Oids = lists:map(fun({Oid, _, _}) -> Oid end, VarsAndVals),
  -    {ok, SnmpGetReply, _} =
  -	snmpm:g(Uid, AgentIp, AgentUdpPort, Oids),
  -    {ok, SnmpSetReply, _} =
  -	snmpm:s(Uid, AgentIp, AgentUdpPort, VarsAndVals),
  +    TargetName = target_name(Agent),
  +    {ok, SnmpGetReply, _} = snmpm:sync_get2(Uid, TargetName, Oids),
  +    {ok, SnmpSetReply, _} = snmpm:sync_set2(Uid, TargetName, VarsAndVals),
       case SnmpSetReply of
   	{noError, 0, _} when PrivDir /= false ->
   	    log(PrivDir, Agent, SnmpGetReply, VarsAndVals);
  
positive.code:     NewSnmpVals = lists:keyreplace(managed_agents, 1, SnmpVals,
  				   {managed_agents, ManagedAgents}),
      ct_config:update_config(MgrAgentConfName, {snmp, NewSnmpVals}),
      setup_managed_agents(ManagedAgents).
  
  %%% @spec register_usm_users(MgrAgentConfName, UsmUsers) ->  ok | {error, Reason}
  %%%
  
negative.code:        File = filename:join(Dir,"vacm.conf"),
      file:delete(File),
      snmp_config:write_agent_vacm_config(Dir, "", VacmConf).
  
  %%%---------------------------------------------------------------------------
  
  target_name(Agent) ->
      atom_to_list(Agent).
  