COMPARE AND REPORT DIFFERENCES IN FILES WITHIN SERVERS USING VBSCRIPT

Closed Posted Sep 20, 2003 Paid on delivery
Closed Paid on delivery

I was given a small project to write a VBSCRIPT program to do the following:

Specs: Ability to compare servers within an environment to ensure the files are the same on all of the servers for that environment.

## Deliverables

Specs: Ability to compare servers within an environment to ensure the files are the same on all of the servers for that environment.

For example in Production: prdeweb01, prdiweb01, prdeweb05, prdiweb05,prdeweb07, prdiweb07 all contain the same files starting at the components folder and at the eBusiness folder.

I also need the ability to compare all the files from one environment to another environment, for example QA against Production.

The application servers need to be compared as a group and the web servers would be compared as another group. The VB script would need to have:

Variable to declare the root folder (directory) for the components and for the web pages for the web servers

Variable to declare the root folder (directory) for the components for the application servers

Variable to declare the master web server name to be used as the server to compare against

Variable to declare the master application server name to be used as the server to compare against

Array to hold the web server names

Array to hold the application server names

A constant for ProdWebServers that contains comma separated list of web servers, same for ProdAppServers, QAWebServers, QAAppServers, and so on for each environment (PROD and QA). for now.

The logic of the VB Script needs to be:

Outer loop to process the Web servers then the App servers (for loop 1 to 2)

Inner loop to process all the web servers in the web server array (do or for loop)

Inner loop to process each root folder on that server

The log file needs to be a single file.

Start of the Outer loop has an entry in the log such as:

*************************

**** Web Servers **** Production (comparing against: PRDEWEB01)

*************************

Start of each loop in the inner loop a log entry such as:

*** PRDIWEB01 ***

Log entry for each file that doesn't match - NO ENTRY FOR FILES THAT DO

MATCH (You will also need to report any files in the master not in the

server being compared or files in the server being compared that isn't

in the master server)

inetpub\ebusiness\components\common\[url removed, login to view] <size is 13450 should be

13444> <date is 7/21/03 should be 4/10/03>

Log entry at the end of each inner loop

***** Prdiweb01 Components 35 files 2 folders 1 discrepancy.

***** Prdiweb01 WebPages 355 files 10 folders 0 discrepancies.

Log entry at end of each outer loop

==> Processed 6 servers found 1 server with discrepancies.

(blank line)

Each log entry should have a date timestamp

It is extremely important that this VB script does NOT change the date/time of the file on the server when you explore the size and date modified.

## Platform

Windows 2000

Engineering Microsoft MySQL PHP Software Architecture Software Testing Visual Basic Windows Desktop

Project ID: #2977950

About the project

4 proposals Remote project Active Aug 3, 2004

4 freelancers are bidding on average $70 for this job

yenduttjain

See private message.

$85 USD in 10 days
(115 Reviews)
6.6
itworkspace

See private message.

$85 USD in 10 days
(15 Reviews)
3.2
davethoms

See private message.

$55.25 USD in 10 days
(2 Reviews)
0.0
sanjayinfot

See private message.

$55.25 USD in 10 days
(3 Reviews)
0.0