Skip to content
Felix Dewaleyne edited this page May 28, 2015 · 7 revisions

Welcome to the rhns-utils wiki! Here is a list of the scripts currently documented in here :

General scripts

  • consumption-report.py - script displaying useful information related to entitlement consumption on satellite 5
  • check-varsat.py - script checking the validity of rpms located in /var/satellite under satellite 5
  • rhns-orgreset.py - a script to reset the consumption in sub organizations to their actual consumption. useful when hitting certificate activation issues on satellite 5 but only if the consumption is spent in sub organization allocations.

Regen-repodata scripts

  • regen-repodata.py - this is a debug tool meant to help trigger the regeneration of repodata.

Database-related scripts

Those scripts shouldn't be used without taking a backup of a database first and are meant to help resolve specific issues

  • package-consistency-checker - a tool that works with satellite 5 to help remove specific inconsistencies in the satellite database. Only use after reading the documentation, spacewalk-fsck can be used to detect some of the same issues this script addresses.
  • rhns-remove-unknown-provider - a tool to remove content from an Unknown provider showing in Red Hat channels. It is able to restore the relations to the correct packages after it has been added back to the satellite.
  • rhns-remove-package - a tool to remove one specific package. It is able to repeat the associations of that package after it has been added back to the satellite.
  • rhns-package-infos.py - a script used to extract information relative to a package from the database. Useful when debugging issues related to syncing operations to determine why the issue is happening and attempt to fix a data related problem faster than case by case.