You are on page 1of 7

Fall

08

SAP Solution Manager

Sap Solution Manager Diagnostics


General Overview

h t t p : / / w w w. l i n ke d i n . c o m / i n / s o l u t i o n m a n a g e r
We nce sl ao L aca ze
We nce sl ao L aca ze
SapSolutionManagerDiagnosticsOverview

Table of Contents
Author Bio.................................................................................................................3
What is SMD?............................................................................................................4
What is SMD Agent?..................................................................................................4
How works SMD?.......................................................................................................4
Users:........................................................................................................................4
Oss Level:............................................................................................................4
Sap Level:...........................................................................................................4
Directory related.......................................................................................................4
Maintenance Task......................................................................................................5
Start SMD Instance..............................................................................................5
Check the status of SMD Instance.......................................................................6
To Stop the SMD Agent .......................................................................................6
Check the logs of SMD Instance..........................................................................6
Check the Logs of the SMD Agent.......................................................................7
Change Connectivity parameter.........................................................................7

3491444.doc Page 2 of 7
SapSolutionManagerDiagnosticsOverview

Author Bio
My name is Wenceslao Lacaze and Ive been working as a SAP
basis Administrator and Solution Manager Consultant for the last 8
years.
Im a Techno-Functional SAP Solution Manager Subject Matter
Expert (SME), I Design, Build and Implement the product using Run
Sap Methodology.
I have developed a very extended experience with medium and
large scaled SAP installations in several (multi)national
environments.

I am based in Argentina, but work all around the World.


I work directly for clients or via an agency.
I do speak Spanish, Italian and English fluently.
You can contact me at:
Email: wlacaze@gmail.com
http://www.linkedin.com/in/solutionmanager

3491444.doc Page 3 of 7
SapSolutionManagerDiagnosticsOverview

What is SMD?
SMD or Solution Manager Diagnostics is the tools provide by Sap to control and
monitor all your Landscape. To do that you need to install SMD Agent in all the
Satellite Systems. SMD Is only a remote and monitor tool. you cant make
modifications in the remote environment whit this tools.

What is SMD Agent?


SMD Agent is similar a Java instance, this Agent come with several applications
and allow to execute task remotely and you dont need to have users in the remote
environment, in this way you not compromise the security.
You need to install one by server/Virtual Server

How works SMD?


When you execute any task in Solution Manager Diagnostics, the system sends the
command to the SMD Agent to run the task. You have a set of predefined task but
you can create your own task if you have special needs.

Users:
During the Installation and the Setup of the Solutions, you need to create 2 Users..

Oss Level:
During the Installation of Solution Manager Diagnostics Agent, you need to create
one user for SMD Agent, the standard name is smdadm.

Sap Level:
During the Setup Wizard you need to create a Sap user to be used in the Support
Activities. the standard name is SAP_SUPPORT.

Directory related
The Main directory of SMD is /usr/sap/SMD:
Directory Content
/usr/sap/SMD/SYS/profile
/DEFAULT.PFL Default Profile Global
/SMD_J98_hostn Instance Profile Global
ame Start Profile Global
/START_J98_host
name
/usr/sap/SMD/Exe Executable Files
/usr/sap/SMD/J98/sapinst Sapinst Logs.
/usr/sap/SMD/J98/work/ Work files,Logs,Dumps.Temp.
/usr/sap/SMD/J98/component_analyze Internal Tools .
r/

3491444.doc Page 4 of 7
SapSolutionManagerDiagnosticsOverview

/usr/sap/SMD/J98/profile/
/SMD_J98_localhos Default Profile
t Instance Profile
/smd.properties Start Profile
/START_J98_localh
ost
/usr/sap/SMD/J98/script Scripts to Start/Stop/Admin the SMD
Instance
/usr/sap/SMD/J98/SMDAgent
/applications All the SMD Applications
/applications.config Applications Configuration
/bootstrap Bootstrap
/log Log of SMD Agent
/temp Temp Files/
/configuration XML Configuration.
/lib Librarys.

Maintenance Task
All the standard maintenance task need to be done with the smdadm user.

Start SMD Instance


Command: .su smdadm.
cd /usr/sap/SMD/J98/script/
smdstart.sh SMD 98
SAP Solution Manager - Diagnostics Agent - Copyright (c) 2007 SAP AG
_________________________________________________________________________
[-] Starting agent SMD / 98 on host with user smdadm ..

SAPOSCOL version COLL 20.94 700 - AIX v10.35 5L-64 bit 070123, 64 bit,
single threaded, Non-Unicode
compiled at Aug 7 2007
systemid 324 (IBM RS/6000 with AIX)
relno 7000
patch text COLL 20.94 700 - AIX v10.35 5L-64 bit 070123
patchno 123
intno 20050900
running on ampsv03302ppr AIX 3 5 00CA3E4A4C00

[-] Launching SAP HOST CONTROL ...


----------------------------------
ok.
SAP-R/3-Startup Program Rel 700 V1.8 (2003/04/24)
-------------------------------------------------
Starting at 2008/06/18 04:29:58
Startup Profile: "/usr/sap/SMD/J98/profile/START_J98_localhost"
Starting Programs
-----------------
18.06.2008 04:29:58

3491444.doc Page 5 of 7
SapSolutionManagerDiagnosticsOverview

ShmDetach
(614532) Starting: local /usr/sap/SMD/exe/jcontrol
pf=/usr/sap/SMD/SYS/profile/SMD_J98_ampsv03302ppr
(1626202) Waiting for Child Processes to terminate.

Check the status of SMD Instance.


Command .su smdadm.
.cd /usr/sap/SMD/J98/script/
smdadmin.sh SMD 98 Option 20
------------------------------------------------------------
SAP System Name : SMD
SAP System : 98
MS Host :
MS Port : 36
Process Count :1
PID of JControl : 1073202
State of JControl : All processes running
State inside MS : All processes running
Admin URL :
------------------------------------------------------------------------
|Idx|Name |PID |State |Error|Restart|
|---|--------------------|-----------|-----------------|-----|-------|
| 0|smdagent | 1093666|Running | 0|yes |
----------------------------------------------------------------------

To Stop the SMD Agent


Command .su smdadm
.cd /usr/sap/SMD/J98/script/
smdstop.sh SMD 98
StopService
OK

[-] Shutdown Diagnostics Agent SMD /98 with user smdadm


--------------------------------------------
(471056) **** 2008/06/18 04:29:02 Caught Signal to Stop all Programs. ****
(471056) Parent Shutdown at 2008/06/18 04:29:04
(471056) Stop Child Process: 1073202
(471056) Wait 300 sec for Process 1073202 terminating...
Execute Post-Shutdown Commands
------------------------------

Check the logs of SMD Instance


In the directory /usr/sap/SMD/J98/work you have all the logs like a Java Instance.

ampsv03302ppr:smdadm 132> ls -lstar

3491444.doc Page 6 of 7
SapSolutionManagerDiagnosticsOverview

total 68
0 drwxrwxr-x 8 smdadm sapsys 256 Jun 10 04:13 ..
0 -rw------- 1 smdadm sapsys 0 Jun 18 04:39 stdout0
4 -rw------- 1 smdadm sapsys 192 Jun 18 04:39 stderr0
4 -rwxr--r-- 1 smdadm sapsys 15 Jun 18 04:39 shutdown.sap
4 -rw------- 1 smdadm sapsys 481 Jun 18 04:39 sapstartsrv.log
4 -rw------- 1 smdadm sapsys 167 Jun 18 04:39 sapstart0.trc
4 -rw------- 1 smdadm sapsys 18 Jun 18 04:39 sapstart.sem
4 -rw------- 1 smdadm sapsys 555 Jun 18 04:39 sapstart.log
4 -rwxr--r-- 1 smdadm sapsys 16 Jun 18 04:39 kill.sap
8 -rw-r--r-- 1 smdadm sapsys 5411 Jun 18 04:39 dev_jcontrol
4 -rw------- 1 smdadm sapsys 181 Jun 18 04:39 INSTSTAT
4 -rw------- 1 smdadm sapsys 364 Jun 18 04:39 std_smdagent.out
4 drwxrwxr-x 2 smdadm sapsys 4096 Jun 18 04:39 .
8 -rw-r--r-- 1 smdadm sapsys 6861 Jun 18 04:39 dev_smdagent
8 -rw------- 1 smdadm sapsys 7746 Jun 18 04:39 jvm_smdagent.out
4 -rw------- 1 smdadm sapsys 108 Jun 18 04:44 available.log

Check the Logs of the SMD Agent


In the Directory /usr/sap/SMD/J98/SMDAgent/log you have all the information about
the SMD Activities.

Change Connectivity parameter


If you want to change the configuration of SMD Agent connectivity you need to run
the command smdsetup.bat.

3491444.doc Page 7 of 7

You might also like