External scripts - template or how-to ?
It's me again :) Just installed my first hobbit server - and now I can't wait to stuff more and more tests into the box. Hobbit does come with a lot of predefined tests, but I've come to the point where I'd like to create my own external test. Is there a skeleton or template for ext scripts somewhere ? Or perhaps a nice HOW-TO ? Poking around on the web gives me some ideas ( how to launch, use bbhostgrep, ect. ) - but I'm sure some of you guys have allready done this. For instance, how do you determine if tests should be done on the ip-addresse or the host name ? Thanks for your time ... /Torben
On Tue, Oct 25, 2005 at 10:26:46AM +0200, Torben Aagaard wrote:
It's me again :) Just installed my first hobbit server - and now I can't wait to stuff more and more tests into the box. Hobbit does come with a lot of predefined tests, but I've come to the point where I'd like to create my own external test. Is there a skeleton or template for ext scripts somewhere ? Or perhaps a nice HOW-TO ?
I hate to tell people to Read The Fine Manual, but it's there: http://www.hswn.dk/hobbit/help/hobbit-tips.html#scripts
Also included in your own Hobbit server setup, under the "Help->Tips..." menu item.
Henrik
On 10/25/05, Henrik Stoerner <henrik at hswn.dk> wrote:
I hate to tell people to Read The Fine Manual, but it's there: http://www.hswn.dk/hobbit/help/hobbit-tips.html#scripts
Yes - but these fine examples do not take the "testip" tag into account. So, basically I need to test for the presence of "testip" to determine if the test should be run with $1 or $2 ? Or am I totally missing the point here ? Since I'm new to Hobbit, I don't know what else I'm missing :) Perhaps there is a more complete example out there ? Thanks again /Torben
On Tue, Oct 25, 2005 at 11:02:43AM +0200, Torben Aagaard wrote:
On 10/25/05, Henrik Stoerner <henrik at hswn.dk> wrote:
I hate to tell people to Read The Fine Manual, but it's there: http://www.hswn.dk/hobbit/help/hobbit-tips.html#scripts
Yes - but these fine examples do not take the "testip" tag into account. So, basically I need to test for the presence of "testip" to determine if the test should be run with $1 or $2 ?
bbhostgrep provides the "testip" tag from the bb-hosts file also, so you can go through the $1 $2 etc. and see if there's a "testip" keyword among them.
Regards, Henrik
participants (2)
-
henrik@hswn.dk
-
torben.aagaard@gmail.com