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

By David N. Blank-Edelman

If you happen to do platforms management paintings of any sort, you should take care of the transforming into complexity of your setting and lengthening calls for in your time. Automating method management with Perl, moment variation, not just provides you with the appropriate instruments in your task, but in addition indicates how one can technique particular difficulties and to soundly automate routine projects. up to date and elevated to hide the newest working platforms, applied sciences, and Perl modules, this version of the "Otter Book" may help you: * deal with person money owed

* video display filesystems and approaches

* paintings with configuration documents in vital codecs resembling XML and YAML

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

* paintings with listing companies like LDAP and lively listing

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

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

* retain, video display, and map community providers, utilizing applied sciences and instruments akin 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 equivalent to XML/XPath, LDAP, SNMP, and SQL. With this ebook 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 Online or Download Automating System Administration with Perl: Tools to Make You More Efficient PDF

Similar system administration books

Mastering Windows Server 2012 R2

Try out the recent Hyper-V, locate new and more uncomplicated how you can remotely attach again into the place of work, or examine all approximately garage Spaces—these are only some of the gains in home windows Server 2012 R2 which are defined during this up to date version from home windows authority Mark Minasi and a workforce of home windows Server specialists led by way of Kevin Greene.

Windows 2000 administration in a nutshell: a desktop quick reference

An individual who installs home windows 2000, creates a person, or provides a printer is a 2000 process administrator. This ebook covers all of the very important daily administrative initiatives, and the instruments for acting each one activity are integrated in a convenient easy-to-look-up alphabetical reference. what is the similar and what is assorted among the home windows 2000 and home windows NT platform?

1997 Uniform Building Code, Vol. 1: Administrative, Fire- and Life-Safety, and Field Inspection Provision

This well known code, nonetheless in use in lots of shops, is now on hand from Delmar studying! A confirmed record assembly the wishes of presidency untis charged with enforcement of establishing law. offers whole laws protecting all significant features of establishing layout and development when it comes to hearth and existence protection and structural security.

Introducing Windows Server 2008 R2

Home windows Server 2008 R2, or just R2 for brief, is the second one unencumber of home windows Server 2008This booklet is concentrated basically at home windows server directors who're liable for hands-on deployment and day by day administration of Windows-based servers for giant corporations. home windows server directors deal with dossier and print servers, community infrastructure servers, net servers, and IT software servers.

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

Sample text

Perl comes with a module called File::Find that allows it to emulate the Unix find command. The easiest way to begin using this module is to use the find2perl command to generate prototypical Perl code for you. 26 | Chapter 2: Filesystems For instance, let’s say you need some code to search the /home directory for files named beesknees. The command line that uses the Unix find command is: % find /home -name beesknees -print Feed the same options to find2perl: % find2perl /home -name beesknees -print and it produces: #!

If ( -d $name ) { # is this a directory? ScanDirectory($name); next; } CheckFile($name) or print cwd. '/' . $name . \n"; sub CheckFile { my $name = shift; print STDERR 'Scanning ' . cwd . '/' . $name . '); The difference between this code and our last example is the addition of a subroutine to check each file encountered. , its size). If we can’t, we know the file is damaged. If we can read the directory information, we attempt to open the file. And for a final test, we attempt to read every single byte of the file.

N"; Walking or Traversing the Filesystem by Hand | 21 This provides us with a directory handle, $DIR in this case, which we can pass to readdir() to get a list of all the files and directories in the current directory. '); # skip the current directory entry # skip the parent directory entry if (-d $name) { # is this a directory? print "found a directory: $name\n"; next; # can skip to the next name in the for loop } if ($name eq 'core') { # is this a file named "core"? \n"; } } That’s all it takes to write some very simple code that scans a single directory.

Download PDF sample

Rated 4.42 of 5 – based on 46 votes