[hobbit] Schedule disable with BB command-line
Frédéric Mangeant
frederic.mangeant at steria.com
Thu Mar 9 16:52:08 CET 2006
Lardinois, Pierre a écrit :
> Hello,
>
> Is it possible to schedule disable a host with the bb command-line ? If so,
> what is the syntax to use ?
>
> Thank you very much.
>
Hi Pierre
here's how to do it :
MY_DATE=`date +%s --date=tomorrow`
$BB localhost "schedule $MY_DATE disable $MY_HOST.$MY_TEST $MY_DURATION
$MY_REASON"
GNU date is required IMO for the "--date=" flag.
--
Frédéric Mangeant
Steria EDC Sophia-Antipolis
More information about the Xymon
mailing list