System Administration

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

By David N. Blank-Edelman

If you happen to do structures management paintings of any sort, you should take care of the growing to be complexity of your atmosphere and lengthening calls for in your time. Automating approach management with Perl, moment variation, not just provide you with the correct instruments on your task, but additionally indicates the way to procedure particular difficulties and to safely automate routine projects. up to date and improved to hide the most recent working platforms, applied sciences, and Perl modules, this variation of the "Otter Book" might help you: * deal with consumer money owed

* computer screen filesystems and techniques

* paintings with configuration records in very important codecs resembling XML and YAML

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

* paintings with listing prone like LDAP and energetic listing

* Script e mail protocols and unsolicited mail keep an eye on

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

* keep, video display, and map community providers, utilizing applied sciences and instruments equivalent to SNMP, nmap, libpcap, GraphViz and RRDtool
* increase filesystem, approach, and community safety

This version comprises extra appendixes to get you on top of things on applied sciences comparable to XML/XPath, LDAP, SNMP, and SQL. With this e-book 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

Similar system administration books

Learning Chef: A Guide to Configuration Management and Automation

Get a hands-on advent to the Chef, the configuration administration software for fixing operations concerns in companies huge and small. perfect for builders and sysadmins new to configuration administration, this advisor indicates you to automate the packaging and supply of functions on your infrastructure.

The New Pearl Harbor: Disturbing Questions About the Bush Administration and 9 11

Taking to middle the concept those that take advantage of against the law needs to be investigated, the following the eminent theologian David Ray Griffin sifts in the course of the facts concerning the assaults of Sept. 11 - tales from the mainstream press, studies from out of the country, the paintings of alternative researchers, and the contradictory phrases of individuals of the Bush management themselves - and unearths that, taken jointly, they solid critical doubt at the legitimate tale of that tragic day

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

Example text

5” and make some key substitutions, they may cause trouble. , their program won the race to get at the data in question). Other race conditions occur if you do not handle file locking properly. Race conditions often show up in system administration programs that scan the filesystem as a first pass and then change things in a second pass. Nefarious users may be able to make changes to the filesystem right after the scanner pass so that changes are made to the wrong file. Make sure your code does not leave such gaps open.

Exe) instead of make to build and install a module. Some modules require compilation of C files as part of their build process. A large portion of the Perl users in the Win32 world do not have the necessary software installed on their computers for this compilation, so ActiveState created PPM to handle prebuilt module distribution. The PPM system is similar to that of the CPAN module. pl to handle the download and installation of special archive files from PPM repositories. 03 ppm> install module-name PPM, like CPAN, can search the list of available and installed modules for you.

To make our code recursive, we first encapsulate the operation of scanning a directory and acting upon its contents in a subroutine called ScanDirectory(). ScanDirectory() takes a single argument, the directory it is supposed to scan. It figures out the current directory, enters the requested directory, and scans it. When it has completed this scan, it returns to the directory from which it was called. /usr/bin/perl -s # # # # # Note the use of -s for switch processing. , perl -s script) if you do not have perl file associations in place.

Download PDF sample

Rated 4.48 of 5 – based on 11 votes