cancel
Showing results for 
Search instead for 
Did you mean: 

SMD Invalid Response Code: (401) Unauthorized.

Former Member
0 Kudos

Hi Team,

I am facing the below error message while configure managed system configuration for java system.I have checked SDN forum and advised to change the parameter value of service/protectedwebmethods.Please advise how to change this parameter value in default profile.I am unable to found this parameter in default profile in Java system.

Error

The SMD Agent is not able to connect the Satellite System (J2EE stack).

   Action

Please check the JAVA Connect Parameters provided in the Managed System Setup Wizard for this System.

   Details

java.rmi.RemoteException.Service call exception; nested exception is:

com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://p1bfkp21:52613/SAPControl.cgi"

Please help me on this issue.

Regards,

Raj

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Raj,

The host_profile of SAP Host Agent is located here:

"C:\program files\sap\hostctrl\exe\ (Windows)

/usr/sap/hostctrl/exe/ (Unix)

Please use Knowledge Base Article 1939330 which should solve your error

Kind regards
Julien Guay - Solution Manager Diagnostics support

Former Member
0 Kudos


Hi Mani,

try below value and check SAP Note 1569955 for more about parameter.

service/protectedwebmethods= DEFAULT -GetAgentConfig

-MtChangeStatus -MtCustomizeWrite -MtDbsetToWpsetByTid

-MtDestroyMarkNTry -MtReset -PerfCustomizeWrite -ReadDirectory

-ReadFile -ReadProfileParameters -Register

-SnglmgsCustomizeWrite -SystemObjectSetValue -ToolSet

-ToolSetRuntimeStatus -TriggerDataCollection -UtilAlChangeStatus

SAP Note 1569955

Thanks,

Prakash Reddy Maram

Former Member
0 Kudos

Hi,

smdadm user maintained in host profile.Pleas help me to fix this issue.

The SMD Agent is not able to connect the Satellite System (J2EE stack).

   Action

Please check the JAVA Connect Parameters provided in the Managed System Setup Wizard for this System.

   Details

java.rmi.RemoteException.Service call exception; nested exception is:

com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://p1bfkp21:52613/SAPControl.cgi"

   Check Context

Connectivity to managed systems | Agent connectivity | HOST =p1bfkp21

   Error

The command CpuStat has been executed to validate that the OS command console is operational. This command failed to execute. Command result: Cannot get CPU information from SAPOSCol webservic e: java.rmi.RemoteException: Webservice invocation error occured on stub com.sap.smd.agent.wsclients

   Action

Please check SAP Note 1099225 (OS Command Console main error cases).

   Check Context

OS Command console | SAP OS Collector Command | HOST =p1bfkp21

Regards,

MK

former_member185239
Active Contributor
0 Kudos

Hi Mani,

1. Maintain daaadm user in the host_profile and take a restart of saphostagent on managesystem

2. Taka a restart of sap diagnostic agent on Manage System.

3. Paste the SMDAgent.trc file to check the issue.

Also do paste the screenshot of error which you are receiving.

With Regards

Ashutosh Chaturvedi

Former Member
0 Kudos

Hi,

1. Maintain daaadm user in the host_profile and take a restart of saphostagent on managesystem.


Yes. I have maintained smdadm user in host_profile and restart of saphostagent.


2.Taka a restart of sap diagnostic agent on Manage System..


Yes. Restarted SMD agent in Managed system. But issue still exist.


3.Paste the SMDAgent.trc file to check the issue.


{0}#1#javax.xml.rpc.soap.SOAPFaultException: Failure sending oscol request.

        at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.buildFaultException(MimeHttpBinding.java:747)

        at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.processDocumentFault(MimeHttpBinding.java:870)

        at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1454)

        at com.sap.smd.agent.wsclients.saposcol.SAPOscolStub.getHwConfXML(SAPOscolStub.java:1802)

        at com.sap.smd.agent.wsclients.saposcol.SAPOscolStub.getHwConfXML(SAPOscolStub.java:1817)

        at com.sap.smd.agent.plugins.dcc.job.PhysicalHostPushJob.readSapOsColData(PhysicalHostPushJob.java:533)

        at com.sap.smd.agent.plugins.dcc.job.PhysicalHostPushJob.run(PhysicalHostPushJob.java:280)

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

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

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

#

#1.#22EC4E6BFA1000120000000400C500A4000504DA5510B77D#1412710660093#com.sap.smd.e2edcc.host##com.sap.smd.e2edcc.host#######Thread[ExRun:OutsideDiscovery_1,5,

OutsideDiscovery:ExecTG]##0#0#Error##Java###[PhysicalHostPushJob:readOsData] Exception while initializing SAPOsCol WebService client.

[EXCEPTION]

{0}#1#javax.xml.rpc.soap.SOAPFaultException: internal error

        at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.buildFaultException(MimeHttpBinding.java:747)

        at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.processDocumentFault(MimeHttpBinding.java:870)

        at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1454)

        at com.sap.smd.agent.wsclients.saposcol.SAPOscolStub.getOsData(SAPOscolStub.java:900)

        at com.sap.smd.agent.wsclients.saposcol.SAPOscolStub.getOsData(SAPOscolStub.java:915)

        at com.sap.smd.agent.plugins.dcc.job.PhysicalHostPushJob.readOsData(PhysicalHostPushJob.java:617)

        at com.sap.smd.agent.plugins.dcc.job.PhysicalHostPushJob.run(PhysicalHostPushJob.java:287)

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

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

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

#

#1.#22EC4E6BFA1000120000000500C500A4000504DA55112ED7#1412710660124#SMDloggerSystem##SMDloggerSystem#######Thread[ExRun:OutsideDiscovery_1,5,OutsideDiscovery

:ExecTG]##0#0#Info##Plain###Reading JStartup environment...#

#1.#22EC4E6BFA1000120000000600C500A4000504DA551130A8#1412710660124#SMDloggerSystem##SMDloggerSystem#######Thread[ExRun:OutsideDiscovery_1,5,OutsideDiscovery

:ExecTG]##0#0#Info##Plain###'SAPLOCALHOST' found, The value 'p1bfkp21' will be used to determine the Agent name.#

#1.#22EC4E6BFA1000120000000700C500A4000504DA5511319B#1412710660125#SMDloggerSystem##SMDloggerSystem#######Thread[ExRun:OutsideDiscovery_1,5,OutsideDiscovery

:ExecTG]##0#0#Info##Plain###InetAddress Resolving for 'p1bfkp21' - FQN: p1bfkp21 SQN: p1bfkp21 IP: 10.144.68.74#

#1.#22EC4E6BFA1000120000000800C500A4000504DA5511356B#1412710660126#SMDloggerSystem##SMDloggerSystem#######Thread[ExRun:OutsideDiscovery_1,5,OutsideDiscovery

:ExecTG]##0#0#Info##Plain###InetAddress Resolving for localhost - FQN: huxp0030.unix.marksandspencer.com SQN: huxp0030 IP: 10.144.68.239#

#1.#22EC4E6BFA1000120000000900C500A4000504DA5511378E#1412710660126#com.sap.smd.e2edcc.host##com.sap.smd.e2edcc.host#######Thread[ExRun:OutsideDiscovery_1,5,

OutsideDiscovery:ExecTG]##0#0#Info##Plain###[PhysicalHostPushJob] Check cached host information.#

#1.#22EC4E6BFA1000120000000A00C500A4000504DA55113924#1412710660126#com.sap.smd.e2edcc.host##com.sap.smd.e2edcc.host#######Thread[ExRun:OutsideDiscovery_1,5,

OutsideDiscovery:ExecTG]##0#0#Info##Plain###[PhysicalHostPushJob] end.#

#1.#22EC4E6BFA1000120000000B00C500A4000504DA55116AB6#1412710660139#com.sap.smd.e2edcc.db##com.sap.smd.e2edcc.db#######Thread[ExRun:OutsideDiscovery_1,5,Outs

ideDiscovery:ExecTG]##0#0#Info##Plain###[DatabaseInfoPushJob] wakeup#

#1.#22EC4E6BFA1000120000000C00C500A4000504DA5512C136#1412710660227#com.sap.smd.e2edcc.db##com.sap.smd.e2edcc.db#######Thread[ExRun:OutsideDiscovery_1,5,Outs

ideDiscovery:ExecTG]##0#0#Info##Plain###[DatabaseInfoPushJob] end.#

Standard input: END

Regards,

Mani

former_member185239
Active Contributor
0 Kudos

Hi Mani,

Kindly paste the sap host agent version

./saphostexec -version

With Regards

Ashutosh Chaturvedi

Former Member
0 Kudos

# ./saphostexec -version

*************************** Component ********************

/usr/sap/hostctrl/exe/./saphostexec: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  8 2014, 00:51:26)

/usr/sap/hostctrl/exe/./sapstartsrv: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  8 2014, 00:51:26)

/usr/sap/hostctrl/exe/./saphostctrl: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  8 2014, 00:51:26)

/usr/sap/hostctrl/exe/./sapcontrol: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  8 2014, 00:51:26)

/usr/sap/hostctrl/exe/./lssap: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  8 2014, 00:51:26)

/usr/sap/hostctrl/exe/./hostexecstart: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  8 2014, 00:51:26)

/usr/sap/hostctrl/exe/./sapuxuserchk: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  8 2014, 00:51:26)

/usr/sap/hostctrl/exe/./librfccm.o: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  8 2014, 00:51:26)

/usr/sap/hostctrl/exe/./saposcol: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  7 2014, 23:21:14)

/usr/sap/hostctrl/exe/./sapacosprep: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  8 2014, 00:51:26)

/usr/sap/hostctrl/exe/./ldapreg: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  7 2014, 23:21:14)

/usr/sap/hostctrl/exe/./ldappasswd: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  7 2014, 23:21:14)

/usr/sap/hostctrl/exe/./sldreg: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  8 2014, 00:51:26)

/usr/sap/hostctrl/exe/./sldreglib.o: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  8 2014, 00:51:26)

/usr/sap/hostctrl/exe/./sapcpp47.o: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  7 2014, 23:21:14)

/usr/sap/hostctrl/exe/./xml71d.o: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  7 2014, 23:21:14)

/usr/sap/hostctrl/exe/./sapdbctrl: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  8 2014, 00:51:26)

/usr/sap/hostctrl/exe/./libsapdbadactrl.o: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  8 2014, 00:51:26)

/usr/sap/hostctrl/exe/./libsapdbdb6ctrl.o: 720, patch 616, changelist 1502380, rs6000_64, opt (Jun  7 2014, 03:13:31)

/usr/sap/hostctrl/exe/./libsapdboractrl.o: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  8 2014, 00:51:26)

/usr/sap/hostctrl/exe/./libsapdbsybctrl.o: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  8 2014, 00:51:26)

/usr/sap/hostctrl/exe/./sapcimc: 720, patch 616, changelist 1502465, rs6000_64, opt (Jun  8 2014, 00:51:26)

/usr/sap/hostctrl/exe/./SAPCAR: 720, patch 516, changelist 1451598, rs6000_64, opt (Oct 29 2013, 19:37:27)

**********************************************************

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

SAPHOSTAGENT information

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

kernel release                720

kernel make variant           720_REL

compiled on                   AIX 2 5 00092901D600 for rs6000_64

compiled for                  64 BIT

compilation mode              Non-Unicode

compile time                  Jun  8 2014 00:49:25

patch number                  186

latest change number          1502465

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

supported environment

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

operating system

AIX 2 5

AIX 3 5

AIX 1 6

AIX 1 7

Former Member
0 Kudos

Hi Mani,

It seems DAA agent not conected to your managed system in SOLMAN.

Can you check in SOLMAN_SETUP-->Managed system setup of J2EE system-->Check in assign SMD agent section and make sure DAA agent should apper as green status.

And in same section click on "check SAPHOSTagent" make sure they green.

Thanks,

Prakashreddy

Former Member
0 Kudos

Hi,

I have checked everything in green status.But still facing same issue only one server.I have attached the screenshot herewith.

Regards,

MK

former_member185239
Active Contributor
0 Kudos

Hi Manikandan,

You need to add a parameter service/admin_user = daaadm in your host profile of satellite system.

Take a restart of sap host agent and then try with the manage system configuration.

Kindly follow the below two sap note :

1839894 - Diagnostics Agent log shows "Invalid Response Code: (401) Unauthorized"

1939330 - Error: "SMD Agent is not able to connect the Satellite System (J2EE stack).:" when perform...

1858920 - Diagnostics Agent installation with SWPM

With Regards

Ashutosh Chaturvedi