Redhat Satelite

Latest response

Need to understand the redhat satelite patching procedure.

Responses

Hi Vikram,

Could you please give a bit more detail of what you wish to accomplish or how you update now?

Regards,

Jan Gerrit Kootstra

Wants to patch the servers through Satelite without user interference.

Hi,

You did not specify which version of Satellite you use. That is an important piece of information.

There are many ways you can achieve it.

In simple terms, a few examples for Satellite 5.x:

a) "Push-method".

Create Shell script on Satellite server, say patch-servers.sh (this is just a core part of the script, much more can be added, including LVM snapshots and so on):

#!/bin/sh
PATH=/usr/bin:/bin:/sbin; export PATH

 yum clean all

DRYRUN=$(yum check-update | egrep -v "^$|Loaded plugins|This system|subscription-manager")

if [ $? -eq 0 ]
then
   MYMSG="$SUCCESSSAT"
   logger $MYMSG
fi

if [ ! "$DRYRUN" ]
then
   logger "INFO There are no RHEL-released updates currently"
   echo "INFO There are no RHEL-released updates currently"
   exit 0
fi

vgcfgbackup

yum -y update

reboot

exit 0

Then push the patches from the satellite to a group of RHEL systems:

for list in $(spacecmd system_list | egrep -i "mysrv.dom" | tr 'A-Z' '[a-z]')
do
   if [ -f "./patch-servers.sh" ]
  then
      spacecmd -y -- system_runscript $list -f patch-servers.sh
  fi
done

b) "Pull-method".

From each server, simply run:

yum -y update && reboot

You can even set up a cron job on each client machine too.

Regards,

Dusan Baljevic (amateur radio VK2COT)

Close

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