Final Project


Background Information

You have been hired as a system administrator for a small company. Your primary job responsibility is to maintain company servers named Serv1 and Serv2.

The following tasks have to be performed every day and you would like them automated.

  1. Display the System, Application and Security event viewer logs for both servers to make sure there are no Error or Warning messages that happened overnight.
  2. Save the previous day’s Error and Warning events from the 3 event logs from each server. All tracked events for each server should be stored in a single file in the folder C:logfiles. I.e. this file should contain 3 sections, labeled “System”, “Application” and “Security”, with each section representing the referenced event log data. The files should be named EventLogsServY-XX, where Y is the Server number and XX should be replaced by today’s date.

After you review the logs file, you may wish to have it backed up for archival purposes to a USB external drive and delete the original file from the C:logfile folder. Since you may only do this in special cases, you do not know ahead of time the UNC path to the backup folder. You wish to create a script automate this task by completing the following steps in a script.

  1. Copy the EventLogsServY-XX files to a backup drive. The exact name of the EventLogsServY-XX file, the drive letter and location of the backup file should be user input variables at the time the script is executed. The script should also ask, if there are more files to be backed up and exit only if there are no more files to be backed up.
  2. After the EventLogsServY-XX files have been backed up, the original files located on the C:logfiles folder should be deleted.

Final Project Deliverables

For this project, you may use any of the scripting languages to create 2 separate scripts. The script code must contain appropriate comments describing in sufficient details what steps are being performed.

  1. The first script will be used to automate log file creation process – tasks (a) and (b). This script should be called LogFiles.ZZZ, where the ZZZ – represents the correct extension based on the chosen scripting language.
  2. The second script will be used to automate the copy and deletion process – tasks (c) and (d). This script should be called ArchiveLogs.ZZZ, where the ZZZ – represents the correct extension based on the chosen scripting language.

HINT: Review the scripts in the textbook and search the internet and for basic scripts dealing with LogFile and copying of file, which can be used as a starting point for this project.

You will be graded based on how well your scripts complete the required tasks, and how well the imbedded comments document the script commands.

Submission Instructions

Submit the following: The screen prints showing successful execution of tasks a,b,c & d in a single Word document. Together with the actual script files (1) and (2). ZIP the Word document with the script files in to a single ZIP file and submit it to the Final Project dropbox in Module #11.

About the Author

Follow me

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}