cancel
Showing results for 
Search instead for 
Did you mean: 

automatic test for logon connections

Former Member
0 Kudos

Hello,

I want to test the connectivity of all the servers on my logon pad each day.

we have 150+ application servers.

I'm using SAP GUI 6400.2.0.972.

i tried writing a .bat file like this (each line for each server):

<drive>:\Progra~1\SAP\FrontEnd\SapGui\sapgui.exe <application server ip>

it's working fine.

My requirement is:

1. I can't use this for the systems with same ip but <b>different instance numbers</b>.

2. each time all the screen's will be open after successful connection - i don't want this

3. i just want to know if the particular system is getting connected or not. if it is not getting connected, i want to know why. --> if this could be summarized in a file ... it will make my life easier.

bit tricky?? if this is possible .. this will save my time....

Regards,

Srihari

Accepted Solutions (1)

Accepted Solutions (1)

former_member204746
Active Contributor
0 Kudos

instead, run program sapinfo on desktops:

sapinfo ashost=hostname sysnr=00

then, analyze error level using a BAT script.

Former Member
0 Kudos

hello Eric,

Could you please explain me in detail.

i do not know how to analyze error level using a BAT script.

thanks in advance.

Regards,

Srihari

former_member204746
Active Contributor
0 Kudos

you said earlier:

i tried writing a .bat file like this

so, I thought you knew about .bat scripts... anyway, here goes:

sapinfo ashost=servername sysnr=00 >nul

if errorlevel 1 goto SYSTEM_DOWN

echo ALL is OK

goto BYE

:SYSTEM_DOWN

echo system is DOWN!

:BYE

Please also read https://www.sdn.sap.com/irj/sdn/crphelp#posted

Former Member
0 Kudos

hi eric,

it did help. thank u.

Rgds,

Srihari

Answers (0)