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.

Home » Archive by Category

Articles in Featured

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 …

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.

Searching Files for Text Strings

July 28, 2014 – 4:22 pm
binoculars watch security rifle gun

In the past, I’ve posted a couple of versions of this script in Bash and Korn shell. Here’s a much-expanded and improved Bash version. The script will take your input and look for files containing …

Recovering Deleted /bin on CentOS

June 25, 2014 – 1:54 pm
fail

So, as the saying goes, shit happens and the other day I accidentally deleted /boot on a CentOS 6 box. I have NetBackup running on the system, so this would not have been a problem …

Disable Formatting When Pasting into Outlook

June 24, 2014 – 9:25 pm
outlook_001

By default, Outlook will preserve source text formatting during copy/paste operations. At times this can be very annoying, especially when composing emails of technical nature. There’s a good chance your email will end up looking …

What To Do When Windows Ignores SD Card

June 22, 2014 – 11:17 pm
sd_card_001

Here’s a common scenario: you insert or swap and SD card in your laptop and… nothing happens. Sometimes Windows decides to ignore the SD card for reasons unknown (well, the true reason is it’s Windows). …

Permanently Ban IP with Fail2Ban

June 9, 2014 – 12:12 am
video security camera

If you’re not familiar with Fail2Ban: it’s a log analysis tool that detects failed login attempts for your SSH, FTP, etc services and uses IPTools firewall to temporarily drop connection requests from the offending IP addresses. …

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. …

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 …

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.

Dealing with Full Filesystems

June 25, 2013 – 11:03 am
hard drive disk

Filled up filesystems is a recurring condition eating up sysadmin time on a regular basis. Some studies show that filesystems running out of space are responsible for most day-to-day issues handled by IT departments. Disk …

Quickly Grow EMC Celerra Filesystem

June 21, 2013 – 11:22 am
grow001

As we all know, Celerra and its kin can get a bit annoying with their “filesystem over 90%” warning emails. Enabling the “autoextend” feature for the filesystems is one option, but if you are a control …

Watch the Log

June 18, 2013 – 8:06 pm
hacker computer

In the past few days my Postfix server has been having occasional problems talking to the mail gateway. They problem would come and go. The Postfix server would timeout trying to connect to the gateway and keep …

Bash scripting: lists and random things

April 16, 2013 – 12:39 pm
dice001

Imagine you have an HPC cluster with a hundred compute nodes named node001-node100. The two commands below will help you generate a list of node names – either all name on one line or one name per …

iPhone Stopped Syncing with Google Calendar

April 3, 2013 – 3:05 pm
apple

A small but potentially annoying problem: on rare occasions, your iPhone/iPad may decide your calendar looks full enough and will stop syncing with your Google calendar. This is a situation where:

Calendar sync between your iDevice and …