GAD:Fetch all agent groups from statserver

Hi All,

How to fetch all the agent groups from the stat server and also the available agents in each group from GAD?

Thanks in advance,
Nisha.