Creation of a configuration file
Create Provider Definition
Create Custom Operation
Create Custom Process
Create Operation Template
Scheduling
HANA Profile Change
SAP Profile Change
SAP Kernel Update (including several components)
Operating System Update
Product | Minimum version |
SAP NetWeaver (SAP LaMa installation) | 7.50 SPS11 |
SAP Landscape Management Enterprise Edition 3.0 | SP07 PL0 |
SAP Host Agent | 7.21 PL36 |
SAP ACEXT Package | PL41 |
Fig. 1 System update - all steps in sequence
Fig. 2 Configuration Steps
Entry | Value | Description |
Name: | CUSTOM_action_name | For easier access in LaMa it is recommended to use same name as script is named |
Username: | username with appropriate authorizations | Script will run with configured username |
Command: | /share/script.sh <PARAMETER> | Path to script. <PARAMETER> is optional, only if script is usable with parameters. Syntax and usage is described below. |
ResultConverter: | flat | Handling of script output |
Platform: | Unix / Windows | Platform where script is running on |
Name: CUSTOM_KernelInstaller
Username: <username with appropriate authorizations>
Command: /myglobalshare/kernelinstaller.sh $[PARAM-FUNCTION:#required]
ResultConverter: flat
Platform: Unix
$[PARAMETER;#modifier]
Command: /myglobalshare/myownscript.sh $[PARAM-INSTNR:#required]
Command: /myglobalshare/myownscript.sh $[PYHSICAL_HOSTNAME:#required]
a.
On left side in SAP LaMaUI5 select Automation Studio → Provider Definitions. Then use button Create → Script Registered with Host Agent on the top right of the screen.
b.
On Create Provider screen, first the registered script has to be selected. So first define a name for the Provider Definition, then select the hostname, where the <action_name>.conf file is located. In this case the Provider Definition for kernel update script will be created.
c.
Select hostname where script is located. If necessary use the filter option for an easier way of searching.
d.
Select button Retrieve Scripts to upload all available scripts. Then choose the file name of the already created .conf file
e.
Select on which entities this provider should be available. In this case for further uses Instance and Host must be selected. Hint: This can be changed afterwards by editing the provider definition. To finish the action, select Create Provider.
a.
Open the options of the provider definition. Select Name of Provider Definition → Parameters → Add Parameter
b.
In this screen, all parameters should be added, which are accepted by the own script. The Name of the parameter definition must be the same as defined in the .conf file. In this case it’s named FUNCTION, the script call in the .conf file should look like: Command: /nfs/sles_data/support_tools/kernelinst.sh $[PARAM-FUNCTION:#required].
Instance status (Dynamic) = Not Running
Operation only starts, if instance is stopped
Host status (assigned host) (Dynamic) <> Unreachable
Only if host is reachable, operation can start (and also can be selected)
Important configuration: Instance class (Static) = Instance
Operation only selectable on a SAP instance (not a HANA instance). For this case important, because kernel should only be updated on a SAP instance.
Operation | Defined Constraints / Relation Chains | Remark |
Stop | Operation Constraint Instance class (Static) = Instance | Stop is only performed on SAP instances, not on the database |
SAP Update Kernel Files | Operation Constraint Instance class (Static) = InstanceRelation ChainGlobal InstanceTarget (Instance) | Kernel Update Script will only be started on the central instance. |
SAP Update Security Files | no changes / nothing selected | |
Start | no changes / nothing selected | |
SAP Update Host Agent | no changes / nothing selected |
Operation | Defined Constraints / Relation Chains | Remark |
Stop | no changes / nothing selected | Stop is performed on all SAP and database instances. |
SAP Profile Change | Operation Constraint Instance class (Static) = Instance | Script will be started only on SAP instances |
HANA Profile Change | Operation Constraint Database Type (Static) = SAP HANA | Script will be started only on HANA instances |
SAP Profile Change Host Agent | no changes / nothing selected | |
SAP Update Kernel Files | Operation Constraint Instance class (Static) = InstanceRelation ChainGlobal InstanceTarget (Instance) | Kernel Update Script will only be started on the central instance or PAS. |
SAP Update Security Files | no changes / nothing selected | |
SAP Update Host Agent | no changes / nothing selected | |
Update OS | no changes / nothing selected | Script for updating the operation system will be started on one central configuration host. This is defined in the configuration of the Custom Operation |
Start | no changes / nothing selected | All instances will be started |
Provider Definition - HANA Profile Change Name in .conf file: CUSTOM_ModifyHANAProfile Command in .conf file: /myshare/modifyhanaprofile.sh | ||
Configuration | Options | Script - Description |
Name HANA Profile Change | nothing configured / no changes | Script must be started on HANA instances without any parameters. Definition how and where the HANA values have to be changed are defined in the script. |
Registered Script CUSTOM_ModifyHANAProfile | ||
Operation Uses Instance |
Custom Operations based on HANA Profile Change | |||
Name | Configuration | Options | Description |
HANA Profile Change | Entity Type Instance | Operation Constraints Database Type (Static) = SAP HANA | Operation is only visible on HANA database instances. |
Required Permission Normal | |||
Button Group Patch Automation | |||
Other selected Entries Valid for Mass Operations Locks Instance or Host Synchronous Execution |
Definition in Custom Process | ||
Name | Options | Description |
HANA Profile Change | Operation Constraints Database Type (Static) = SAP HANA | During the process operation only on entities with Database Type = SAP HANA will be executed. |
Provider Definition - SAP Profile Change Name in .conf file: CUSTOM_ModifySAPProfile Command in .conf file: /myshare/modifysapprofile.sh -i $[PARAM-INSTNR:#required] | ||
Configuration | Options | Script - Description |
Name SAP Profile Change | Parameters Name/Label: INSTNR Type: Hard-Coded String Mandatory: true | To execute the script for editing and changing SAP profiles, the instance number must be given as a parameter following the identificator ‘-i’. This must be defined in the parameters section of the provider definition. Which parameters have to be changed in which is handled by the script itself. |
Registered Script CUSTOM_ModifySAPProfile | ||
Operation Uses Instance Host |
Custom Operations based on SAP Profile Change | |||
Name | Configuration | Options | Description |
SAP Profile Change | Entity Type Instance | Parameters Name/Label: INSTNR Type: String Value: $[SAPSYSTEM] Mandatory: trueConstraints Instance status (Dynamic) <> Initial Host status (assigned host) (Dynamic) <> Unreachable Instance class (Static) = Instance | The LaMa standard parameter $[SAPSYSTEM] includes the instance number of the actual started operation, e.g. if operation is started on ASCS01, script will be called with parameter ‘-i 01’. |
Required Permission Normal | |||
Button Group Patch Automation | |||
Other selected Entries Valid for Mass Operations Locks Instance or Host Synchronous Execution | |||
SAP Profile Change Hostagent | Entity Type Host | Parameters Name/Label: INSTNR Type: String Value: 99 Mandatory: trueConstraints Host status (assigned host) (Dynamic) <> Unreachable | SAP Host Agent is installed on each system with standard port 99. For this case update for it is started every time with ‘-i 99’. |
Required Permission Normal | |||
Button Group Patch Automation | |||
Other selected Entries Valid for Mass Operations Locks Instance or Host Synchronous Execution |
Definition in Custom Process | ||
Name | Options | Description |
SAP Profile Change | Operation Constraints Instance class (Static) = Instance | Operation will be started only on SAP instances, as defined with parameter instance number. |
SAP Profile Change Hostagent | nothing configured /no changes | Operation will be started on each host, as defined with parameter 99 for SAP Host Agent. |
Provider Definition - SAP Kernel Update Name in .conf file: CUSTOM_KernelInstaller Command in .conf file: /myshare/kernelinstaller.sh $[PARAM-FUNCTION:#required] | ||
Configuration | Options | Description |
Name SAP Kernel Update | Parameters Name/Label: FUNCTION Type: Hard-Coded String Array Value: --kernel; --hostagent; --security | Script for kernel update is much more complex than the other ones. Start of script is possible with following parameters: --kernel: Update of kernel files --hostagent: Update of SAP Host Agent ACEXT package --security: adapt all ACL files according to templates |
Registered Script CUSTOM_Kernelinstaller | ||
Operation Uses Instance Host |
Custom Operations based on SAP Kernel Update | |||
Name | Configuration | Options | Description |
SAP Update Kernel Files | Entity Type Instance | Parameters Name/Label: FUNCTION Type: String Value: --kernelConstraints Instance status (Dynamic) = Not running Host status (assigned host) (Dynamic) <> Unreachable Instance class (Static) = Instance | Script will be executed with parameter –kernel. It is only possible to start the script, if instance is down, host is reachable and the entity type is a SAP instance |
Required Permission Normal | |||
Button Group Patch Automation | |||
Other selected Entries Valid for Mass Operations Locks Instance or Host Synchronous Execution | |||
SAP Update Hostagent | Entity Type Host | Parameters Name/Label: FUNCTION Type: String Value: --hostagentConstraints Host status (assigned host) (Dynamic) <> Unreachable | Update of SAP Host Agent must be done on each host, so the only constraint is configured to start the script only on hosts which are reachable. |
Required Permission Normal | |||
Button Group Patch Automation | |||
Other selected Entries Valid for Mass Operations Locks Instance or Host Synchronous Execution | |||
SAP Update Security Files | Entity Type Host | Parameters Name/Label: FUNCTION Type: String Value: --securityConstraints Host status (assigned host) (Dynamic) <> Unreachable | Security files should also be adapted on each host, because SAP services and host agent itself also is configured with ACL files. Script handles itself, whose files have to be adapted according to templates. |
Required Permission Normal | |||
Button Group Patch Automation | |||
Other selected Entries Valid for Mass Operations Locks Instance or Host Synchronous Execution |
Definition in Custom Process | ||
Name | Options | Description |
SAP Update Kernel Files | Operation Constraints Instance class (Static) = Instance | Kernel file update must only run on the central instance or the PAS. This is configured in the relations chain options. |
Relations Chain Global Instance, Target (Instance) | ||
SAP Update Hostagent | nothing configured/ no changes | Can run on each host. No further configurations needed. |
SAP Update Security Files | nothing configured/ no changes | Can run on each host. No further configurations needed. |
Provider Definition – OS Update Name in .conf file: CUSTOM_HostUpdate Command in .conf file: /myshare/hostupdate.sh -hn $[PHYSICAL_HOSTNAME:#required] | ||
Configuration | Options | Description |
Name OS Update | nothing configured/ no changes | To update an operating system of a host in this infrastructure, it’s a requirement to start the update on one central host with the hostname of the target system as a parameter. The option to start the script every time on this special host is done with the value Central hostname during the configuration of the provider definition. The embedded parameter PHYSICAL_HOSTNAME includes the hostname, which belongs to the system where the update is started.Example: If in LaMa on system level the OS update is started, the script will start on central update host for each hostname which belongs to the SAP system. |
Registered Script CUSTOM_HostUpdate | ||
Execute on Central Host Only true | ||
Central Execution Type Host | ||
Central Hostname <hostname of central host for updates> | ||
Operation Uses Host |
Custom Operations based on OS Update | |||
Name | Configuration | Options | Description |
Update Operating System | Entity Type Host | nothing configured /no changes | All necessary configurations are done in the provider definition. |
Required Permission Normal | |||
Button Group Patch Automation | |||
Other selected Entries Valid for Mass Operations Locks Instance or Host Synchronous Execution |
Definition in Custom Process | ||
Name | Options | Description |
Update Operating System | nothing configured /no changes | No changes needed here at this point. |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |