ServerEndpoint serverEndpoint = AgentUtils.getServerEndpoint(agent.getConfiguration(), args[1]);
// use the generic client utility to issue the command
RemoteCommunicator rc = agent.createServerRemoteCommunicator(serverEndpoint.transport,
serverEndpoint.namePort.address, serverEndpoint.namePort.port, serverEndpoint.transportParams);
GenericCommandClient client = new GenericCommandClient(rc);
out.println(MSG.getMsg(AgentI18NResourceKeys.IDENTIFY_ASK_REMOTE_SERVER_FOR_ID, args[1]));
sender.preprocessCommand(command);
CommandResponse response = client.invoke(command);
client.disconnectRemoteCommunicator();
out.println(response);
}
} catch (MalformedURLException e) {
out.println(MSG.getMsg(AgentI18NResourceKeys.IDENTIFY_INVALID_LOCATOR_URI, args[1]));