Hi,

We have a lot of servers/VMs that are at SuSE11 SP3. All of these servers subscribe to SuSE Manager channels.

We follow the steps in "https://www.suse.com/documentation/sles11/book_sle_deployment/index.html?page=/documentation/sles11/book_sle_deployment/data/sec_update_sle11sp3.html" to do the distribution upgrade to SP4.

To summarize we execute the below steps on each and every server to complete the upgrade to SP4. Since this is getting laborious I wanted to see if there is a way that I can automate it. I am thinking about writing a shell script, when accepts the name of server or a list of servers and does distribution upgrade to SP4. Obviously; it has to check the progress every step of the way and inform me via e-mail.

Please share your thoughts/suggestions in this matter.


rhnreg_ks --force --activationkey=1-fe4g62f867d238749265c25g64ec964d (subscribe to SuSE 11 SP3; SuSE Manager channel using activation keys)
zypper lr
zypper ref -s
zypper update -t patch
zypper update -t patch
reboot
zypper se -t product | grep -h -- "-migration" | cut -d'|' -f2
zypper in -t product SUSE_SLES-SP4-migration
rhnreg_ks --force --activationkey=1-gf5h73g978e349850376d36h75fd075e (Subscribe to SuSE 11 SP4; SuSE Manager channel using activation keys)
zypper lr
zypper ref -s
zypper dup --from spacewalk:sles11-sp4-pool-x86_64 --from spacewalk:sles11-sp4-suse-manager-tools-x86_64 --from spacewalk:sles11-sp4-updates-x86_64_april2016



Thanks