Skip to content
Snippets Groups Projects
Verified Commit cdfdd33e authored by anarcat's avatar anarcat
Browse files

figured out how to list puppet hosts by last report time

parent 79d5b9fe
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,11 @@ The currently known values are: `kvm`, `physical`, and `xenu`.
curl -s -G http://localhost:8080/pdb/query/v4/facts --data-urlencode 'query=["and", ["=", "name", "apache2"], ["=", "value", true]]' | jq -r ".[].certname"
This will list all hosts sorted by their report date, older first,
followed by the timestamp, space-separated:
curl -s -G http://localhost:8080/pdb/query/v4/nodes | jq -r 'sort_by(.report_timestamp) | .[] | "\(.certname) \(.report_timestamp)"' | column -s\ -t
* Using [Cumin][], see below
[Cumin]: https://doc.wikimedia.org/cumin/master/introduction.html
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment