Supress yum output when there are no errors...

Latest response

Hi there.

We're running a bunch of RHEL-Systems and check for Updates every night running yum with a cron job.
Any error message is reported to our ticket-System (OTRS).

Since a few days yum is responding with the line "This system is receiving updates from Red Hat Subscription Management."

Is there any way to get rid of this message, as we only want to see messages when theres something updated or an error occured...

Thx for any advice.

Dirk Goj

Responses

Hi Dirk,

knowing the command options you are currently using would help us to see if something is behaving erroneously.

In my tests, I use the command:

yum update -y -q -e 0

and do not see the subscription management messages (tested on a fresh RHEL 6.5 install).

Please let us know if that resolves the problem for you.

Best regards
Mark

Hi Mark.

Thx for the reply. I'll give it a try and come back with further info.

Dirk

I think a key thing being overlooked here is the bothersome message: "This system is receiving updates from Red Hat Subscription Management." This means that the systems exhibiting this message are being managed via either RHN or an RHN Satellite server. Wouldn't it make more sense to leverage RHN's/Satellite's centralized reporting functionality rather than scattering cron jobs all over the place (relying on each system to self-report)? Set up properly, RHN/Satellite is going to be a more reliable CM reporter than scriptlets on each end-point.

To Tom's point - are you using Satellite or RHN currently? Satellite does a daily check and the standard reporting is rather good. (You can do some pretty cool stuff if you use the spacecmd utility, as well.

To answer your question (slightly different that Mark's response):

yum check-update -q

Hi.
Not quite sure, but will give it a check. Just need to get rid of all the tickets every day :)

I'll check out spacecmd and come back when I got any more questions or any good solution...

[edit] OK, we're using RHN Classic not sattelite. Seems the -q parameter is ok for our purposes.

Dirk

Close

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