Professional Documents
Culture Documents
Configuration: SAP Host Agent: Auto Upgrade
Configuration: SAP Host Agent: Auto Upgrade
The SAPHostAgent implements an auto upgrade capability. The running saphostexec regularly checks a directory, by default $DIR_EXECUTABLE/../new, where it expects to find the newest executable of SAPHostAgent (unpacked SAPHOSTAGENT.SAR).
Configuration
By default saphostexec performs this check every 5 minutes. This behaviour could be changed using the profile value
hostexec/autoupgrade_delay=<minutes>
in the SAPHostAgent profile (host_profile). Additionally the directory location containing the newest SAPHostAgent version could be changed using the profile value
DIR_NEW=<path to a directory>
within the SAPHostAgent profile. Once the profile is changed a restart of SAPHostAgent is necessary.
Advanced Configuration
Avoid incomplete upgrade.
To avoid that saphostexec starts the upgrade procedure during the extraction of the .SAR (with the consequence that only partially the newest version of the packages will be upgraded) you should create an empty file called .upgrading in the directory $DIR_NEW. The complete procedure is: Create the .upgrading file in $DIR_NEW Extract SAPHOSTAGENT.SAR in $DIR_NEW Remove .upgrading from $DIR_NEW An Example:
ldcibke:root> ldcibke:root> ldcibke:root> ldcibke:root> cd /usr/sap/hostctrl/new/ touch .upgrading SAPCAR -xvf SAPHOSTAGENT.SAR rm .upgrading
Page 1
where Value1 represents the number of minutes after an auto-upgrade is checked, and Value2 the maximum value of minutes after which the autoupgrade is started. The real upgrade delay value in minutes is given by
delay = Value1 + randomValue *Value2
Check the version of the file contained in $DIR_NEW every 500 minutes.
500random500
Check the version of the file contained in $DIR_NEW every 500 minutes. Once the version of the SAPHostAgent contained within $DIR_NEW is newer the upgrade will be started within the next 500 minutes. The exact time where the upgrade is started is a random value between 1 and 500 minutes.
Page 2