r3 - 21 Feb 2007 - 18:24:29 - TuongHuynhYou are here: TWiki >  Main Web > ResourceBrokerExample1
<LINK href="/twiki/pub/TWiki/WysiwygPlugin/kuputwiki.css" type=text/css rel=stylesheet

Example 1

Config new server and application to run "ps -ef" command and get the result.

Parameters for this example

- Server name: abc.hec.utah.edu

- Application name: PS

- Output file name: process.out

Step by Step instruction

1. Start Resource broker:   Go to the menu bar

- Tools --> Resource Broker 

2. Add new server:

Resource_Broker.JPG

- Go to File --> Preference

  Application_Configuration.JPG

- Go to File --> Config Server

 server_configuration.JPG 

- Click New button --> Enter the hostname --> Click Ok

- Fill text boxes with your username and password; then check the interactive check box

- Click Test Connection button --> The dialog will let you know if the authentication information is valid.

- Click Save&Close

3. Add new application: From Application Configuration windows    

Application_Configuration_with_Script.JPG

- Choose the newly added server from the server combo box.

- Go to the File menu --> Add Application menu Type "PS" as your application name --> Click Ok

- PS will appear in the Application combo box

- Put your script in the Script text box. It's something like the following:

             
      #!/bin/csh              
      cd $EXEDIR/$JOBDIR              
      ps -ef > $OUT                   
      

- Fill $EXEDIR text box with your directory on the server. This directory must exist on your server.

- Save and exit.

4. Submit your job:   From Resource Broker window

 Submit_job.JPG 

- Select your server in the resource table

- Fill the output file text box under the Output File tab with "process.out"

- Click the Submit Job button. You will see a progress bar. And then your job appears in the Job status table.

- Click Update Job State button. The job status will change to accordingly.

- Click Output button to view output files.

Enjoy with your result.

-- TuongHuynh - 14 Feb 2007

Topic attachments
I Attachment Action Size Date Who Comment
jpgJPG Resource_Broker.JPG manage 57.9 K 14 Feb 2007 - 21:23 TuongHuynh  
jpgJPG Application_Configuration.JPG manage 43.1 K 14 Feb 2007 - 21:23 TuongHuynh  
jpgJPG Application_Configuration_with_Script.JPG manage 42.4 K 14 Feb 2007 - 21:24 TuongHuynh  
jpgJPG Submit_job.JPG manage 51.1 K 14 Feb 2007 - 21:24 TuongHuynh  
jpgJPG server_configuration.JPG manage 34.3 K 14 Feb 2007 - 21:46 TuongHuynh  
elseEXT ProjectPlannerPlugin manage 4.0 K 20 Jun 2007 - 03:22 UnknownUser  
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
CSE-Online
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback