Book description
As time goes on, system administrators are presented with increasingly complicated challenges. In the early days, a team of engineers might have had to look after one or two systems. These days, one engineer can administer hundreds or thousands of systems.
System administrators are gradually replacing their tools with more advanced and flexible ones. One of the choices is Python. Structurally, Python is a modern, high-level language with a very clean syntax. Python comes with many built-in libraries that can make automation tasks easier. It also has extensive set of third-party libraries and a very active development community. This flexibility makes Python a good choice for a wide variety of tasks, from prototyping science applications to system maintenance and administration jobs.
This book explains and shows how to apply Python scripting in practice. Unlike the majority of the Python books, it will show you how to approach and resolve real-world issues that most system administrators will come across in their careers.
In this book, you will find several projects in the categories of network administration, web server administration, and monitoring and database management. In each project, we will define the problem, design the solution, and go through the more interesting implementation steps.
Each project is accompanied with the source code of a fully working prototype, which you'll be able to use immediately or adapt to your requirements and environment.
Table of contents
- Copyright
- About the Author
- About the Technical Reviewer
- Acknowledgments
-
Introduction
- Prerequisites for This Book
-
Structure of This Book
- Chapter 1: Reading and Collecting Performance Data Using SNMP
- Chapter 2: Managing Devices Using the SOAP API
- Chapter 3: Creating a Web Application for IP Address Accountancy
- Chapter 4: Integrating the IP Address Application with DHCP
- Chapter 5: Maintaining a List of Virtual Hosts in an Apache Configuration File
- Chapter 6: Gathering and Presenting Statistical Data from Apache Log Files
- Chapter 7: Performing Complex Searches and Reporting on Application Log Files
- Chapter 8: A Web Site Availability Check Script for Nagios
- Chapter 9: Management and Monitoring Subsystem
- Chapter 10: Remote Monitoring Agents
- Chapter 11: Statistics Gathering and Reporting
- Chapter 12: Automatic MySQL Database Performance Tuning
- Chapter 13: Amazon EC2/S3 as a Data Warehouse Solution
- The Example Source Code
- 1. Reading and Collecting Performance Data Using SNMP
-
2. Managing Devices Using the SOAP API
- 2.1. What Is the SOAP API?
- 2.2. SOAP Support in Python
- 2.3. Converting WSDL Schema to Python Helper Module
- 2.4. Defining Requirements for Our Load Balancer Tool
- 2.5. Accessing Citrix Netscaler Load Balancer with the SOAP API
- 2.6. Gathering Performance Statistics Data
- 2.7. Automating Administration Tasks
- 2.8. A Word About Logging and Error Handling
- 2.9. Summary
-
3. Creating a Web Application for IP Address Accountancy
- 3.1. Designing the Application
- 3.2. The Basic Concepts of the Django Framework
- 3.3. Implementing Basic Functionality
- 3.4. Summary
- 4. Integrating the IP Address Application with DHCP
- 5. Maintaining a List of Virtual Hosts in an Apache Configuration File
- 6. Gathering and Presenting Statistical Data from Apache Log Files
-
7. Performing Complex Searches and Reporting on Application Log Files
- 7.1. Defining the Problem
- 7.2. Parsing Complex Log Files
- 7.3. Handling Multiple Files
- 7.4. Detecting Exceptions
- 7.5. Storing Data in Data Structures
- 7.6. Producing Reports
- 7.7. Summary
- 8. A Web Site Availability Check Script for Nagios
- 9. Management and Monitoring Subsystem
- 10. Remote Monitoring Agents
- 11. Statistics Gathering and Reporting
- 12. Automatic MySQL Database Performance Tuning
-
13. Using Amazon EC2/S3 as a Data Warehouse Solution
- 13.1. Specifying the Problem and the Solution
- 13.2. The Amazon EC2 and S3 Crash Course
- 13.3. Creating a Custom EC2 Image
- 13.4. Controlling the EC2 Using the Boto Python Module
- 13.5. Summary
Product information
- Title: Pro Python System Administration
- Author(s):
- Release date: July 2010
- Publisher(s): Apress
- ISBN: 9781430226055
You might also like
book
Pro Python System Administration, Second Edition
explains and shows how to apply Python scripting in practice. It will show you how to …
article
Use Github Copilot for Prompt Engineering
Using GitHub Copilot can feel like magic. The tool automatically fills out entire blocks of code--but …
article
Run Llama-2 Models Locally with llama.cpp
Llama is Meta’s answer to the growing demand for LLMs. Unlike its well-known technological relative, ChatGPT, …
article
Use GitHub Copilot: Additional Tips
Using GitHub Copilot can feel like magic. The tool automatically fills out entire blocks of code--but …