Skip to content

Instantly share code, notes, and snippets.

@djmitche
Created January 8, 2009 03:34
Show Gist options
  • Save djmitche/44564 to your computer and use it in GitHub Desktop.
Save djmitche/44564 to your computer and use it in GitHub Desktop.
hosts=(
buildbot-deb-etch-32
buildbot-deb-etch-64
buildbot-deb-sarge-32
buildbot-f7
buildbot-f7
buildbot-f8
buildbot-f9-32
buildbot-f9-64
buildbot-fc4
buildbot-fc5
buildbot-fc6
buildbot-rhel3
buildbot-rhel4
buildbot-rhel4
buildbot-rhel4-64
buildbot-rhel5
buildbot-rhel5-64
buildbot-sles10
buildbot-sles10-64
buildbot-sles11-32
buildbot-sles11-64
buildbot-sles9
buildbot-suse10
buildbot-ub610-32
buildbot-ub610-64
buildbot-ub804-32
buildbot-ub804-64
buildbot-ub810-32
buildbot-ub810-64
)
for host in ${hosts[@]}; do
fqhost="$host.zmanda.com"
if ping -c 1 $fqhost >/dev/null 2>/dev/null; then
cmdline=`ssh root@$fqhost cat /proc/cmdline`
version=`ssh root@$fqhost cat /proc/version | cut -d' ' -f 3`
else
cmdline="??"
version="??"
fi
printf "%-30s %-30s %s\n" $host $version "$cmdline"
done
# results:
# buildbot-deb-etch-32 ?? ??
# buildbot-deb-etch-64 ?? ??
# buildbot-deb-sarge-32 ?? ??
# buildbot-f7 2.6.22.9-91.fc7 ro root=/dev/VolGroup00/LogVol00 quiet clock=pit nosmp noapic nolapic
# buildbot-f7 2.6.22.9-91.fc7 ro root=/dev/VolGroup00/LogVol00 quiet clock=pit nosmp noapic nolapic
# BUILDBOT-f8 ?? ??
# BUILDBOT-f9-32 ?? ??
# buildbot-f9-64 ?? ??
# buildbot-fc4 2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00 quiet clock=pit noapic nolapic nosmp
# BUILDBOT-fc5 2.6.15-1.2054_FC5 ro root=/dev/VolGroup00/LogVol00 clock=pit nolapic nosmp noapic
# buildbot-fc6 2.6.18-1.2798.fc6 ro root=/dev/VolGroup00/LogVol00 clock=pit nosmp noapic nolapic
# buildbot-rhel3 2.4.21-40.EL ro root=LABEL=/ noapic nolapic nosmp clock=pit
# buildbot-rhel4 2.6.9-34.EL ro root=/dev/VolGroup00/LogVol00 quiet nosmp noapic nolapic time=pit
# buildbot-rhel4 2.6.9-34.EL ro root=/dev/VolGroup00/LogVol00 quiet nosmp noapic nolapic time=pit
# buildbot-rhel4-64 * 2.6.9-67.0.20.EL ro root=/dev/VolGroup00/LogVol00 quiet noapic nolapic time=pit console=tty0
# buildbot-rhel5 2.6.18-8.el5 ro root=/dev/VolGroup00/LogVol00 clock=pit nosmp noapic nolapic
# buildbot-rhel5-64 * 2.6.18-92.1.6.el5 ro root=/dev/VolGroup00/LogVol00 quiet noapic nolapic clock=pit
# buildbot-sles10 * 2.6.16.54-0.2.10-default root=/dev/sda2 vga=0x332 resume=/dev/sda1 splash=silent clock=pit nosmp noapic nolapic
# buildbot-sles10-64 2.6.16.60-0.25-default root=/dev/sda2 vga=0x332 resume=/dev/sda1 splash=silent nosmp noapic nolapic clock=pit
# buildbot-sles11-32 ?? ??
# buildbot-sles11-64 ?? ??
# buildbot-sles9 * 2.6.5-7.97-default root=/dev/sda2 vga=0x332 selinux=0 resume=/dev/sda1 elevator=cfq splash=silent nosmp noapic nolapic clock=pit
# buildbot-suse10 * 2.6.13-15-default root=/dev/sda2 vga=0x332 selinux=0 resume=/dev/sda1 splash=silent showopts nosmp noapic nolapic time=pit
# buildbot-ub610-32 ?? ??
# buildbot-ub610-64 ?? ??
# buildbot-ub804-32 2.6.24-21-generic root=UUID=a6904692-cbce-4c2d-840c-247a8b97bde8 ro noapic nolapic quiet noapic nolapic clock=pit
# buildbot-ub804-64 2.6.24-16-server root=UUID=5cd1bd33-0e4d-4d16-85af-42725db03fbc ro noapic nolapic quiet
# buildbot-ub810-32 ?? ??
# buildbot-ub810-64 ?? ??
* = required a password for root login, so probably no cfengine
?? = not in DNS, or not pingable
BUILDBOT (capitalized) = misbehaving clock (according to my emails, anyway)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment