Feature #24110
openhammer host list add fields domain_name and last_checkin
Description
1. Proposed title of this feature request
Show | domain_name | last_checkin in the hammer host list command
3. What is the nature and description of the request?
when executing hammer command to list host, it shows the following information, customer wants to extend this to see
domanin_name and last_checkin too.
---|-------|------------------|------------|----|----
ID | NAME | OPERATING SYSTEM | HOST GROUP | IP | MAC
---|-------|------------------|------------|----|----
4. Why does the customer need this? (List the business requirements here)
For automated reporting and ad-hoc commands via CLI using hammer
5. How would the customer like to achieve this? (List the functional requirements here)
By running hammer on the command line and getting the output desired via v2/hosts hammer output. hammer -d shows that the information is available but it cannot be extracted.
6. Is there already an existing RFE upstream or in Red Hat Bugzilla?
no
7. Does the customer have any specific timeline dependencies and which release would they like to target
No
8. Is the sales team involved in this request and do they have any additional input?
no
9. List any affected packages or components.
hammer-cli
10. Would the customer be able to assist in testing this functionality if implemented?
yes
Updated by Tomáš Strachota over 6 years ago
- Category set to Hosts
This could be solved by customizable field list. I don't think it makes sense to show domain name since it's included in the hostname.
Updated by Tomáš Strachota over 6 years ago
- Related to Bug #14725: Verbose mode does not work and is inconsistent added
Updated by Tomáš Strachota over 6 years ago
- Related to Feature #19135: Possibility to limit or add fields that are displayed added
Updated by Tomáš Strachota over 6 years ago
- Triaged set to No
To be more clear:
I linked two hammer features that are on the way - selecting additional output fields and verbosity. Their combination will allow users to select what fields should be printed. I think it's the right way to proceed rather than adding all fields by default. This request could be then satisfied by a command:
hammer host list --fields='Domain,Last checkin'
(or simillar)
I'm keeping this issue open to make sure this requested behavior will be achievable and also in case that some further tuning on host command would be needed.