Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: Newbie - Need to ping..!.

HTVi
TV Discussion Newsgroups

Newbie - Need to ping..!.
Andi Merchant 7/11/2007 8:48:01 AM
Hi All,

I need to read a file with computer names in, issue a ping to those
computers and write back to a file (or the same file) on the success or
failure of the ping..

My scripting guy has swan'ed of to Oz on hols and I could really do with a
dig out..

any pointers are very very welcome

many thanks

Andi

Re: Newbie - Need to ping..!.
Michael Bednarek <mbATmbednarek.com[ at ]BLACKHOLESPAM.NET> 7/11/2007 12:22:45 PM
On Wed, 11 Jul 2007 01:48:01 -0700, Andi Merchant wrote in
microsoft.public.windows.server.scripting:

[Quoted Text]
>I need to read a file with computer names in, issue a ping to those
>computers and write back to a file (or the same file) on the success or
>failure of the ping..
[snip]

Trivial with the right tool, 4NT in this case:
FOR %host IN ([ at ]NAMES.TXT) ECHO %host %[ at ]PING[%host]

The 4NT function [ at ]PING[] is documented at
<http://jpsoft.com/help/f_ping.htm>; 4NT is a commercial product ("Real
work needs real tools.") Other scripting languages may require a more
elaborate solution.

--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
Re: Newbie - Need to ping..!.
"Richard Mueller [MVP]" <rlmueller-nospam[ at ]ameritech.nospam.net> 7/11/2007 1:38:00 PM
Andi Merchant wrote:

[Quoted Text]
> I need to read a file with computer names in, issue a ping to those
> computers and write back to a file (or the same file) on the success or
> failure of the ping..
>
> My scripting guy has swan'ed of to Oz on hols and I could really do with a
> dig out..
>
> any pointers are very very welcome

I have 3 example VBScript methods to ping linked here:

http://www.rlmueller.net/PingComputers.htm

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--


RE: Newbie - Need to ping..!.
Tom McGeown 7/12/2007 11:00:00 AM
http://www.microsoft.com/technet/scriptcenter/csc/scripts/network/client/cscne049.mspx
layout is a bit messed up on this page - but this script could be modified
to do the job

"Andi Merchant" wrote:

[Quoted Text]
> Hi All,
>
> I need to read a file with computer names in, issue a ping to those
> computers and write back to a file (or the same file) on the success or
> failure of the ping..
>
> My scripting guy has swan'ed of to Oz on hols and I could really do with a
> dig out..
>
> any pointers are very very welcome
>
> many thanks
>
> Andi
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen