(file) Return to whattodo_dcs.txt CVS log (file) (dir) Up to [Development] / JSOC / doc

File: [Development] / JSOC / doc / whattodo_dcs.txt (download)
Revision: 1.3, Fri Jun 28 15:41:54 2013 UTC (9 years, 11 months ago) by production
Branch: MAIN
CVS Tags: Ver_LATEST, Ver_DRMSLATEST, Ver_9-5, Ver_9-41, Ver_9-4, Ver_9-3, Ver_9-2, Ver_9-1, Ver_9-0, Ver_8-8, Ver_8-7, Ver_8-6, Ver_8-5, Ver_8-4, Ver_8-3, Ver_8-2, Ver_8-12, Ver_8-11, Ver_8-10, Ver_8-1, NetDRMS_Ver_LATEST, NetDRMS_Ver_9-5, NetDRMS_Ver_9-41, NetDRMS_Ver_9-4, NetDRMS_Ver_9-3, NetDRMS_Ver_9-2, NetDRMS_Ver_9-1, NetDRMS_Ver_9-0, NetDRMS_Ver_8-8, NetDRMS_Ver_8-7, NetDRMS_Ver_8-6, NetDRMS_Ver_8-5, NetDRMS_Ver_8-4, NetDRMS_Ver_8-3, NetDRMS_Ver_8-2, NetDRMS_Ver_8-12, NetDRMS_Ver_8-11, NetDRMS_Ver_8-10, NetDRMS_Ver_8-1, HEAD
Changes since 1.2: +7 -2 lines
*** empty log message ***

	/home/production/cvs/JSOC/doc/whattodo_dcs.txt  14Apr2010

	--------------------------------------------------------
	Summary of starting a dcs0 or dcs1 machine after a reboot
	--------------------------------------------------------

NOTE:IMPORTANT: Please keep in mind that each data capture machine has its
own independent /home/production and is accessed via j0.
Note the SUMS database is jsocdc. This is a separate DB on each dcs.

dcs0 = AIA
dcs1 = HMI

1. Login as user postgres:
(This s/b running from the boot of the machine:
/usr/local/pgsql-8.4/bin/postgres -D /var/lib/pgsql/dcs1_data)

> ssh-agent | head -2 > /var/lib/pgsql/ssh-agent.env
> chmod 600 /var/lib/pgsql/ssh-agent.env
> source /var/lib/pgsql/ssh-agent.env (NOTE: ^D if you went into csh earlier)
> ssh-add
(The password is written on my whiteboard (old production prod... passwd)) 

2. Login as user production: 

> ssh-agent | head -2 > /var/tmp/ssh-agent.env
> chmod 600 /var/tmp/ssh-agent.env
> source /var/tmp/ssh-agent.env
> ssh-add 
(The password is written on my whiteboard (old production prod... passwd))
NOTE: cron jobs use this /var/tmp/ssh-agent.env file

3. Start sum_svc and related programs:

> sum_start_dc

4. Start the vncserver:

> cd /home/production/cvs/JSOC/proj/datacapture
> vncserver -geometry 1280x1024

You will require a password to access your desktops.

Password: production password (basically no ....)
Verify:
Would you like to enter a view-only password (y/n)? n

New 'X' desktop is dcs0.Stanford.EDU:1

5. Login as production on j0:

> vncviewer

(answer what vncserver told you, e.g. dcs0.Stanford.EDU:1)
(password is the 'basically no data')

6. In the window that vncviewer opened do:

> cd /home/production/cvs/JSOC/proj/datacapture/scripts>
> ./socdc

All you would normally do is hit "Start Instances for HMI" or AIA for
what datacapture machine you are on.

=============================================================================

Stopping a dcs machine:
-----------------------

Hit the red "Exit" button on the VNC display of the socdc gui.
If you are not local ps and kill socdc. !!NOTE: If you
directly kill socdc you MUST also kill the 2 ingest_tlm processes.



Karen Tian
Powered by
ViewCVS 0.9.4