Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

How can I setup SFHA 5.1 for Windows to call exe on clustering environment?

Updated: 22 May 2010 | 4 comments
Apitha's picture
0 0 Votes
Login to vote
This issue has been solved. See solution.

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.
 

I create batch scripts to start FTP, Stop FTP and monitor FTP process and tested via cmd's windows. It works.

---------------------------------------------- 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
----------------------------------------------------------------------------------------------------------------------------

I create custom agent via SFHA's agentbuilder to use above script to call FTP client, I use MinitorSequence as MonitorProgram.
 
When I enable this resource, it online immediately; but I don't call FTP client and it online both node.
 
I manual run monitor it return 100 as I think.

Please help me to solve this problem.
 

Comments

Wally_Heim's picture
17
Mar
2010
0 Votes 0
Login to vote

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

Apitha's picture
17
Mar
2010
0 Votes 0
Login to vote

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.

Apitha's picture
17
Mar
2010
0 Votes 0
Login to vote

Oh I checked on

Oh I checked on InteractWithDesktop as true, It worked.

Not use any scripts. So great. Thanks.

Wally_Heim's picture
22
Mar
2010
0 Votes 0
Login to vote

Hi Apitha, Good to hear that

Hi Apitha,

Good to hear that you got it working.

Thanks,
Wally