Actions
Support #32941
openHow to get multiple fact values through hammer in one liner
Status:
New
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Triaged:
No
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:
Description
Hi Support,
I am trying to create a hammer command to get multiple fact values from all the servers managed in foreman.
Like if i want the list of all physical hosts with its serial number and uptime fact value than what command can be use?
I tried with below one but it not gives the list with required data.
hammer --csv fact list --search "fact=is_virtual" --search "fact=serialnumber" --search "fact=system_uptime.days"
Using below hammer version
tfm-rubygem-hammer_cli_foreman-0.15.1-1.el7.noarch
tfm-rubygem-hammer_cli-0.15.1-1.el7.noarch
No data to display
Actions