Background
ctx -- check DEIMOS software processes
Purpose
Check tasks and give back helpful output
Type
Perl 5 script
Usage
ctx
Discussion
There are various kinds of processes running with DEIMOS:
- Required daemons (traffic, watch_ccd, dispatchers)
If these are not running
during observing, then an alarm should be raised. They all
run under the kics account.
- Required user software: science (lickserv2, ds9, etc.)
These are required to operate the instrument. It is not an
error condition if one is not running. It is not okay to
start up the user software if any of these processes is
already running.
- Optional user software: science (dashboard, etc.)
These are not required to operate the instrument. It is not
an error condition if they are not running. It is okay to
start the instrument if one is running.
- Required user software: FCS (lickserv, kfigdisp, etc.)
These are required to operate the FCS. It is not an error
condition if one is not running. It is okay to start up the
user software if any of these processes is already running.
It is NOT okay to start up FCS if one of these processes is
already running.
- Optional user software: FCS (xpose, etc.)
These are not required to operate the FCS. It is not an
error condition if they are not running. It is okay to
start the instrument if one is running.
Example
Host Process Type Want Got Status
---- ------- ---- ---- --- ------
keamano traffic daemon 1 1 OK
keamano watch_ccd daemon 2 2 OK
keamano dispatcher2 daemon 2 2 OK
keamano dispatcher.tcl daemon 5 5 OK
keamano monitor.sh daemon 3 3 OK
keamano dremel daemon 1 1 OK
polo lickserv2 daemon 1 1 OK
polo ktui inst 2 3 OK
polo write_image inst 1 1 OK
polo ds9 inst 1 1 OK
polo ds9relay inst 1 1 OK
polo kfigdisp fcs 1 1 OK
polo lickserv fcs 1 2 OK
polo fcstrack.offlin fcs 1 1 OK
Current KEAMANO tasks:
kics 14565 2.9 0.6 1728 1304 ? S 15:25:03 4:58 traffic
kics 14806 0.2 1.513216 3520 pts/2 S 15:36:18 0:21 watch_ccd
kics 14591 0.1 1.713592 4128 pts/2 S 15:25:03 0:27 watch_ccd
kics 14621 0.1 1.1 3048 2624 pts/2 S 15:25:05 0:05 dispatcher2
kics 14606 0.0 1.0 2896 2456 pts/2 S 15:25:04 0:04 dispatcher2
kics 14578 6.8 3.7 9528 9168 pts/2 S 15:25:03 16:49 dispatcher.tcl
kics 14634 3.6 2.2 5688 5336 pts/2 S 15:25:06 5:00 dispatcher.tcl
kics 14647 0.5 2.3 5896 5544 pts/2 S 15:25:07 1:03 dispatcher.tcl
kics 14660 0.0 2.1 5584 5224 pts/2 S 15:25:10 0:20 dispatcher.tcl
kics 14673 0.0 2.1 5536 5176 pts/2 S 15:25:12 0:02 dispatcher.tcl
kics 14707 0.0 0.6 2472 1368 pts/2 S 15:25:15 0:00 monitor.sh
kics 14728 0.0 0.6 2472 1368 pts/2 S 15:25:17 0:00 monitor.sh
kics 14748 0.0 0.6 2472 1368 pts/2 S 15:25:18 0:00 monitor.sh
kics 14703 0.3 3.1 9528 7656 pts/2 S 15:25:14 0:24 dremel
Current POLO tasks:
kics 9023 0.0 0.2 4200 3096 pts/26 S 15:25:28 3:54 lickserv2
deimos1 24695 0.6 0.81760016168 ? S 18:35:57 0:24 ktui
deimos1 11773 0.3 0.71568814296 ? S 15:28:51 0:36 ktui
deimos1 13159 0.0 1.42957628112 ? S Feb 14 14:02 ktui
deimos1 10899 0.0 0.2 3752 2648 ? S 15:28:17 1:45 write_image
deimos1 10975 0.0 1.55636828400 ? S 15:28:17 6:38 ds9
deimos1 11579 0.1 0.3 5864 5080 ? S 15:28:49 0:02 ds9relay
deimos1 11746 0.1 0.4 9456 7448 ? S 15:28:51 0:01 kfigdisp
deimos1 11738 0.1 0.2 5376 3088 ? S 15:28:51 0:09 lickserv
deimos1 12224 0.1 0.2 5336 2688 ? S 15:29:11 0:06 lickserv
deimos1 11814 0.6 0.1 2008 1744 pts/27 S 15:28:51 3:00 fcstrack.offlin
daemon status: OK
instrument status: OK
FCS status: OK