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 »
The Yellowdog Updater, Modified has more features than most of us will ever need. Below are some hopefully useful examples that will help keep your system maybe secure by replacing old known bugs with new …
If you ever wanted to configure SSL/TLS encryption for an FTP server behind a firewall, the “Google wisdom” ranges from “a major pain” to “can’t be done”. Fortunately, things are not all that bad. In …
Pflogsumm is an oldie but a goodie. It’s a Perl script that sifts through your Postfix server maillog and provides you with a neat summary of events and some statistics. This information can be useful …
The Logstalgia is a cool graphical utility for visualizing the Apache access_log files. The practical value of Logstalgia is debatable, but it’s entertainment value is not in question. The managers and NOC operators can stare …
Sometimes it’s just better to attach a file to your email than to “cat” the contents into the email body. Later versions of mailx support the “-a” option for handling attachments. With the older mailx …
Fail2ban is an excellent security tool that will do a good job safeguarding your server. However, using fail2ban you may run into two issues: friendly fire and inability to permanently ban hostile networks. I already …
At some point available IPs on your network may become few and hard to come by. Documentation becomes outdated and does not accurately reflect which IPs are still in use. A good starting point would …
One problem with encryption is it’s a slow and resource-intensive process. While most encryption software lacks multithreading support, it is possible to use the GNU Parallel to take full advantage of modern multi-core CPUs to …
Here’s the problem I ran into today on a Solaris 11 SPARC server: an application UI would occasionally freeze for a few second when executing a particular function. Nobody could quite figure out where the …
Lsyncd monitors a local filesystem for changes and mirrors those changes to a filesystem on a remote server. The advantage of lsyncd over rsync is the former’s ability to detect filesystem changes without having to re-scan …
It’s been a slow Friday afternoon at the office, so I decided to pimp my VM. The tool of choice is “toilet“. Depending on your flavor, this may or may not be easy to install. …
Resizing Hitachi VSP LUNs (aka LDEVs) is a quick and simple task. Unfortunately, due to Hitachi Storage Navigator’s archaic design, the LDEV resize function, while easy to use, is not easy to find. So, here’s …
With the swap partition residing on a ZFS filesystem, you have an easy way of adding swap on the fly. Reducing swap is not quite so simple, but we’l talk about that later. To check …
Just a quick background of the little problem I ran into with our VNX: after creating a couple of LUNs for the mapped file pool using Unisphere, I clicked “Rescan Storage Systems” and got “This …
Just some quick instructions for configuring and enabling NTP client on Solaris 11.
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, …
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 …
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, …
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 …
The following error may be found in /var/log/httpd/${domain}/error_log when APC memory is set too low: “PHP Warning: require_once(): Unable to allocate memory for pool”. APC is Alternative PHP Cache. You can check the version of …
You can get the epoch time on Solaris 11 and Linux simply by running the date command:
Just some quick notes on installing and configuring Salt master server and minions to run remote commands for various sysamdin needs.
Latest Comments