cancel
Showing results for 
Search instead for 
Did you mean: 

Solution manager diagnostics (on the fly) error

Former Member
0 Kudos

I am attempting to set up solution manager diag  agent with the on the fly option

I have installed one diagnostic  agent on our server grrapi13.

This server has several sap systems on it  D02, D04, D08, D11 etc     

I installed SMD  according to the Agent Installation Strategy Solutionmanager 7.1 

By leaving the host name blank as described  on page 9

( I logged on as user d11adm)

And used P4 connection to connect directly to our solutionmanager system

agent show as running

    smdadm 20862     1  0 10:02:30 ?         0:01 /usr/sap/SMD/SMDA97/exe/sapstartsrv pf=/usr/sap/SMD/SYS/profile/SMD_SMDA97_sapd11ci -D -u smdadm

    smdadm   977   565  1 23:43:48 pts/0     0:00 grep -i SMD

    smdadm  7129     1  0 22:26:44 ?         0:00 sapstart pf=/usr/sap/SMD/SYS/profile/SMD_SMDA97_sapd11ci

    smdadm  7154  7150  0 22:26:45 ?         2:03 /usr/sap/SMD/SMDA97/exe/jstart -appTrc -nodeId=0 pf=/usr/sap/SMD/SYS/profile/SMD_SMDA97_sapd11ci -hostvm -nodeName=smdagent -fi

    smdadm  7150  7129  0 22:26:45 ?         0:00 jc.sapSMD_SMDA97 pf=/usr/sap/SMD/SYS/profile/SMD_SMDA97_sapd11ci

    smdadm   565 12257  0 22:24:21 pts/0     0:00 -csh

    smdadm   814  7154  0 23:43:45 ?         0:00 /bin/sh /usr/sap/SMD/SMDA97/script/smdsetup.sh installer addagent virtualhost:sapd06db servername:sapd06db keep=connection sid=

    smdadm   816   814 30 23:43:45 ?         0:01 /usr/sap/SMD/SMDA97/exe/sapjvm_6/bin/java -classpath .:lib/patch_7.10.8.0.20130129152302/launcher/smdagentlauncher.jar:lib/pat

   

I can see the SMD on solman_setup  showing as green in the  manager system HOST tab , I also have the on the fly flag set

I am only able to add one system D06 for example to the agent  ,

When I try to add another , I do not see any agents from grrapi13 that I can add .

I do see a bunch of errors  like this .

Jun 21, 2013 10:28:34 PM [Thread[ExRun:agent.nodes.controller_1,5,ag...] Error      [NodesControllerJob] Diagnostics agent node on host sapd01db  cannot be added due to an error

Here are logs from SMDAgentApplication.0.log

_________________________________________________________________________

SAP Solution Manager - Diagnostics Agent  - Copyright (c) 2012 SAP AG

_________________________________________________________________________

------- 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/SMD/SMDA97/exe/sapjvm_6/jre

Java Version                  : 1.6.0_41

Java Classpath                : .:lib/patch_7.10.8.0.20130129152302/launcher/smdagentlauncher.jar:lib/patch_7.10.8.0.20130129152302/sapxmltoolkit.jar:lib/patch_7.10.8.0.20130129152302/smdagent.jar:lib/patch_7.10.8.0.20130129152302/tc_sec_secstorefs.jar:lib/patch_7.10.8.0.20130129152302/iaik_jce_export.jar:lib/patch_7.10.8.0.20130129152302/smdserver.jar:lib/patch_7.10.8.0.20130129152302/logging.jar:lib/patch_7.10.8.0.20130129152302/exception.jar:lib/patch_7.10.8.0.20130129152302/sldclient.jar:lib/patch_7.10.8.0.20130129152302/sldserv.jar:lib/patch_7.10.8.0.20130129152302/jARM.jar:lib/patch_7.10.8.0.20130129152302/httpclient.jar:lib/patch_7.10.8.0.20130129152302/sapj2eeclient.jar:

Java Runtime version          : 6.1.047

Java Specfic. version         : 1.6

File Encoding                 : ISO8859-1

Console Encoding              : null

HTTP Proxy                    : null

HTTP Proxy port               : null

HTTP non Proxy hosts          : null

smd class version:            : 7.10.8.0.20130129150956

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

Check Prerequisites:

  1. OK.

[-] Diagnostics agent maintenance setup starting ...

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

------- Dump Input parameters ----------

smdagentype                   : 710

sid                           : SMD

javahome                      : /usr/sap/SMD/SMDA97/exe/sapjvm_6

inr                           : 97

virtualhost                   : orawc01ddb

servername                    : orawc01ddb

keep                          : connection

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

Action selected :addagent

Current Folder: /usr/sap/SMD/SMDA97/SMDAgent

Profile Folder: /usr/sap/SMD/SYS/profile

SID provided: SMD

INR provided: 97

Profile name prefix: SMD_SMDA97

Source Folder: /usr/sap/SMD/SMDA97/SMDAgent

Cloning agent ...

virtual host selected : orawc01ddb

Creation of new agent folder in progress...

Keep option set to 3

File permissions assigned (0) to folder /usr/sap/SMD/SMDA97/SMDAgent_orawc01ddb

Creation of new agent folder done. /usr/sap/SMD/SMDA97/SMDAgent_orawc01ddb

Update Agent instance profile

Update smd agent instance group file : /usr/sap/SMD/SMDA97/smdagentgroup.properties

Update smd agent configuration : /usr/sap/SMD/SMDA97/SMDAgent_orawc01ddb/configuration/runtime.properties

Looking for profile file SMD_SMDA97 ...

[/usr/sap/SMD/SYS/profile/DEFAULT.1.PFL Ignored

[/usr/sap/SMD/SYS/profile/SMD_SMDA97_sapd11ci.1 Ignored

[/usr/sap/SMD/SYS/profile/SMD_SMDA97_sapd11ci.2 Ignored

[/usr/sap/SMD/SYS/profile/DEFAULT.3.PFL Ignored

[/usr/sap/SMD/SYS/profile/DEFAULT.2.PFL Ignored

[/usr/sap/SMD/SYS/profile/SMD_SMDA97_grrapi39.1 Ignored

[/usr/sap/SMD/SYS/profile/SMD_SMDA97_grrapi39.2 Ignored

[/usr/sap/SMD/SYS/profile/SMD_SMDA97_grrapi39 Found!

[/usr/sap/SMD/SYS/profile/DEFAULT.4.PFL Ignored

[/usr/sap/SMD/SYS/profile/SMD_SMDA97_grrapi04.1 Ignored

[/usr/sap/SMD/SYS/profile/SMD_SMDA97_grrapi04.2 Ignored

[/usr/sap/SMD/SYS/profile/SMD_SMDA97_grrapi04 Found!

[/usr/sap/SMD/SYS/profile/SMD_SMDA97_grrapi13.1 Ignored

[/usr/sap/SMD/SYS/profile/SMD_SMDA97_grrapi13.2 Ignored

[/usr/sap/SMD/SYS/profile/DEFAULT.PFL Ignored

[/usr/sap/SMD/SYS/profile/SMD_SMDA97_sapd11ci.3 Ignored

[/usr/sap/SMD/SYS/profile/SMD_SMDA97_sapd11ci.4 Ignored

[/usr/sap/SMD/SYS/profile/SMD_SMDA97_sapd11ci Found!

Error occurs during the task execution.

Exception:

  1. java.io.IOException: Cannot find the profile of instance SMD_SMDA97_*. Try again to execute the script with providing the SID and INR as parameters.

        at com.sap.smd.setup.tasks.MultipleAgentGenerator.updateKernelconfiguration(MultipleAgentGenerator.java:786)

        at com.sap.smd.setup.tasks.MultipleAgentGenerator.addAgent(MultipleAgentGenerator.java:470)

        at com.sap.smd.setup.tasks.MultipleAgentGenerator.executeTasks(MultipleAgentGenerator.java:158)

        at com.sap.smd.setup.tasks.MultipleAgentGenerator.executeTasks(MultipleAgentGenerator.java:52)

        at com.sap.smd.setup.SetupMaintenance.manageAgentInOneInstance(SetupMaintenance.java:393)

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

        at com.sap.smd.setup.SetupMaintenance.main(SetupMaintenance.java:61)

Jun 21, 2013 10:26:09 PM [Thread[ExRun:agent.nodes.controller_1,5,ag...] Error      [NodesControllerJob] Diagnostics agent node on host orawc01ddb  cannot be added due to an error.

Jun 21, 2013 10:26:09 PM [Thread[ExRun:agent.nodes.controller_1,5,ag...] Error      [NodesControllerJob] Error occurred during execution of node controller job

[EXCEPTION]

java.lang.NullPointerException: while trying to invoke the method com.sap.smd.plugin.service.IServiceContext.getApplicationContext() of an object loaded from field com.sap.smd.nodes.controller.NodesControllerService.mm_context of an object loaded from local variable 'this'

        at com.sap.smd.nodes.controller.NodesControllerService.getAddStrategy(NodesControllerService.java:272)

        at com.sap.smd.nodes.controller.NodesControllerJob.run(NodesControllerJob.java:194)

        at com.sap.smd.server.exec.TaskRunner.run(TaskRunner.java:46)

        at com.sap.smd.server.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:785)

        at java.lang.Thread.run(Thread.java:743)

Jun 21, 2013 10:26:09 PM [Thread[ExRun:agent.nodes.controller_1,5,ag...] Error      [NodesControllerService] execution lock is null, unable to set execution lock.

Jun 21, 2013 10:28:25 PM [Thread[ExRun:agent.nodes.controller_1,5,ag...] Error      [NodesControllerJob] Diagnostics agent node on host sapdm1  cannot be added due to an error.

Jun 21, 2013 10:28:34 PM [Thread[ExRun:agent.nodes.controller_1,5,ag...] Error      [NodesControllerJob] Diagnostics agent node on host sapd01db  cannot be added due to an error.

Jun 21, 2013 10:28:43 PM [Thread[ExRun:agent.nodes.controller_1,5,ag...] Error      [NodesControllerJob] Diagnostics agent node on host i3spdev  cannot be added due to an error.

Jun 21, 2013 10:28:51 PM [Thread[ExRun:agent.nodes.controller_1,5,ag...] Error      [NodesControllerJob] Diagnostics agent node on host sapd10ft  cannot be added due to an error.

Jun 21, 2013 10:29:00 PM [Thread[ExRun:agent.nodes.controller_1,5,ag...] Error      [NodesControllerJob] Diagnostics agent node on host sapd11ft  cannot be added due to an error.

Jun 21, 2013 10:29:14 PM [Thread[ExRun:agent.nodes.controller_1,5,ag...] Error      [NodesControllerJob] Diagnostics agent node on host sapds1ft  cannot be added due to an error.

Jun 21, 2013 10:29:23 PM [Thread[ExRun:agent.nodes.controller_1,5,ag...] Error      [NodesControllerJob] Diagnostics agent node on host sapds3ci  cannot be added due to an error.

Has anyone seen these type of error before? r

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Ended up uninstalling SMD again, this time also removing the remaining  contents of the /usr/sap/SMD/SYS, then reinstall and now it is working.

Former Member
0 Kudos

Hi Kenneth,

Once the agent on fly gets activated, you can see at the path /usr/sap/<DAA>/SMDA<nr>/ a number of folders getting created as SMDAgent_<virtual hostname>. If they have got created then your SMDAgent is ready for other systems. Can you confirm you see these folders in the directory mentioned?

Regards

Aditya