Quantcast
Channel: SCN : All Content - SAP NetWeaver Administrator
Viewing all articles
Browse latest Browse all 5139

Details about DAA/SMD,host agent, sapstartsrv etc.

$
0
0

Hi admins,

 

as technology consultant I came across a lot of confusion about topics like host agent, DAA, SMD, sapstartsrv and sapcontrol.

For what all this services are used? Which information is delivered from which one? Do I need them? When should I restart which service?

I will clarify all this questions in this blog to avoid future confusions.

All the communication threads are using the sapstreams (Unix: UNIX-Domain-Sockets / Windows: Windows named pipe).

For more information use the sap help.

 

 

Host Agent

Descriptionvalue
InstallationWill be installed with every SAP system
location/usr/sap/hostctrl
updateextract *SAR package from SMP => ./saphostexec -install or automatically over a network share
ownersapadm / root
port1128
start / stopsaphostexec -restart | stop as root/sapadm
statussaphostexec -status or ps -ef | grep -i saphostexec or TX: ST06

The host agent includes also other binaries like saposcol and sldreg.

 

saposcol

binary which is responsible for the delivery of monitoring values (CPU, memory, I/O etc.) from the OS to ABAP and diagnostic agent/solman

saposcol was included in the normal instance kernel before kernel 720. With kernel 720 it is part of the host agent.

 

sldreg

deliveres values for SLD (active if dev_sldr, dev_sldregs in instance work dir => /usr/sap/<SID>/work)

You need it if you want to send all information of your system to SolMan

to activate it => sldreg -configure slddest.cfg –usekeyfile => creates a config file in global dir

will send data if you are restarting the sapstartsrv of the instance => sapcontrol -nr xx -function RestartService

Note: this will only restart the sapstartsrv not the SAP instance or the system!

 

sapstartsrv

DescriptionValue
Installationwill be installed with the kernel
location<exe>/sapstartsrv
Logfile/usr/sap/<SID>/work/sapstartsrv.log
updatenormal kernel update
owner<sid>adm
start / stopsapcontrol -nr xx -function RestartService | Stop | Start <SID>
statusps -ef |grep -i sapstartsrv
Port5<xx>13 / SSL 5<xx>14
Detailsis configured by default as boot service (details: 823941 - SAP start service on Unix platforms). check file /usr/sap/services
further infosapstartsrv service parameters - Basis Corner - SCN Wiki

 

Note: every instance has its own service => this means e.g. DAA, central services (SCS), host agent have its own sapstartsrv service

over this service and its ports is the execution of OS commands possible. The sapcontrol binary controls this service and can restart the system.

This means SAP MC (Management Console) uses this port for communication and commands.

The service should be restarted if you change anything on your system, e.g. kernel, ip, hostname

 

DAA / SMD

In newer systems there is no difference between SMD and DAA. The diagnostic agent (DAA) is the newer description but includes the SMD which is more the instance description and DAA the SID. They renamed SMD to DAA, it is still nearly the same and you will find both names in the documentations or parameters.

DescriptionValue
installationwith new system or afterwards single installation with SWPM
location/usr/sap/DAA (old: /usr/sap/SMD)
logfilefiles under /usr/sap/DAA/SMDAxx/work (xx should be 97 / 98)
config<DAA_Instance_Dir>/smdagent.properties | <DAA_Instance_Dir>/configuration/installationinfo.properties | runtime.properties
SIDDAA / SMD
Instance number98 (old 97)
Ports59821 (DebugPort) 59813 (sapstartsrv) 59804 (replace 98 with 97 for old installation)
updateautomatically over solution manager (LM-SERVICE Java component)
ownerdaaadm (smdadm)
start / stopstopsap / startsap as daaadm (smdadm)
further infoDiagnostics Agents - SAP Solution Manager Setup - SCN Wiki

Details: based on java instance

It is a central component of the solution manager. You should install it on every system which you want to connect to the SolMan. It provides necessary information for SLD/LMDB.

 

 

sapcontrol

The sapcontrol binary uses the sapstartsrv to start/stop services, read out log and trace files, show details and status of processes

 

DescriptionValue
location<exe>
updatenormal kernel update
owner<sid>adm

Details:

You can only restart a service, instance or a complete system. Now some of you may be confused about this. Is the instance not the same as system?

No the instance is e.g. only the DIA instance but not the ASCS and the DB. When you stop the system, than all process which are registered in <GlobalDir>/sapcontrol are restarted!

You can display this also with a command: sapcontrol -nr xx -function GetSystemInstanceList

some useful functions:

GetStartProfile

GetTraceFile

GetAlerts

GetEnvironment

GetVersionInfo

GetQueueStatistic

GetProcessList

GetInstanceProperties

GetSystemInstanceList

ABAPReadSyslog

ABAPGetWPTable

J2EEGetProcessList

J2EEGetThreadList

J2EEGetSessionList

ICMGetCacheEntries

EnqGetStatistic

EnqGetLockTable

CheckHostAgent

 

I hope I could clarify the meaning and usage of every service/binary.

 

If you have any further questions, don't hestate to comment the blog or contact me or one of my colleagues at Q-Partners ( info_at_qpcm_dot_de )

 

Best Regards,

Jens Gleichmann

Technology Consultant at Q-Partners (www.qpcm.eu)


Viewing all articles
Browse latest Browse all 5139

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>