Automating System Administration with Perl: Tools to Make by David N. Blank-Edelman

Posted by

By David N. Blank-Edelman

For those who do structures management paintings of any variety, you want to take care of the starting to be complexity of your setting and lengthening calls for in your time. Automating process management with Perl, moment variation, not just provide you with the precise instruments to your activity, but additionally indicates how one can procedure particular difficulties and to safely automate ordinary projects. up-to-date and accelerated to hide the newest working structures, applied sciences, and Perl modules, this variation of the "Otter Book" may also help you: * deal with person bills

* computer screen filesystems and techniques

* paintings with configuration documents in very important codecs corresponding to XML and YAML

* Administer databases, together with MySQL, MS-SQL, and Oracle with DBI

* paintings with listing companies like LDAP and energetic listing

* Script electronic mail protocols and junk mail regulate

* successfully create, deal with, and research log records Administer community identify and configuration companies, together with NIS, DNS and DHCP

* continue, visual display unit, and map community companies, utilizing applied sciences and instruments corresponding to SNMP, nmap, libpcap, GraphViz and RRDtool
* enhance filesystem, method, and community safety

This variation comprises extra appendixes to get you on top of things on applied sciences reminiscent of XML/XPath, LDAP, SNMP, and SQL. With this booklet in hand and Perl on your toolbox, you are able to do extra with less--fewer assets, much less attempt, and much much less hassle.

Show description

Read or Download Automating System Administration with Perl: Tools to Make You More Efficient PDF

Best system administration books

Multimediale Client-Server-Systeme

Multimediale Client-Server-Anwendungen (insbesondere sog. wealthy net Applikationen) entwickeln sich rasant. Die Gründe hierfür sind steigende Bandbreiten im web, ausgereifte Kompressionstechnologien sowie leistungsstarke Endgeräte. Die Anwendungen sind mittlerweile so attraktiv, dass diese mit dem klassischen Unterhaltungsmedium Fernsehen konkurrieren können.

Apache: The Definitive Guide (3rd Edition)

Apache is way and away the main established internet server platform on the earth. this flexible server runs greater than half the world's latest sites. Apache is either unfastened and rock-solid, operating greater than 21 million sites starting from large e-commerce operations to company intranets and smaller pastime websites.

GlassFish Administration

Administer and configure the GlassFish v2 software server Get GlassFish put in and configured prepared to be used combine GlassFish with well known Open resource items reminiscent of Open MQ, Open DS, and Apache lively MQ, and get them operating jointly in a loosely-coupled demeanour Configure source varieties like JDBC, Java Connector structure (JCA), JavaMail periods, and customized JNDI supported in GlassFish to simplify source entry and integration safe, display screen, troubleshoot, and track your program server example intimately to construct a robust creation atmosphere in your Java EE platforms, you would like a good program server, and the abilities to regulate it.

Additional info for Automating System Administration with Perl: Tools to Make You More Efficient

Example text

It’s Not Easy Being Omnipotent Before we continue with the book, let’s take a few minutes for some cautionary words. , as root or Administrator). With this power comes responsibility. There is an extra onus on us as programmers to write secure code. We write code that can and will bypass the security restrictions placed on mere mortals. Tiny mistakes can lead to severe disruptions for our users or damage to key system files. And, if we are not careful, less “ethical” users may use flaws in our code for nefarious purposes.

But if you can, avoid having your code run in a privileged context. Most tasks do not require root or Administrator privileges. For example, your log analysis program probably does not need to run as root. Create another, less privileged user for this sort of automation. Have a small, dedicated, privileged program hand the data to that user if necessary, and then perform the analysis as the unprivileged user. Drop Your Privileges As Soon As Possible Sometimes you can’t avoid running a script as root or Administrator.

Since wanted() is called once per file or directory name, it is important to make the code in this subroutine short and sweet. The sooner we can exit the wanted() subroutine, the faster the File::Find::find() routine can proceed with the next file or directory, and the speedier the overall program will run. It is also important to keep in mind the behind-the-scenes portability concerns we mentioned a moment ago. It would be a shame to have a portable File::Find::find() call an OS-specific wanted() subroutine, unless this was unavoidable.

Download PDF sample

Rated 4.51 of 5 – based on 13 votes