Bug 680399 - RFE - cli subscription-manager subscribe module option --auto would be useful
Summary: RFE - cli subscription-manager subscribe module option --auto would be useful
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: Bryan Kearney
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: 568421
TreeView+ depends on / blocked
 
Reported: 2011-02-25 12:44 UTC by John Sefler
Modified: 2013-01-10 10:50 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-19 13:39:56 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:0611 0 normal SHIPPED_LIVE new package: subscription-manager 2011-05-18 17:56:21 UTC

Description John Sefler 2011-02-25 12:44:37 UTC
Description of problem:
For admin users of command line interface to subscription-manager, it would be nice to have a "--auto" option to the subscribe module.  It would function exactly like the existing "--autosubscribe" option for register.

Wanted:
# subscription-manager subscribe --auto

As an admin user, I find myself preferring to register and using the list module to see what subscriptions are available to me and what products I have installed before wanting to subscribe.  Then if I want to autosubscribe, my only option is to unregister and re-register with --autosubscribe.  Alternatively it would be nicer/faster for me to call subscribe --auto.

Version-Release number of selected component (if applicable):
Currently subscription-manager-0.95.2

Comment 2 James Bowes 2011-03-02 20:50:46 UTC
added. it should output results identical to those of register --autosubscribe.

available in master and rhel6 branches, should be in versions 0.95.4 and 0.96.2

Comment 4 J.C. Molet 2011-03-04 20:59:05 UTC
This feature works as expected:

[root@jmolet-vm3 ~]# subscription-manager subscribe --help
Usage: subscription-manager subscribe [OPTIONS]

subscribe

Options:
  -h, --help            show this help message and exit
  --debug=DEBUG         debug level
  --proxy=PROXY_URL     proxy url in the form of proxy_hostname:proxy_port
  --proxyuser=PROXY_USER
                        user for http proxy with basic authentication
  --proxypassword=PROXY_PASSWORD
                        password for http proxy with basic authentication
  --pool=POOL           subscription pool id
  --auto                automatically subscribe this system to
                        compatible subscriptions.
[root@jmolet-vm3 ~]# subscription-manager subscribe --auto
Installed Products:
   Large File Support Bits - Subscribed
   Awesome OS Scalable Filesystem Bits - Subscribed
   Awesome OS Modifier Bits - Subscribed
   Awesome OS Developer Bits - Not Subscribed
   Awesome OS Developer Basic - Not Subscribed
   Shared Storage Bits - Subscribed
   Multiplier Product Bits - Not Subscribed
   Awesome OS for S390X Bits - Not Subscribed
   Management Bits - Subscribed
   Awesome OS Premium Architecture Bits - Not Subscribed
   Awesome OS Server Bits - Subscribed
   Load Balancing Bits - Subscribed
   Clustering Bits - Subscribed
   Awesome OS Workstation Bits - Subscribed
[root@jmolet-vm3 ~]# rhsm-version 
subscription-manager-gnome-0.95.3-1.git.10.4ec14b7.el6.x86_64
subscription-manager-0.95.3-1.git.10.4ec14b7.el6.x86_64
subscription-manager-firstboot-0.95.3-1.git.10.4ec14b7.el6.x86_64
python-rhsm-0.95.3-1.git.0.4d0ef8e.el6.noarch

Comment 5 errata-xmlrpc 2011-05-19 13:39:56 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-0611.html


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