#!/bin/sh # mkhostgroup host-template group-template services... # # Read stdin for a list of hosts, create a host entry for each based on # host-template, put each in a group based on group-template, and add each # to a service entry based on each service template. # # This script uses findparent, from the nscc distribution, for UTCS. if [ $# -lt 2 ]; then echo "Usage: $0 host-template group-template [services]... <[list of hosts]" exit 1 fi hosttemplate="$1"; shift grouptemplate="$1"; shift cat <