#!/bin/bash # IWT 20101203 # this is a cron job that runs the ddnapitest every 5 minutes for an hour controllers="qbddn1 qbddn2 qbddn3 qbddn4 qbddn5 qbddn6 qbddn7 qbddn8" DDNAPI="/usr/bin/env python /root/bin/xymonddntest.py" SLEEP="300" # get 11 tests in loop and one after with 11 sleeps ((ITERATIONS=11)) while ((0 < ITERATIONS)) do for cont in ${controllers} do ${DDNAPI} -pfr0gd0gcat -sxymon.hpc.lsu.edu -f${cont}.loni.org ${cont} faults done sleep ${SLEEP} ((ITERATIONS = ITERATIONS - 1)) done