38 | | |
39 | | alias 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; |
| 38 | alias jmdq='echo "select count(*) as count, request_type as type, substr(series_name,1,20) as series from drms.su_cache where state <> '"'DONE'"' group by request_type, series_name" | |
| 39 | '`ijcmd`; |
| 40 | alias jmdq0='echo "select count(*) from drms.su_cache where state <> '"'DONE'"'" | '`ijcmd`; |
41 | | alias 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; |
| 42 | alias jmdstale='echo "select count(*) as count,substr(series_name,1,20) as series,request_type as type, min(elapse_Time) as min_time, max(elapse_time) as max_time from drms.su_cache where elapse_time > 1200 group by series_name, request_type" | '$IJCMD; |
| 48 | # alias jmdofln='echo "select su_cache.sunum, sum62.sunum from drms.su_cache as su_cache left join sum62 on su_cache.sunum = sum62.sunum where state='"'OFLN'"'; " | `ijcmd`' |
| 49 | }}} |
| 50 | |
| 51 | And what they all do: |
| 52 | |
| 53 | {{{ |
| 54 | drms : connect to the DRMS database using psql (command line postgres client) |
| 55 | sums : connect to the SUMS database using psql (command line postgres client) |
| 56 | ij : connect to the JMD database using ij (command line derby client) |
| 57 | |
| 58 | jmd : script to start/stop the JMD service. (call using `jmd start` or `jmd stop`) |
| 59 | |
| 60 | sumtail : tail -f the most recent sums log |
| 61 | jmdtail : tail -f the most recent jmd log |
| 62 | jmdcat : cat the most recent jmd log |
| 63 | |
| 64 | drmsq : report the number of items in the DRMS sunum_queue table |
| 65 | drmsq2 : report the number of items per series in the DRMS sunum_queue table |
| 66 | |
| 67 | jmdq : report the number of items per series in the JMD drms.su_cache table that are not marked 'DONE'. |
| 68 | jmdq0 : report the number of items (a single number) in the JMD drms.su_cache table that are not marked 'DONE'. |
| 69 | jmdq2 : report the number of items in the JMD drms.su_cache table, broken down by series & processing state. |
| 70 | |
| 71 | jmdspeed : a count of how many SCPs per minute have recently completed |
| 72 | jmdspeedxl : a count of how many SCPs per minute have completed (looks further back through the JMD logs) |
| 73 | jmdspeed2 : a count of how many SCPs per hour have completed over the last day or so. |
| 74 | |
| 75 | jmdstale : report on things in the JMD drms.su_cache table that have elapsed times of more than 20 min. |
| 76 | jmdofln : (note, requires populating a 'sum62' table) : report on which items marked as 'ofln' were on the JSOC /SUM62 partition |