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.

BASH History Control

May 12, 2015 – 12:01 pm
shell

The standard output of the “history” command will show you the last one thousand commands executed by the user. This is useful, of course, but there are a few issues. Sometimes it’s important to know …

Verify Email SSL Certificate from CLI

May 8, 2015 – 10:36 am
postfix_logo

Just a quick reference for validating SSL certs on mail servers. This is not something I have to do often, but when the need arises, I find myself googling the answer every single time. So …

Extending Swap on LVM2 Logical Volume

May 7, 2015 – 11:16 am
hard-disk_00416535

To grow swap on LVM you will need to temporarily disable the swap LV. This will leave without swap space, which may upset some applications (Oracle). So the first step should be to set up …

Faking the Uptime in Linux

May 4, 2015 – 10:05 pm
968780_94091618

If, for whatever reason, you need to fake the Linux server uptime, there is a hacked kernel module you can use. The instructions are below.

Resetting HP ILO from OS

May 4, 2015 – 11:02 am
hp_ilo_001

You can use ipmitool package in Linux to reset your HP server’s ILO password. The basic instructions are below.

Removing CTRL-M from Unix Files

April 16, 2015 – 4:44 pm
968780_94091618

This is a simple but annoying and persistent problem: text files edited on Windows and the uploaded to Unix acquire the “^M” character at the end of each line. In my experience, this little problem …

Observium Agent Installation on Pidora

April 13, 2015 – 11:50 am
raspberry_pi_wallpaper_by_rbininger-d5w5jk1

Just some quick notes on installing Observium agent on Raspberry Pi running Pidora. Pretty much the same process applies to any Fedora-like flavor.

Log Event Time Distribution

April 2, 2015 – 11:04 am
1378002_16584036

When “once in a while” answer is insufficient and you need to know exactly how often a particular event occurs on the system, there are a few easy things you can try from command line.

A Better Mysqlcheck Script

April 2, 2015 – 10:44 am
SQL_query

Mysqlcheck is a stand-alone MySQL utility for checking, optimizing and repairing tables. It’s a useful tool that allows automating the usually time-consuming database maintenance tasks. One of the advantages of mysqlcheck it is ability to run …

Late Night Rant #26

March 30, 2015 – 12:30 am
picard-facepalm-text-569

When you’ve ls’d, grepped, catted, piped and tailed everything on your computer and there is absolutely nothing left to do, there’s always this…

Protected: Raspberry Pi 2 and OpenELEC/Kodi Configuration Notes

March 15, 2015 – 12:01 pm

There is no excerpt because this is a protected post.

Login Monitor

March 6, 2015 – 12:02 am
dont_panic

Sometimes after a couple of beers I start feeling paranoid. I make sure the door is locked and check my firewall logs. Here’s a very basic script to monitor your server’s login record and notify you about …

IMDB Lookup Script

March 5, 2015 – 1:02 pm
old film projector with dramatic lighting

IMDB is one of the most complete movie and television databases on the Internet. It offers an advanced Web search UI, but Unix CLI support has been discontinued years ago and the old scripts no …

Ad-Hoc Analysis of /var/log/secure

February 28, 2015 – 9:41 pm
keys_security_lock_01

The /var/log/secure contains a record of authentication and authorization activity on the system. It can be an invaluable resource for the purposes of intrusion detection and prevention. Below are a few simple examples that show how …

Salt Configuration Notes

February 25, 2015 – 12:44 pm
salt crystals

Here are just some random notes on installing and configuring salt-master and salt-minion services. I figured I better write this down before I forget. Most of this is covered in official documentation, but in a very nonchalant …

Installing Salt Minion on RHEL5

February 19, 2015 – 10:38 am
salt_lake_001

As of recently, python26-distribute has been removed from EPEL5 due to lack of support and attempting to install salt-minion on RHEL5 will throw a dependency error. If you are still running RHEL5, you would need …

Salt Snippets

February 17, 2015 – 10:12 pm
Spoon_Salt_Sugar_Black_Pour_1920x1200

SaltStack has decent documentation (at least compared to Puppet), but it’s a bit lacking on examples. There’s plenty of simple stuff that is useful if you’re managing a handful of nodes. However, why would you …

Late Night Rant #25b

February 17, 2015 – 5:41 pm
istock-18586699-monkey-computer

No sooner than I stopped complaining about HP’s “holy” Web site, I ran into a similar issue with Red Hat’s site. And that doesn’t happen very often. Unlike HP, Red Hat folks tend to take better …

Late Night Rant #25: HP’s Web Site Fail

February 12, 2015 – 6:24 pm
fail

I’ve already mentioned my dislike for the epic mess of broken links HP gingerly called its Web site. Nearly a year-and-a-half later the situation did not improve. Actually, it might have gotten worse.

Memory Utilization-by-User

February 10, 2015 – 5:13 pm
ram_memory_chip-wallpaper-1280x720

Here’s a useful one-liner (sort of) that will show you memory utilization details by user ID on Linux (RHEL, Fedora, CentOS) systems. This may come in handy when trying to figure out who is eating …

Late Night Rant #24: North Korean Internet

December 22, 2014 – 8:05 pm
North_Korea-Pyongyang-Computer_class_at_a_school-01

Today was the day the North Koreans would have learned they had the Internet and the Americans DDOSed it. Unfortunately, they had no Internet, poor bastards. But, as long as this keeps us entertained… Hey, …

Late Night Rant #23: Kim The Sony-Slayer

December 17, 2014 – 10:09 pm
OLYMPUS DIGITAL CAMERA

Sony execs are shedding crocodile tears over the latest IT security breach that brought substantial financial losses to the company. Let’s not dwell on the trivial: who did it and why are irrelevant technicalities. How …