Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 925 Bytes

README.textile

File metadata and controls

31 lines (24 loc) · 925 Bytes

Red Hat Network command line API tools

This is a would-like-to-expand collection of command line tools which interact with the Red Hat Network API.

extract_affected_systems.py

Red Hat constantly alerts its paying customers via email of the errata when published on rhn.redhat.com . Assuming you’ve got such a notification, if you want to investigate further and find out which systems are affected by the advisory you can use this python tool:

$ python extract_affected_systems.py -a "RHSA-2012:0350" -u [email protected] -p $YOURPASS
Systems list...
one.example.com
four.example.com
...

you can also list the packages affected by the advisory (which need to be updated):

$ python extract_affected_systems.py -a "RHSA-2012:0350" -u [email protected] -p $YOURPASS -P
Systems list...
one.example.com
four.example.com
...
Packages list...
kernel-2.6.32
kernel-debug-2.6.32
...

Enjoy.