Page 1 of 1

Export Hosts to CSV

Posted: Tue Mar 14, 2017 11:37 am
by skostmayer
We are looking for a method to export all monitored hosts to a csv file. What is the best method?

Re: Export Hosts to CSV

Posted: Tue Mar 14, 2017 12:14 pm
by dwhitfield
What XI version are you on? In 5+ there is a new API with some filtering options. The documentation is in the XI interface in the Help menu, under the "Backend API Docs" section on the left. Take a look at that and see if you are able to get what you need. Currently it only support JSON and XML, but it's not terribly hard to convert that to CSV.

Also, you can get CSV from the reports, but it's going to give you more than just the hostnames.