PowerCLI essentials : simplify and automate server administration tasks with PowerCLI /
Simplify and automate server administration tasks with PowerCLIAbout This Book Automate VMware's VSphere environment by learning the essentials of PowerCLI Impress your peers by developing scripts to perform administration tasks Discover the intricate workings of PowerCLI through simple and rea...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
2016.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: An Introduction to Essential Administration with PowerCLI; Why this book, and why now?; Understanding PowerShell versions; The basic structure of PowerShell; Why is version understanding important?; v2 or v3
- what's the difference?; Installing PowerShell v3 on a Windows 7 or Windows 2008 R2 machine; Understanding PowerCLI; Getting PowerCLI versions; The PowerCLI change log; Getting PowerCLI; Pre-requisites before getting PowerCLI; Downloading PowerCLI; Installing PowerCLI.
- Getting helpSetting up the PowerCLI installation; Summary; Chapter 2: Comparing Point and Click Administration to PowerCLI and Scripting; Getting started; Where do we begin?; Where do we find scripts and snippets that are safe to run?; VMware communities; VMware blogs; VMware flings; PowerGUI; Notepad++; PowerShell Scriptomatic; Microsoft TechNet Script Center; Programming interfaces; Writing the script; Planning the purpose; Thinking through a script; Planning the output; Making the script; Final script; Report-VMHostConfigStatus; Starting with the inputs; Getting the current configuration.
- Output of dataGetting the same information through PowerCLI; Network; Storage; Output; Final script of the report; Summary; Chapter 3: Enhancing the Scripting Experience; Code repositories
- why would I need that?; Building an internal repository; Using a third-party tool for code check-in and check-out; Send it to the cloud! Publicly accessible script repositories; Conclusions; Scripting with the intention to reuse; Functions, functions, functions
- the fun with functions; Example of a multifunctional script; Using modules; Calling other scripts within the script.
- Example of a framework scriptBuilding a framework that others can build upon; Running a workflow; Quality control, consistency, and simplification; Revisiting documentation; Script simplification; Error handling; Verification testing; Version control and keeping previous versions; What signifies a major version versus a minor version; Storing versions; Building a VM script using all the pieces; Summary; Chapter 4: Windows Administration within VMware Administration; What is DevOps?; Starting a DevOps practice; Defining the roles; An example process; Duties of the Automation Engineer.
- Building the scriptMixing PowerCLI and standard PowerShell; Building a Windows script host; Using commands to enable remote desktops on a Windows 2012 R2 server; Running PowerCLI and Windows Administration; A script example; Thinking through the script; Building the script; Invoke-VMScript configuration; Running remote on a Linux guest; Basic BASH; Invoke-VMScript configuration; Introduction to vRealize Orchestrator; Summary; Chapter 5: Workflows and vRealize Orchestrator; Workflows; The beginning of a workflow; The planning stage; The design phase; The implementation phase; The testing phase.