Skip to content

gfidente/rhn-api-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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 gfidente@redhat.com -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 gfidente@redhat.com -p $YOURPASS -P
Systems list...
one.example.com
four.example.com
...
Packages list...
kernel-2.6.32
kernel-debug-2.6.32
...

Enjoy.

About

command line scripts interacting with RHN API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages