书籍详情
Python
作者:(美)琼斯,(美)吉夫特 著
出版社:英伟出版社
出版时间:2009-04-01
ISBN:9787802057388
定价:¥64.00
购买这本书可以去
内容简介
《Python在Unix和Linux系统管理中的应用》展示了Python语言如何提供一种更加高效的方式来处理Unix和Linux服务器管理工作中的各种任务。本书的每一章都会提出一个特定的管理问题,例如并发或数据备份,然后通过实际的例子提供基于Python的解决方案。你将学习使用Python开发一套属于自己的命令行工具,并用来解决一系列范围很广的问题。本书作者们还构建了一个可以免费下载的Ubuntu虚拟机。该虚拟机包含了这本书的源代码,还可以用来运行书中的实例,包括SNMP、IPython、SQLAlchemy和许多其他工具。通过这本书,你将发现Python是怎样帮助你: ·读入文本文件并提取信息 ·使用线程和派生子进程的选项并发地运行多个任务 ·使用网络工具从一个进程传送信息到另一个进程 ·创建更易互动的可点击图形界面工具 ·通过与SNMP交互来用程序监控大型多个集群机器 ·掌握IPython的命令环境来替代或增强Bash、Korn或Z-Shell的功能 ·将云计算集成到基础架构中并编写一个基于谷歌应用程序引擎的应用 ·利用定制脚本来解决特殊的数据备份的挑战 ·使用Django、SQLAlchemy和Storm对象关系模型来与数据库交互通过本书及其辅助虚拟机,你将学习如何打包并部署Python应用程序和库文件,以及如何编写在多个Unix和Linux平台下都运行良好的代码。
作者简介
Noah Gift在加州理工学院、迪斯尼、Feature Animation和Turner Studios具有十年以上的Unix和Linux开发经验。他是Giftcs和Cloud Seed软件公司的合伙人。Jeremy M.Jones是Predictix公司的软件工程师,同时也是开源项目Munkware、ediplex和podgrabber的作者。
目录
Foreword
Preface
1.Introduction
Why Python?
Motivation
The Basics
Executing Statements in Python
Using Functions in Python
Reusing Code with the Import Statement
2.IPython
Installing IPython
Basic Concepts
Help with Magic Functions
Unix Shell
Information Gathering
Automation and Shortcuts
Summary
3.Text
Python Built-ins and Modules
Log Parsing
ElementTree
Summary
4.Documentation and Reporting
Automated Information Gathering
Manual Information Gathering
Information Formatting
Information Distribution
Summary
5.Networking
Network Clients
Remote Procedure Call Facilities
SSH
Twisted
Scapy
Creating Scripts with Scapy
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
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
8.OS Soup
Introduction
Cross-Platform Unix Programming in Python
Pylnotify
OSX
Red Hat Linux Systems Administration
Ubuntu Administration
Solaris Systems Administration
Virtualization
Cloud Computing
Using Zenoss to Manage Windows Servers from Linux
9.Package Management
10.Processes and Concurrency
11. BuildingGUIs.
12. Data Persistence
13.Command Line
14.Pragmatic Examples
Appendix: Callbacks
Index
Preface
1.Introduction
Why Python?
Motivation
The Basics
Executing Statements in Python
Using Functions in Python
Reusing Code with the Import Statement
2.IPython
Installing IPython
Basic Concepts
Help with Magic Functions
Unix Shell
Information Gathering
Automation and Shortcuts
Summary
3.Text
Python Built-ins and Modules
Log Parsing
ElementTree
Summary
4.Documentation and Reporting
Automated Information Gathering
Manual Information Gathering
Information Formatting
Information Distribution
Summary
5.Networking
Network Clients
Remote Procedure Call Facilities
SSH
Twisted
Scapy
Creating Scripts with Scapy
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
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
8.OS Soup
Introduction
Cross-Platform Unix Programming in Python
Pylnotify
OSX
Red Hat Linux Systems Administration
Ubuntu Administration
Solaris Systems Administration
Virtualization
Cloud Computing
Using Zenoss to Manage Windows Servers from Linux
9.Package Management
10.Processes and Concurrency
11. BuildingGUIs.
12. Data Persistence
13.Command Line
14.Pragmatic Examples
Appendix: Callbacks
Index
猜您喜欢