Hi,
How can I list out of sync hosts while using the cli?
Thanks,
Bregman
Hi,
How can I list out of sync hosts while using the cli?
Thanks,
Bregman
In short: hammer host list --search 'last_report < "35 minutes ago" and
status.enabled = true'
Hammer's list commands mostly support a --search option using Foreman's
API, and Foreman has the same search syntax across the CLI, UI and API.
Any search term you find in the UI will work there too.
There are some saved searches by default in Foreman which includes out
of sync, see Administer > Bookmarks or the dropdown menu next to the
search box on the host list. You can copy/paste this to the CLI. The
dashboard also has clickable charts which use the search function, so
again you can use these search queries.
–
Dominic Cleal
Red Hat Engineering