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.

BIND DNS Query Frequency Analysis

September 6, 2016 – 1:30 pm
overloaded_0001

The little script (dns_qpm2) below will look through your BIND query logs and calculate average query-per-minute rate for the given clients.e Nothing fancy, but can be useful in identifying the heavy-hitters.

Using YUM to Sync Packages with Master Server

August 21, 2016 – 10:40 pm
hard drive disk

I just built a new CentOS box and needed to make sure it had all the same packages installed as one of my other servers. If you need to set up your own web server …

Razer Mechanical Keyboard Case

August 21, 2016 – 1:15 pm
rz001

A really cool mechanical keyboard case for iPad Pro by Razer. Almost makes me wanna get the iPad, just so i can get this keyboard.
http://www.razerzone.com/gaming-keyboards-keypads/razer-mechanical-keyboard-case-ipad-pro

Check Filesystem Mount Status

August 20, 2016 – 1:44 pm
hard_disk_drive_hdd_0002

Sometimes you just need to do a quick sanity check on the filesystem mount status to make sure everything in fstab is mounted and everything’s that mounted is in the fstab. If, like myself, you’re a fan …

Atop Script with Scheduling and Logging

August 3, 2016 – 7:35 pm
istock-18586699-monkey-computer

When something is going down on a server, the first thing most sysadmins will run is the venerable top utility. This happens automatically: if you suspect the server is being sluggish, your fingers just type top without you …

Nohup Without Nohup.out

July 13, 2016 – 12:55 am
shell

This is a common question: how can I run nohup without creating the annoying nohup.out ? And the common answer is: you can’t. But this is not exactly true.

Socket Statistics ss Command

July 11, 2016 – 8:10 pm
network_005

This is a small collection of useful ss (written by Alexey Kuznetsov of the Russian Nuclear Research Institute) syntax examples that go beyond the basics covered by other sources. Here’s one I use often: it shows established connections to …

Filesystem Synchronization with Freehold

July 8, 2016 – 2:43 am
picard-facepalm-text-569

Whenever an application description begins with phrases like “runs on anything” and “is easy to setup”, attribute such bravado to the author’s lack of experience outside his development sandbox. Freehold comes as a tarball for “any Linux” …

Osync and DiffTree

July 8, 2016 – 1:49 am
filing cabinet files

Think of osync as a kind of rsync that is more suited for making backups. While rsync certainly has more options, osync takes a lot of the complexity out of writing a backup script with a few options that are …

Improving Your Scripts with ShellCheck

July 7, 2016 – 8:42 pm
968780_94091618

Unlike most other popular scripting languages, Bash has few style-checking utilities. The best one, I think, is ShellCheck – a very cool and useful utility that can greatly  enhance robustness of your scripts. Like that time …

Increasing Entropy Pool in Linux

June 28, 2016 – 9:48 pm
security_003

The pool of random numbers in Linux is derived primarily from user interaction (keystrokes and mouse movement). A server does not have such a source and the random pool may start running low, especially during …

Fixing NIC Name in Cloned VMWare Linux Machines

June 28, 2016 – 12:32 pm
network switch

A suspected bug with certain versions of VMware ESX causes cloned Linux VMs to obtain a sequentially-number NIC. For example, if the parent VM had eth0, the clone will have eth1, and the clone of …

Better ‘date’ Functionality in Solaris

June 28, 2016 – 8:53 am
HP-Greets-IBM-2

The Solaris date command does not have many of the useful features of its GNU equivalent. A workaround is to use Tcl. This requires tclsh to be installed (which tclsh). You can implement this workaround as …

Create NFS share from QNAP CLI

June 13, 2016 – 2:21 pm
qnap_nas_001

In this example we create the “test” NFS share on a QNAP NAS from CLI and export it to client_ip_01 and client_ip_02. Things to keep in mind: this only creates an NFS share – not …

A tcpdump Primer with Examples

June 10, 2016 – 11:15 am
network switch

“A tcpdump Primer with Examples”
A good overview of tcpdump functionality and syntax, complete with basic and advanced examples.

Speed Up Shell Loops Using Arrays

June 7, 2016 – 9:02 am
shell_003

Just a quick note on addressing a common issue of running redundant commands when using shell loops. Let’s say you needed to get a count of network connections to an Oracle database server for each connection …

Kodi Volume Control Stops Working

May 22, 2016 – 1:01 am
kodi-14-helix-addons

All of a sudden, when using the remote (either radio or IR), Kodi sound controls stop responding. The volume level does not change and the mute button doesn’t work. These are possible symptoms of an …

VMWare VMDK Locked Error

May 21, 2016 – 10:27 pm
reverse_ssh_tunnel

So, being a Unix admin on-call for the week, I just spent half of my Saturday fixing a dead Windows VM. Very annoying. The best I can tell, the issue occurred during the snapshot operation. …

Decrypting Mac Disk

May 20, 2016 – 11:41 am
apple001

It is generally a good idea to use full-disk encryption, especially on a laptop. However, this becomes bothersome if you are trying to re-partition your disk, say, to make the system dual-boot. Here’s a quick …

Avoiding CPU Speed Scaling

May 18, 2016 – 1:04 pm
cpu

Disabling CPU speed scaling can boost your system’s performance and responsiveness at a slightly higher power consumption. Here’s a good article explaining the process.

Top 30 Nmap Command Examples For Sys/Network Admins

May 11, 2016 – 2:39 pm
network_cable_01

Useful nmap examples for system and network administrators.

How to: Linux Iptables block common attacks

May 10, 2016 – 2:37 pm
firewall-icon

IPTables filters and other tricks to prevent common syn-flood and malformed packet attacks on your server.