I get that - but if it runs from the command prompt, why doesn't it run from
SA?  If there is a technical reason, I don't understand that and would like
to so I can find a way around this.  This was the whole reason we tried this
SA.

Dave
----- Original Message ----- 
From: "Dirk Bulinckx" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 25, 2004 4:24 AM
Subject: RE: [SA-list] Remote command as alert


I may not make sense.
But what else can we do?  Servers Alive starts the .BAT file, that's
something that is clear now.  That what is IN the bat file is not executed
is not something Servers Alive controls.



Dirk.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of David Bruck
Sent: Thursday, November 25, 2004 4:13 AM
To: [EMAIL PROTECTED]
Subject: Re: [SA-list] Remote command as alert

I don't understand.  This makes absolutely no sense.

Does anyone have any experience of a third party utility that will help me,
or any other monitoring software that can do what I need or any other ways
around these problems?  This seems SOOOO simple, yet it has caused over a
hundred hours of my time to figure it out.

Thanks - Dave
----- Original Message ----- 
From: "Dirk Bulinckx" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 24, 2004 5:05 PM
Subject: RE: [SA-list] Remote command as alert


If the log says successful it means that the app/service didn't get an error
back from the OS when asking the OS to execute the command.  This does not
mean that the command realy was able to do something.  Again this is an OS
issue.


Dirk.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of David Bruck
Sent: Wednesday, November 24, 2004 8:14 PM
To: [EMAIL PROTECTED]
Subject: Re: [SA-list] Remote command as alert

This just doesn't work.  I even tried using PSEXEC to run the batch file on
the destination computer and that doesn't work either.  The log shows it as
successful, and it works from the command prompt, but it won't work from SA.

I tried two ways:

1. I made the alert "psexec \\ts1 -u domain\username -p password
c:\inetPub\wwwroot\TSWeb\mainton2.bat"

and that didn't work (but does work from command line)

and

2. I put the above in a batch file called c:\test.bat and put the alert
command as "c:\test.bat"

and that didn't work either.

I must be missing something....

Dave
----- Original Message ----- 
From: "David Bruck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 24, 2004 1:40 PM
Subject: Re: [SA-list] Remote command as alert


As for my access:

I am logged in to the box, WinXP Pro with SP1a as a domain user account that
is a domain admin, and also in the local admin group of the XP Pro box.

The servers alive service is run automatically as the same user I am logged
into above.

When I am logged in as that user, I can execute the batch file by clicking
on it and it works.  When SA tries to execute it, it never works.

Maybe I am misunderstanding what you are asking.

Dave


----- Original Message ----- 
From: "David Bruck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 24, 2004 1:36 PM
Subject: Re: [SA-list] Remote command as alert


Dirk - here is more logs to show what I wrote below:

1. Here is a check using PING on the 192.168.1.50 device (called "test-do
not remove")

Wednesday, November 24, 2004 1:38:21 PM TS1
Wednesday, November 24, 2004 1:38:21 PM TS1 OK with a successrate of 100%
and an average roundtriptime of  0 ms
Wednesday, November 24, 2004 1:38:21 PM EMSPRO
Wednesday, November 24, 2004 1:38:21 PM EMSPRO OK with a successrate of 100%
and an average roundtriptime of  0 ms
Wednesday, November 24, 2004 1:38:21 PM DC1
Wednesday, November 24, 2004 1:38:21 PM DC1 OK with a successrate of 100%
and an average roundtriptime of  0 ms
Wednesday, November 24, 2004 1:38:22 PM test-do not remove
Wednesday, November 24, 2004 1:38:22 PM test-do not remove OK with a
successrate of 100% and an average roundtriptime of  0 ms


2. Here is a check using the exact same device and everthing, just changing
it to check the SPOOLER service (look at the last line):
Wednesday, November 24, 2004 1:38:47 PM TS1
Wednesday, November 24, 2004 1:38:47 PM TS1 OK with a successrate of 100%
and an average roundtriptime of  0 ms
Wednesday, November 24, 2004 1:38:47 PM EMSPRO
Wednesday, November 24, 2004 1:38:47 PM EMSPRO OK with a successrate of 100%
and an average roundtriptime of  0 ms
Wednesday, November 24, 2004 1:38:47 PM DC1
Wednesday, November 24, 2004 1:38:47 PM DC1 OK with a successrate of 100%
and an average roundtriptime of  0 ms
Wednesday, November 24, 2004 1:38:48 PM ERR entry_check 6(192.168.1.50-5):
429 (ActiveX component can't create object) -  2470

----- Original Message ----- 
From: "David Bruck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 24, 2004 1:18 PM
Subject: Re: [SA-list] Remote command as alert


OK - here is more info:

I can't test services - I get errors going back to the original install
error I reported.  I *can* access the services via SA (using the domain\user
and password and all that) but the checks are never done.  Here is what the
log shows (see the third line) - I get that no matter what service I try to
monitor - in this case the SPOOLER service....  if I change that entry from
a service to a PING, it works fine (not the batch file, but the checks):

Wednesday, November 24, 2004 1:20:31 PM TS1
Wednesday, November 24, 2004 1:20:31 PM TS1 OK with a successrate of 100%
and an average roundtriptime of  0 ms
Wednesday, November 24, 2004 1:20:31 PM ERR entry_check 5(192.168.1.12-5):
429 (ActiveX component can't create object) -  2470
Wednesday, November 24, 2004 1:20:31 PM EMSPRO
Wednesday, November 24, 2004 1:20:31 PM EMSPRO OK with a successrate of 100%
and an average roundtriptime of  0 ms
Wednesday, November 24, 2004 1:20:32 PM DC1
Wednesday, November 24, 2004 1:20:32 PM DC1 OK with a successrate of 100%
and an average roundtriptime of  0 ms


----- Original Message ----- 
From: "Dirk Bulinckx" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 24, 2004 11:26 AM
Subject: RE: [SA-list] Remote command as alert


If you want to test the "when back up option" then try it with an nt service
like SPOOLER.
The most common test for us, is testing for the SPOOLER service, and during
the test with stop the service and after a while we restart the service.

When run interactivly run this command (BAT) you're doing this within the
context of a user with the rights of that user and with the possibilies of
that user.
When run do this from Servers Alive it's done from within the context of the
user running Servers Alive.
Is this the same user?


Dirk.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of David Bruck
Sent: Wednesday, November 24, 2004 5:23 PM
To: [EMAIL PROTECTED]
Subject: Re: [SA-list] Remote command as alert

Ok - here is an update - but I don't understand why this is the case.

First - I can't test "and when back-up" alerts since SA doesn't allow for
faking it out.  I can only test alerts for things going down (maybe a
feature for a future release - a way to do various tests without actually
affecting a device??)

For testing purposes, what I did was create a batch file that runs
notepad.exe - and this batch file works.  So this shows that SA will run a
batch file.  Again, I have to assume the "and when back-up" feature works
since I can't really test that without taking something actually down and
letting it come back up - and can't really do that in this environment right
now.  I might have to test it in a development environment.

Here is the contents of the batch file I want to run, and it works great if
I run the batch file from the command line, just not via SA - and I don't
understand the difference.

if exist \\TS1\c$\inetpub\wwwroot\tsweb\default2.htm exit
rename \\TS1\c$\inetpub\wwwroot\tsweb\default.htm default2.htm
rename \\TS1\c$\inetpub\wwwroot\tsweb\default1.htm default.htm

Any thoughts?

Dave




----- Original Message ----- 
From: "Dirk Bulinckx" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 24, 2004 9:43 AM
Subject: RE: [SA-list] Remote command as alert


As said before Servers Alive can START the BAT/CMD/EXE.  And IF the OS gives
an error on this we can return this.  If for whatever reason the OS is not
giving an error it does NOT mean that the command/bat/cmd/exe runs
correctly.
This is not a Servers Alive issue.


Dirk.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of David Bruck
Sent: Wednesday, November 24, 2004 3:25 PM
To: [EMAIL PROTECTED]
Subject: Re: [SA-list] Remote command as alert

yes I tried the new BETA.  I believe I sent the log files, but regardless if
I did or not, why will some programs run (notepad and calc) but my batch
files won't?  I put them in the same directories as the exe's and the batch
files work perfectly when run from the command prompt.  So even if the log
shows them working (I don't recall - will go get now) they aren't.

Dave
----- Original Message ----- 
From: "Dirk Bulinckx" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 24, 2004 12:48 AM
Subject: RE: [SA-list] Remote command as alert


You continue to say that the BAT file isn"t working.
Did you try that latest beta as requested before?  Did you send us a logfile
showing that SA tried to execute it ?


Dirk.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of David Bruck
Sent: Tuesday, November 23, 2004 11:02 PM
To: [EMAIL PROTECTED]
Subject: Re: [SA-list] Remote command as alert

Yes.  I still can't figure out why my batch files will not run with SA - so
maybe this will fix it for me.

Dave Bruck
----- Original Message ----- 
From: "Dirk Bulinckx" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 23, 2004 6:27 AM
Subject: [SA-list] Remote command as alert


Is the possibility to execute a command on a remote system (currently only
possible on the system running SA), something that would be of any help
knowing that for that you would have to have a "remotecommand" service
installed on the system(s) that need to execute those commands.

Dirk.






-------------------------

[This E-mail scanned for viruses by Declude Virus]

To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive




-------------------------

[This E-mail scanned for viruses by Declude Virus]

To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive






-------------------------

[This E-mail scanned for viruses by Declude Virus]

To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive




-------------------------

[This E-mail scanned for viruses by Declude Virus]

To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive






-------------------------

[This E-mail scanned for viruses by Declude Virus]

To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive




-------------------------

[This E-mail scanned for viruses by Declude Virus]

To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive






-------------------------

[This E-mail scanned for viruses by Declude Virus]

To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive




-------------------------

[This E-mail scanned for viruses by Declude Virus]

To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive




-------------------------

[This E-mail scanned for viruses by Declude Virus]

To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive




-------------------------

[This E-mail scanned for viruses by Declude Virus]

To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive






-------------------------

[This E-mail scanned for viruses by Declude Virus]

To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive




-------------------------

[This E-mail scanned for viruses by Declude Virus]

To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive






-------------------------

[This E-mail scanned for viruses by Declude Virus]

To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive




-------------------------

[This E-mail scanned for viruses by Declude Virus]

To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive

Reply via email to