Re: Generic Script Resource
- From: "Tim Munro" <Excelsior@xxxxxxxxxxx>
- Date: Mon, 23 Jan 2006 15:44:42 -0500
Here's another (very obvious once you see it) solution:
In the command line parameter of the Generic application use:
cmd.exe /k abecmd /enable /all <or sharename as required>
The "/k" switch prevents CMD from exiting thus the resource's process
does not "terminate" causing the failed state.
Also clear "enable application to interact with the desktop" or you'll
see an annoying cmd window that you can't get rid of.
--
Tim
"Jasen" <Jasen@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3A385BB7-B826-47E2-996C-68CBB567D608@xxxxxxxxxxxxxxxx
>
>
> "Tim Munro" wrote:
>
>> I'm having a similar problem. Here's how I have mine set up.
>>
>> I have created a "Generic Application" resource, to run a batch file.
>> The batch file simply invokes ABEcmd like so:
>>
>> ABECmd /Enable /All
>>
>> Now the batch file DOES run and enables ABE. However when the batch
>> file
>> terminates, the resource goes into a failed state and the resource group
>> shows up as failed. Is there some way to run a series of commands or
>> scripts
>> (that will terminate) at failover, such that the result is not a failed
>> state?
>>
>> The event log shows an Event ID of 1069
>>
>> --
>> Tim
>>
>> "Jasen" <Jasen@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:E24DD3BD-EA53-4A99-9FAE-3D25A2CB25A9@xxxxxxxxxxxxxxxx
>> >
>> >
>> > "Grumpy in Minneapolis" wrote:
>> >
>> >> I have been trying to create a script to enable access based
>> >> enumeration
>> >> on a
>> >> file share resource. I want the script to run each time the file
>> >> share
>> >> resource is recreated so that access based enumeration is used for the
>> >> file
>> >> share. I have a script that works when I run it manually, but would
>> >> like
>> >> to
>> >> run it as a generic script resource that has a dependency on the file
>> >> share
>> >> resource. I get an error message when I try create the script. Error
>> >> ID:
>> >> -2147352567 (80020009). Any help would be greatly appreciated.
>> >>
>> >> Grumpy,
>> >
>> > What extension is your script? From my experience, .bat files are
>> > clustered
>> > as generic applications and .vbs scripts are clustered as generic
>> > scripts.
>> > Try to create the generic app resource for your script, are you
>> > successful?
>> > If not, does the error change?
>> >
>> >
>>
>>
>> your batch file *MUST* end with a PAUSE this will prevent the resource
>> from entering a FAILED state.
.
- Follow-Ups:
- Re: Generic Script Resource
- From: Grumpy in Minneapolis
- Re: Generic Script Resource
- References:
- Re: Generic Script Resource
- From: Tim Munro
- Re: Generic Script Resource
- Prev by Date: Re: Subnet error message
- Next by Date: Re: Subnet error message
- Previous by thread: Re: Generic Script Resource
- Next by thread: Re: Generic Script Resource
- Index(es):
Relevant Pages
|