# Presentation: 189595

## How to Use the SCF in Today’s Environment

- June 13, 2007
- DMT Meeting
- Lisa Coleman, Scott Zentz
- Denise Cooper, Walt Miller

## Topics

- Currently Accessible SCF Computers
- Which Machines to Use for What
- Contact information
- So Far and What’s Next
- Editing SAN Files from Your iMac (Miller)
- Tricks & Info (Cooper)
- Submitting  a Job to the Cluster (Cooper)

## Currently Accessible SCF Computers

| Individual Workstations | iMacs, PCs, SUNs, etc. |
| --- | --- |
| manila, corregidor | Mac G5 servers |
| Mac cluster | Multiple Mac G5 computers controlled by a single head node |
| thunder, lightning
(16 processors each) | SGI’s high performance   computer with compiler |
| Lanina
(36 processors) | SGI’s high performance computer |

## Which Machine to Use for What

| Individual Workstations | File editing and activities such as email, calendars, etc. |
| --- | --- |
| manila, 
corregidor |  Compile & test before running on cluster
 Changing Open Directory passwords
 Submitting jobs to the cluster |
| Mac cluster | Simultaneously execute multiple jobs  |
| thunder,
lightning | Editing, compiling, and executing software |
| lanina | Executing compiled software |

## Contact Information

- SCF system malfunctions
-          help@asdsun
- ASDC system malfunctions
-           help@sorcerer
- Cluster job submittal
-         help@asdsun
- NOMAD questions
-       donald.p.garber@nasa.gov
- General “How to” type questions
-         help@asdsun

## So Far and What’s Next

- Recently accomplished goals (CERES DMT)
-       Deployment of the iMacs
-       Migration to the san
- Near term goals
-       Maximize use of cluster as intended
-       Move off of thunder and lightning
- Long term
-       Move off of lanina
-       Make use of Intel machines on cluster

## Editing SAN Files from your iMac

- Walter Miller
- SSAI
- June 13, 2007

## Overview

- Attaching CERES SAN
- Finder
- Darwin Terminal
- Editors

## Attaching SAN Step 1

- From Finder, Highlight Go and select Connect to Server
- Apple K should also bring the next window up

## Selecting SAN

- The CERES SAN is cebu.larc.nasa.gov
- NFS mount for old system is below
- SA needs to set this portion up

## Logging into SAN

- Change the name from alias to Manila user name,
- i.e. miller not Walt Miller

## Select Correct Volume

## Next Window

- Select your folder (directory)

## Reaching it from Finder

## Opening File with Default

## Selecting Editor

- A couple of other editors are shown

## Darwin Terminal

- Mounted file systems under /Volumes
- Command for various editors

## Available Editors

- Carbon Emacs
- Nedit
- TextEditor
- TextWrangler
- Xcode
- Can use file open menu to get to SAN

## TextWrangler

## Quirks

- Some editors will open new file on desktop that the editor is already open, not where terminal is.
- TextWrangler will save line numbers to file if using option.
- Nedit does not appear as an option from finder.
- In Nedit, need to hit enter after selecting folder to list next level.
- Different hot keys between editors.

## Tricks & Info

- Denise Cooper
- SSAI
- June 13, 2007

## Tricks & Info

**To log into a different system, eg. Warlock**
- In X11 menu –
- Select Customize
- Select Duplicate for Terminal
- Edit the new Terminal line by double clicking each field
- Change Terminal to warlock
- Change the command xterm to the following:
**xterm –geometry 155x50+130+150 –title WARLOCK –bg “midnight blue” –fg white –fa Monaco –fs 12 –sb –sl 1000 –e sh –c “ssh –Y warlock –p 250 –l cooper”**
**Or**
**xterm –geometery 155x50+130+150 –title WARLOCK –bg “#154031” –fg white –fa Monaco –fs 12 –sb –sl 1000 –e sh –c “ssh –Y warlock –p250 –l cooper”**

## Tricks & Info

- To see color numbers such as “#154031” go to the following: _[URL://http:houseof3d.com/pete/applets/tools/colors](file:///http:houseof3d.com/pete/applets/tools/colors)_
- The above URL was discovered by Taiping Zhang and allows you to move a set of sliders to select color numbers for background and foreground.  The colors must be surrounded by quotes and have a # before the six digits as shown above.

## Tricks &  Info

**To mount the SAN disk to your machine:**
- Select Finder
- In the Finder menu select Go - Connect to Server
- Make sure to change the name listed to your login name for manila/corregidor and fill in your password and click Connect.
- A Finder window will appear and you should then select CERES
- An icon with a globe and CERES underneath will appear on your desktop and you now have access to your directories on the SAN.

## Tricks & Info

**To edit a file using CarbonEmacs**
- In your .cshrc file add the following line:
- alias emacs ‘open –a /Applications/Emacs.app’
- This will allow you to open emacs directly from a terminal window on your machine.
- Open a new X11 terminal window on your machine

## Tricks & Info

- cd /Volumes/CERES/instrument-san/development/denise_area/rel4/rcf
- emacs CER1.1P3_input_find.csh
- This will bring up an emacs window, remember that the normal menu you are used to seeing on emacs on thunder will be up at the top of your screen on your iMac.  You will also notice if you try to emacs the same file on thunder it will tell you that the file is locked.
- You may also use nedit or any other editor that you prefer, even vi.

## Tricks & Info

**Editing a FrameMaker document**
- Make sure the FrameMaker document resides on your iMac
- Open up dingo using the Citrix server on your iMac
- Select Start – Programs – Adobe – FrameMaker 7.0 – Adobe FrameMaker 7.0
- In FrameMaker select File – Open – C$ on ‘Client’ (V:) – select file you want to edit
- If the Start button does not show up on your dingo server, select MyComputer from the desktop and then select the FrameMaker file from there starting from C$ on ‘Client’ (V: )

## Submitting a Job to the Cluster

**You may want to look at an example of a script that submits a set of jobs to the cluster where each creates the PCFin, PCF and runs the job on a Node:**
**	****/CERES/instrument-san/development/denise_area/mac/rcf/jobSubmitter_p**
- 	This script requires that you have a couple of directories and other scripts in your rcf area:  joblogs/ & Ed3_Repro/
- 	You can copy this script and those in Ed3_Repro and edit them to work in your area.  Remember that you must source your environment when you submit a job to a cluster node – it does not have the environment that you have on manila carried over to the cluster node, it is a NEW machine, so nothing is set up until you do it in your script.  This is the same as how it works in production at ASDC.

## Submitting a Job to the Cluster

- Things you will need:
- Account on manila/corregidor, at this time you can only submit jobs from these two machines
- wrapper script
- joblogs directory – for your wrapper.sh.oxxxxx & wrapper.sh.exxxxx files
- Command to submit a job:
- qsub –S /bin/csh –V –o <output_file_directory> –e <error_file_directory> –q <queue_name> <wrapper_script_name> <script variables>  **OR**
- qsub –S /bin/csh –V –o <output file directory> -j y –q <queue name> <wrapper script name> <script variables>

## Submitting a Job to the Cluster

- Examples:
- qsub –S /bin/csh –V –o /CERES/instrument-san/rcf/joblogs –e /CERES/instrument-san/rcf/joblogs –q processing /CERES/instrument-san/rcf/Ed3_Repro/wrapper.sh 20070613 FM1
- qsub –S /bin/csh –V –o /CERES/instrument-san/rcf/joblogs –j y –q processing /CERES/instrument-san/rcf/Ed3_Repro/wrapper.sh 20070613 FM1