Changes between Version 1 and Version 2 of jmdDebug


Ignore:
Timestamp:
02/24/15 13:50:26 (10 years ago)
Author:
joe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jmdDebug

    v1 v2  
    44 
    55**note** : Joe H. wrote up some notes a while back re: the queues / sum service, etc. 
     6 
     7== Useful Aliases == 
     8 
     9I use these (note, bash shell) aliases to help with debugging things.  You may need to adjust some of the variables to match your system.  (see the NetDRMS file 'config.local') 
     10 
     11{{{ 
     12export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}"; echo -ne "\007"' 
     13 
     14export JSOC_ROOT=/opt/netdrms/ 
     15export JSOC_DBHOST=sdo4localhost 
     16export JSOC_DBNAME=sdac_drms 
     17export JSOC_DBUSER=[CENSORED] 
     18 
     19export DRMS=$JSOC_ROOT 
     20export SUMSSERVER=sdo4localhost 
     21export PATH=$PATH:/home/sums/bin:/home/sums/scripts 
     22 
     23alias drms="psql -U $JSOC_DBUSER -d $JSOC_DBNAME" 
     24alias sums="psql -U $JSOC_DBUSER -d ${JSOC_DBNAME}_sums -p 5434" 
     25# alias jetty='sudo /opt/jetty/bin/jetty.sh' 
     26# alias apachectl='sudo /usr/sbin/apachectl' 
     27 
     28export DERBY_HOME=/opt/derby 
     29# alias ij=/opt/derby/bin/ij 
     30alias ij=/opt/JMD/bin/jmdij 
     31alias jmd='sudo /opt/JMD/bin/JMD.sh' 
     32 
     33alias sumtail='tail -f `ls -1t /usr/local/logs/SUM//sum_svc*| head -1`' 
     34alias drmsq='drms -c "select count(*) from sunum_queue"' 
     35alias drmsq2='drms -c "select count(*), series_name from sunum_queue group by series_name"' 
     36export IJCMD='/usr/bin/java -classpath '`ls -1t /opt/JMD/jar/*.jar | head -1`' -Dij.connection.jmdDB=jdbc:derby://localhost:31001//opt/derby/derbyDB 
     37org.apache.derby.tools.ij' 
     38 
     39alias jmdq='echo "select count(*) as count, request_type as type, substr(series_name,1,20) as series from drms.su_cache group by request_type, series_name" | '$IJCMD; 
     40alias jmdq2='echo "select count(*) as count, state, request_type as type, substr(series_name,1,20) as series from drms.su_cache group by state,request_type, series_name" | '$IJCMD; 
     41alias jmdstale='echo "select count(*),substr(series_name,1,20),request_type, min(elapse_Time), max(elapse_time) from drms.su_cache where elapse_time > 1200 group by series_name, request_type" | '$IJCMD; 
     42alias jmdspeed='tail -n 2000 `ls -1t /opt/JMD/log/*stderr* | head -1` | grep DONE | cut -d: -f1-2 | uniq -c' 
     43alias jmdspeedxl='grep DONE `ls -1t /opt/JMD/log/*stderr* | head -1` | tail -n 2000 | cut -d: -f1-2 | uniq -c' 
     44alias jmdspeed2='grep DONE `ls -1tr /opt/JMD/log/*stderr*  | tail -3`  | cut -d: -f2 | uniq -c' 
     45alias jmdtail='tail -f `ls -1t /opt/JMD/log/*stderr* | head -1`' 
     46alias jmdcat='cat `ls -1t /opt/JMD/log/*stderr* | head -1`' 
     47}}} 
     48 
    649 
    750== Restarting the JMD ==