Chapter 2 Applying Practical Automation Speaker : Chuang-Hung Shih Date : 2010.3.09.

Slides:



Advertisements
Similar presentations
© University of Reading 2007www.reading.ac.uk Huw Wright - IT Services Vista Deployment.
Advertisements

MODULE 3: OS & APP LAYERS. Agenda Preparing and importing a gold image Creating and understanding Install Machines Creating basic Application layers Understanding.
Week 6: Chapter 6 Agenda Automation of SQL Server tasks using: SQL Server Agent Scheduling Scripting Technologies.
Chapter Nineteen Troubleshooting the Network. Objectives To learn a systematic troubleshooting method To examine some basic necessities for troubleshooting.
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Debugging.
Lesson 17: Configuring Security Policies
OpenVMS System Management A different perspective by Andy Park TrueBit b.v.
Princeton PC Users Group Hard Drive Disaster! By Paul Kurivchack March 14, 2005.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Chapter 10 Server Administration1 Ch. 10 – Server Administration MIS 431 – created Spring 2006.
Hands-On Microsoft Windows Server 2003 Chapter 2 Installing Windows Server 2003, Standard Edition.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
Low level CASE: Source Code Management. Source Code Management  Also known as Configuration Management  Source Code Managers are tools that: –Archive.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 8: Implementing and Managing Printers.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 8 Introduction to Printers in a Windows Server 2008 Network.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 2 Installing Windows Server 2008.
11 WORKING WITH COMPUTER ACCOUNTS Chapter 8. Chapter 8: WORKING WITH COMPUTER ACCOUNTS2 CHAPTER OVERVIEW  Describe the process of adding a computer to.
11 WORKING WITH COMPUTER ACCOUNTS Chapter 8. Chapter 8: WORKING WITH COMPUTER ACCOUNTS2 CHAPTER OVERVIEW Describe the process of adding a computer to.
Step 1 - Start your PC and place your Windows XP CD in your CD/DVD- ROM drive. Your PC should automatically detect the CD and you will get a message saying.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
1 Objectives Discuss the Windows Printer Model and how it is implemented in Windows Server 2008 Install the Print Services components of Windows Server.
Deploying Windows Vista Lesson 2. Skills Matrix Technology SkillObjective Domain SkillDomain # Understanding Windows Vista Deployment Deploy Windows Vista.
MCTS Guide to Microsoft Windows Server 2008 Applications Infrastructure Configuration (Exam # ) Chapter Two Deploying Windows Servers.
The Linux Operating System Lecture 7: Tonga Institute of Higher Education.
Module 4: Add Client Computers and Devices to the Network.
11 SECURITY TEMPLATES AND PLANNING Chapter 7. Chapter 7: SECURITY TEMPLATES AND PLANNING2 OVERVIEW  Understand the uses of security templates  Explain.
ITE 1 Chapter 5. Chapter 5 is a Large Chapter It has a great deal of useful information about operating systems. You will find this VERY helpful when.
Guide to Linux Installation and Administration, 2e 1 Chapter 9 Preparing for Emergencies.
Recovery-Oriented Computing User Study Training Materials October 2003.
Implementing and Administrating Redundant PI-Advanced Computing Engine (ACE) Servers Craig Taylor PI Administrator.
Chapter Fourteen Windows XP Professional Fault Tolerance.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Chapter 18: Windows Server 2008 R2 and Active Directory Backup and Maintenance BAI617.
Chapter 8 Implementing Disaster Recovery and High Availability Hands-On Virtual Computing.
10/1/2015 Chapter 2 Installing Windows XP Professional.
Booting. Booting is the process of powering it on and starting the operating system. power on your machine, and in a few minutes your computer will be.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 4 1 Chapter 4: Basics of Preventive Maintenance and Troubleshooting IT.
Step By Step Windows Server 2003 Installation Guide Step By Step Windows Server 2003 Installation Guide.
Lost Data and Files Recovery Planning Distributed Workforce System Failures Traditional approaches to machine recovery don’t meet the needs of.
MCSE Guide to Microsoft Exchange Server 2003 Administration Chapter Two Installing and Configuring Exchange Server 2003.
CVS – concurrent versions system Network Management Workshop intERlab at AIT Thailand March 11-15, 2008.
IT Essentials: PC Hardware and Software v4.0. Chapter 4 Objectives 4.1 Explain the purpose of preventive maintenance 4.2 Identify the steps of the troubleshooting.
SONIC-3: Creating Large Scale Installations & Deployments Andrew S. Neumann Principal Engineer, Progress Sonic.
Implementing ISO and Odyssey Kyle Banerjee Oregon State Library.
Wordpress with Mina Automated Deployment Solution Jonathan Gravato DIG 4104c.
Overview of the Automated Build & Deployment Process Johnita Beasley Tuesday, April 29, 2008.
SONIC-3: Creating Large Scale Installations & Deployments Andrew S. Neumann Principal Engineer Progress Sonic.
Chapter 2. Bourne Shell (sh) Use sh instead of bash (Bourne Again Shell), to make your scripts more portable. sh – csh – tcsh - bash.
Microsoft Windows XP Professional MCSE Exam
Linux Operations and Administration
MCSE Guide to Microsoft Exchange Server 2003 Administration Chapter Three Managing Recipients.
SQL SERVER 2008 Installation Guide A Step by Step Guide Prepared by Hassan Tariq.
Module 5: Managing Addresses and Address Lists.
Automating Installations by Using the Microsoft Windows 2000 Setup Manager Create setup scripts simply and easily. Create and modify answer files and UDFs.
VMware Certified Professional 6-Data Center Virtualization Beta 2V0-621Exam.
By the end of this lesson you will be able to explain: 1. Identify the support categories for reported computer problems 2. Use Remote Assistance to connect.
Software sales at U Waterloo Successfully moved software sales online Handle purchases from university accounts Integrated with our Active Directory and.
9/21/04 James Gallagher Server Installation and Testing: Hands-on ● Install the CGI server with the HDF and FreeForm handlers ● Link data so the server.
INFSO-RI Enabling Grids for E-sciencE Workshop WLCG Security for Grid Sites Louis Poncet System Engineer SA3 - OSCT.
Essentials of UrbanCode Deploy v6.1 QQ147
System Administration
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
has many aspects that work together to give people almost instant communication from any computer on the internet to any other computer There.
Chapter 2: Operating-System Structures
Operating Systems Networking for Home and Small Businesses – Chapter 2 – Introduction To Networking.
Chapter 2: Operating-System Structures
Presentation transcript:

Chapter 2 Applying Practical Automation Speaker : Chuang-Hung Shih Date :

Applying Practical Automation This chapter presents the prerequisite information in an easy-to-digest format. This chapter assumes familiarity with Bourne Shell scripting. If your scripting is as portable as possible from the start, in effect you’re buying insurance against future pain.

Seeing Everything As a File Both real and pseudo devices (such as /dev/null, /dev/zero, and so on) can be read from and (often) written to as normal files. For example, if you want to create an ISO file on a remote system from a DVD in your laptop, you could run this:  dd if=/dev/cdrom | ssh remotehost ‘dd of=/opt/big/vmware/sol10.iso You can then configure VMware to mount the ISO file as a CD- ROM drive and quickly boot from the device and install on a host with no physical CD/DVD drive.

Seeing Everything As a File It's important to remember that the vast majority of automation operations are based on copying and/or modifying files. Often when files change or new files are distributed, a process on the host needs to restart so the host can recognize the change. The bulk of what we’ll be doing in this book is copying files, modifying files, and taking actions based on the success or failure of earlier file operations.

Understanding the Procedure Before Automating It We've seen many administrators open a cfengine (configuration engine) config file to automate a task and end up sitting there, unsure of what to do. This is the first rule of automation:  Automation is simply a set of already working steps, tied together in an automated manner. This means that the first step toward automating a procedure usually involves manual changes!

Understanding the Procedure Before Automating It Here's an overview of the automated change development process:  Make the change in a test environment.  Make it fit your policy.  Automate the deployment steps.  Test the deployment to a small number of testing or stage hosts and confirm that you achieve the desired effects.  Deploy the change to all hosts using the newly developed automation.

Exploring an Example Automation An SA( system administration) needs to create user accounts regularly. In this case, you’ll use several commands to create a directory on a central Network File System (NFS) server and send off a welcome e- mail. The script might look as simple as this:

Exploring an Example Automation If it generates any errors, you might find it difficult to determine what failed. In just a few minutes, you can make some simple additions to turn this procedure into a tool that’s usable by all SA staff:

Exploring an Example Automation

Turning the Script into a Robust Automation Every automation's primary focus should be to achieve one of two things:  A change to one or more systems that achieves a business goal: The creation of a new user account falls into this category.  No change at all: If something unexpected happens at any point in the automation, no changes should be made at all. This means that if an automated procedure makes several changes, a failure in a later stage should normally result in a rollback of the earlier changes (where appropriate or even possible).

Turning the Script into a Robust Automation Your earlier user-creation script could use some improved error messages, as well as a rollback step. Give that a shot now:

Turning the Script into a Robust Automation

Attempting to Repair, Then Failing Noisily You’ll encounter situations where a rollback is multistep, so you’ll need to evaluate each step’s exit code and indicate or contraindicate further rollback steps based on those exit codes. Each and every step in an automation or administrative script needs to ensure success.

Focusing on Results When in doubt, opt for simplicity. Don't attempt fancy logic and complicated commands when the goal is simple. For example, you might have a script that takes a list of DNS servers and generates a resolv.conf file that’s pushed to all hosts at your site. When a new DNS server is added or a server is replaced with another, you need to run the script to update the file on all your systems. A complicated procedure becomes a simple file push. This is the KISS (Keep It Simple, Stupid) principle in all its glory.