Hi,
I've searched the archive (pooh, so many entries for "disble") and the help-pages, but I didn't find it: How can I disable tests on the command line (I want to do this by cron)? Thanks, Rolf
-- Mit freundlichen Gruessen Rolf Schrittenlocher
HRZ/BDV, Senckenberganlage 31, 60054 Frankfurt Tel: (49) 69 - 798 28908 Fax: (49) 69 798 2881 LBS: lbs-f at mlist.uni-frankfurt.de Persoenlich: schritte at rz.uni-frankfurt.de
Rolf Schrittenlocher a écrit :
Hi,
I've searched the archive (pooh, so many entries for "disble") and the help-pages, but I didn't find it: How can I disable tests on the command line (I want to do this by cron)?
Hi Rolf
you can find this in the "bb" manpage :
disable HOSTNAME.TESTNAME DURATION <additional text> Disables a specific test for DURATION minutes. This will cause the status of this test to be listed as "blue" on the BBDISPLAY server, and no alerts for this host/test will be generated. If DURATION is given as a number followed by s/m/h/d, it is interpreted as being in seconds/minutes/hours/days respectively.
You can even schedule this :
MY_DATE=`date +%s --date=tomorrow
$BB localhost "schedule $MY_DATE disable $MY_HOST.$MY_TEST $MY_DURATION $MY_REASON"
--
Frédéric Mangeant
Steria EDC Sophia-Antipolis
Merci beaucoup Frédéric!
Rolf Schrittenlocher a écrit :
Hi,
I've searched the archive (pooh, so many entries for "disble") and the help-pages, but I didn't find it: How can I disable tests on the command line (I want to do this by cron)?
Hi Rolf
you can find this in the "bb" manpage :
disable HOSTNAME.TESTNAME DURATION <additional text> Disables a specific test for DURATION minutes. This will cause the status of this test to be listed as "blue" on the BBDISPLAY server, and no alerts for this host/test will be generated. If DURATION is given as a number followed by s/m/h/d, it is interpreted as being in seconds/minutes/hours/days respectively.
You can even schedule this :
MY_DATE=`date +%s --date=tomorrow
$BB localhost "schedule $MY_DATE disable $MY_HOST.$MY_TEST $MY_DURATION $MY_REASON"
-- Mit freundlichen Gruessen Rolf Schrittenlocher
HRZ/BDV, Senckenberganlage 31, 60054 Frankfurt Tel: (49) 69 - 798 28908 Fax: (49) 69 798 2881 LBS: lbs-f at mlist.uni-frankfurt.de Persoenlich: schritte at rz.uni-frankfurt.de
participants (2)
-
frederic.mangeant@steria.com
-
Schrittenlocher@rz.uni-frankfurt.de