| Summary: | [RFE] Option to have hammer and REST API call to list all applicable content hosts for a given errata | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Nagoor Shaik <nshaik> |
| Component: | Errata Management | Assignee: | Brad Buckingham <bbuckingham> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.1.7 | CC: | bbuckingham, bkearney, daniele, jsherril, kmurugad, mmccune, nshaik, sthirugn, xdmoon |
| Target Milestone: | Unspecified | Keywords: | FutureFeature, Triaged |
| Target Release: | Unused | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-09-13 19:28:09 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 1399395 | ||
|
Comment 1
Bryan Kearney
2016-07-08 20:40:33 UTC
You can do this already in Satellite 6.2 via the search param hammer -u admin -p changeme host list --search="applicable_errata = RHBA-2016:1503" Also to clarify, you could achieve this via the api: curl -u admin:changeme https://hostname.example.com/api/v2/hosts?search='applicable_errata=RHBA-2016:1503' Proposing we close this bz Hi Nagoor, does the capability mentioned in comment 3 and 4 address the customer's request? Same example for searching by installed packages: hammer -u admin -p changeme host list --search="installed_package = basesystem-10.0-7.el7.noarch" curl -u admin:changeme https://`hostname`/api/v2/hosts?search='installed_package=basesystem-10.0-7.el7.noarch As a (temp) alternative, would this script maybe help? https://github.com/RedHatSatellite/satellite-host-cve Justin, Two questoins: 1) How would that be done via hammer? 2) Related to 1, how would I get this into CSV output? Bryan: 1) See the hammer examples in comment #6 and #3 2) as with any hammer command, simply adding --csv right after 'hammer' will provide results in csv format: hammer --csv -u admin -p changeme host list --search="installed_package = basesystem-10.0-7.el7.noarch" *** Bug 1308707 has been marked as a duplicate of this bug. *** |