Spacecmd or Other Options

Latest response

Hi

I am in need of a report that will list the description of any outstanding errata.

Hoping spacecmd or something else can achieve this.

Thakns

Responses

Hi Paul - when you mention "outstanding errata" - do you mean the outstanding errata of a single system?

You could create a for loop to poll for your systems, then display the details for each errata listed. Here is an example command though.

# spacecmd errata_details RHBA-2013:1153
INFO: Connected to https://localhost/rpc/api as satadmin
Name:       RHBA-2013:1153
Product:    Red Hat Enterprise Linux
Type:       Bug Fix Advisory
Issue Date: 8/13/13

its for multiple systems.

was hoping for an easier way to go through all the errata and getting the description of each one (this is for a report to help get errata approved by management)

I'm having a tough time figuring this one out (I am certain someone has done this already ;-)
One issue I am running in to, not all the Errata seems to have output from the errata_details

for ERR in `spacecmd system_listerrata pdadm01.company.com | grep ^RH | awk '{ print $1 }'`  
do 
  echo $ERR  
  spacecmd errata_details ${ERR} | sed -n '/Description/,/CVEs/p' |grep -v ^CVEs
  echo 
done

Which would output something like (text between the phrase "Description" and "CVEs"

RHSA-2013:1156
INFO: Connected to https://localhost/rpc/api as satadmin
Description
-----------
The Apache HTTP Server is a popular web server.  A flaw was found in
the way the mod_dav module of the Apache HTTP Server handled merge
requests. An attacker could use this flaw to send a crafted merge
request that contains URIs that are not configured for DAV, causing
the httpd child process to crash. (CVE-2013-1896)  All httpd users
should upgrade to these updated packages, which contain a backported
patch to correct this issue. After installing the updated packages,
the httpd daemon will be restarted automatically.

I hope to have an update and much better way to combat this problem.

Hi Paul,

You can also try spacewalk-report command with new features released in Red Hat Satellite v 5.6

spacewalk-report errata-systems

advisory,server_id,profile_name,hostname,ip_address,ipv6_address
RHBA-2011:0172,1000010006,server1.example.com,server1.example.com,xx.xx.xx.xx,
.
.

Hope this helps you,

Regards,
Ashish

Thanks James - that worked a treat.

The next part is to get the packages that will be updated and their current version number and the new version number in a report

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.