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.

RHEL/CentOS Yum Operations

December 14, 2014 – 11:42 pm
968780_94091618

The Yellowdog Updater, Modified has more features than most of us will ever need. Below are some hopefully useful examples that will help keep your system maybe secure by replacing old known bugs with new …

VSFTPd, SSL, and Firewalls

December 5, 2014 – 1:58 pm
network switch

If you ever wanted to configure SSL/TLS encryption for an FTP server behind a firewall, the “Google wisdom” ranges from “a major pain” to “can’t be done”. Fortunately, things are not all that bad. In …

Using Pflogsumm Postfix Log Analyzer

December 4, 2014 – 12:29 am
postfix_logo

Pflogsumm is an oldie but a goodie. It’s a Perl script that sifts through your Postfix server maillog and provides you with a neat summary of events and some statistics. This information can be useful …

Visualizing Apache Logs with Logstalgia

December 4, 2014 – 12:01 am
Visualization

The Logstalgia is a cool graphical utility for visualizing the Apache access_log files. The practical value of Logstalgia is debatable, but it’s entertainment value is not in question. The managers and NOC operators can stare …

Sending Attachments Using Mailx

December 3, 2014 – 2:32 pm
524482_36632318

Sometimes it’s just better to attach a file to your email than to “cat” the contents into the email body. Later versions of mailx support the “-a” option for handling attachments. With the older mailx …

Fail2ban Whitelist IPs

December 2, 2014 – 9:16 pm
OLYMPUS DIGITAL CAMERA

Fail2ban is an excellent security tool that will do a good job safeguarding your server. However, using fail2ban you may run into two issues: friendly fire and inability to permanently ban hostile networks. I already …

Identifying Available IPs on the Network

December 2, 2014 – 2:31 pm
ping_pong-wallpaper-960x600

At some point available IPs on your network may become few and hard to come by. Documentation becomes outdated and does not accurately reflect which IPs are still in use. A good starting point would …

Multithreaded Encryption and Compression

November 24, 2014 – 9:13 am
storage barrels cluster hpc

One problem with encryption is it’s a slow and resource-intensive process. While most encryption software lacks multithreading support, it is possible to use the GNU Parallel to take full advantage of modern multi-core CPUs to …

Using truss and nawk to Trace Solaris Processes

November 18, 2014 – 1:54 pm
HP-Greets-IBM-2

Here’s the problem I ran into today on a Solaris 11 SPARC server: an application UI would occasionally freeze for a few second when executing a particular function. Nobody could quite figure out where the …

Filesystem Syncronization with Lsyncd

November 15, 2014 – 3:05 pm
poi002

Lsyncd monitors a local filesystem for changes and mirrors those changes to a filesystem on a remote server. The advantage of lsyncd over rsync is the former’s ability to detect filesystem changes without having to re-scan …

Toilet Fun

October 24, 2014 – 1:49 pm
murage-toilet2

It’s been a slow Friday afternoon at the office, so I decided to pimp my VM. The tool of choice is “toilet“. Depending on your flavor, this may or may not be easy to install. …

Resizing Hitachi VSP LDEVs (LUNs)

October 23, 2014 – 2:06 pm
technology-hard_00400654

Resizing Hitachi VSP LUNs (aka LDEVs) is a quick and simple task. Unfortunately, due to Hitachi Storage Navigator’s archaic design, the LDEV resize function, while easy to use, is not easy to find. So, here’s …

Adding Swap with Solaris 11 ZFS

October 22, 2014 – 4:24 pm
HP-Greets-IBM-2

With the swap partition residing on a ZFS filesystem, you have an easy way of adding swap on the fly. Reducing swap is not quite so simple, but we’l talk about that later. To check …

Rescanning New LUNs on VNX

October 16, 2014 – 10:49 am
hard-disk_00416535

Just a quick background of the little problem I ran into with our VNX: after creating a couple of LUNs for the mapped file pool using Unisphere, I clicked “Rescan Storage Systems” and got “This …

Enable NTP Client on Solaris 11

October 7, 2014 – 8:27 pm
solaris-logo

Just some quick instructions for configuring and enabling NTP client on Solaris 11.

Remove Duplicate IPTables Rules

September 24, 2014 – 6:26 pm

Duplicate entries may appear in your iptables configuration due to parallel efforts of various network security-related applications that may be running on your server. In most cases, having duplicate iptables rules is no big deal, …

Block WordPress Attackers With IPTables

September 23, 2014 – 3:56 pm
apache_logo

After installing LogStash, I noticed server load went from around 1.2 to 50+. This was cause by a brute-force attack against WordPress wp-login.php from some IP in France (of all places). While LogStash should not …

Patching Binary Files in Bash

September 18, 2014 – 12:17 pm
968780_94091618

Just the other day I ran into a particularly annoying issue: after an application upgrade, all printed documents had “<<bbj>>~D” on the first line. The application sends EPS files to the CUPS print server. For whatever reason, …

CUPS Printing to a File

September 17, 2014 – 7:17 pm
shell

Using CUPS to print to a file instead of an actual printer is a great idea for troubleshooting and archiving purposes. This saves trees but, most importantly, saves you the walk to the printer. So, how …

PHP Unable to allocate memory for pool

September 9, 2014 – 10:57 pm
apache

The following error may be found in /var/log/httpd/${domain}/error_log when APC memory is set too low: “PHP Warning: require_once(): Unable to allocate memory for pool”. APC is Alternative PHP Cache. You can check the version of …

Getting Epoch Time on Solaris 10 and Older

September 8, 2014 – 3:57 pm
solaris-logo

You can get the epoch time on Solaris 11 and Linux simply by running the date command:

Quick Setup of Salt on CentOS/RHEL

August 21, 2014 – 2:58 pm
salt

Just some quick notes on installing and configuring Salt master server and minions to run remote commands for various sysamdin needs.