Xymon Mailing List Archive search

Schedule disable with BB command-line

list Frédéric Mangeant
Thu, 09 Mar 2006 16:52:08 +0100
Message-Id: <user-705fed704f40@xymon.invalid>

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