Wednesday, April 9, 2008

Must have been in the twilight-zone

Meant to post this post yesterday, and don't have much of an excuse for why I didn't. Here's the low down on how we build the zone_map file (and an example of the things we put in the nightly script instead of the frequent push)

From update_push_nightly.sh:

for i in `awk '{ print $1 }' /usr/local/bin/host_list;do
for j in `ssh $i '/usr/sbin/zoneadm list' |grep -v global`
do
echo $i,$j>>/tmp/nightly.tmp
done
done
/usr/bin/mv /tmp/nightly.tmp /usr/local/bin/zone_map


Why only generate it nightly? Well, while we can rip off a zone pretty quickly, we try not to do it all day every day... And it's easy enough to update if we do.

No comments:

counter free hit invisible