Using RANCID/clogin to run commands on multiple devices

As the next step to my previous post about filtering files using egrep, I had to apply a configuration change to a number of devices on our network.

Rather than logging in manually to 1400 devices, I found that the clogin command can login to a device and run a couple of commands.

You can do it in a single line on the CLI, but I’d prefer to script things so they’re documentable and repeatable.

[Read More]

monit error “alert handler failed…”

If you get a message like this in your monit log files:

alert handler failed, retry scheduled for next cycle

It’s not immediately obvious what’s causing it. Check the line before, it’s probably what you’re looking for.

In my case I was getting this error

Sendmail error: 553 5.1.7 monit@microserver… address incomplete

Which is actually from the mailserver I’d setup in the monitrc file. Make sure you’ve got your settings right, and don’t just look at the one line 🙂

[Read More]

Ubuntu 11.10 no grub timeout

There’s a bug in the file /etc/grub.d/00_header which means the timeout’s set to -1 for some reason instead of a positive number. This means that it doesn’t ever timeout.

I’m sure there’s a valid reason why update-grub is doing this to us, but .. meh. An easy fix is to find the following code in the aforementioned file:

make_timeout ()

{

cat « EOF

if [ “${recordfail}” = 1 ]; then

[Read More]

Distributed social networks…

This is stolen unabashedly from here. I love these “form rejection letters” which come in so many different versions 🙂

Your post describes a

( ) protocol ( ) github repo ( ) manifesto ( ) kickstarter

for a distributed social network.

Your idea will not work. Here is why it won’t work.

One or more of the following flaws may apply to your particular idea.

( ) You think “if you build it, they will come”

[Read More]

Crumpton Oaks Farmhouse Dry Apple Cider Tasting Notes

  • Comes in a four pack of 500ml cans for $14 from BWS.
  • Plastic ring packaging, is saddening considering the impact it tends to have.
  • Mention of sweetners in the can in this review and on the labelling - no artificial ones - but it tastes like it’s packed with it.
  • Contains sulphites - beware!
  • Not refined at all, sharp, artificial aftertaste, overly fizzy.
  • For the price, there are many better options. Quantity isn’t everything!

All in all, I wouldn’t recommend it, given the recent availability of much better drinks 🙂

[Read More]

Finding a file without a particular line in it

So, I’m starting to use the wonderful package RANCID for grabbing our configs and backing them up. I was looking for a simple way of finding files that didn’t have a particular line in them.

In this example I’ll be looking for things that don’t have “logging 10.0.0.5” in them. The logging command sends syslog on Cisco routers to a remote device. This isn’t actually our syslog or search server, but I’m probably better off not posting those details 🙂

[Read More]

Xerox DocuCentre-II C4300 Windows 7 Drivers

Somehow Google fails to find this link, so I’m storing it here for myself more than anything else.

It’s on the Fuji Xerox Japan website, but it’s in english and the drivers work.

Link here to Xerox DocuCentre-II C4300 Windows 7 Drivers

[Read More]