[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] Schedule disable with BB command-line



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