Index: branches/simtest_nebulous_branches/operations/Makefile.in
===================================================================
--- branches/simtest_nebulous_branches/operations/Makefile.in	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/Makefile.in	(revision 27840)
@@ -0,0 +1,46 @@
+default: install
+help:
+	@echo "USAGE: make install"
+
+SRC     =       .
+DEST	=       @OPSDIR@
+
+INPUTS = \
+$(DEST)/detrend/input      \
+$(DEST)/publishing/input   \
+$(DEST)/pstamp/input       \
+$(DEST)/registration/input \
+$(DEST)/replication/input  \
+$(DEST)/stdscience/input   \
+$(DEST)/summitcopy/input
+
+PTOLEMYRC = \
+$(DEST)/detrend/ptolemy.rc      \
+$(DEST)/publishing/ptolemy.rc   \
+$(DEST)/pstamp/ptolemy.rc       \
+$(DEST)/registration/ptolemy.rc \
+$(DEST)/replication/ptolemy.rc  \
+$(DEST)/stdscience/ptolemy.rc   \
+$(DEST)/summitcopy/ptolemy.rc
+
+install: $(INPUTS) $(PTOLEMYRC)
+
+uninstall:
+	rm -f $(INPUTS) || exit
+	rm -f $(PTOLEMYRC) || exit
+
+# dependency rules #########################
+$(DEST)/%/input: $(SRC)/%/input
+	@if [ ! -d `dirname $@` ]; then mkdir -p `dirname $@`; fi
+	cp $(SRC)/$*/input $(DEST)/$*/input || exit
+
+$(DEST)/%/ptolemy.rc: $(SRC)/%/ptolemy.rc
+	@if [ ! -d `dirname $@` ]; then mkdir -p `dirname $@`; fi
+	cp $(SRC)/$*/ptolemy.rc $(DEST)/$*/ptolemy.rc || exit
+
+# utilities #################################################
+
+clean:	
+	rm -f `find . -name "*~"`
+	rm -f `find . -name "#*"`
+
Index: branches/simtest_nebulous_branches/operations/addstar/input
===================================================================
--- branches/simtest_nebulous_branches/operations/addstar/input	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/addstar/input	(revision 27840)
@@ -0,0 +1,22 @@
+
+macro setup
+  module pantasks.pro
+  module addstar.pro
+
+  add.database gpc1
+  add.label dummy
+  set.poll 180
+end
+
+
+macro addstar.revert.on
+  task addstar.revert
+    active true
+  end
+end
+
+macro addstar.revert.off
+  task addstar.revert
+    active false
+  end
+end
Index: branches/simtest_nebulous_branches/operations/addstar/ptolemy.rc
===================================================================
--- branches/simtest_nebulous_branches/operations/addstar/ptolemy.rc	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/addstar/ptolemy.rc	(revision 27840)
@@ -0,0 +1,67 @@
+
+PANTASKS_SERVER_STDOUT  pantasks.stdout.log
+PANTASKS_SERVER_STDERR  pantasks.stderr.log
+PANTASKS_SERVER         ippdb00
+PASSWORD                foobar
+
+### Here follows the regular ~/.ptolemyrc
+### This is required because the addstar task runs from this directory,
+### so it picks up this configuration.
+
+CONFDIR                 /home/panstarrs/ipp/psconfig/ipp-svn.lin64/share/ippconfig
+CAMERA                  default
+
+# location of DVO database tables
+CATDIR                  default
+
+# location of possible data sources
+2MASS_DIR_AS            /data/ipp004.0/elixir/srcdir/refs/2mass.allsky
+2MASS_DIR_DR2           /data/ipp004.0/elixir/srcdir/refs/2mass.dr2
+GSCDIR                  NONE
+USNO_A_DIR              NONE
+USNO_B_DIR              NONE
+TYCHO_DIR               NONE
+
+PHOTCODE_FILE           $CONFDIR/dvo.photcodes
+GSCFILE                 $CONFDIR/GSCregions.tbl
+CATMODE                 SPLIT
+CATFORMAT               PS1_V1
+SKY_DEPTH               3
+# SKY_TABLE             this may be used to override GSCFILE
+ZERO_PT                 25.0
+
+# default values - overridden for specific cameras
+ADDSTAR_RADIUS          1.0
+IMAGE_SCATTER           0.075  # mark images POOR if stdev(Mcal) > IMAGE_SCATTER
+STAR_SCATTER            0.005  # mark stars POOR if stdev(Mrel) > STAR_SCATTER
+IMAGE_OFFSET            0.100  # mark images POOR if abs(delta(Mcal)) > IMAGE_OFFSET
+STAR_CHISQ              10.0   # mark stars POOR if Xm > STAR_CHISQ
+STAR_TOOFEW              3     # mark star FEW if N(good) < STAR_TOOFEW
+IMAGE_TOOFEW            10     # mark image FEW if N(good) < IMAGE_TOOFEW
+IMAGE_GOOD_FRACTION     0.05   # mark image FEW if N(good) < IMAGE_GOOD_FRACTION * Nstars
+
+PM_DT_MIN               0.25
+PM_TOOFEW               4
+POS_TOOFEW              1
+
+RELPHOT_GRID_BINNING    256
+RELPHOT_GRID_X 6
+RELPHOT_GRID_Y 14
+
+SCATTER_LIM             15.0
+MAG_LIM                 20.0   # select stars brighter than this for relphot analysis
+SIGMA_LIM               0.015  # select measurements with dM < SIGMA_LIM for relphot analysis
+
+# access control for client/server addstar mode 
+# PASSWORD
+# HOSTNAME
+# VALID_IP
+
+# camera dependent parameter files:
+FILTER_LIST             $CONFDIR/$CAMERA/dvo.filters
+CAMERA_CONFIG           $CONFDIR/$CAMERA/dvo.layout
+DETREND_RECIPES         $CONFDIR/$CAMERA/dvo.recipe
+
+# load the camera-specific configuration files
+input                   $CONFDIR/$CAMERA/dvo.config
+
Index: branches/simtest_nebulous_branches/operations/configure
===================================================================
--- branches/simtest_nebulous_branches/operations/configure	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/configure	(revision 27840)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+./configure.tcsh $*
Index: branches/simtest_nebulous_branches/operations/configure.tcsh
===================================================================
--- branches/simtest_nebulous_branches/operations/configure.tcsh	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/configure.tcsh	(revision 27840)
@@ -0,0 +1,66 @@
+#!/bin/csh -f
+
+# this is a very low-tech version of configure, not built by autoconf.
+
+# user needs to supply:
+# --opsdir : top-level of operations
+
+set opsdir  = ""
+
+set args    = ""
+
+while ("$1" != "") 
+ switch ("$1")
+   # we need to strip the --opt word and --opt=word versions
+   set word = `echo $1 | tr = ' '`
+   if ($#word == 1) shift
+   breaksw;
+  case --opsdir*
+   if ("$1" == "--opsdir") then
+     shift
+     set opsdir = $1
+   else
+     set opsdir = `echo $1 | tr = ' ' | awk '{print $2}'`
+   endif
+   breaksw;
+  case --help:
+   goto usage
+  case -*: 
+   echo ""
+   echo "Unknown option: $1"
+   goto usage
+  default:
+   set args=($args $1);
+   breaksw;
+ endsw
+ shift
+end
+if ($#args != 1) goto usage
+
+echo
+echo "opsdir: $opsdir"
+echo
+
+if ("$opsdir" == "") goto usage
+
+# convert Makefile.in to Makefile:
+if (-e Makefile) mv -f Makefile Makefile~
+cat Makefile.in | sed "s|@OPSDIR@|$opsdir|" > Makefile
+
+exit 0
+
+usage:
+if ($#args > 1) then
+  echo unrecognized options: $args
+endif
+
+cat <<EOF
+USAGE: configure [OPTION]
+
+set the installation operations directory with --opsdir
+
+Configuration:
+  -h, --help              display this help and exit
+
+EOF
+ exit 2;
Index: branches/simtest_nebulous_branches/operations/detrend/.pantasks
===================================================================
--- branches/simtest_nebulous_branches/operations/detrend/.pantasks	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/detrend/.pantasks	(revision 27840)
@@ -0,0 +1,659 @@
+status
+server input input
+setup
+load.hosts wave.2
+load.hosts.wave.2
+load.hosts.wave2
+load.hosts.wave3
+run
+status
+add.label darktest.beaumont.1
+status
+status
+status
+status
+status
+status
+list.labels
+show.labels
+del.label darktest.beaumont.1
+status
+shutdown now
+server input input
+setup
+load.hosts.wave2
+load.hosts.wave3
+run
+add.label beaumont.darktest.2
+status
+show.labels
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+shutdown now
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+server input input
+setup
+load.hosts.wave2
+load.hosts.wave3
+run
+status
+add.label beaumont.darktest.2
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+show.label
+status
+status
+status
+del.label beaumont.darktest.2
+show.label
+ls
+show.label
+add.label dummy
+status
+show.label
+status
+status
+status
+add.label beaumont.darktest.3
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+shutdown now
+eixt
+server input input
+setup
+load.hosts.wave2
+load.hosts.wave3
+run
+status
+status
+status
+status
+shutdown now
+ls
+ls
+server input input
+setup
+load.hosts.wave2
+load.hosts.wave3
+run
+status
+status
+status
+status
+status
+shutdown now
+status
+server input input
+server setup
+setup
+load.hosts.wave2
+load.hosts.wave3
+run
+status
+status
+shutdown now
+status
+server input input
+setup
+load.hosts.wave2
+run
+status
+status
+status
+shutdown now
+input input
+setup
+load.hosts.wave2
+run
+status
+status
+status
+status
+status
+status
+server input input
+setup
+load.hosts.wave2
+run
+status
+status
+status
+shutdown now
+status
+server input input
+setup
+load.wave.2
+load.hosts.wave.2
+load.hosts.wave2
+load.hosts.wave3
+status
+status
+run
+status
+status
+shutdown now
+status
+status
+server input input
+setup
+load.hosts.wave2
+load.hosts.wave3
+run
+status
+status
+status
+status
+flatcorr.off
+status
+status
+status
+status
+status
+status
+status
+status
+stat
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+shutdown now
+status
+server input input
+setup
+status
+flatcorr.off
+status
+load.hosts.wave2
+load.hosts.wave3
+run
+status
+status
+status
+status
+status
+status
+status
+status
+control status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+shutdown now
+status
+server input input
+setup
+status
+load.hosts.wave2
+load.hosts.wave3
+load.hosts.compute
+run
+status
+status
+status -tasks
+stop
+status
+status
+status -taskstatsreset
+status
+run
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -taskstats
+statu
+status -tasks
+echo {60*2}
+stop
+echo {60*2}
+status -tasks
+status -tasks
+control status
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+control status
+status
+status
+status
+control status
+status
+status
+status
+status
+status
+run
+status
+status
+status
+status
+status -tasks
+status -tasks
+status
+status
+status
+status
+status
+status
+status
+control status
+status
+stop
+status -taskstats
+run
+status
+status
+status
+status
+!dettool -revertstacked -dbname gpc1 -det_id 221
+status
+status
+status
+status
+status
+!dettool -revertresidimfile -dbname gpc1 -det_id 221
+status
+!dettool -revertstacked -dbname gpc1 -det_id 221
+status
+status -taskstats
+status
+!dettool -revertresidimfile -dbname gpc1 -det_id 221
+status
+!dettool -revertresidexp -dbname gpc1 -det_id 221
+!dettool -revertprocessedexp -dbname gpc1 -det_id 221
+status
+status
+status
+status
+status
+status
+status -tasks
+status -tasks
+status -task
+status
+stop
+run
+status
+status
+status -taskstats
+status -taskstats
+status
+control status
+control host off ipp049
+control status
+server input input
+setup
+status
+load.hosts.wave2
+load.hosts.wave3
+run
+status
+status
+status
+status -tasks
+status
+status -tasks
+status
+shutdown now
+server input input
+setup
+status
+load.hosts.wave2
+load.hosts.wave3
+load.hosts.compute
+status
+control status
+run
+status
+status -tasks
+!dettool -revertprocessedimfile -det_id 223 -dbname gpc1
+!dettool -revertprocessedexp -det_id 223 -dbname gpc1
+status
+control status
+status
+status
+control status
+control status
+control status
+status
+status -taskstats
+status -taskstats
+control status
+control status
+status
+status
+status
+status -taskstats
+!dettool -dbname gpc1 -revertresidimfile -det_id 223
+!dettool -dbname gpc1 -revertstacked -det_id 223
+status
+status
+status
+status
+status
+status
+status -tasks
+status -tasks
+!dettool -dbname gpc1 -revertresidexp -det_id 223
+status
+shutdown now
+server input iput
+server input input
+setup
+status
+load.hosts.wave2
+load.hosts.compute
+status
+control status
+run
+control status
+control host off ipp026
+control status
+status
+status
+status
+control status
+control status
+status
+shutdown onw
+shutdown now
+server input input
+setup
+status
+load.hosts.wave2
+load.hosts.wave3
+load.hosts.compute
+status
+run
+status
+status -tasks
+status -tasks
+control status
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+!dettool -dbname gpc1 -revertprocessedimfile -det_id 224
+status -tasks
+status -tasks
+status -tasks
+!dettool -dbname gpc1 -revertprocessedimfile -det_id 224
+status -tasks
+!dettool -dbname gpc1 -revertprocessedexp -det_id 224
+status -tasks
+status -taskstats
+control status
+control status
+status -tasks
+status
+status -tasks
+status -tasks
+status -taskstats
+!dettool -dbname gpc1 -revertresidimfile -det_id 224
+status -tasks
+control status
+status -tasks
+!dettool -dbname gpc1 -revertresidimfile -det_id 224
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status
+status -taskstats
+status -tasks
+!dettool -dbname gpc1 -revertprocessedimfile -det_id 225
+!dettool -dbname gpc1 -revertprocessedexp -det_id 225
+status -task
+status -task
+status -task
+status -tasks
+!dettool -dbname gpc1 -revertprocessedexp -det_id 225
+!dettool -dbname gpc1 -revertstacked -det_id 225
+!dettool -dbname gpc1 -revertresidimfile -det_id 225
+status -tasks
+status
+status
+status
+stop
+shutdown now
+server input input
+setup
+status
+load.hosts.wave3
+load.hosts.wave2
+load.hosts.compute
+status
+run
+status
+status
+status
+status
+status
+status -tasks
+status -tasks
+status -tasks
+echo {50*60}
+!dettool -dbname gpc1 -revertprocessedimfile -det_id 226
+!dettool -dbname gpc1 -revertprocessedexp -det_id 226
+status -tasks
+status -tasks
+!dettool -dbname gpc1 -revertprocessedimfile -det_id 226
+!dettool -dbname gpc1 -revertprocessedexp -det_id 226
+status
+!dettool -dbname gpc1 -revertprocessedexp -det_id 226
+!ls
+!ls -lrt
+status
+!dettool -dbname gpc1 -revertprocessedimfile -det_id 226
+!dettool -dbname gpc1 -revertstacked -det_id 226
+status
+status
+status
+status
+status
+status
+!dettool -dbname gpc1 -revertstacked -det_id 226
+status
+!dettool -dbname gpc1 -revertresidimfile -det_id 226
+status
+status
+status
+status
+status
+status
+!dettool -dbname gpc1 -revertstacked -det_id 226
+status
+status
+status
+status
+status -tasks
+status -tasks
+!dettool -dbname gpc1 -revertresidimfile -det_id 226
+status -task
+status -task
+!dettool -dbname gpc1 -revertnorm -det_id 226
+!dettool -dbname gpc1 -revertnormalizedimfile -det_id 226
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status -tasks
+status
+show.label
+status
+status -tasks
+shutdown now
+status
+server input input
+setup
+load.hosts.wave2
+load.hosts.wave3
+load.hosts.compute
+run
+status
+status
+status -tasks
+status -tasks
+status -tasks
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+show.labels
+shutdown now
Index: branches/simtest_nebulous_branches/operations/detrend/input
===================================================================
--- branches/simtest_nebulous_branches/operations/detrend/input	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/detrend/input	(revision 27840)
@@ -0,0 +1,133 @@
+
+macro setup
+  module pantasks.pro
+  detrend.modules
+
+  module site.mhpcc.pro
+
+  init.copy.mhpcc on
+  queueload tmp -x "cat $MODULES:0/ipphosts.mhpcc.config"
+  ipptool2book tmp ipphosts -key camera
+
+  # XXX merge the above into init.site more cleanly (careful with summit copy stuff)
+  # init.site (we do not use init.site because it loads the hosts)
+
+  add.database gpc1
+  set.poll 100
+end
+
+macro set.poll
+  if ($0 != 2)
+    echo "USAGE:set.poll (value)"
+    break
+  end
+ 
+  $POLLLIMIT = $1
+end
+
+macro get.poll
+  echo "poll limit: $POLLLIMIT"
+end
+
+macro load.hosts.wave1
+  controller host add ipp005 -threads 4
+  controller host add ipp006 -threads 4
+# controller host add ipp007 -threads 4 (respawning?)
+# controller host add ipp008 -threads 4 (flaky)
+  controller host add ipp009 -threads 4
+  controller host add ipp010 -threads 4
+  controller host add ipp011 -threads 4
+  controller host add ipp012 -threads 4
+  controller host add ipp013 -threads 4
+# controller host add ipp014 -threads 4
+# controller host add ipp016 -threads 4 (flaky)
+  controller host add ipp017 -threads 4
+# controller host add ipp018 -threads 4 (flaky)
+# controller host add ipp019 -threads 4 (nebulous)
+  controller host add ipp020 -threads 4
+  controller host add ipp021 -threads 4
+end
+
+macro load.hosts.wave2
+  controller host add ipp015 -threads 4
+  controller host add ipp017 -threads 4
+  controller host add ipp023 -threads 4
+  controller host add ipp024 -threads 4
+  controller host add ipp026 -threads 4
+  controller host add ipp027 -threads 4
+  controller host add ipp028 -threads 4
+  controller host add ipp029 -threads 4
+  controller host add ipp030 -threads 4
+  controller host add ipp031 -threads 4
+  controller host add ipp032 -threads 4
+  controller host add ipp033 -threads 4
+  controller host add ipp034 -threads 4
+  controller host add ipp035 -threads 4
+  controller host add ipp036 -threads 4
+end
+
+macro load.hosts.wave3
+  controller host add ipp038 -threads 4
+  controller host add ipp039 -threads 4
+  controller host add ipp040 -threads 4
+  controller host add ipp041 -threads 4
+  controller host add ipp042 -threads 4
+  controller host add ipp043 -threads 4
+  controller host add ipp044 -threads 4
+  controller host add ipp045 -threads 4
+  controller host add ipp046 -threads 4
+  controller host add ipp047 -threads 4
+  controller host add ipp048 -threads 4
+  controller host add ipp049 -threads 4
+  controller host add ipp050 -threads 4
+  controller host add ipp051 -threads 4
+  controller host add ipp052 -threads 4
+  controller host add ipp053 -threads 4
+end
+
+macro load.hosts.compute
+  controller host add ippc00 -threads 4
+  controller host add ippc01 -threads 4
+  controller host add ippc02 -threads 4
+  controller host add ippc03 -threads 4
+  controller host add ippc04 -threads 4
+  controller host add ippc05 -threads 4
+  controller host add ippc06 -threads 4
+# controller host add ippc07 -threads 4 (pantasks - register)
+  controller host add ippc08 -threads 4
+  controller host add ippc09 -threads 4
+# controller host add ippc10 -threads 4 (pantasks - stdscience)
+  controller host add ippc11 -threads 4
+  controller host add ippc12 -threads 4
+  controller host add ippc13 -threads 4
+  controller host add ippc14 -threads 4
+  controller host add ippc15 -threads 4
+  controller host add ippc16 -threads 4
+  controller host add ippc17 -threads 4
+  controller host add ippc18 -threads 4
+  controller host add ippc19 -threads 4
+end
+
+macro show.book
+  if ($0 != 2)
+   echo "USAGE: show.book (book)"
+   break
+  end
+
+  book npages $1 -var npages
+  for i 0 $npages
+    book getpage $1 $i -var pagename
+    book listpage $1 $pagename
+  end
+
+  echo "npages: $npages"
+end
+
+macro del.page.from.book
+  if ($0 != 3)
+   echo "USAGE: show.book (book) (page)"
+   break
+  end
+
+  book delpage $1 $2
+end
Index: branches/simtest_nebulous_branches/operations/detrend/ptolemy.rc
===================================================================
--- branches/simtest_nebulous_branches/operations/detrend/ptolemy.rc	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/detrend/ptolemy.rc	(revision 27840)
@@ -0,0 +1,5 @@
+
+PANTASKS_SERVER_STDOUT  pantasks.stdout.log
+PANTASKS_SERVER_STDERR  pantasks.stderr.log
+PANTASKS_SERVER         ippc06
+PASSWORD                foobar
Index: branches/simtest_nebulous_branches/operations/pstamp/input
===================================================================
--- branches/simtest_nebulous_branches/operations/pstamp/input	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/pstamp/input	(revision 27840)
@@ -0,0 +1,85 @@
+
+macro setup
+ module pantasks.pro
+ add.database ippRequestServer
+ module pstamp.pro
+
+ # WARNING: don't put quotes around these two words. It will cause it to get passed
+ # to pstamptool as one argument
+ $PS_DBSERVER= -dbserver ipp049
+end
+
+macro add.hosts
+    controller host add ipp021 
+    controller host add ipp024 
+    controller host add ipp026 
+    controller host add ipp028 
+    controller host add ipp029 
+    controller host add ipp030 
+    controller host add ipp031 
+    controller host add ipp032 
+    controller host add ipp033 
+    controller host add ipp034 
+    controller host add ipp035 
+    controller host add ipp036 
+    controller host add ipp038
+    controller host add ipp039
+    controller host add ipp040
+    controller host add ipp041
+    controller host add ipp042
+    controller host add ipp043
+    controller host add ipp044
+    controller host add ipp045
+    controller host add ipp046
+    controller host add ipp047
+    controller host add ipp048
+    controller host add ipp049
+    controller host add ipp050
+    controller host add ipp051
+    controller host add ipp052
+    controller host add ipp053
+end
+
+macro pstamp.status
+    book listbook pstampRequest
+    book listbook pstampJob
+end
+
+macro find.off
+    task pstamp.request.find
+        active false
+    end
+end
+
+macro find.on
+    task pstamp.request.find
+        active true
+    end
+end
+
+macro finish.off
+    task request.finish.run
+        active false
+    end
+end
+
+macro finish.on
+    task request.finish.run
+        active true
+    end
+
+end
+
+macro bump
+    $POLLLIMIT = 100
+end
+
+macro list.values
+    echo LOADPOLL $LOADPOLL
+    echo LOADEXEC $LOADEXEC
+    echo POLLIMIT $POLLLIMIT
+end
+
+macro setdbserver
+    $PS_DBSERVER = -dbserver ipp049
+end
Index: branches/simtest_nebulous_branches/operations/pstamp/ptolemy.rc
===================================================================
--- branches/simtest_nebulous_branches/operations/pstamp/ptolemy.rc	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/pstamp/ptolemy.rc	(revision 27840)
@@ -0,0 +1,4 @@
+PANTASKS_SERVER_STDOUT  pantasks.stdout.log
+PANTASKS_SERVER_STDERR  pantasks.stderr.log
+PANTASKS_SERVER         ipp049
+PASSWORD                foobar
Index: branches/simtest_nebulous_branches/operations/publishing/.pantasks
===================================================================
--- branches/simtest_nebulous_branches/operations/publishing/.pantasks	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/publishing/.pantasks	(revision 27840)
@@ -0,0 +1,104 @@
+input input
+setup
+status
+halt
+run
+status
+halt
+add.label mops.20090629
+run
+status
+show.labels
+!pwd
+!pwd
+show.labels
+status
+status
+status
+halt
+status
+run
+status
+status
+status
+status
+status
+status
+status
+status
+status
+halt
+halt
+run
+status
+status
+status
+status
+status
+status
+status
+status
+halt
+run
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+halt
+!who am i
+run
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+add.label mops.20090701
+status
+status
+status
+server input input
+setup
+status
+run
+status
+status
+status
+stop
+status
+run
+status
+status
+status
+status
+stop
+waveC_nothreads
+run
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+status
+shutdown now
Index: branches/simtest_nebulous_branches/operations/publishing/input
===================================================================
--- branches/simtest_nebulous_branches/operations/publishing/input	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/publishing/input	(revision 27840)
@@ -0,0 +1,109 @@
+macro setup
+    module pantasks.pro
+    module publish.pro
+
+    $POLLLIMIT = 64
+
+    $LOADPOLL = 1
+    $LOADEXEC = 30
+
+    $RUNPOLL = 0.5
+    $RUNEXEC = 1.0
+
+    add.database gpc1
+#    add.label dummy
+    add.label STS.nightlyscience
+    add.label SweetSpot.nightlyscience
+    add.label ThreePi.nightlyscience
+
+    waveC_nothreads
+end
+
+macro change_verbosity
+    $VERBOSE = $1
+end
+
+macro change_polllimit
+    $POLLLIMIT = $1
+end
+
+macro change_runexec
+    $RUNEXEC = $1
+end
+
+macro change_runpoll
+    $RUNPOLL = $1
+end
+
+macro print_verbosity
+    echo $VERBOSE
+end
+
+macro print_polllimit
+    echo $POLLLIMIT
+end
+
+macro print_runexec
+    echo $RUNEXEC
+end
+
+macro print_runpoll
+    echo $RUNPOLL
+end
+
+macro change_loadexec
+    $LOADEXEC = $1
+end
+
+macro change_loadpoll
+    $LOADPOLL = $1
+end
+
+macro print_loadexec
+    echo $LOADEXEC
+end
+
+macro print_loadpoll
+    echo $LOADPOLL
+end
+
+macro waveC_nothreads
+  controller host add ippc00
+  controller host add ippc01
+  controller host add ippc02
+  controller host add ippc03
+  controller host add ippc04
+  controller host add ippc05
+  controller host add ippc06
+  controller host add ippc07
+  controller host add ippc08
+  controller host add ippc09
+  controller host add ippc10
+  controller host add ippc11
+  controller host add ippc12
+  controller host add ippc13
+  controller host add ippc14
+  controller host add ippc15
+  controller host add ippc16
+end
+
+macro waveC
+  controller host add ippc00 -threads $1
+  controller host add ippc01 -threads $1
+  controller host add ippc02 -threads $1
+  controller host add ippc03 -threads $1
+  controller host add ippc04 -threads $1
+  controller host add ippc05 -threads $1
+  controller host add ippc06 -threads $1
+  controller host add ippc07 -threads $1
+  controller host add ippc08 -threads $1
+  controller host add ippc09 -threads $1
+  controller host add ippc10 -threads $1
+  controller host add ippc11 -threads $1
+  controller host add ippc12 -threads $1
+  controller host add ippc13 -threads $1
+  controller host add ippc14 -threads $1
+  controller host add ippc15 -threads $1
+  controller host add ippc16 -threads $1
+end
+
Index: branches/simtest_nebulous_branches/operations/publishing/ptolemy.rc
===================================================================
--- branches/simtest_nebulous_branches/operations/publishing/ptolemy.rc	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/publishing/ptolemy.rc	(revision 27840)
@@ -0,0 +1,6 @@
+
+PANTASKS_SERVER_STDOUT  pantasks.stdout.log
+PANTASKS_SERVER_STDERR  pantasks.stderr.log
+PANTASKS_SERVER         ippc08
+PASSWORD                publishing
+
Index: branches/simtest_nebulous_branches/operations/registration/ptolemy.rc
===================================================================
--- branches/simtest_nebulous_branches/operations/registration/ptolemy.rc	(revision 26065)
+++ branches/simtest_nebulous_branches/operations/registration/ptolemy.rc	(revision 27840)
@@ -2,5 +2,5 @@
 PANTASKS_SERVER_STDOUT  pantasks.stdout.log
 PANTASKS_SERVER_STDERR  pantasks.stderr.log
-PANTASKS_SERVER         ipp009
+PANTASKS_SERVER         ippc02
 PASSWORD                foobar
 
Index: branches/simtest_nebulous_branches/operations/replication/.pantasks
===================================================================
--- branches/simtest_nebulous_branches/operations/replication/.pantasks	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/replication/.pantasks	(revision 27840)
@@ -0,0 +1,103 @@
+server input input
+setup
+run
+status
+status -tasks
+status
+shutdown now
+module pantasks.pro
+server module pantasks.pro
+server module replicate.pro
+server input input
+server input input
+setup
+status
+run
+status
+stop
+shutdown now
+status -tasks
+status
+status
+status -tasks
+status
+status
+status
+controller status
+status
+status -tasks
+status -tasks
+controller status
+status -tasks
+status -tasks
+status -tasks
+status
+controller status
+server input input
+server input input
+$pwd
+!pwd
+!ls
+server input input
+status
+shutdown onw
+shutdown now
+server input input
+status
+setup
+status
+shutdown now
+server input input
+setup
+status
+run
+status
+server input input
+setup
+run
+status
+status
+status
+status
+status
+status
+controller status
+status
+halt
+shutdown now
+server input input
+add.hosts
+load.hosts
+!cat input
+load.hosts
+loadhosts
+addhosts
+init.site
+stei.init
+setup
+status
+run
+status
+status
+status
+status
+status
+status
+status
+status
+shudown now
+shutdown now
+status
+status -tasks
+status
+shutdown now
+status
+status
+shutdown now
+status
+shutdown now
+server input input
+run
+status
+halt
+run
Index: branches/simtest_nebulous_branches/operations/replication/input
===================================================================
--- branches/simtest_nebulous_branches/operations/replication/input	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/replication/input	(revision 27840)
@@ -0,0 +1,23 @@
+
+macro setup
+  module pantasks.pro
+  module replicate.pro
+  module site.mhpcc.pro
+  init.site
+  add.database gpc1
+end
+
+macro resetup
+#  module pantasks.pro
+#  module summit.copy.pro
+#  module site.mhpcc.pro
+#  init.site
+  add.database gpc1
+end
+
+macro replication.status
+  echo "replicatePending"
+  book npages replicatePending
+  book listbook replicatePending
+end
+
Index: branches/simtest_nebulous_branches/operations/replication/params
===================================================================
--- branches/simtest_nebulous_branches/operations/replication/params	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/replication/params	(revision 27840)
@@ -0,0 +1,4 @@
+echo NEB_USER $NEB_USER
+echo NEB_PASS $NEB_PASS
+echo NEB_HOST $NEB_HOST
+echo NEB_DB   $NEB_DB
Index: branches/simtest_nebulous_branches/operations/replication/ptolemy.rc
===================================================================
--- branches/simtest_nebulous_branches/operations/replication/ptolemy.rc	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/replication/ptolemy.rc	(revision 27840)
@@ -0,0 +1,6 @@
+
+PANTASKS_SERVER_STDOUT  pantasks.stdout.log
+PANTASKS_SERVER_STDERR  pantasks.stderr.log
+PANTASKS_SERVER         ipp004
+PASSWORD                foobar
+
Index: branches/simtest_nebulous_branches/operations/stdscience/input
===================================================================
--- branches/simtest_nebulous_branches/operations/stdscience/input	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/stdscience/input	(revision 27840)
@@ -0,0 +1,195 @@
+
+macro setup
+  module pantasks.pro
+
+  module chip.pro
+  module camera.pro
+  module fake.pro
+  module warp.pro
+  module stack.pro
+  module diff.pro
+  module magic.pro
+  module destreak.pro
+  module dist.pro
+  module rcserver.pro
+
+  module survey.pro
+
+  module site.mhpcc.pro
+  init.copy.mhpcc on
+  queueload tmp -x "cat $MODULES:0/ipphosts.mhpcc.config"
+  ipptool2book tmp ipphosts -key camera
+
+  # XXX merge the above into init.site more cleanly (careful with summit copy stuff)
+  # init.site (we do not use init.site because it loads the hosts)
+
+  # magic.ds.off
+
+  add.database gpc1
+  add.label dummy
+  set.poll 180
+end
+
+macro load.hosts.wave1
+  controller host add ipp005 -threads 4 
+  controller host add ipp006 -threads 4
+  controller host add ipp007 -threads 4 
+# controller host add ipp008 -threads 4 (flaky)
+# controller host add ipp009 -threads 4 (problem with cpu 3)
+  controller host add ipp010 -threads 4
+  controller host add ipp011 -threads 4
+  controller host add ipp012 -threads 4
+  controller host add ipp013 -threads 4
+  controller host add ipp014 -threads 4
+# controller host add ipp016 -threads 4 (flaky)
+  controller host add ipp017 -threads 4
+# controller host add ipp018 -threads 4 (flaky)
+  controller host add ipp019 -threads 4 
+  controller host add ipp020 -threads 4
+  controller host add ipp021 -threads 4
+end
+
+macro load.hosts.wave2
+  controller host add ipp015 -threads 4
+  controller host add ipp017 -threads 4
+  controller host add ipp023 -threads 4
+  controller host add ipp024 -threads 4
+  controller host add ipp026 -threads 4
+  controller host add ipp027 -threads 4
+  controller host add ipp028 -threads 4
+  controller host add ipp029 -threads 4
+  controller host add ipp030 -threads 4
+  controller host add ipp031 -threads 4
+  controller host add ipp032 -threads 4
+  controller host add ipp033 -threads 4
+  controller host add ipp034 -threads 4
+  controller host add ipp035 -threads 4
+  controller host add ipp036 -threads 4
+end
+
+macro load.hosts.wave3
+  controller host add ipp038 -threads 4
+  controller host add ipp039 -threads 4
+  controller host add ipp040 -threads 4
+  controller host add ipp041 -threads 4
+  controller host add ipp042 -threads 4
+  controller host add ipp043 -threads 4
+  controller host add ipp044 -threads 4
+  controller host add ipp045 -threads 4
+  controller host add ipp046 -threads 4
+  controller host add ipp047 -threads 4
+  controller host add ipp048 -threads 4
+  controller host add ipp049 -threads 4
+  controller host add ipp050 -threads 4
+  controller host add ipp051 -threads 4
+  controller host add ipp052 -threads 4
+  controller host add ipp053 -threads 4
+end
+
+macro load.hosts.compute
+  controller host add ippc00 -threads 4
+  controller host add ippc01 -threads 4
+  controller host add ippc02 -threads 4
+  controller host add ippc03 -threads 4
+  controller host add ippc04 -threads 4
+  controller host add ippc05 -threads 4
+  controller host add ippc06 -threads 4
+  controller host add ippc07 -threads 4 
+  controller host add ippc08 -threads 4
+  controller host add ippc09 -threads 4
+# controller host add ippc10 -threads 4 (pantasks - stdscience)
+  controller host add ippc11 -threads 4
+  controller host add ippc12 -threads 4
+  controller host add ippc13 -threads 4
+  controller host add ippc14 -threads 4
+  controller host add ippc15 -threads 4
+  controller host add ippc16 -threads 4
+  controller host add ippc17 -threads 4
+#  controller host add ippc18 -threads 4 (ipp home)
+#  controller host add ippc19 -threads 4 (ipp home)
+end
+
+macro show.book
+  if ($0 != 2)
+   echo "USAGE: show.book (book)"
+   break
+  end
+
+  book npages $1 -var npages
+  for i 0 $npages
+    book getpage $1 $i -var pagename
+    book listpage $1 $pagename
+  end
+
+  echo "npages: $npages"
+end
+
+macro del.page.from.book
+  if ($0 != 3)
+   echo "USAGE: show.book (book) (page)"
+   break
+  end
+
+  book delpage $1 $2
+end
+
+macro chip.revert.on
+  task chip.revert
+    active true
+  end
+end
+
+macro chip.revert.off
+  task chip.revert
+    active false
+  end
+end
+
+macro camera.revert.on
+  task camera.revert
+    active true
+  end
+end
+
+macro camera.revert.off
+  task camera.revert
+    active false
+  end
+end
+
+macro warp.revert.on
+  task warp.revert.warped
+    active true
+  end
+  task warp.revert.overlap
+    active true
+  end
+end
+
+macro warp.revert.off
+  task warp.revert.warped
+    active false
+  end
+  task warp.revert.overlap
+    active false
+  end
+end
+
+macro adjust.magic
+  task magic.tree.run
+    periods -poll 0.5
+    periods -exec 1.0
+  end
+  task magic.process.run
+    periods -poll 0.5
+    periods -exec 1.0
+  end
+  task magic.tree.load
+    periods -poll 1.0
+    periods -exec 5.0
+  end
+  task magic.process.load
+    periods -poll 1.0
+    periods -exec 5.0
+  end
+end
Index: branches/simtest_nebulous_branches/operations/stdscience/ptolemy.rc
===================================================================
--- branches/simtest_nebulous_branches/operations/stdscience/ptolemy.rc	(revision 27840)
+++ branches/simtest_nebulous_branches/operations/stdscience/ptolemy.rc	(revision 27840)
@@ -0,0 +1,5 @@
+
+PANTASKS_SERVER_STDOUT  pantasks.stdout.log
+PANTASKS_SERVER_STDERR  pantasks.stderr.log
+PANTASKS_SERVER         ippc10
+PASSWORD                foobar
Index: branches/simtest_nebulous_branches/operations/summitcopy/ptolemy.rc
===================================================================
--- branches/simtest_nebulous_branches/operations/summitcopy/ptolemy.rc	(revision 26065)
+++ branches/simtest_nebulous_branches/operations/summitcopy/ptolemy.rc	(revision 27840)
@@ -2,5 +2,5 @@
 PANTASKS_SERVER_STDOUT  pantasks.stdout.log
 PANTASKS_SERVER_STDERR  pantasks.stderr.log
-PANTASKS_SERVER         ipp007
+PANTASKS_SERVER         ippc01
 PASSWORD                foobar
 
