Skip to Content
Author's profile photo Willi Eimler

Upgrading SAP Hostagent on a Linux/Unix system in less than 5 minutes.

This is a little Quickyblog

 

Download SAP host agent from:

https://support.sap.com/patches -> Browse Download Catalog -> SAP Technology Compoents -> SAP HOST AGENT

 

Copy it sar file to /tmp/SAPHOSTAGENT.SAR

root> cp <location of downloaded sar file>/SAPHOSTAGENTxxx_xxx-xxxxxxxx.SAR /tmp/SAPHOSTAGENT.SAR

 

Create the location for the new binaries.

root> cd /usr/sap/hostctrl/

root> mkdir -p new

root> chown root:sapsys new

root> cd new

root> rm -rf *

 

Avoids that upgrade is started while extraction the binaries from sar file.

root> touch .upgrading

 

Extract SAPHOSTAGENT to /usr/sap/hostctrl/new/.

root> /usr/sap/SID/SYS/exe/run/SAPCAR -xvf /tmp/SAPHOSTAGENT.SAR -manifest SIGNATURE.SMF
 

 

Let the upgrade beginn…

root> rm .upgrading

 

By default saphostexec performs this check every 5 minutes. So, after 5 minutes do…

root> /usr/sap/hostctrl/exe/saphostexe -version

 

Voila!

 

All in one:

 

root> cd /usr/sap/hostctrl/; mkdir -p new; chown root:sapsys new; cd new; rm -rf *; touch .upgrading; /usr/sap/SID/SYS/exe/run/SAPCAR -xvf /tmp/SAPHOSTAGENT.SAR -manifest SIGNATURE.SMF; rm .upgrading

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.