Ask Your Question

Revision history [back]

I can answer my own question. I've been able to successfully query using this format in windows after generating a token.

puppet-query "nodes[certname]{deactivated is null}"

This will produce a json formatted list of active nodes.

[ { "certname": "test1.test.com" }, { "certname": "test2.test.com" } ]