Agent not picking up the agent name automatically from application server