cancel
Showing results for 
Search instead for 
Did you mean: 

can't use smdsetup to connect the DAA agent to SLM

Former Member
0 Kudos

Dear

i have a problem like this

i install the daa agent in the ehp5 ecc 6 system

when i use "./smdsetup.sh supportlogs"

--------------------------------------------------------------------------------------------------------------------------------------------------------------

[+] Agent Information
      ---------------

*) Diagnostics agent version :                    7.02.3.0.20100222123354
*) Diagnostics agent path :                       /usr/sap/DAA/SMDA97/SMDAgent
*) Diagnostics agent profile :                    /usr/sap/DAA/SYS/profile/DAA_SMDA97_prddb2

  [+] JDK Information
      ---------------

!!ERROR!! cannot load the agent instance properties NOT FOUND!
*) JDK in profile :                               NOT FOUND!

  WARNING: Open issue
                Cause     : JVM path specified in agent instance profile is not a JDK.
                Resolution: Diagnostics agent can be run only on JDK version (not JRE).

*) Java Home :                                    /usr/sap/DAA/SMDA97/exe/sapjvm_6/jre

  WARNING: Open issue
                Cause     : JVM path specified in agent instance profile is different of JVM used in smdsetup script.
                Resolution: Check the JVM path in profile and update if necessary.

Error to execute generic command

--------------------------------------------------------------------------------------------------------------------------------------------------------------

how should i change the parameters

i already change the jstartup/vm/home in the profile and restart the agent ,but no use

Anyone can help?

thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You need to check the following parameters:

DIR_SAPJVM = $(DIR_EXECUTABLE)$(DIR_SEP)sapjvm_6 (without jre)

jstartup/vm/home = $(DIR_SAPJVM)

Former Member
0 Kudos

Dear Roman N

i already changed the parameters,but the sapjvm path is the same,

which file should i delete first?

karthikeyan_natarajan4
Active Contributor
0 Kudos

Hi Lin,

all we have used for the our ERP systems is JRE version 1.4.xxxxx, so i would say instead of JRE6 try to use this JRE 1.4.xxx and see the result

regards

karthik

Former Member
0 Kudos

hi,

can you check the java home environmental variable in the host? are you using latest version of smd agent?

and i could see error message as  "Diagnostics agent can be run only on JDK version"

use the latest smd agent version which runs on JVM04 later do update the JDK version too, chk here

there are sap notes 1093831 - JDK upgrade for Diagnostics agent on AIX and Linux

and Note 1441235 - Handling SAP JVM in Solution Manager Diagnostics Agent

Please check.

Thanks

Jansi

Former Member
0 Kudos

Please attach profile file to message.

Answers (5)

Answers (5)

Former Member
0 Kudos

Dear all

it seems the smdsetup can connect to the slm now ,i can see this in the support log

--------------------------------------

*) Managing connection established : Yes, ping server ok.

(Initialc

ontext takes 1956 ms / Lookup takes 209 ms).

--------------------------------------

but the agent it didn't shown in the agent administration,how should i

do ?

thanks

Former Member
0 Kudos

Hi,

You should check this link, hope this help about smdsetup.

http://scn.sap.com/thread/3340409

Regards,

Loc Nguyen

Former Member
0 Kudos

INFORMATION: The diagnostic agent needs a minimum of 256 MB of physical memory a
nd 4096 open files, verify whether the current limits are compliantes.

*) Umask :                                        077


  [+] Agent Information
      ---------------

*) Diagnostics agent version :                    7.02.3.0.20100222123354
*) Diagnostics agent path :                       /usr/sap/DAA/SMDA97/SMDAgent
*) Diagnostics agent profile :                    /usr/sap/DAA/SYS/profile/DAA_S
MDA97_prddb2

  [+] JDK Information
      ---------------

!!ERROR!! cannot load the agent instance properties /usr/sap/DAA/SMDA97/SMDAgent
/smdagent.properties
*) JDK in profile :                               /usr/sap/DAA/SMDA97/exe/sapjvm
_6
*) Java Home :                                    /usr/sap/DAA/SMDA97/exe/sapjvm
_6/jre
*) Java Version :
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 6.1.010)
SAP Java Server VM (build 6.1.010, Mar  2 2010 09:23:29 - 61_REL - optU - hpux i
a64 - 6 - bas2:133632 (mixed mode))

*) JVM name :                                     SAP Java Server VM
*) Java Vendor :                                  SAP AG
*) Java Version :                                 1.6.0_07
*) Java Fullversion :                             null
*) Java Classpath :                               .:lib/launcher/smdagentlaunche
r.jar:lib/sapxmltoolkit.jar:lib/smdagent.jar:lib/tc_sec_secstorefs.jar:lib/iaik_
jce_export.jar:lib/smdserver.jar:lib/logging.jar:lib/exception.jar:lib/sldclient
.jar:lib/sldserv.jar:lib/jARM.jar:lib/httpclient.jar:lib/sapj2eeclient.jar:
*) Java Runtime version :                         6.1.010
*) Java Specfic. version :                        1.6

  [+] Network Information
      ---------------


*) Localhost resolution :                         prddb2, prddb2, 172.18.1.81

*) SAPGLOBALHOST :                                prddb2
*) SAPGLOBALHOST resolution [0] :                 prddb2, prddb2, 172.18.1.81
*) SAPGLOBALHOST resolution [1] :                 prddb2, prddb2, 192.168.1.2

*) SAPLOCALHOST :                                 prddb2
*) SAPLOCALHOST resolution [0] :                  prddb2, prddb2, 172.18.1.81
*) SAPLOCALHOST resolution [1] :                  prddb2, prddb2, 192.168.1.2

*) HTTP Proxy :                                   null
*) HTTP Proxy port :                              null
*) HTTP non Proxy hosts :                         null

*) Connection type :                              SLD
Apr 22, 2013 11:43:27...                       com.sap.smd.server [Thread[main,5
,main]] Warning: [SLDConfigurationLoader] No sld configuration data so SLD Regis
tration is skipped
Apr 22, 2013 11:43:27...                       com.sap.smd.server [Thread[main,5
,main]] Debug: SLD Configuration Missing
[EXCEPTION]
com.sap.smd.agent.connection.sld.error.SLDConfigurationMissingException: Proper
ty sld.hostname missing. SLDReg init stopped.
        at com.sap.smd.agent.connection.sld.SLDConfigurationLoader.loadBasisProp
erties(SLDConfigurationLoader.java:89)
        at com.sap.smd.agent.connection.sld.SLDConfigurationLoader.init(SLDConfi
gurationLoader.java:66)
        at com.sap.smd.agent.connection.sld.SLDConfigurationLoader.<init>(SLDCon
figurationLoader.java:58)
        at com.sap.smd.agent.connection.sld.SLDQueryBuilder.<init>(SLDQueryBuild
er.java:73)
        at com.sap.smd.agent.connection.sld.SLDQueryBuilder.getInstance(SLDQuery
Builder.java:117)
        at com.sap.smd.agent.connection.ManagingConnectionManipulator.getSLDSett
ings(ManagingConnectionManipulator.java:987)
        at com.sap.smd.setup.SMDAgentDiagnostics.checkNetwork(SMDAgentDiagnostic
s.java:412)
        at com.sap.smd.setup.SMDAgentDiagnostics.executeTasks(SMDAgentDiagnostic
s.java:177)
        at com.sap.smd.setup.SetupMaintenance.executeTasks(SetupMaintenance.java
:197)
        at com.sap.smd.setup.SetupMaintenance.main(SetupMaintenance.java:51)


Apr 22, 2013 11:43:27...                       com.sap.smd.server [Thread[main,5
,main]] Debug: SLDConfigurationLoader:] sld configuration status :  INCORRECT
Apr 22, 2013 11:43:27...                       com.sap.smd.server [Thread[main,5
,main]] Debug: [SLDQueryBuilder] check sld connection [conf valid: false].
Apr 22, 2013 11:43:27...                       com.sap.smd.server [Thread[main,5
,main]] Debug: SLDConfigurationLoader:] sld configuration status :  INCORRECT
Apr 22, 2013 11:43:27...                       com.sap.smd.server [Thread[main,5
,main]] Info: Exception occured. Please check log files.[Exception ID: 136663100
7718 ]
Apr 22, 2013 11:43:27...                       com.sap.smd.server [Thread[main,5
,main]] Error: [Exception ID: 1366631007718 ] com.sap.security.core.server.secst
orefs.FileMissingException
[EXCEPTION]
com.sap.security.core.server.secstorefs.FileMissingException: File "/usr/sap/DA
A/SMDA97/SMDAgent/configuration/secstore.properties" does not exist although it
should.
        at com.sap.security.core.server.secstorefs.StorageHandler.openExistingSt
ore(StorageHandler.java:372)
        at com.sap.security.core.server.secstorefs.SecStoreFS.openExistingStore(
SecStoreFS.java:1946)
        at com.sap.smd.agent.security.SecureStorage.getSecureStore(SecureStorage
.java:39)
        at com.sap.smd.agent.security.SecureStorage.getAgentSecureStore(SecureSt
orage.java:65)
        at com.sap.smd.agent.connection.sld.SLDConfigurationLoader.getSLDCredent
ials(SLDConfigurationLoader.java:244)
        at com.sap.smd.agent.connection.sld.SLDConfigurationLoader.getUser(SLDCo
nfigurationLoader.java:382)
        at com.sap.smd.agent.connection.ManagingConnectionManipulator.getSLDSett
ings(ManagingConnectionManipulator.java:990)
        at com.sap.smd.setup.SMDAgentDiagnostics.checkNetwork(SMDAgentDiagnostic
s.java:412)
        at com.sap.smd.setup.SMDAgentDiagnostics.executeTasks(SMDAgentDiagnostic
s.java:177)
        at com.sap.smd.setup.SetupMaintenance.executeTasks(SetupMaintenance.java
:197)
        at com.sap.smd.setup.SetupMaintenance.main(SetupMaintenance.java:51)

Apr 22, 2013 11:43:27...                       com.sap.smd.server [Thread[main,5
,main]] Debug: Cannot retrieve sld user
[EXCEPTION]
com.sap.smd.agent.connection.sld.error.SLDCredentialsMissingException: Cannot r
ead Agent Secure Storage
        at com.sap.smd.agent.connection.sld.SLDConfigurationLoader.getSLDCredent
ials(SLDConfigurationLoader.java:255)
        at com.sap.smd.agent.connection.sld.SLDConfigurationLoader.getUser(SLDCo
nfigurationLoader.java:382)
        at com.sap.smd.agent.connection.ManagingConnectionManipulator.getSLDSett
ings(ManagingConnectionManipulator.java:990)
        at com.sap.smd.setup.SMDAgentDiagnostics.checkNetwork(SMDAgentDiagnostic

s.java:412)
        at com.sap.smd.setup.SMDAgentDiagnostics.executeTasks(SMDAgentDiagnostic

s.java:177)
        at com.sap.smd.setup.SetupMaintenance.executeTasks(SetupMaintenance.java

:197)
        at com.sap.smd.setup.SetupMaintenance.main(SetupMaintenance.java:51)
Caused by: com.sap.smd.agent.security.SecureStorageException: Getting Secure Sto

re failed: File "/usr/sap/DAA/SMDA97/SMDAgent/configuration/secstore.properties"

does not exist although it should.
        at com.sap.smd.agent.security.SecureStorage.getSecureStore(SecureStorage

.java:47)
        at com.sap.smd.agent.security.SecureStorage.getAgentSecureStore(SecureSt

orage.java:65)
        at com.sap.smd.agent.connection.sld.SLDConfigurationLoader.getSLDCredent

ials(SLDConfigurationLoader.java:244)
        ... 6 more
Caused by: com.sap.security.core.server.secstorefs.FileMissingException: File "/

usr/sap/DAA/SMDA97/SMDAgent/configuration/secstore.properties" does not exist al

though it should.
        at com.sap.security.core.server.secstorefs.StorageHandler.openExistingSt

ore(StorageHandler.java:372)
        at com.sap.security.core.server.secstorefs.SecStoreFS.openExistingStore(

SecStoreFS.java:1946)
        at com.sap.smd.agent.security.SecureStorage.getSecureStore(SecureStorage

.java:39)
        ... 8 more


*) Connection settings :                          {}

  [+] SAP Kernel Information
      ---------------

*) GetVersionInfo call exit code :                0
*) GetVersionInfo output :

22.04.2013 19:43:28
GetVersionInfo
OK
Filename, VersionInfo, Time
/usr/sap/DAA/SMDA97/exe/sapstartsrv, 720, patch 46, changelist 1157285, optu (Ma
y  4 2010, 21:16:56), hpia64, 2010 05 05 05:12:14
/usr/sap/DAA/SMDA97/exe/gwrd, 720, patch 46, changelist 1157285, optu (May  4 20
10, 20:05:52), hpia64, 2010 05 05 03:56:54
/usr/sap/DAA/SMDA97/exe/icman, 720, patch 46, changelist 1157285, optu (May  4 2
010, 21:16:56), hpia64, 2010 05 05 04:47:30
/usr/sap/DAA/SMDA97/exe/sapwebdisp, 720, patch 46, changelist 1157285, optu (May
  4 2010, 21:16:56), hpia64, 2010 05 05 04:47:46
/usr/sap/DAA/SMDA97/exe/jcontrol, 720, patch 46, changelist 1157285, optu (May
4 2010, 21:16:56), hpia64, 2010 05 05 07:00:26
/usr/sap/DAA/SMDA97/exe/jlaunch, 720, patch 46, changelist 1157285, optu (May  4
2010, 21:16:56), hpia64, 2010 05 05 07:00:32
/usr/sap/DAA/SMDA97/exe/jstart, 720, patch 46, changelist 1157285, optu (May  4
2010, 21:16:56), hpia64, 2010 05 05 06:55:30

  [+] Logs Information
      ---------------

*) Support logs file (OSS) :                      /usr/sap/DAA/SMDA97/SMDAgent/.
/supportLogs_Mon_Apr_22_11-43-29_GMT_2013.zip


!!!!!!!!!!!!!!
NOTE: Attached the console output and support logs file generated to OSS message
.
!!!!!!!!!!!!!!


Task completed with status SUCCESS (0)

Former Member
0 Kudos

Dear All,how to change the java home in the vm property?

the daaadm  JAVA_HOME was already set to /usr/sap/DAA/SMDA97/exe/sapjvm_6

Thanks

Former Member
0 Kudos

jdk to use is put in smdsetup.sh script itself. It seems to be ok that it points to jre in output. Can you provide the full output with error to analyze.

Former Member
0 Kudos

Dear

which file can see the error information in the work path ?

the dev_xxx?

it 's seems normal

Former Member
0 Kudos

Please run ./smdsetup.sh supportlogs command and attach full output here.

Former Member
0 Kudos

Dear

i change the daaadm env,set JAVA_HOME=/usr/sap/DAA/SMDA97/exe/sapjvm_6

but when i use this command ./smdsetup.sh,i see the vm properties's java home is  still

/usr/sap/DAA/SMDA97/exe/sapjvm_6/jre ,how should i change this ? in which file?

------- VM Properties ----------
OS                            : HP-UX
OS Version                    : B.11.31
OS Architecture               : ia64
OS data model                 : 64
Java Vendor                   : SAP AG
Java Home                     : /usr/sap/DAA/SMDA97/exe/sapjvm_6/jre
Java Version                  : 1.6.0_07
Java Classpath                : .:lib/launcher/smdagentlauncher.jar:lib/sapxmltoolkit.jar:lib/smdagent.jar:lib/tc_sec_secstorefs.jar:lib/iaik_jce_export.jar:lib/smdserver.jar:lib/logging.jar:lib/exception.jar:lib/sldclient.jar:lib/sldserv.jar:lib/jARM.jar:lib/httpclient.jar:lib/sapj2eeclient.jar:
Java Runtime version          : 6.1.010
Java Specfic. version         : 1.6
File Encoding                 : ISO8859-1
HTTP Proxy                    : null
HTTP Proxy port               : null
HTTP non Proxy hosts          : null

smd class version:            : 7.02.3.0.20100222123354
--------------------------------

Former Member
0 Kudos

Dear all

our machine is hp unix,os version is 11.31,we install the java1.4.2.27,java1.5,java6

the profile is below:

--------------------------------------------------------------------------------------------------------

SAPSYSTEMNAME = DAA
SAPSYSTEM = 97
INSTANCE_NAME = SMDA97
DIR_CT_RUN = $(DIR_EXE_ROOT)/run
DIR_EXECUTABLE = $(DIR_INSTANCE)/exe
DIR_PROFILE = $(DIR_INSTALL)/profile
_PF = $(DIR_PROFILE)/DAA_SMDA97_prddb2
SETENV_00 = DIR_LIBRARY=$(DIR_LIBRARY)
SETENV_01 = LD_LIBRARY_PATH=$(DIR_LIBRARY):%(LD_LIBRARY_PATH)
SETENV_02 = SHLIB_PATH=$(DIR_LIBRARY):%(SHLIB_PATH)
SETENV_03 = LIBPATH=$(DIR_LIBRARY):%(LIBPATH)
SETENV_04 = PATH=$(DIR_EXECUTABLE):%(PATH)
#-----------------------------------------------------------------------
# Copy SAP Executables
#-----------------------------------------------------------------------
_CPARG0 = list:$(DIR_CT_RUN)/j2eeinst.lst
Execute_00 = immediate $(DIR_CT_RUN)/sapcpe$(FT_EXE) pf=$(_PF) $(_CPARG0)
_CPARG1 = list:$(DIR_CT_SAPJVM)/sapjvm_6.lst
_CPARG2 = source:$(DIR_CT_SAPJVM)
Execute_01 = immediate $(DIR_CT_RUN)/sapcpe$(FT_EXE) pf=$(_PF) $(_CPARG1) $(_CPA
RG2)
#-----------------------------------------------------------------------
# JStart configuration
#-----------------------------------------------------------------------
SAPJVM_VERSION = 6.1.010
DIR_SAPJVM = $(DIR_EXECUTABLE)$(DIR_SEP)sapjvm_6
jstartup/vm/home = $(DIR_SAPJVM)
#-----------------------------------------------------------------------
# Start SMD Agent
#-----------------------------------------------------------------------
_JC = jc.sap$(SAPSYSTEMNAME)_$(INSTANCE_NAME)
Execute_02 = local rm -f $(_JC)
Execute_03 = local ln -s -f $(DIR_EXECUTABLE)/jstart$(FT_EXE) $(_JC)
Start_Program_00 = local $(_JC) pf=$(_PF)
jstartup/bootstrap = no


SAPGLOBALHOST=prddb2
smd/agent/type=710
jstartup/instance_properties=$(DIR_INSTANCE)/SMDAgent/smdagent.properties

former_member206167
Active Participant
0 Kudos

Hi Lin,

    Remove current SMD agent using sapinst, download latest SMD agent from market place which is delivered with its own JVM, this will solve your problema

Kind regards

Former Member
0 Kudos

Check environment variabe JAVA_HOME of daaadm user and ensure it point to /usr/sap/DAA/SMDA97/exe/sapjvm_6.