Python for Unix and Linux system administration
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. Eac...
Autor principal: | |
---|---|
Otros Autores: | |
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Sebastopol, California :
O'Reilly
2008.
|
Edición: | 1st edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627424706719 |
Tabla de Contenidos:
- Table of Contents; Foreword; Preface; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments; Noah's Acknowledgments; Jeremy's Acknowledgments; Chapter 1. Introduction; Why Python?; Motivation; The Basics; Executing Statements in Python; Summary; Using Functions in Python; Reusing Code with the Import Statement; Chapter 2. IPython; Installing IPython; Basic Concepts; Interacting with IPython; Tab Completion; Magic Edit; Configuring IPython; Help with Magic Functions; Unix Shell; alias; Shell Execute; rehash; rehashx; cd; bookmark; dhist
- pwdVariable Expansion; String Processing; sh Profile; Information Gathering; page; pdef; pdoc; pfile; pinfo; psource; psearch; who; who_ls; whos; History; Readline support; hist command; History results; Automation and Shortcuts; alias; macro; store; reset; run; save; rep; Summary; Chapter 3. Text; Python Built-ins and Modules; str; Creating strings; Built-in methods for str data extraction; Unicode strings; re; Apache Config File Hacking; Working with Files; Creating files; Reading files; Writing files; Additional resources; Standard Input and Output; StringIO; urllib; Log Parsing
- ElementTreeSummary; Chapter 4. Documentation and Reporting; Automated Information Gathering; Receiving Email; Manual Information Gathering; Information Formatting; Graphical Images; PDFs; Information Distribution; Sending Email; Sending basic messages; Using SMTP authentication; Sending attachments with Python; Trac; Summary; Chapter 5. Networking; Network Clients; socket; httplib; ftplib; urllib; urllib2; Remote Procedure Call Facilities; XML-RPC; Pyro; SSH; Twisted; Scapy; Creating Scripts with Scapy; Chapter 6. Data; Introduction; Using the OS Module to Interact with Data
- Copying, Moving, Renaming, and Deleting DataWorking with Paths, Directories, and Files; Comparing Data; Using the filecmp Module; Using os.list; Merging Data; MD5 Checksum Comparisons; 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; SNMP Overview; SNMP Installation and Configuration; IPython and Net-SNMP; Discovering a Data Center
- Retrieving Multiple-Values with Net-SNMPFinding Memory; Creating Hybrid SNMP Tools; Extending Net-SNMP; SNMP Device Control; Enterprise SNMP Integration with Zenoss; Zenoss API; Using Zendmd; Device API; Chapter 8. OS Soup; Introduction; Cross-Platform Unix Programming in Python; Using SSH Keys, NFS-Mounted Source Directory, and Cross-Platform Python to Manage Systems; Creating a Cross-Platform, Systems Management Tool; Creating a Cross-Platform Build Network; PyInotify; OS X; Scripting DSCL or Directory Services Utility; OS X Scripting APIs; Automatically Re-Imaging Machines
- Managing Plist Files from Python