Schedule disable with BB command-line
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.
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
participants (2)
-
frederic.mangeant@steria.com
-
plardinois@be.tiauto.com