Encerrado

COMPARE AND REPORT DIFFERENCES IN FILES WITHIN SERVERS USING VBSCRIPT

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

Habilidades: Engenharia, Microsoft, MySQL, PHP, Arquitetura de software, Teste de Software, Visual Basic, Área de trabalho do Windows

Ver mais: starting visual basic, vbscript for, list web servers, report example, windows servers, vbscript, root folder, log files, small php script variable, vbscript php, discrepancy list, php list directory files, found log files, windows compare file, differences, report variable, php log report, php file write array, report environment, app compare files, following basic script found, windows program date change, entry report, master server, php vbscript

Acerca do Empregador:
( 0 comentários ) United States

ID do Projeto: #2977950

4 freelancers estão ofertando em média $70 para este trabalho

yenduttjain

See private message.

$85 USD in 10 dias
(115 Comentários)
6.6
itworkspace

See private message.

$85 USD in 10 dias
(15 Comentários)
3.2
davethoms

See private message.

$55.25 USD in 10 dias
(2 Comentários)
0.0
sanjayinfot

See private message.

$55.25 USD in 10 dias
(3 Comentários)
0.0