Skip to Content

Installation of Solution Manager Diagnostics Agent with ExecuteInstallationProcedure

Prerequisites

  • SAP Host Agent is installed.
  • Software Provisioning Manager (SWPM) and Kernel installation media are downloaded from http://support.sap.com/swdc), for example  SL Toolset 1.0 SP16 SWPM10SP10 and Package SL Toolset 1.0 SP16 Kernel 721 for SWPMSP10.
  • You have unpacked the SWPM10SP<Support_Package_Number>_<Version_Number>.SAR .
  • You have unpacked the Kernel installation package to the directory where you have also unpacked SWPM  (or any of the directories in the directory path of SWPM),  because otherwise the sapinst executable does not find the required Kernel installation files

Automatic Installation of the Diagnostics Agent with registration to SAP Solution Manager System

Product ID: NW_DiagnosticsAgent:NW731.IND.PD

Installation Parameters:

NW_DiagnosticsAgent.sid=DAA

NW_DiagnosticsAgent_Instance.instanceNumber=97

NW_DiagnosticsAgent_Host.virtualHost=WDFN00297139A

NW_DiagnosticsAgent_Instance_Setup.connection_sld=no

NW_DiagnosticsAgent_Instance_Setup.connection_solman=solman

NW_DiagnosticsAgent_Instance_Setup.useSSL_solman=false

NW_DiagnosticsAgent_Instance_Setup.host_smd=wdflbmd0385.wdf.sap.corp

NW_DiagnosticsAgent_Instance_Setup.port_smd=8101

NW_DiagnosticsAgent_Instance_Setup.user_smd=SMD_ADMIN

NW_DiagnosticsAgent_Instance_Setup.passwd_smd=Abcd1234

NW_DiagnosticsAgent_Instance_Setup.connection_ms=ms

NW_DiagnosticsAgent_Instance_Setup.needHTTPS_sld=false

smdAgent.sidAdmPassword=Abcd1234

smdAgent.sapServiceSIDPassword=Abcd1234

You have to save these values to a file and provide the location of this file to ExecuteInstallationProcedure as -paramfile parameter

Note: All parameters are examples. If you want to use this example, you have to adjust the parameters to your needs.

Example how to execute ExecuteInstallationProcedure for installation with a parameter file:

C:\Program Files\SAP\hostctrl\exe>saphostctrl.exe

    -user sapadm Abcd1234

    -function ExecuteInstallationProcedure

    -prodid NW_DiagnosticsAgent:NW731.IND.PD

    -paramfile "C:\temp\smdinstallparameters"

    -home C:\temp\

    -src C:\temp\swpm

Automatic Uninstallation of the Diagnostics Agent

Product ID: NW_Uninstall:NW731.IND.PD

Uninstall Parameters:

NW_readProfileDir.profileDir=C:\usr\sap\DAA\SYS\profile

NW_System_Uninstall.completeSystem=true

NW_System_Uninstall.removeUsers=true

NW_System_Uninstall.uninstallHostAgent=false

You have to save these values to a file and provide the location of this file to ExecuteInstallationProcedure as -paramfile parameter.

Note: All parameters are examples. If you want to use this example, you have to adjust the parameters to your needs.

Example how to execute 'ExecuteInstallationProcedure' for uninstallation with a parameter file:

C:\Program Files\SAP\hostctrl\exe>saphostctrl.exe

    -user sapadm Abcd1234

    -function ExecuteInstallationProcedure

    -prodid NW_Uninstall:NW731.IND.PD

    -paramfile "C:\temp\smduninstallparameters"

    -home C:\temp\

    -src C:\temp\swpm

Asynchronous Installation with -function ReadLogFile

This example shows the commands for windows you have to execute step by step when you install asynchronously with -function ReadLogFile:

  1. saphostctrl.exe -user sapadm abcd1234 -function ExecuteInstallationProcedure -prodid NW_DiagnosticsAgent:NW731.IND.PD -paramfile C:\smdinstallparameters -home C:\temp -mountsrc \\host\swpm_windows -mounttgt U: -mountusr sapadm -mountpwd abcd1234 -timeout 0
  2. sapcontrol.exe -user sapadm abcd1234 -nr 99 -function ReadLogFile C:\temp\sapinst2014_06_02_11_11_30\sapinst.log
  3. saphostctrl.exe -user sapadm abcd1234 -function ExecuteInstallationProcedure -prodid NW_DiagnosticsAgent:NW731.IND.PD -paramfile C:\smdinstallparameters -home C:\temp\sapinst2014_06_02_11_11_30 -mountsrc \\host\swpm_windows -mounttgt U: -mountusr sapadm -mountpwd abcd1234 -retry -cleanup auto
  4. saphostctrl.exe -user sapadm abcd1234 -function GetOperationResults -id AAAABBBB -timeout 0
Tags:

No comments