Professional Documents
Culture Documents
Agent Installation Strategy
Agent Installation Strategy
Agent Installation Strategy
Scope
Following rules are in most cases relevant for Solution Manager 7.0 EhP1 and 7.1,
but in case restrictions apply the rule item is tagged [7.0 EhP1 only] or [7.1 only]
Terminology
The term “host” in this slide set does NOT designate network alias. Hosts (virtual or
logical) MUST have their own IP address.
A “Virtual host” designates a simulated host running for example on top of a VMware.
A “Logical host” designates a network / host configuration which associates a physical
host with one or several additional hostnames and dedicated IP addresses. This is for
example used to easily move systems from one physical host to another.
N.B.: To double check which hostname is used by an ABAP system, use transaction
sm51 and for Java systems refer to the System Info Web page.
Rule #1:
Have the required amount of Diagnostics Agent(s) installed
For each Solution Manager install only one Diagnostics Agent per host (physical, virtual or
logical)
Each Diagnostics Agent manages the supported systems / components running on the host
where it is installed (and is considered as being representative for the host)
– Refer to the next slides to understand what is considered to be a supported system component
– Nevertheless, the “Managed System configuration” (solman_setup) must be repeated for each technical
system running on that host (physical, virtual or logical)
For landscapes with logical hostnames, take care to specify the adequate hostname during
installation
– Only when installing an (additional) Agent for a logical host, using the Diagnostics Agent installation
package, provide in the SAPInst step that requests a “Virtual hostname”, the short hostname of the host
for which this Agent should be representative.
Rule #1 (details):
Have required amount of Diagnostics Agent(s) installed
LogicalHost3 LogicalHost1 LogicalHost2
C1 C2 C7 C8 C3 C4 C5 C6
cluster
Central Instance
+ ABAP Central Services + ABAP Central Services
Central Services
DB DB
DB
Diagnostics Agent
Dialog Instance Dialog Instance
Central Services
DB DB
Diagnostics Agent Diagnostics Agent
DB
Diagnostics Agent
Agent required in the scope Agent required in the scope Agent required in the scope
of Solution Manager 7.1 of Solution Manager 7.1 of Solution Manager 7.1
© 2011 SAP AG. All rights reserved. 6
What is needed and where? (Diagnostics Agent)
3-System landscape
Comparison possible Diagnostics Agent
Introscope
Enterprise Manager
Use Dev IS EM to
retrieve Perf data of QA Enterprise Portal Introscope
QA Managed systems Agents
Solution Manager Diagnostics Agent
Prod SolMan
Diagnostics Agent
Collected config of
Managed systems
QA & Prod
[7.1 only] Covering 3-System landscape requires installing a 2nd Diagnostics Agent (Dev IS EM)
Solution Manager
Dev SolMan
Collected config of
Managed systems
Dev & QA Dev Enterprise Portal
3-System landscape
Introscope
Enterprise Manager
Diagnostics Agent
Use Dev IS EM to Diagnostics Agent
retrieve Perf data of QA Enterprise Portal
QA Managed systems
Solution Manager
Prod SolMan
Collected config of
Managed systems
QA & Prod
Introscope
Enterprise Manager
Diagnostics Agent
Agent Agent
Solution Manager
E2E Trace Analysis Prod Enterprise Portal Introscope Prod ECC Server
Agents
Diagnostics Agent Diagnostics Introscope
Introscope
Agent Agent
Enterprise Manager
Rule #2:
Have up-to-date SAP Host Agent(s)
Always refer to SAP note 1365123 to find out the currently requested minimum version
– This note also confirms whether the installation / upgrade of the SAP Host Agent performed jointly with
the installation of a Diagnostics Agent (installer 7.30 SPxx) is sufficient to cover currently know defects.
Install a SAP Host Agent in case none has been installed yet (one per physical host)
– Checking whether a SAP Host Agent exists using file structure at OS level:
o For Windows look under: "%ProgramFiles%"\SAP\hostctrl
o For Unix under: /usr/sap/hostctrl/
Update the SAP Host Agent following SAP note 1031096 in case the version is not adequate
– Check version by executing at OS level (looking in the output at SAPHOSTAGENT Information section):
o For Windows: "%ProgramFiles%"\SAP\hostctrl\exe\saphostctrl -function ExecuteOperation -name versioninfo
o For Unix: /usr/sap/hostctrl/exe/saphostctrl -function ExecuteOperation -name versioninfo
– [7.1 only] Currently installed Host Agent version is also visible in Host browsing, in case the associated
“Managed System Configuration” has been performed with solman_setup
o Navigate to Solution Manager Administration Work Center -> Select Landscape + Technical System
selection type -> System Details -> System Details -> Hosts -> <search for your host> -> Host Status
Rule #2 (continued):
Have up-to-date SAP Host Agent(s)
Ideally put in place the automatic upgrade process (especially if you need to plan an update)
– SAP note 1473974 describes ways to centrally and automatically upgrade running SAP Host Agents.
Rule #3:
Consider the Diagnostics Agent as a standard SAP system
Therefore the rules common to all SAP Systems apply
Never install an Agent into the directory structure of another system (also do not copy or
move the files)
– Agents must be independent from any other kind of system installation
Exception: Several Diagnostics Agents (with same kernel release) can be installed using
the same SID, but using different Instance Numbers
– This also means that the Agent SID must contain only Diagnostics Agent instances
Diagnostics Agents typically have different System / Instance ID patterns depending on the
release (see following slides)
Rule #3 (details):
Possible alternatives to install multiple Diagnostics Agents on the same host (to be
connected to different Solution Manager systems)
Use the same dedicated System ID (and like always different Instance Numbers)
– Recommendation: Do not use the same SID for Diagnostics Agents having different Kernel Releases
(in general this is prevented by the installer).
Using different System IDs (and like always different Instance Numbers)
– Allows to have totally independent installations, but requires also internal allocation rules in case the
file system is mounted.
properties files
Agent logs /usr/sap/<SMDSID>/J<XX>/SMDAgent/log /usr/sap/<DASID>/SMDA<XX>/SMDAgent/log
(1) Contains executable kernel programs that are replicated (even moved for the SAPJVM) from SYS/exe
every time the Agent instance is started.
© 2011 SAP AG. All rights reserved. 14
Diagnostics Agent releases
Rule #4:
In case you need to install a Diagnostics Agent to comply with rule#3 use the
standalone Diagnostics Agent installation package 7.30 SP02
A summary of various Diagnostics Agents releases an characteristics are presented on the
next slide
Only the older Diagnostics Agent release 7.01 SR1 could be connected to a Solution
Manager having a release lower than 7.0 EhP1 SP20. This Agent release is installable with
the SAP EhP1 for SAP Netweaver 7.0 Installation Master, Kernel & Java DVDs. A
separately installed JDK 1.4.2 is also required.
(1) When a Solution Manager system is upgraded the associated connected Diagnostics Agents do generally not need to be manually
upgraded. See also next slide and later rule #5. IMPORTANT: But in all cases rule #2 must be followed.
(2) N.B.: It means that this Diagnostics Agent release could be also used in the scope Solution Manager 7.1.
© 2011 SAP AG. All rights reserved. 16
Diagnostics Agent characteristics for each release
Agent releases 7.0 / 7.01 SR1 (1)(2) 7.11 7.20 7.30 SP02 (4)
CE 7.20 & NW 7.0 NW 7.3 (and soon 7.0
Installed already silently 7.0 & EhP1 NW
PI & CE 7.1 EhP1 EhP2 NW Java, EhP3) Java, ABAP or
with Products based on … Java or dual stacks
ABAP or dual stacks dual stacks
Kernel release (like SAP Products) 7.0 / 7.01 7.11 7.20 7.20
(1) No separate (standalone) Diagnostics Agent installation package provided (reduced size)
(2) Server Name could be provided. Do not confuse “server name” and host name.
(3) IAIK libraries need to be provided manually Installer recommended
(4) Also allows to configure automatically the trusted connection @ SAP Host Agent level when new installations required
© 2011 SAP AG. All rights reserved. 17
Diagnostics Agent and SLD registration
Use the SAPInst unattended mode in case Diagnostics Agents need to be installed
consistently over a wide landscape
The unattended mode allows the Diagnostics Agent installer package to be used in silent
mode to automate the installation of a higher number of Agents
Installation template available for Diagnostics Agents 7.20 in SAP note 1294713
Installation template available for Diagnostics Agents 7.30 in SAP note 1486330
Rule #5:
Generally for Diagnostics Agents do not worry about upgrades (versus SAP Host
Agent)
Diagnostics Agents are taking their business logic (software) from the Solution Manager
system to which they are connected
– Therefore all Diagnostics Agents in the landscape (that are running and connected) could be patched
centrally, by applying an LM-SERVICE Java Software Component Archive on the Solution Manager
System
In case some issues have to be resolved (support of cryptography, …) an associated
manual procedure is generally described within the SAP note corresponding to the
Diagnostics Agent installation guide of the Agent associated release. Alternatively, consider
applying the procedure described on the next slide.
Rule #5 (continued):
In case a Diagnostics Agent has to be nevertheless upgraded, perform a uninstall of
the old release and do a fresh installation by paying attention to the following steps
Login to the Solution Manager system to which, the Agent to be upgraded, is connected
– Navigate to the Agent Administration to write down the
“Server name” that was used by the old Agent
– Perform also a “Reset server name” using the contextual
menu of that Agent and finally stop the Agent
Install the new Diagnostics Agent release using a different SID (no upgrade tool available)
Assign the same “Server Name” to the newly installed Agent using the smdsetup script (see
details in the Agent troubleshooting guide). Do not confuse “server name” and host name.
For Java Managed systems run again the “Configure Wily Introscope Agent” (a.k.a. “Byte
Code Adapter Installation”) in solman_setup transaction / “Managed System Configuration”
– This updates the Managed system JVM parameters so that the Introscope Agent binaries will be taken
from the directory structure of the new Diagnostics Agent (instead of the old Diagnostics Agent).
Restart the Java Managed system
Finally, uninstall the Diagnostics Agent using sapinst
Rule #6:
Use the Diagnostics Agent installer to remove / uninstall a Diagnostics Agent
instance
IMPORTANT: Comply with following remark in case the Diagnostics Agent to be
uninstalled has been used (for Java Managed systems) at some point in time during the
execution of “Configure Wily Introscope Agent” (a.k.a. “Byte Code Adapter Installation”) in
solman_setup / “Managed system configuration”
In case you plan to simply remove the Diagnostics Agent (independently from the
Diagnostics Agent upgrade-process indicated on the previous slide), you need to also:
– Remove the JVM parameters on the Java Managed system that are used to start/run the Introscope
Byte Code Agent. To have the list of parameters refer to SAP note: 797147. In general the parameters
are like: -Xbootclasspath and -Dcom.wily….
– Especially the JVM parameter makes you understand that there is an interdependence between the
Introscope Byte Code Agent (run by the Managed system) and the Diagnostics Agent directory
structure you are planning to remove:
Xbootclasspath/p:D:/usr/sap/DAA/SMDA77/SMDAgent/applications.config/com.sap.smd.agent.application.wily/BytecodeAgent/ISAGENT.8.2.3.5-2011-01-
14/wily/connectors/AutoProbeConnector.jar;D:/usr/sap/DAA/SMDA77/SMDAgent/applications.config/com.sap.smd.agent.application.wily/BytecodeAgent/ISAGENT.8.2.
3.5-2011-01-14/wily/Agent.jar
– Restart the Java Managed system to no longer run the Introscope Byte Code Agent
– Run the Diagnostics Agent installer SAPInst to start the Diagnostics Agent uninstall option
© 2011 SAP AG. All rights reserved. 22