Sujit, The Agents Overview dashlet provides a variety of information about agents. Look at the EventCount column, which will tell you about the number of events being processed by that agent. This gives you some indication of how active an agent has been.
This information is also available from the REST interface if doing this programatically is more useful.
I gone throught the link which you mentioned in ur comment but this way i am getting comlete agent and associated licnses information but i was looking for how to capture active and inactive installed license details against each application for specific system profide. I can get active license details but how to get inactive installed license.
Sujit, I"m not sure what you mean by 'inactive license'. Do you mean licenses that are not being used? This is available from the License tab in the Dynatrace Server Settings screen.