index=_internal fwdType="*" | dedup hostname | stats count by os, version
OMohi,
Install the Deployment Monitor App on your deployment server.
http://splunk-base.splunk.com/apps/67836/splunk-deployment-monitor
There is a dashboard there with the information.
Hoping that either Deployment Monitor or Forwarder Managment would add a simple export option to a csv. Then it would be much easier to use the export to build a serverclass.conf without having to first write your own query in Splunk.
If this answered your question - please accept it. Thanks!