Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • In tcsh, source the setup script containing

    Code Block
    setenv BINDIR redhat6-x86_64-64bit-gcc44-Optimized
    setenv INST_DIR /afs/slac/g/glast/ground/ASP/prod/ASP-07-00-00
    setenv GLAST_EXT /afs/slac/g/glast/ground/GLAST_EXT/redhat6-x86_64-64bit-gcc44
    astrotools
    
    source ${INST_DIR}/bin/${BINDIR}/_setup.csh
    setenv TNS_ADMIN /u/gl/glast/oracle/admin
    setenv ORACLE_HOME /afs/slac.stanford.edu/package/oracle/f/11.1.0/amd64_linux26/11.1.0
    setenv LD_LIBRARY_PATH ${ORACLE_HOME}/lib:${LD_LIBRARY_PATH}
    setenv PYTHONPATH /afs/slac/g/glast/ground/PipelineConfig/ASP/python/lib/python2.6_x86_64/site-packages:/afs/slac/g/glast/ground/PipelineConfig/GPLtools/prod/python:${PYTHONPATH}
    setenv PATH ${INST_DIR}/bin/${BINDIR}:${PATH}
    setenv PFILES ".;${BASE_DIR}/syspfiles:/dev/null"
    setenv CALDB /afs/slac.stanford.edu/g/glast/ground/ASP/prod/fermitools_irfs/irfs/caldb/CALDB
    setenv CALDBCONFIG ${CALDB}/software/tools/caldb.config
    setenv CALDBALIAS ${CALDB}/software/tools/alias_config.fits
    
    set prompt="[ASP]$ "
  • Install the ASP distribution in the ASP/prod area on afs, where ASP-vv-rr-pp is the tag, e.g., ASP-07-00-00:

    Code Block
    ssh rhel6-64
    cd /afs/slac/g/glast/ground/ASP/prod
    cvs co -r ASP-vv-rr-pp ASP-scons
    mv ASP-scons ASP-vv-rr-pp
  • Edit pyASP/python/databaseAccess.py to enable the asp_prod oracle wallet user, i.e., comment the relevant code block like this:

    Code Block
    #try:
    #    #
    #    # Reset the default to prod if running in the PROD pipeline.
    #    #
    #    if os.environ['PIPELINESERVER'] == "PROD":
    #        asp_default = asp_prod
    #except KeyError:
    #    #
    #    # We may be running interactively (and did not set PIPELINESERVER), 
    #    # so keep "DEV" as the default.
    #    #
    #    print "Warning: Using dev db tables."
    #    pass
  • cd to the associated ScienceTools build in afs, edit the Makefile entry for ASP_prod to point to the ASP tag, build ASP_prod, and return to /afs/slac/g/glast/ground/ASP/prod:

    Code Block
    pushd /afs/slac/g/glast/ground/releases/volume02/ScienceTools-09-32-05
    <edit Makefile>
    make ASP_prod
    popd
  • Move the ASP symlink in /afs/slac/g/glast/ground/ASP/prod to point to the tagged installation:

    Code Block
    ln -sf ASP-vv-rr-pp ASP
  • Ensure the location of aspLauncher.sh is correct (This is used by P-II L1Proc to launch the ASP pipelines.):

    Code Block
    cd /afs/slac/g/glast/ground/links/data/ASP
    ln -sf /afs/slac/g/glast/ground/ASP/prod/ASP/bin/redhat6-x86_64-64bit-gcc44-Optimized/aspLauncher.sh
  • Ensure the location of ingestNoticeQueue_rh6-64.sh is correct:

    Code Block
    cd /afs/slac/g/glast/ground/ASP/GCN_Archive/
    ln -sf /afs/slac/g/glast/ground/ASP/prod/ASP/bin/redhat6-x86_64-64bit-gcc44-Optimized/ingestNoticeQueue.sh ingestNoticeQueue_rh6-64.sh
  • Check that the notices are being properly ingested by the cron job at 5 min intervals (See Current Cronjobs for chronjob locations.)

    Code Block
    ssh fermilnx-v05
    cd /scratch/ASP
    ls -l
  • Ensure the location of make_monitored_source_list.sh is correct.  This is called by makeDrpLcTables.sh on rhel6-64 via trscrontab.:

    Code Block
    cd /afs/slac/g/glast/ground/links/data/ASP
    ln -sf /afs/slac/g/glast/ground/ASP/prod/ASP/bin/redhat6-x86_64-64bit-gcc44-Optimized/make_monitored_source_list.sh
  • The preceding relocated .sh scripts need to be edited to set the INST_DIR environment variable internally:

    Code Block
    export INST_DIR=/afs/slac/g/glast/ground/ASP/prod/ASP-vv-rr-pp
  • Edit make_monitored_source_list.sh to define DRPMONITORINGROOT env var:

    Code Block
    export DRPMONITORINGROOT=/afs/slac/g/glast/ground/ASP/prod/ASP-vv-rr-pp/drpMonitoring
  • Copy the GCN_Notice_processor.py script for the procmail GCN ingest process:

    Code Block
    cd /afs/slac/g/glast/ground/PipelineConfig/ASP/bin 
    cp /afs/slac/g/glast/ground/ASP/prod/ASP/grbASP/python/GCN/GCN_Notice_processor.py .
  • Install any new xml task defs into P-II:

    Code Block
    aspLauncher/xml/AspInsertIntervals.xml
    aspLauncher/xml/AspLauncher.xml
    asp_pgwave/xml/PGWAVE.xml
    drpMonitoring/xml/DRP_monitoring.xml
    grbASP/xml/GRB_afterglow.xml
    grbASP/xml/GRB_afterglow_launcher.xml
    grbASP/xml/GRB_blind_search.xml
    grbASP/xml/GRB_refinement.xml
    grbASP/xml/GRB_refinement_launcher.xml
  •  Update the relevant configs in the db tables:

    Code Block
    GRB_ASP_CONFIG   STARTDATE=456833103 456845884   ENDDATE=618796803  IRFS=P8R2_TRANSIENT020_V6   THRESHOLD=319
    SOURCEMONITORINGCONFIG  STARTDATE=456840000  ENDDATE=618796803  IRFS=P8R2_SOURCE_V6  ST_VERSION=10-01-01 ASP_VERSION=07-00-00 FT1_FILTER='(EVENT_CLASS & o200) != o0'