#!/bin/bash # $HeadURL$ $LastChangedRevision$ PROGNAME=`basename $0` echo "creating config file ..." mkdir etc cat > /tmp/rocon.conf <<'EOF' somehost:SomeHosts,AllHosts somehost2:SomeOtherHosts,AllHosts EOF echo "existing host ..." rocon -F /tmp/rocon.conf -m somehost echo "existing hostgroup ..." rocon -F /tmp/rocon.conf -m SomeHosts echo "non-existing host ..." rocon -F /tmp/rocon.conf -m nonexistenthost echo "non-existing hostgroup ..." rocon -F /tmp/rocon.conf -m NonExistentHosts echo "existing host x non-existing host ..." rocon -F /tmp/rocon.conf -m somehost and nonexistenthost echo "existing host x non-existing hostgroup ..." rocon -F /tmp/rocon.conf -m somehost and NonExistentHosts echo "existing hostgroup x non-existing host ..." rocon -F /tmp/rocon.conf -m SomeHosts and nonexistenthost echo "existing hostgroup x non-existing hostgroup ..." rocon -F /tmp/rocon.conf -m SomeHosts and NonExistentHosts echo "non-existing host x non-existing host ..." rocon -F /tmp/rocon.conf -m nonexistenthost2 and nonexistenthost echo "non-existing host x non-existing hostgroup ..." rocon -F /tmp/rocon.conf -m nonexistenthost2 and NonExistentHosts echo "non-existing hostgroup x non-existing host ..." rocon -F /tmp/rocon.conf -m NonExistentHosts2 and nonexistenthost echo "non-existing hostgroup x non-existing hostgroup ..." rocon -F /tmp/rocon.conf -m NonExistentHosts2 and NonExistentHosts echo "all done"