SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : Dynamic HTML :

Previous DiscussionNext Discussion
 Scripting dilemma

Hi Folks, I hope this is an appropriate forum for this question, which relates to a scripting query...

Each day I need to investigate any workstations that haven't updated their virus software.  After viewing the logs and identifying the IP's, I then ping each individually and make note of any echo responses/failures for follow-up later.

In an attempt to script as much of this as possible, I've come up with the following required steps, with any scripting I have so far, but it's not complete and I'm looking to you all for some help... VBS is preferred but not essential, although I'm trying to focus my learning on vbs

The aim is to ping a specified list of IP addresses each day and return all of the results to a file, with the following steps:

1) Manually enter IP list in to a txt/xls/script/other file... whatever is most appropriate (ie: hostlist.txt)

2) Create a new file which will store the results and append the date to the file name (ie: results-month/day.txt)... Scripting the new file is easy enough (below) but the date bit eludes me so far...

 Set objFSO = CreateObject("Scripting.FileSystemObject")
 Set objFile = objFSO.CreateTextFile("C:\stuff\ping\blah.txt")

3) Ping IP's listed in hostlist file (2 echo requests only) and output all results to current results file... I know of the Win32_PingStatus function for XP/2003, but am trying to make this 2000 compatible if possible, the only way I am familiar with for 2000 is a batch file or the like, which wouldn't be able to import variables from the hostlist file...

I'm desperately hoping there's a solution to suit Windows 2000, and look forward to any help!

Thanks Much in advance!

 

Started By Herbus on Apr 2, 2004 at 6:59:42 PM

35 Response(s) | Reply

Earlier Replies | Replies 29 to 35 of 35 | Later Replies
Goto Page: 5 4 3 2 1
ChrisRickard on Apr 6, 2004 at 9:46:47 AM (# 29)

>>And Chris, you could have simply left out the 'g' -- but you didn't.

?? Are you reffering to "remlins"?


BachusII on Apr 6, 2004 at 11:03:10 AM (# 30)

I think holo was referring to your OMG. In view of post # 4 it should be OMH.

^_^


ChrisRickard on Apr 6, 2004 at 11:30:40 AM (# 31)

>>In view of post # 4 it should be OMH.

:)


bod1467 on Apr 6, 2004 at 2:34:39 PM (# 32)

Ref. # 28, I see pverted's thread/poll has disappeared. ^_^


ChrisRickard on Apr 6, 2004 at 3:38:24 PM (# 33)

Oh there was some kind of poll? I was wondering what ctcrmcou was talking about.


ctcrmcou on Apr 6, 2004 at 7:29:26 PM (# 34)

Yes, I am his favorite "prat".  He wanted to take a poll to verify that his feelings were valid.  I think he just needs a friend.


MHenke on Apr 7, 2004 at 1:15:09 AM (# 35)

He has a peculiar way to show if that's his problem.


Earlier Replies | Replies 29 to 35 of 35 | Later Replies
Goto Page: 5 4 3 2 1

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2004 InsideDHTML.com, LLC. All rights reserved.