Customize Foreman host export

I need to export into csv all hosts (or even a subset) from Foreman but I would like to customize properties to report into cvs. In particular, I would like to get name servers set on each host that I export into csv. Could someone point out how to get this?

interestingly enough we had an import update this week:

Anyone can help with an export?

How about hammer host list --fields Name,IP,MAC or other fields you might like. You can add search parameters to narrow the results.

Could I get more info about hammer? Could I get name servers set on each host that I export into csv?

Regards

hammer is the command line interface. Run hammer host list --help for a list of available options.