Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1361473 - [RFE] - Display the errata or packages that would applicable/installable for a given host using Hammer CLI
Summary: [RFE] - Display the errata or packages that would applicable/installable for ...
Alias: None
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Hammer - Content
Version: 6.2.0
Hardware: All
OS: All
medium vote
Target Milestone: Unspecified
Assignee: David Davis
QA Contact: Daniel Lobato Garcia
Depends On:
TreeView+ depends on / blocked
Reported: 2016-07-29 06:54 UTC by Nagoor Shaik
Modified: 2019-04-01 20:27 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Last Closed: 2018-02-21 12:35:52 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Foreman Issue Tracker 16533 None None None 2016-09-13 13:33:40 UTC
Red Hat Knowledge Base (Solution) 2807001 None None None 2016-12-14 06:57:08 UTC
Red Hat Product Errata RHSA-2018:0336 normal SHIPPED_LIVE Important: Satellite 6.3 security, bug fix, and enhancement update 2018-02-21 22:43:42 UTC

Comment 1 Bryan Kearney 2016-09-13 14:18:05 UTC
Upstream bug component is Hammer - Content

Comment 2 David Davis 2016-09-16 16:34:38 UTC
We've added the ability to view packages that are applicable or upgradable for a host (much like you can do now with errata). To view the upgradable packages for host with id 1, you'd do:

   hammer package list --host-id 1 --packages-restrict-upgradable true

It's not 100% clear to me if this solves the RFE but feel free to respond/reopen.

Comment 3 Nagoor Shaik 2016-09-21 14:02:02 UTC
Hi David,

There is no sub-option such as --host-id in Satellite 6.2.2 

 # hammer package list --help
    hammer package list [OPTIONS]

 --by BY                                             Field to sort the results on
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-filter CONTENT_VIEW_FILTER_NAME      Name to search by
 --content-view-filter-id CONTENT_VIEW_FILTER_ID     filter identifier
 --content-view-id CONTENT_VIEW_ID                   content view numeric identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID   Content view version identifier
 --environment ENVIRONMENT_NAME                      Name to search by
 --environment-id ENVIRONMENT_ID                      
 --full-results FULL_RESULTS                         Whether or not to show all results
                                                     One of true/false, yes/no, 1/0.
 --ids IDS                                           ids to filter content by
                                                     Comma separated list of values.
 --order ORDER                                       Sort field and order, eg. 'name DESC'
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   organization ID
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --page PAGE                                         Page number, starting at 1
 --per-page PER_PAGE                                 Number of results per page to return
 --product PRODUCT_NAME                              Product name to search by
 --product-id PRODUCT_ID                             product numeric identifier
 --repository REPOSITORY_NAME                        Repository name to search by
 --repository-id REPOSITORY_ID                       repository ID
 --search SEARCH                                     Search string
 -h, --help                                          print help

 rpm -qa | grep hammer

Comment 4 Bryan Kearney 2016-09-22 18:18:22 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue has been resolved.

Comment 6 Daniel Lobato Garcia 2017-08-23 09:40:33 UTC

Version Tested: Satellite-6.3 Snap 12

Running `hammer host info --id 1` returns now the applicable/upgradable packages in Content Information:

Content Information:
    Content View:
    Lifecycle Environment:
    Applicable Packages:
    Upgradable Packages:
    Applicable Errata:
        Bug Fix:

Comment 9 errata-xmlrpc 2018-02-21 12:35:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

Note You need to log in before you can comment on or make changes to this bug.