Skip to content
Felix Dewaleyne edited this page Jan 29, 2014 · 1 revision

Purpose

This script is meant to help you reset the consumption of your satellite by altering the allocation to sub organization so that it matches the current usage for each sub organization. It cannot remove entitlements already in use, this would not be accepted by the API.

Usage info

Usage: rhns-orgreset.py action_option [connection_options] [-h] 
 Resets the allocation of entitlements by sub organizations to the consumed values, does not unregister systems

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit

  Action options:
    One of --all or an --entitlement ENTITLEMENT_LABEL is required

    -a, --all           Resets all entitlements to the consumed values for the
                        sub organizations
    -e ENTITLEMENTS, --entitlement=ENTITLEMENTS
                        Entitlement to reset - one time per entitlement or
                        system addon
    -g ORGID, --orgid=ORGID
                        Limit the reset to the organizations with that id -
                        can be used multiple times. If omitted will reset all
                        sub organizations.

  Connection options:
    Not required unless you want to bypass the details of ~/.satellite,
    .satellite or /etc/sysconfig/rhn/satellite or simply don't want to be
    asked the settings at run time

    --url=SATURL        URL of the satellite api, e.g.
                        https://satellite.example.com/rpc/api or
                        http://127.0.0.1/rpc/api ; can also be just the
                        hostname or ip of the satellite. Facultative.
    --username=SATUSER  username to use with the satellite. Should be admin of
                        the organization owning the channels. Faculative.
    --password=SATPWD   password of the user. Will be asked if not given and
                        not in the configuration file.
    --orgname=ORGNAME   the name of the organization to use as per your
                        configuration file - defaults to baseorg
Clone this wiki locally