Re: Can script/bat file skip client with no connectivity?

From: Jerold Schulman (Jerry_at_jsiinc.com)
Date: 02/25/05


Date: Fri, 25 Feb 2005 14:52:23 -0500

On Fri, 25 Feb 2005 09:56:41 -0700, "D.P. Roberts" <dproberts@pbride.com> wrote:

>I often run bat files or scripts that process commands for multiple remote
>client machines. Sometimes however, a machine is down or has dropped its
>network connection for whatever reason. When this happens, the entire
>process 'hangs' on this machine for about 3 minutes before finally going on
>to the next machine. Is there a way to have the process skip the down
>machine so processing doesn't hang up like this? Or perhaps a way to reduce
>the default 3-minute wait period when a machine is down?
>
>Thanks for any help - this has been very frustrating!
>
Just before firing off the report process:

SET OK=N
for /f "Tokens=1" %a in ('@ping -n 1 ComputerName or IPAddress^|FIND "Reply"') do SET OK=Y
If "%OK%" EQU "Y" do the remote process

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com



Relevant Pages

  • Re: Can script/bat file skip client with no connectivity?
    ... > client machines. ... > network connection for whatever reason. ... It sends one ICMP ...
    (microsoft.public.scripting.wsh)
  • Re: Confused about 3.5 SP1
    ... If you are not using the new stuff (ADO.NET Entitities, AJAX enhancements, routing, dynamic data, data services, etc.), then the app can work fine on the client machines without SP1. ... As far as "is there a reason" is concerned, I have not looked at a list of fixes in the SP, so I cannot definitively give a reason to update now. ...
    (microsoft.public.dotnet.framework)
  • Re: Communicating over a network
    ... network connection for you between a client and server, ... The only reason I could advocate not using WCF would be because the ... then i presume the added overhead of ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: 2.6.21-rc4-mm1
    ... 2200BG Network Connection ... Reason -2 ... someone seems to have thoroughly bollixed firmware loading. ...
    (Linux-Kernel)
  • Re: 2.6.21-rc4-mm1
    ... Matt Mackall wrote: ... 2200BG Network Connection ... Reason -2 ... I am seeing similar messages trying to load bcm43xx firmware with 2.6.21-rc4-mm1. ...
    (Linux-Kernel)