Articles in SysAdmin
Run Cron Jobs at Arbitrary Intervals
Current versions of cron support sophisticated syntax making creating weird schedules a breeze. With older versions of cron you normally had to schedule multiple jobs to fill every time slot in a complex schedule. The …
Diff on Output of Remote Commands
Let’s say you run the same command on two remote servers and you want to compare the output. Here’s a quick example:
Parallel MySQL Queries
Unlike Oracle, MySQL has no support for parallel SQL queries. A bummer for sure, in light of all the awesome multi-coreness we enjoy these days. There’ve been some attempts (1, 2) to get around this …
Show NIC Bandwidth Utilization
Just a quick script that will measure bandwidth utilization in KB/s for all NICs on your server over the specified period of time. You can call the script with an optional time wait parameter in seconds.
Tracking Network Connections Over Time
Firewall changes, datacenter migrations, application re-hostings, server decommissions are just some of the activities where having a record of network connections over time can help avoid confusion and unplanned downtime. To capture all network connections, …
Taking Linux Temperature
Just some notes on setting up temperature monitoring and alerting on CentOS/RHEL running on HP ProLiant. The first step is to install lm_sensors:
Deleting Lots of Files Quickly
I am not talking about hundreds or thousands of files. I am talking about hundreds of thousands. The usual “/bin/rm -rf *” may work, but will take a while. Or it may fail with the …
When Was that Server Built?
Just a quick note on how to (sort of) figure out when a server first came online. This can be useful to various folks in your bean-counting department working on maintenance contract renewals and whatnot. …
Log Event Time Distribution (Part II)
Earlier I discussed a way to visualize frequency and distribution of messages in log files. Here’s a script to help you with that. Currently, the script works with two time formats: the one used in …
Securing VSFTP with TCP Wrappers and IPTables
I’ve been drinking beer and perhaps had one too many. Regardless of the reason, I felt the urge to further secure my favorite server. The target of my paranoia is once again the VSFTPd. I …
Testing Email Server Response
A little while ago I ran into a situation when connections to the relay email server would occasionally time out. The issue seemed sporadic resulting in a controversy regarding its source. The perimeter email server …
Tuesday Morning Rant
So I just got around to installing CentOS 7. What a pile of shit with bugs all over it. The installation GUI completely messed up network configuration. On the first try, the network config I …
Oracle Sun SPARC Server Quick Configuration
In the following example we’re using a SPARC T4-2. These systems ship from the manufacturer with pre-installed Solaris 11. After the system has been racked and connected to primary and ILO networks, the first step is to …
Detecting Sun ILOM with NMap
This is an oddball tech note: how to detect Sun ILOM interfaces on the network using nmap. I needed to connect to one of the Sun boxes that dropped off the network, but couldn’t remember …
Upping the Soft nproc Limit
This is just a quick note to myself about increasing the “soft nproc” value. On one of the RHEL 6 Tomcat servers I got the following error when trying to “su – tomcat”:
Create ISO Images
The genisoimage has been around for a few years, but is relatively little-known. It is a pre-mastering program to generate ISO9660/Joliet/HFS hybrid filesystems and is particularly good for creating portable data backups. Here are a …
Hold Off on iOS 9 iPhone Upgrade
If you haven’t updated your iPhone 6/6 Plus to the recently-released iOS 9, I’d suggest you hold off for a few weeks. Several bugs – including a significant security hole – have surfaced that will …
Removing Metadata from Images
Phones and cameras record a surprising amount of personally-sensitive information with the photos they create. This data includes timestamps, GPS coordinates, software used to process the images and lots of other details you may not …
Reduce SNMPd Logging Level
By default, (on RHEL/CentOS, at least) snmpd will log all connection attempts, which can turn your /var/log/messages into a giant mess, looking something like this…
Arthemia jCarousel Number of Posts
This is primarily just a note to myself on how to change the number of visible items in the jCarousel implementation for the WordPress Arthemia theme. Recently I finally updated to the current version and …
Tuesday Night Rant: LED Light Bulbs
An off-topic for sure, but after a brief conversation about LED bulbs with a friend – a Contract Electrical – I found I had more arguments then I was willing to spill on Facebook. I …
Linux CLI Network Speed Test
The speedtest.net is probably one of the more popular bandwidth testing utilities, Unfortunately, this and many other similar tools require a Web browser with late-version Flash or Java support, which can be problematic on Unix …

Latest Comments