How to Kill All Your Processes

Here’s a quick tip for killing your processes on Linux/UNIX:

kill -1 -1

The first -1 is the signal you are going to send and the second -1 means “every process”. The -1 signal is SIGHUP (hang up) which is basically a nice way of asking a process to terminate (or reload in some cases).┬áThe reason sending SIGHUP to every process works to kill only the processes of the account that ran the command is that not every process will respond signals from just anyone. Only processes running at the user who executes the above command will respond to it. Other users processes, including those running as root will not respond. Be careful however, running this as root will attempt to kill ALL processes.

Not all processes will respond to SIGHUP by exiting so sometimes more force is necessary:

kill -9 -1

The -9 signal is SIGKILL (kill program) which should take care of any pesky processes that don’t want to exit nicely.

And that’s that.

IBM Changed UPS Vendors

Just recently, I discovered that IBM decided to quietly switch their UPS vendor from APC to Eaton (Powerware). We needed to replace a dead IBM UPS 3000 XHV (SmartUPS-3000) and so I ordered a new IBM UPS, the UPS 3000 HV (Eaton 5125). Upon receiving the UPS, I noticed that the battery and power module were rather different. So I boot up the UPS and start configuring the web management card and it hits me… this isn’t an APC UPS, it’s an Eaton! ARG! Why?!? WHY?!? :'(

Read More

Check Your UPS Batteries!

Every now and then it’s a good idea to check your UPS batteries, right? Sure, we all know that. But who really does it? In well run environments UPSes are monitored, internally and/or externally but in a small machine room with only a couple racks, the individual UPS systems may not be monitored. These machine rooms (closets?) might also not be frequented by people very often or may not even get a visit, ever unless something goes wrong.

Read More