<p dir="ltr">OK, so this is what I'd do.</p>
<p dir="ltr">> subpage vips VIPS<br>
> 10.218.160.150   server1 #foo<br>
> 10.218.160.150   server2 #foo</p>
<p dir="ltr">The "foo" would not normally be needed, but let's assume that you want your script to work out what hosts to probe. So we'll leave it in.</p>
<p dir="ltr">> I want to send xml through this call:<br>
><br>
> wget --post-file=SentinelCompReport.xml --header="Content-Type: text/xml" --header="SOAPAction: \"<a href="http://xxx.com/ComprehensivePersonSearch\">http://xxx.com/ComprehensivePersonSearch\</a>"" -O - <a href="http://VIP/BobService.asmx">http://VIP/BobService.asmx</a></p>

<p dir="ltr">I'd put this in a script like so:</p>
<p dir="ltr">#!/bin/sh</p>
<p dir="ltr">TESTNAME="foo"<br>
REGEX="some regex"</p>
<p dir="ltr">do_fetch() {<br>
    wget ... --header="SOAPAction: \"http://$1/ComprehensivePersonSearch\" -O - http://$2/BobService.asmx<br>
}</p>
<p dir="ltr">$BBHOME/bin/bbhostgrep foo | while read IP HOSTNAME OTHER; do<br>
    if do_fetch $HOSTNAME $IP | grep "$REGEX" > /dev/null ; then<br>
        COL=green<br>
        MSG="Test for $TESTNAME is OK"<br>
    else<br>
        COL=red<br>
        MSG="Test for $TESTNAME failed"<br>
    fi<br>
    $BB $BBDISP "status $HOSTNAME.$TESTNAME $COL `date` $MSG"<br>
done</p>
<p dir="ltr">This is from memory and hasn't been tested, but should give you the gist.</p>
<p dir="ltr">J<br>
</p>