Provide windows interoperable file and print sharing service

Assignment Help Computer Engineering
Reference no: EM133571328

Assignment: File Manipulation with Python

Overview

Scenarios are quite common where an IT professional is tasked with modifying a file on many computer systems or many files on a single computer or a combination of the two. For example, a large software may need the copyright notice comment to be changed on every source file in a project. Or, a configuration file may need to be modified on every server in a multi-server deployment. Doing this task manually is not a viable way to approach the problem. Instead, a better solution is to use a scriptable environment to perform search and replace functionality on the files in question. Python is an excellent tool for this kind of task.

Instructions

Samba is a unix/linux file sharing suite of programs designed to provide Windows interoperable file and print sharing services. Much of the configuration for the Samba daemon is provided by the text file smb.conf (renamed to smb.txt for this assignment). After an update was deployed to three dozen linux servers it was discovered that a couple of configured parameters were incorrect. Unfortunately, since there are unique aspects to each server, copying the contents of a single file to each server is not a viable solution. To fix the problem, the IT department must connect to each server, edit the smb.conf file, and restart the smbd daemon. To automate this task, each server will have a Python script copied to it. Then an SSH session will be initiated to each server from which the script will be executed. Your task is to write the Python script.

The invocation of the script must be as follows:

python modify.py fileSpec "from" "to"
where,

modify.py is the name of your script
fileSpec is the name of the file to be modified (smb.txt)
"from" is the text to be searched for (be sure to enclose any white space in quotes)
"to" is the text the searched text is to be replaced with.

Testing the script is your responsibility. However a good test case is:

python modify.py smb.txt "password sync = yes" "password sync = no"

Reference no: EM133571328

Questions Cloud

Discuss current philosophy of the juvenile justice system : Discuss the current philosophy of the juvenile justice system (Rehabilitative / Treatment model? Punitive? Combination?), and discuss the five areas of change
Examine various firewall types : Examine various firewall types and select the appropriate firewall to best protect the computing infrastructure of ABC.
Identify a case addressing this factual scenario : Identify a case addressing this factual scenario. Provide a brief description of the facts, legal issue, reasoning and holding.
Discuss the diffrence between ft and pto programs : discuss what you believe to be the most important criteria in the selectiom lf FTO's or PTO's. Discuss the diffrence between FT and PTO programs.
Provide windows interoperable file and print sharing service : CSIS 354- Provide Windows interoperable file and print sharing services. Much of the configuration for the Samba daemon is provided by the text file smb.conf.
Provide your overall opinion of the george stinney case : Provide your overall opinion of the George Stinney case. Do you agree or disagree with the 2005, Supreme Court ruling on the execution of juveniles?
Explain the role that federal and state law enforcement : Explain the role that federal and state law enforcement agencies play in enforcing the law. What different kinds of localenforcement agencies exist
What is diversity jurisdiction and what laws federal courts : What is Diversity Jurisdiction and what laws the Federal Courts apply and what is the purpose of having Diversity Jurisdiction?
What steps would your community need to take to achieve : Why is it important for the police to understand the expectations of the police? How can police address these expectations, whether they are in their power

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd