Xymon Mailing List Archive search

Schedule disable with BB command-line

2 messages in this thread

list Pierre Lardinois · Thu, 9 Mar 2006 16:45:03 +0100 ·
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.

Regards,

Pierre Lardinois
Int. ICT Infrastructure Team
TI Automotive
 

The information contained in this transmission may contain privileged and
confidential information.  It is intended only for the use of the
person(s) named above. If you are not the intended recipient, you are
hereby notified that any review, dissemination, distribution or
duplication of this communication is strictly prohibited. If you are not
the intended recipient, please contact the sender by reply email and
destroy all copies of the original message.
list Frédéric Mangeant · Thu, 09 Mar 2006 16:52:08 +0100 ·
quoted from Pierre Lardinois
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