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.

Samba Flexible Character Mapping

March 1, 2017 – 6:33 pm
logo-samba1

This is probably old news to most of you, but I just found out: Samba v 3.5+ has a new option for flexible mapping of filename characters. Unix filenames allow certain characters that Windows filename …

Install Webmin on CentOS and Redhat

February 27, 2017 – 2:10 pm
webmin_layout

Just a quick short-hand to installing Webmin on CentOS/RHEL. The latest Webmin version comes with a cool new interface theme. You should check it out.

Recover Crontabs from Log

February 27, 2017 – 12:15 am
clock tower

Some time ago I was using PDSH to update root crontab on a bunch of servers and ran into what looked like a PDSH-specific bug. The same command that worked just fine when executed locally or …

Managing VMs with PowerCLI

February 20, 2017 – 5:45 pm
storage barrels cluster hpc

Below is a collection of useful Power-CLI one-liners (or thereabouts) that can speed up your script-writing efforts. As everything Windows, things change often and for no obvious reason, so expect to see type is deprecated and …

Sun T-Series ILOM and Solaris 11 Network Configuration

February 20, 2017 – 11:16 am
HP-Greets-IBM-2

Just some quick notes on setting up Oracle Sun T-series server ILOM and network aggregation with LACP. I don’t get to do this very often, so every time it’s a struggle to remember, with much …

Monitoring DNS Queries

January 27, 2017 – 7:20 am
shell_0005

Recently I’ve been decommissioning old DNS servers and those things are notoriously hard to get rid of. The problem was that the IP addresses could not be preserved. I needed to track down every incoming …

DHCP Server Log Analysis

January 24, 2017 – 5:51 pm
servers_003

A quick script to go through your DHCP server log and get a summary of MAC addresses and associated DHCP requests. The script will attempt to download the IEEE OUI list for identifying the manufacturers …

Google Search Tips

January 15, 2017 – 10:17 pm
oskjdhhd

Google has some advanced search features that few people use, which is a shame. Here are some of them, by Karl Hindle. I am sure there are a few more, but these are the more …

Real-Time Log Stats With Logtop

December 30, 2016 – 1:00 am
logs_001

Logtop is an awesome, albeit a little quirky, real-time log analysis tool developed by Julien Palard. You should use logtop when time is of the essence. When you cannot wait for your cron job to run …

Awesome Shell

December 24, 2016 – 3:52 pm
shell_0007

An excellent collection of programs and scripts to extend your shell’s capabilities.

Rsync Time Backup

December 22, 2016 – 3:46 pm
dlt tape backup

This is a simple wrapper for the awesome rsync-time-backup script by Laurent Cozic. Through clever use of hard links rsync-time-backup greatly speeds up incremental backups and saves disk space.

Grepping for IPs

December 11, 2016 – 5:47 pm
shell_0007

This is a small collection of tools and examples for working with IP addresses and ranges in Bash. This post is not meant to be a complete reference, rather a practical how-to guide.

Removing Strings from Binary Log Files

November 14, 2016 – 12:52 pm
shell_0004

Below is a quick script that will replace specified strings in binary files with random values. A word of caution: the script will preserve the file’s original ctime by briefly changing system time. Obviously, this requires …

Copying a VM between VCenters

November 12, 2016 – 6:13 pm
cat_001

I had a little task: clone an operational VM from one VCenter to another. Normally, for such a task I would use the Standalone Converter. Unfortunately, this time I ran into an annoying SSH key …

Watching VSFTP

November 8, 2016 – 10:56 pm
servers_006

I have an FTPS server running VSFTP and below is collection of commands useful for monitoring activity and analyzing the logs.

Agedu – Finding Old Files

November 7, 2016 – 3:35 pm
filing cabinet files

I almost never delete anything (not on purpose anyway). Having said that, sometimes I do need to find old data on a server and offload it to a NAS. Agedu has been around for ages. …

Monitoring Solr Cores

November 1, 2016 – 10:50 pm
binoculars watch security rifle gun

The Cloud tab of the Solr Web UI is convenient, but not for monitoring purposes. Just like you, I hate XML and parsing it from shell is more convoluted that it needed to be. But …

Tracking Emails in Postfix Logs

October 27, 2016 – 6:02 pm
postfix_logo

Depending on your Postfix configuration, the same email may cycle through the postfix queue several times, changing it’s queue ID and making it difficult to track. For example, if you have Amavis configured for spam and …

Gather MX Records for a List of Domains

October 26, 2016 – 3:45 pm
email_004

This is a simple one: get a list of MX records for the given domains and output into CSV file. Really, the only interesting part of this is the use of array to temporarily store …

Installing Alternative Java Versions on RHEL/CentOS

October 26, 2016 – 2:23 pm
java_002

Below is shorthand for installing alternative versions of Java on your RHEL/CentOS system. This may come in useful for the purposes of testing.

Loan Payment Calculator in Bash

October 13, 2016 – 5:53 pm
968780_94091618

Just a little bit of fun with Bash: a loan payment calculator. Nothing fancy here. Maybe I’ll add the amortization schedule to it later…

Installing NetData on RHEL/CentOS

October 13, 2016 – 5:50 pm
overloaded

NetData is a real-time system monitor great for visualizing performance data. Instances of netdata run independently on monitored systems. The results can be accessed remotely and grouped into a single dashboard view, making this tool highly scalable. …