cancel
Showing results for 
Search instead for 
Did you mean: 

Define a Service for SAProuter

Former Member
0 Kudos

Hi experts,

the RFC Connection Test SAP-OSS works.

I would like to create a service that maintain my saprouter.exe + its parameters.

In a MS-DOS window, i entered the following command:

E:\usr\sap\saprouter\saprouter.exe -r -S 3299 -G saprouter.log -K "<Distinguished Name>"

When creating a service, i entered the following command :

ntscmgr install SAProuter -b E:\usr\sap\saprouter\saprouter.exe -p “service -r -S 3299 -G saprouter.log"

My SOLMAN (sap-sma server) communicates trough the SAProuter (saprtr) before communicating with SAP AG (sapserv2)

When closing my SAProuter session, in a client post, the SAP-OSS Test does'nt work anymore.

I would like to create a service like :

ntscmgr install SAProuter -b E:\usr\sap\saprouter\saprouter.exe -p “service -r -S 3299 -G saprouter.log -K "<Distinguished Name>"" but it doesn't work because of the double quote.

even if i go to the regedit directory and editing the path to :

E:\usr\sap\saprouter\saprouter.exe -r -S 3299 -G saprouter.log -K "<Distinguished Name>"

In fact, i want the SAP-OSS Test works when closing my saprtr server with a service.

Thanks a lot.

Pascal.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I don't know if i was cleared.

but i succeded in creating a service in a MS-DOS Windows with the command :

ntscmgr install SAProuter -b E:\usr\sap\saprouter\saprouter.exe -p “service -r -S 3299 -G saprouter.log -K \"p:<Distinguished Name>\""

In the Path to executable, here is the command :

E:\usr\sap\saprouter\saprouter.exe service -r -S 3299 -G saprouter.log -K "p:<Distinguished Name>"

In the Path to executable, it seems to be ok but when i want to connect to SAP-OSS here is the message :

Logon Connection Error

Error Details Error when opening an RFC connection

Error Details ERROR: SNC processing failed: SncSessionInitiatorAK

Error Details LOCATION: SAProuter 38.10 on 'saprtr'

Error Details DETAIL: NiSncIInitHdlSecurity: sncrc=-4;002A8B00

Error Details COMPONENT: NI (network interface)

Error Details COUNTER: 5

Error Details MODULE: nisnc.c

Error Details LINE: 1080

Error Details RETURN CODE: -104

Error Details SUBRC: 0

Error Details RELEASE: 700

Error Details TIME: Tue Apr 01 12:39:20 2008

Error Details VERSION: 38

Thanks.

Former Member
0 Kudos

Hi,

did you check Note 525751 - Installation of the SNC SAPRouter as NT Service

regards,

kaushal

Former Member
0 Kudos

Hi kaushal malavia,

thank you very much again, the OSS Note 525751 was very helpful. The service WORKS.

But there is one part i didn't do :

To avoid the error message 'The description for Event ID (0) ...' in the NT Eventviewer you must make the following entries in the Registry. Under:

HKEY_LOCAL_MACHINE -> SYSTEM -> CurrentControlSet -> Services -> Eventlog -> Application

enter the following key: SAPRouter

Under this, define the two following values:

EventMessageFile (REG_SZ) : <local_path>\sapevents.dll

TypesSupported (REG_DWORD) : 0x7

All required files (ntscmgr.exe, saprouter.exe, sapevents.dll) can be found in your usr\sap\<SID>\sys\exe\run directory. As an attachment to this note, you can find the corresponding DLL in file sapevents.car.

Important: These adjustments are not obligatory for running

SAProuter on Windows. They serve only to provide detailed error

messages in the event log.

When i go to HKEY_LOCAL_MACHINE -> SYSTEM -> CurrentControlSet -> Services -> Eventlog -> Application, i cannot find a SAPRouter directory. In fact, i don't know what they mean by enter the following key: SAPRouter

It that part important or can i leave this part?

Thanks again.

Pascal.

Former Member
0 Kudos

Hi,

you did not get "To avoid the error message 'The description for Event ID (0)"

so you can leave this part.

As per note 525751 These adjustments are not obligatory for running SAProuter on Windows. They serve only to provide detailed error messages in the event log.

regards,

kaushal

Former Member
0 Kudos

Thank you kaushal malavia for the answer.

I have a warning in the dev_rout file, what does that mean?

Wed Apr 02 10:47:03 2008

*** WARNING => NiBufISetHS: ready could not be freed (hdl 4) [nibuf.cpp 4364]

*** WARNING => NiBufISetHS: ready could not be freed (hdl 3) [nibuf.cpp 4364]

Thanks.

Pascal.

Former Member
0 Kudos

Hi,

sorry i don't have enough idea about this warning message.

regards,

kaushal

Former Member
0 Kudos

Thank you anyway

Pascal.

Former Member
0 Kudos

Hello Pascal,

Did you solve this??

If not have a look on Note 1170993 - *** WARNING => NiBufISetHS: ready could not be freed

Regards,

Abhilash

Answers (0)