* mv the commands that fit in monitors (or operation teams) work-flow to 'commands...
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Mon, 30 Nov 2009 21:56:53 +0000 (21:56 +0000)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Mon, 30 Nov 2009 21:56:53 +0000 (21:56 +0000)
* mv special purpose commands to 'tools' directory.

45 files changed:
Monitor.spec
automate-default.sh
commands/blacklist.py [moved from blacklist.py with 100% similarity]
commands/bootman.py [moved from bootman.py with 100% similarity]
commands/checksync.py [moved from checksync.py with 100% similarity]
commands/comonquery.py [moved from comonquery.py with 100% similarity]
commands/findall.py [moved from findall.py with 100% similarity]
commands/findbad.py [moved from findbad.py with 100% similarity]
commands/findbadpcu.py [moved from findbadpcu.py with 100% similarity]
commands/nodebad.py [moved from nodebad.py with 100% similarity]
commands/nodeconfig.py [moved from nodeconfig.py with 100% similarity]
commands/nodegroups.py [moved from nodegroups.py with 100% similarity]
commands/nodeinfo.py [moved from nodeinfo.py with 100% similarity]
commands/nodequery.py [moved from nodequery.py with 100% similarity]
commands/pcubad.py [moved from pcubad.py with 100% similarity]
commands/pcuinfo.py [moved from pcuinfo.py with 100% similarity]
commands/plcquery.py [moved from plcquery.py with 100% similarity]
commands/policy.py [moved from policy.py with 100% similarity]
commands/shconfig.py [moved from shconfig.py with 100% similarity]
commands/sitebad.py [moved from sitebad.py with 100% similarity]
commands/siteinfo.py [moved from siteinfo.py with 100% similarity]
commands/siteleave.py [moved from siteleave.py with 100% similarity]
commands/syncwithplc.py [moved from syncwithplc.py with 100% similarity]
docs/model.txt [moved from model.txt with 100% similarity]
rt_db [deleted file]
tools/automate/automate.py [moved from automate/automate.py with 100% similarity]
tools/automate/fetch.py [moved from automate/fetch.py with 100% similarity]
tools/automate/query.py [moved from automate/query.py with 100% similarity]
tools/automate/vxargs.py [moved from automate/vxargs.py with 100% similarity]
tools/extra/nodeaction.py [moved from extra/nodeaction.py with 100% similarity]
tools/extra/nodediff.py [moved from extra/nodediff.py with 100% similarity]
tools/extra/nodehistory.py [moved from extra/nodehistory.py with 100% similarity]
tools/extra/nodesets.py [moved from extra/nodesets.py with 100% similarity]
tools/extra/pcutest.py [moved from extra/pcutest.py with 100% similarity]
tools/extra/pkl2php.py [moved from extra/pkl2php.py with 100% similarity]
tools/extra/prep_power_users.py [moved from extra/prep_power_users.py with 100% similarity]
tools/extra/printpdb.py [moved from extra/printpdb.py with 100% similarity]
tools/extra/showlatlon.py [moved from extra/showlatlon.py with 100% similarity]
tools/extra/template.py [moved from extra/template.py with 100% similarity]
tools/getsshkeys.py [moved from getsshkeys.py with 100% similarity]
tools/kill.cmd.sh [moved from kill.cmd.sh with 100% similarity]
tools/plc2nagios.py [moved from nagios/plc2nagios.py with 100% similarity]
tools/setup-agent.sh [moved from setup-agent.sh with 100% similarity]
tools/testapi.py [moved from testapi.py with 100% similarity]
tools/timeout.pl [moved from timeout.pl with 100% similarity]

index 9d47dec..0665e61 100644 (file)
@@ -131,7 +131,7 @@ rm -rf $RPM_BUILD_ROOT
 #################### CLIENT 
 #install -D -m 755 monitor-client.init $RPM_BUILD_ROOT/%{_initrddir}/monitor
 #install -D -m 644 monitor.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/monitor
-install -D -m 755 timeout.pl $RPM_BUILD_ROOT/usr/bin/timeout.pl
+install -D -m 755 tools/timeout.pl $RPM_BUILD_ROOT/usr/bin/timeout.pl
 
 
 #################### SERVER
index c0b4b7b..3354a69 100755 (executable)
@@ -26,7 +26,7 @@ if [ -f $MONITOR_PID ] ; then
                PID=`cat $MONITOR_PID`
                rm -f $MONITOR_PID
                if [ -z $PID ] ; then
-                       ${MONITOR_SCRIPT_ROOT}/kill.cmd.sh $PID
+                       ${MONITOR_SCRIPT_ROOT}/tools/kill.cmd.sh $PID
                        echo "done."
                else
                        echo "No PID to be killed."
@@ -62,21 +62,19 @@ fi
 #TODO: should add a call to ssh-add -l to check if the keys are loaded or not.
 source ${MONITOR_SCRIPT_ROOT}/agent.sh
 
-#${MONITOR_SCRIPT_ROOT}/checksync.py $DATE || :
-${MONITOR_SCRIPT_ROOT}/syncwithplc.py $DATE || :
+${MONITOR_SCRIPT_ROOT}/tools/syncwithplc.py $DATE || :
 service plc restart monitor
 
 echo "Performing FindAll Nodes"
 #########################
 # 1. FINDBAD NODES 
-${MONITOR_SCRIPT_ROOT}/findall.py $DATE || :
+${MONITOR_SCRIPT_ROOT}/commands/findall.py $DATE || :
 ps ax | grep BatchMode | grep -v grep | awk '{print $1}' | xargs -r kill || :
 # clean up stray 'locfg' processes that hang around inappropriately...
 ps ax | grep locfg | grep -v grep | awk '{print $1}' | xargs -r kill || :
 
 
 ${MONITOR_SCRIPT_ROOT}/policy.py $DATE || :
-${MONITOR_SCRIPT_ROOT}/statistics/add-record.py || :
 curl -s 'http://summer.cs.princeton.edu/status/tabulator.cgi?table=table_nodeview&formatcsv' > /var/lib/monitor/comon/$DATE.comon.csv || :
 
 cp ${MONITOR_SCRIPT_ROOT}/monitor.log ${MONITOR_ARCHIVE_ROOT}/`date +%F-%H:%M`.monitor.log
similarity index 100%
rename from blacklist.py
rename to commands/blacklist.py
similarity index 100%
rename from bootman.py
rename to commands/bootman.py
similarity index 100%
rename from checksync.py
rename to commands/checksync.py
similarity index 100%
rename from comonquery.py
rename to commands/comonquery.py
similarity index 100%
rename from findall.py
rename to commands/findall.py
similarity index 100%
rename from findbad.py
rename to commands/findbad.py
similarity index 100%
rename from findbadpcu.py
rename to commands/findbadpcu.py
similarity index 100%
rename from nodebad.py
rename to commands/nodebad.py
similarity index 100%
rename from nodeconfig.py
rename to commands/nodeconfig.py
similarity index 100%
rename from nodegroups.py
rename to commands/nodegroups.py
similarity index 100%
rename from nodeinfo.py
rename to commands/nodeinfo.py
similarity index 100%
rename from nodequery.py
rename to commands/nodequery.py
similarity index 100%
rename from pcubad.py
rename to commands/pcubad.py
similarity index 100%
rename from pcuinfo.py
rename to commands/pcuinfo.py
similarity index 100%
rename from plcquery.py
rename to commands/plcquery.py
similarity index 100%
rename from policy.py
rename to commands/policy.py
similarity index 100%
rename from shconfig.py
rename to commands/shconfig.py
similarity index 100%
rename from sitebad.py
rename to commands/sitebad.py
similarity index 100%
rename from siteinfo.py
rename to commands/siteinfo.py
similarity index 100%
rename from siteleave.py
rename to commands/siteleave.py
similarity index 100%
rename from syncwithplc.py
rename to commands/syncwithplc.py
similarity index 100%
rename from model.txt
rename to docs/model.txt
diff --git a/rt_db b/rt_db
deleted file mode 100644 (file)
index eba79ec..0000000
--- a/rt_db
+++ /dev/null
@@ -1,4 +0,0 @@
-RT_DB_HOST=rt.planet-lab.org
-RT_DB_USER=rt_ro
-RT_DB_PASSWORD=rtropassword
-RT_DB_NAME=rt3
similarity index 100%
rename from automate/fetch.py
rename to tools/automate/fetch.py
similarity index 100%
rename from automate/query.py
rename to tools/automate/query.py
similarity index 100%
rename from automate/vxargs.py
rename to tools/automate/vxargs.py
similarity index 100%
rename from extra/nodediff.py
rename to tools/extra/nodediff.py
similarity index 100%
rename from extra/nodesets.py
rename to tools/extra/nodesets.py
similarity index 100%
rename from extra/pcutest.py
rename to tools/extra/pcutest.py
similarity index 100%
rename from extra/pkl2php.py
rename to tools/extra/pkl2php.py
similarity index 100%
rename from extra/printpdb.py
rename to tools/extra/printpdb.py
similarity index 100%
rename from extra/template.py
rename to tools/extra/template.py
similarity index 100%
rename from getsshkeys.py
rename to tools/getsshkeys.py
similarity index 100%
rename from kill.cmd.sh
rename to tools/kill.cmd.sh
similarity index 100%
rename from nagios/plc2nagios.py
rename to tools/plc2nagios.py
similarity index 100%
rename from setup-agent.sh
rename to tools/setup-agent.sh
similarity index 100%
rename from testapi.py
rename to tools/testapi.py
similarity index 100%
rename from timeout.pl
rename to tools/timeout.pl