Curious if anyone has used the API to generate current state XML file for computers in inventory. I want to CURL the output to an XML file and make it available to other systems. However, the issue I run into is WHEN to initiate the XML file creation and HOW to initiate it.
What the end state would be is a directory of unique XML files (using computer name as the file name; so one file per computer) that are consumable by other systems.
I'm thinking that a script to run after initial recon may do it, but would love feedback on that approach.
How would you do it?