How can I setup SFHA 5.1 for Windows to call exe on clustering environment?
I setup clustering 2 node on windows 2003 x86 as Oracle Clustering and finished.
I want to this clustering to call FTP client to transfer file from another server to clustering server.
---------------------------------------------- START --------------------------------------------------------------------
@echo off
start C:\FTPSetup1\FTPClient.exe
goto END
:END
----------------------------------------------------------------------------------------------------------------------------
I use pskill (Windows Sysinternals) to use kill process.
----------------------------------------------- STOP ---------------------------------------------------------------------
C:\WINDOWS\pskill.exe -t FTPClient.exe
----------------------------------------------------------------------------------------------------------------------------
------------------------------------------------ MONITOR ---------------------------------------------------------------
@echo off
tasklist /FI "IMAGENAME eq FTPClient.exe" /FI "STATUS eq running" 2>NUL | find /I /N "FTPClient.exe">NUL
if ERRORLEVEL 1 goto Process_NotFound
:Process_Found
echo 110
goto END
:Process_NotFound
echo 100
goto END
:END
----------------------------------------------------------------------------------------------------------------------------
Please help me to solve this problem.
Comments
Hi Apitha, If I were you I
Hi Apitha,
If I were you I would use the Process agent. The only thing that you need to specify would be the "StartProgram" attibute with "C:\FTPSetup1\FTPClient.exe".
The Process agent will start the exe that you specify, during a monitor it will check task list to see if the process is still running and it will kill the process during the offline of the resource.
You might need to specify Username, Password and Domain if you need the exe to run in a different user context than the LocalSystem account.
You can find more information about the Process agent in the Bundled Agents Guide that comes with your product.
The 5.1 Bundled Agents guide can be found online at: ftp://exftpp.symantec.com/pub/support/products/Storage_Foundation_for_Windows/306339.pdf
The Process agent is discussed on page 113-118.
Thanks,
Wally
Yes, PROCESS agent start
Yes, PROCESS agent start FTPClient process, but I can't see any FTPClient.exe active.
I check process via command:
tasklist /FI "IMAGENAME eq FTPClient.exe" /FI "STATUS eq running"
it's return no FTPClient process.
I so doubt why it not start exe, but in task manager see FTPClient process.
Oh I checked on
Oh I checked on InteractWithDesktop as true, It worked.
Not use any scripts. So great. Thanks.
Hi Apitha, Good to hear that
Hi Apitha,
Good to hear that you got it working.
Thanks,
Wally
Would you like to reply?
Login or Register to post your comment.