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

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

David N. Blank-Edelman

Language: English

Pages: 670

ISBN: 059600639X

Format: PDF / Kindle (mobi) / ePub

If you do systems administration work of any kind, you have to deal with the growing complexity of your environment and increasing demands on your time. Automating System Administration with Perl, Second Edition, not only offers you the right tools for your job, but also suggests the best way to approach specific problems and to securely automate recurring tasks. Updated and expanded to cover the latest operating systems, technologies, and Perl modules, this edition of the "Otter Book" will help you:
  • Manage user accounts
  • Monitor filesystems and processes
  • Work with configuration files in important formats such as XML and YAML
  • Administer databases, including MySQL, MS-SQL, and Oracle with DBI
  • Work with directory services like LDAP and Active Directory
  • Script email protocols and spam control
  • Effectively create, handle, and analyze log files Administer network name and configuration services, including NIS, DNS and DHCP
  • Maintain, monitor, and map network services, using technologies and tools such as SNMP, nmap, libpcap, GraphViz and RRDtool
  • Improve filesystem, process, and network security

This edition includes additional appendixes to get you up to speed on technologies such as XML/XPath, LDAP, SNMP, and SQL. With this book in hand and Perl in your toolbox, you can do more with less--fewer resources, less effort, and far less hassle.

Shell Scripting: Expert Recipes for Linux, Bash and more

C Primer Plus (5th Edition)

Mastering VMware vSphere 6

Sams Teach Yourself Apache 2 in 24 Hours
















usri4_primary_group_id; LPWSTR usri4_profile; LPWSTR usri4_home_dir_drive; DWORD usri4_password_expired; Without knowing anything about these parameters, or even much about C at all, you can still tell that a change in level increases the amount of information that can and must be specified as part of the user creation process. Also, it should be obvious that each subsequent information level is a superset of the previous one. What does this have to do with Perl? Each of the modules I’ve

“OK” buttons to be pushed, freeing the administrator from having to babysit the install. Software installation mechanisms that do not offer this mode (and there are far too many of them) make a system administrator’s life difficult. Win32::Setupsup helps deal with these deficiencies: it can find information on running processes and manipulate them (or manipulate them dead if you so choose). For instructions on getting and installing Win32::Setupsup, refer to the section “Module Information for

headers, comments, and separators to the data. Here’s some example output using the exact same database: # # # # # # # # # # # host file - GENERATED BY createhosts3 DO NOT EDIT BY HAND! Converted by David N. Blank-Edelman (dnb) on Sun Jun 8 00:43:24 2008 number of hosts number of hosts number of hosts total number of in the in the in the hosts: design department: 1. software department: 1. IT department: 2. 4 # Owned by Cindy Coltrane (IT): west/143 bendir ben bendoodles # Owned

query. Our program will concern itself strictly with the first three of these sections. We’ll be using a set of pack() commands to create the necessary data structure for a DNS packet header and packet contents. We’ll pass this data structure to the IO::Socket module that handles sending this data out as a packet. The same module will also listen for a response on our behalf and return data for us to parse (using unpack()). Conceptually, this process is not very difficult. There’s one twist to

modules or update them via the Comprehensive Perl Archive Network (CPAN). Strawberry Perl aims to provide an environment where compilation and CPAN use are easy (or at least possible) and are the norm. I think this is an excellent project because it is helping to push some portability back into the non-Win32 Perl community. Some great progress has been made so far, but the project is still fairly young as of this writing and it does not yet have a sufficiently large ecosystem of available modules

Download sample