Featured »

March 2, 2022 – 2:00 pm

Books have been written on the subject of awk and sed. Here’s a small sample of commands I put together over the years that are useful for everyday system administration tasks. Most of these tasks …

Read the full story »
Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

NTP Client Configuration on CentOS

May 15, 2014 – 8:31 pm
1378002_16584036

Just some quick note on configuring NTP client on CentOS/RHEL/Fedora and forcing time update. Just got tired of having to remember these steps every time I run into NTP.

Searching Log Files

April 18, 2014 – 4:40 pm
postfix_logo

This is a quick example of finding the first and last occurrence of an event in the log file. This can be useful for determining the service outage window and for general troubleshooting. In the example below I am looking at the PostFix maillog file, trying to figure out the duration of the problem I’ve been having with one of the mail relay servers.

Looking for Recently Changed Files

April 3, 2014 – 2:55 am
1378002_16584036

Locating most recently-modified files in the current directory is easy: ls -alt | head. However, searching a directory structure for recent changes may prove a little more challenging. The most common approach is to use …

Installing CentOS 6.x From USB

January 16, 2014 – 12:23 am
computer frustration

If at all possible, don’t do it. Find a blank DVD-RW and burn the ISO file. Most current Linux distros can be easily put on a USB stick using freely-available utilities and installed without a hassle. CentOS is not one of them. It would appear, CentOS was designed specifically to make installation from a USB stick a professional challenge for a seasoned sysadmin.

Matching Installed RPMs on Two Systems

January 6, 2014 – 10:02 pm
dump truck

The basic problem is this: you have server “A” with a bunch of packages -let’s say PHP-related stuff – installed you need for you application. You need to get the same application working on server “B”, which is not an exact copy of server “A” and is missing some of the packages.

Searching Large Database Tables

December 9, 2013 – 9:19 pm
dump truck

Recently I ran into a little problem: I needed to make a simple Web UI allowing users to search a database table containing a copy of the Postfix maillog for quarantined mail addressed to them. …

WordPress Remove Extra Line Breaks

December 2, 2013 – 3:09 pm
wordpress

Frequently, imported posts or posts created by auto-blogging plugins will create unnecessary tabs, newlines, and line breaks. This has a negative impact on readability and aesthetics of your site. If you cannot address the problem …

MySQL mysqlhotcopy Script

December 2, 2013 – 1:30 pm
logo_mysql

Here’s a simple script to automate mysqlhotcopy runs from cron to backup multiple MySQL databases. The script loops through the list of databases and kicks off an instance of mysqlhotcopy in the background for each one. Really, …

Monday Rant: HP’s Web Site Fail

November 18, 2013 – 8:21 pm
hp-shipping-1

Every time I come across a link leading to HP’s angry garden salad of a Web site, I feel as if I stepped in chewing gum. Unfortunately for me, being a sysadmin means I have …

Dynamic Variables in BASH

October 10, 2013 – 9:32 am
shell

Assigning variables is easy if you know how many you have and what they are called. The value of a variable can be, well, variable. But the names and number of variables need to be …

VMware vCenter Converter Standalone Notes

October 9, 2013 – 11:28 am
Grapevinesnail_01

The vCenter Standalone Converter is a handy app you can run on your Windows or Linux PC to to P2V a remote server. As convenient as the Converter is, there are a few gotchas that …

Free Rescue CDs for Windows

October 5, 2013 – 11:32 am
cd_dvd_001

This is just a quick summary of the more popular rescue CDs out there. All of these are Unix-based bootable ISOs. Some are available as self-burning EXE files, which may be useful if you don’t …

Linux Man Pages (man1)

October 1, 2013 – 3:03 pm
shell

The current version of manual pages for the most common Linux commands and options. Just for your online convenience.

My Script Won’t Run from Cron!

September 27, 2013 – 10:36 am
shell

This is a fairly common issue with running scripts from root cron: the script works perfectly when ran manually from command line, but fails in unexpected ways when running automatically from root cron.

Script to Verify Passwordless SSH Access

September 19, 2013 – 1:33 pm
OLYMPUS DIGITAL CAMERA

If you have passwordless SSH configured on multiple servers, it’s a good idea to verify your access from time to time. This task may get rather tedious with a large number of remote systems. The simple script below will cycle through a list of servers and make sure you can access them without being prompted for a password. Any failures will be saved in the CSV file for later analysis.

Celerra NFS/CIFS Mixed Permissions Mode

September 17, 2013 – 11:21 am
symm001

This is a quick reminder on how to configure a Celerra filesystem for dual NFS/CIFS access where Windows-side permissions would translate correctly to the NFS side. By default, Celerra datamover will mount filesystems in “Native” mode. In this case, a file or folder created by a Windows user via the CIFS share will take on the default Unix permissions on the NFS side: 755 for folders and 644 for files.

Configure Anonymous FTP on Solaris 10

August 25, 2013 – 2:30 pm
logo_sun

Below are basic steps for configuring anonymous FTP service on Solaris 10. Use with caution.

Enable Basic FTP Server on Solaris 10

August 22, 2013 – 2:22 pm
solaris-logo

Here are a few simple steps to enable a basic FTP server on Solaris 10.

Simple Network Discovery

August 21, 2013 – 11:38 am
1139316_45970912

The bash script below will scan the specified IP range and use dig and nmap to try to determine the fully-qualified domain name, type and the operating environment of any device that responds to network …

Basic Samba Configuration on Solaris 10

August 20, 2013 – 2:21 pm
logo_sun

Here’s a sample process for installing and configuring a basic Samba server on Solaris 10.

Solaris 10 NFS Server Configuration

August 16, 2013 – 2:01 pm
logo_sun

As far as NFS servers go, I think the best platform in terms of performance and stability is Solaris running on SPARC architecture. Perhaps this has something to do with the fact that NFS was created for Solaris. Over the years I’ve been working with NFS servers on AIX, HP-UX, Linux, BSD, etc. It always worked better on Solaris.

RPC: Authentication When Mounting Solaris NFS Share

August 16, 2013 – 1:37 pm
logo_sun

When mounting an NFS share from a Solaris 10 server, you may encounter the “RPC: Authentication” error. You may notice that you are able to mount the share via NFSv4, not not NFSv3. On the NFS server the /var/adm/messages may show the following errors for the client…