Hello,
I do similar things but pipe the result to a file and then let SA check
for filesize of the file.
I run the first check as a scheduled task.
Best regards
Per

>>> 

From: HOUTSMA Arnold <[EMAIL PROTECTED]>
To:Servers Alive Discussion List <[email protected]>
Date: 2008-09-16 09:41
Subject: RE: [SA-list] Capture external output

Hi Petr,
 I tried that already. It doesn*t work. It always returns -1. No matter
what I check.
 

Regards,
Arnold

 

From:Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Petr Bohac
Sent: dinsdag 16 september 2008 08:51
To: Servers Alive Discussion List
Subject: RE: [SA-list] Capture external output

 

Try the following command: DCdiag.exe /S:DC /TEST:fsmocheck | find
"test FsmoCheck" | find /v "failed" regarding the result you will get
errorlevel 0 or 1.

 

You can test it in command prompt running the command and then type
echo %errorlevel%. Then just make a batch file. I think it should work
in salive though I didn't test it.

 

Br,

Petr

 

From:Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of HOUTSMA Arnold
Sent: 16 September 2008 10:26
To: Servers Alive Discussion List
Subject: RE: [SA-list] Capture external output
Yes I want to capture the string output.
 I run this command: DCdiag.exe /S:mydc /TEST:fsmocheck
/F:C:\LOG\FSMO.log and want to know if the log contains the string
*passed test FsmoCheck* or *passed failed FsmoCheck*
 Are there any SA customers who are doing this test already and/or is
there another way?
 Are there any COM examples?
 

Regards,
Arnold

 

From:Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Dirk
Sent: donderdag 11 september 2008 09:21
To: Servers Alive Discussion List
Subject: RE: [SA-list] Capture external output

 If the output is send as errorlevel (that it would only be a number)
then SA can get that back via the EXTERNAL ERRORLEVEL check.
If "string" output needs to be returned to Servers Alive then you will
have to create a COM check for this.
  Dirk Bulinckx. 

From:Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of HOUTSMA Arnold
Sent: Thursday, September 11, 2008 8:46 AM
To: Servers Alive Discussion List
Subject: [SA-list] Capture external output

 Hi,
 Is there a way to capture output from external commands?
 I mean, I can for example execute *DCdiag.exe /S:mydc /TEST:kccevent*
that displays the result on screen or in a log but can I sent the output
through SA.
 

Regards,
Arnold



To unsubscribe send a message with UNSUBSCRIBE in the subject line to
[email protected] If you use auto-responders (like out-of-the-office 
messages), make sure
that they are not sent to the list nor to individual members. Doing so
will cause you to be automatically removed from the list.


To unsubscribe send a message with UNSUBSCRIBE in the subject line to
[email protected] If you use auto-responders (like out-of-the-office 
messages), make sure
that they are not sent to the list nor to individual members. Doing so
will cause you to be automatically removed from the list.


To unsubscribe send a message with UNSUBSCRIBE in the subject line to
[email protected] If you use auto-responders (like out-of-the-office 
messages), make sure
that they are not sent to the list nor to individual members. Doing so
will cause you to be automatically removed from the list. 

This e-mail including any attachment is intended only for the
recipient(s) named. It may contain confidential information and should
not be read, copied or otherwise used by any other person. If you are
not a named recipient, please contact the sender and delete the e-mail
from your system. The sender does not accept any liability for errors or
omissions in the content of this message or for viruses, or any damage
due to the e-mail. The recipient is advised to have appropriate virus
check software. 





To unsubscribe send a message with UNSUBSCRIBE in the subject line to
[email protected] If you use auto-responders (like out-of-the-office 
messages), make sure
that they are not sent to the list nor to individual members. Doing so
will cause you to be automatically removed from the list.


To unsubscribe send a message with UNSUBSCRIBE in the subject line to
[email protected] If you use auto-responders (like out-of-the-office 
messages), make sure
that they are not sent to the list nor to individual members. Doing so
will cause you to be automatically removed from the list.

The contents of this e-mail are intended for the named addressee only.
It contains information which may be confidential and which may also be
privileged. The information including attachments in this e-mail may not
be used, disclosed, copied or stored except for the purpose for which it
has been sent. If you have received this e-mail in error, please immediately 
destroy it
and notify us by phone or fax as above or by e-mail at:
[EMAIL PROTECTED] Please note that FlexLink can assume no liability for
any computer virus which might be transferred by way of this e-mail.
Further information about FlexLink: www.flexlink.com 

To unsubscribe send a message with UNSUBSCRIBE in the subject line to 
[email protected]
If you use auto-responders (like out-of-the-office messages), make sure that 
they are not sent to the list nor to individual members.  Doing so will cause 
you to be automatically removed from the list.

Reply via email to