Publisher: O'Reilly Media Released: August 2008 Pages: 458
Python is an ideal language for solving problems, especially in Linux and Unix networks. With this pragmatic book, administrators can review various tasks that often occur in the management of these systems, and learn how Python can provide a more efficient and less painful way to handle them. Each chapter in Python for Unix and Linux System Administration presents a particular administrative issue, such as concurrency or data backup, and presents Python solutions through hands-on examples. Once you finish this book, you'll be able to develop your own set of command-line utilities with Python to tackle a wide range of problems. Discover how this language can help you: - Read text files and extract information
- Run tasks concurrently using the threading and forking options
- Get information from one process to another using network facilities
- Create clickable GUIs to handle large and complex utilities
- Monitor large clusters of machines by interacting with SNMP programmatically
- Master the IPython Interactive Python shell to replace or augment Bash, Korn, or Z-Shell
- Integrate Cloud Computing into your infrastructure, and learn to write a Google App Engine Application
- Solve unique data backup challenges with customized scripts
- Interact with MySQL, SQLite, Oracle, Postgres, Django ORM, and SQLAlchemy
With this book, you'll learn how to package and deploy your Python applications and libraries, and write code that runs equally well on multiple Unix platforms. You'll also learn about several Python-related technologies that will make your life much easier. |
-
Chapter 1 Introduction -
Why Python? -
Motivation -
The Basics -
Executing Statements in Python -
Using Functions in Python -
Reusing Code with the Import Statement -
Chapter 2 IPython -
Installing IPython -
Basic Concepts -
Help with Magic Functions -
Unix Shell -
Information Gathering -
Automation and Shortcuts -
Summary -
Chapter 3 Text -
Python Built-ins and Modules -
Log Parsing -
ElementTree -
Summary -
Chapter 4 Documentation and Reporting -
Automated Information Gathering -
Manual Information Gathering -
Information Formatting -
Information Distribution -
Summary -
Chapter 5 Networking -
Network Clients -
Remote Procedure Call Facilities -
SSH -
Twisted -
Scapy -
Creating Scripts with Scapy -
Chapter 6 Data -
Introduction -
Using the OS Module to Interact with Data -
Copying, Moving, Renaming, and Deleting Data -
Working with Paths, Directories, and Files -
Comparing Data -
Merging Data -
Pattern Matching Files and Directories -
Wrapping Up rsync -
Metadata: Data About Data -
Archiving, Compressing, Imaging, and Restoring -
Using tarfile Module to Create TAR Archives -
Using a tarfile Module to Examine the Contents of TAR Files -
Chapter 7 SNMP -
Introduction -
Brief Introduction to SNMP -
IPython and Net-SNMP -
Discovering a Data Center -
Retrieving Multiple-Values with Net-SNMP -
Creating Hybrid SNMP Tools -
Extending Net-SNMP -
SNMP Device Control -
Enterprise SNMP Integration with Zenoss -
Chapter 8 OS Soup -
Introduction -
Cross-Platform Unix Programming in Python -
PyInotify -
OS X -
Red Hat Linux Systems Administration -
Ubuntu Administration -
Solaris Systems Administration -
Virtualization -
Cloud Computing -
Using Zenoss to Manage Windows Servers from Linux -
Chapter 9 Package Management -
Introduction -
Setuptools and Python Eggs -
Using easy_install -
easy_install Advanced Features -
Creating Eggs -
Entry Points and Console Scripts -
Registering a Package with the Python Package Index -
Distutils -
Buildout -
Using Buildout -
Developing with Buildout -
virtualenv -
EPM Package Manager -
Chapter 10 Processes and Concurrency -
Introduction -
Subprocess -
Using Supervisor to Manage Processes -
Using Screen to Manage Processes -
Threads in Python -
Processes -
Processing Module -
Scheduling Python Processes -
daemonizer -
Summary -
Chapter 11 Building GUIs -
GUI Building Theory -
Building a Simple PyGTK App -
Building an Apache Log Viewer Using PyGTK -
Building an Apache Log Viewer Using Curses -
Web Applications -
Django -
Conclusion -
Chapter 12 Data Persistence -
Simple Serialization -
Relational Serialization -
Summary -
Chapter 13 Command Line -
Introduction -
Basic Standard Input Usage -
Introduction to Optparse -
Simple Optparse Usage Patterns -
Unix Mashups: Integrating Shell Commands into Python Command-Line Tools -
Integrating Configuration Files -
Summary -
Chapter 14 Pragmatic Examples -
Managing DNS with Python -
Using LDAP with OpenLDAP, Active Directory, and More with Python -
Apache Log Reporting -
FTP Mirror -
Appendix Callbacks -
Colophon |
- Title:
- Python for Unix and Linux System Administration
- By:
- Noah Gift, Jeremy M. Jones
- Publisher:
- O'Reilly Media
- Formats:
-
- Print
- Ebook
- Safari Books Online
- Print:
- August 2008
- Ebook:
- June 2009
- Pages:
- 458
- Print ISBN:
- 978-0-596-51582-9
- | ISBN 10:
- 0-596-51582-0
- Ebook ISBN:
- 978-0-596-15878-1
- | ISBN 10:
- 0-596-15878-5
|
-
Noah Gift Noah Gift is the co-author of Python For Unix and Linux by O'Reilly. He is an author, speaker, consultant, and community leader, writing for publications such as IBM Developerworks, Red Hat Magazine, O'Reilly, and MacTech, and Manning. His consulting company is Giftcs, LLC and it provides solutions for Python Development and Systems Engineering. His personal website is www.noahgift.com. Noah is also the former organizer for PyAtl, which is the Python User Group for Atlanta, GA. He has given presentations at PyCon and PyAtl. He has a Master's degree in CIS from Cal State Los Angeles, B.S. in Nutritional Science from Cal Poly San Luis Obispo, is an Apple ACSA and LPI certified SysAdmin, as well as a Avid Certified Support Representative. He has worked at companies such as, Caltech, Disney Feature Animation, Sony Imageworks, and Turner Studios, and Weta Digital. You can see all of his film credits at IMBD. As a teenager he was a freelance television editor for ABC Network News. While at Caltech he worked for the Nobel Prize Winning President as a Mac Expert, and at Disney and Sony worked on the first feature animated films for both companies: Chicken Little, and Surf's Up, respectively. Recently he has worked on Python development projects as diverse as writing an SNMP auto-discovery system, writing a Content Management System from scratch, creating a large scale Web 2.0/Social Networking Application in Django for Turner Studios, to writing IPhone applications that talk to Google App Engine. He is also involved in a new media journalism project, Spotlight on FOSS, that had a kickoff interview of Mark Shuttleworth. He is currently co-authoring a book on Google App Engine and writing a large Google App Engine Exercise and Nutrition Tracking Application. Most recently, he works as a Python programmer for Weta Digital in New Zealand, which has one of the world's largest render farms/super computer sites. In his free time he enjoys spending time with his wife Leah, and their son Liam, and playing and composing piano music. He is also into exercising religiously, including running in and training for marathons, and blogging about it. When he gets a chance, he likes to write open source software. He is also interested in Artificial Intelligence research and software development. View Noah Gift's full profile page. -
Jeremy M. Jones Jeremy Jones is a software engineer/system administrator who works for Predictix. His weapon of choice is Python but he has done plenty of shell and Perl and a touch of Java. He is the author of the open source projects Munkware, a multiproducer/multiconsumer, transactional, and persistent queuing mechanism, ediplex, an EDI (Electronic Data Interchange) parsing engine, and podgrabber a podcast downloader. All three projects were written in the Python language. Jeremy spends his spare time enjoying his family and doing a little writing. He lives in Conyers, Georgia, just east of Atlanta, with his wife, Debra and his two children, Zane and Justus. View Jeremy M. Jones's full profile page. |
Colophon The image on the cover of Python for Unix and Linux System Administration is a boaconstrictor (boa constrictor). Found throughout South and Central America and some islands in the Caribbean, boa constrictors are non-venomous snakes that can thrive in a wide array of environments, from deserts to open savannas and wet tropical forests, but they prefer arid terrain over wet surroundings. They are both terrestrial and arboreal, but as they get older, they tend to spend more time on the ground.Boa constrictors have very unique markings that include diamond- and oval-like patterns. Their scales change colors depending on their habitat, allowing them to hide from the forest-dwelling animals that hunt them.In the wild, boa constrictors thrive on small- to medium-size rodents, lizards, bats,birds, mongooses, squirrels, and have even been known to feast on other mammals as large as ocelots. Being cold-blooded and slow moving, boas can go up to a week without eating after capturing large prey. They are solitary and nocturnal hunters, with heat-sensitive pads on their heads to help them hunt. Particularly fond of bats, boas will hang in trees and from the mouths of caves waiting for them to fly by, then they can grab the bats with their mouths. Not surprisingly, boa constrictors kill by constriction. The snake wraps its body around its prey in coils, tightening its grip each time the victim breathes out, eventually suffocating it to death.Boas are a common attraction in zoos, and they are even relatively common pets. In fact, thousands of dollars are made every year importing them into the U.S. In South America, they are revered as "destroyers of rodents" and are often domesticated for that reason. Boa constrictors grow quite tame in captivity and can live there as such for 20-30 years.Hunted for the exotic pet trade and their decorative markings, some boaconstrictors are endangered and have protected status. Boa constrictors are seasonal breeders. To attract males, females emit a scent from their cloacas, which is the chamber into which the intestinal and urogenital tracts discharge.Fertilization happens internally, and females can give birth to up to 60 live babies at one time. Significantly smaller than their anaconda cousins, newborn boas average 2 feet in length and can grow up to 13 feet long and weigh more than 100 pounds. Found in South America, the largest boa constrictor on record was 18 feet! |
|
Description
|
Table of Contents
|
Product Details
|
About the Author
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By James Murty
March 2008
Ebook: $39.99
Print & Ebook: $54.99
Print: $49.99
By Nancy Conner
May 2008
Ebook: $31.99
Print & Ebook: $43.99
Print: $39.99
By Rick Sammon
May 2008
Ebook: $27.99
Print & Ebook: $38.49
Print: $34.99
|
Customer Reviews
1/8/2012 (1 of 1 customers found this review helpful) 2.0Useful despite multiple problems By Michael Mayer from Undisclosed About Me Designer, Sys Admin - Easy to understand
- Helpful examples
- Formatting problems
- Poorly structured
- Too many errors
1/7/2011 (3 of 3 customers found this review helpful) 1.0Not quite the worst book ever By Sam the builder from New Mexico About Me Developer, Educator, Programmer, Sys Admin - Difficult to understand
- Not comprehensive enough
- Off topic
- Too many errors
3/12/2009 (6 of 6 customers found this review helpful) 4.0Good book with a few typos By Eric Lake (etank) from Undisclosed 11/3/2008 (1 of 1 customers found this review helpful) 5.0Great Book for SysAdmins By Alfredo Deza from Undisclosed
|
|
|