Скачать презентацию GLite Alien -EGEE middleware Практический курс Галактионов В Скачать презентацию GLite Alien -EGEE middleware Практический курс Галактионов В

3d462f64ee3a481b41614c4b3b1b2c86.ppt

  • Количество слайдов: 44

GLite (Alien) -EGEE middleware. Практический курс Галактионов В. В пользователя Дубна, ОИЯИ GLite - GLite (Alien) -EGEE middleware. Практический курс Галактионов В. В пользователя Дубна, ОИЯИ GLite - EGEE Middleware 1

Система безопасности информации Privacy Шифрование Integrity Цифровая подпись Authentication Сертификаты Authorisation GLite - EGEE Система безопасности информации Privacy Шифрование Integrity Цифровая подпись Authentication Сертификаты Authorisation GLite - EGEE Middleware 2

Сертификат пользователя Получение сертификата Для Церна руководство по адресу: http: //service-grid-ca. web. cern. ch/service-grid-ca/help/user_req. Сертификат пользователя Получение сертификата Для Церна руководство по адресу: http: //service-grid-ca. web. cern. ch/service-grid-ca/help/user_req. html Для ОИЯИ: lxpub 01: ~ > grid-cert-request GLite - EGEE Middleware 3

A certificate request and private key is being created. You will be asked to A certificate request and private key is being created. You will be asked to enter a PEM pass phrase. This pass phrase is akin to your account password, and is used to protect your key file. If you forget your pass phrase, you will need to obtain a new certificate. Using configuration from /etc/grid-security/globus-user-ssl. conf Generating a 1024 bit RSA private key. . . ++++++ writing new private key to '/afs/jinr. ru/user/g/gvv/. globus/userkey. pem' Enter PEM pass phrase: Verifying password - Enter PEM pass phrase: ----You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '. ', the field will be left blank. ----Country Name (2 letter code), do not change! [RU]: Level 0 Organization, do not change! [Data. Grid]: Your institution domain name (e. g. jinr. ru) [jinr. ru]: Your full name (e. g. Ivan Petrov) []: GLite - EGEE Middleware 4

A private key and a certificate request has been generated with the subject: /C=RU/O=Data. A private key and a certificate request has been generated with the subject: /C=RU/O=Data. Grid/OU=jinr. ru/CN=Galaktionov Victor If the CN=Galaktionov Victor is not appropriate, rerun this script with the -force -cn "Common Name" options. Your private key is stored in /afs/jinr. ru/user/g/gvv/. globus/userkey. pem Your request is stored in /afs/jinr. ru/user/g/gvv/. globus/usercert_request. pem Please e-mail the request to the Russian Data. Grid CA [email protected] ru You may use a command similar to the following: cat /afs/jinr. ru/user/g/gvv/. globus/usercert_request. pem | mail [email protected] ru Only use the above if this machine can send AND receive e-mail. if not, please mail using some other method. Your certificate will be mailed to you within two working days. If you receive no response, contact Russian Data. Grid CA at [email protected] ru GLite - EGEE Middleware 5

Результат: В HOME-директории создается поддиректория. globus с 3 файлами: usercert. pem usercert_request. pem userkey. Результат: В HOME-директории создается поддиректория. globus с 3 файлами: usercert. pem usercert_request. pem userkey. pem или usercert. pem userkey. pem userreq. pem !!! Установите код доступа 400 для файла userkey. pem GLite - EGEE Middleware 6

Подпись сертификата Процедура подписи сертификата устанавливается в каждой организации, выполняется через соответствующих уполномоченных. Ему Подпись сертификата Процедура подписи сертификата устанавливается в каждой организации, выполняется через соответствующих уполномоченных. Ему пересылается файл usercert_request. pem или userreq. pem Результат: полученный файл (подписанный сертификат) под именеим usercert. pem c правами доступа 644 запишите в директорию. globus GLite - EGEE Middleware 7

Регистрация в виртуальной организации 1. Генерация сертификата для браузера генерация сертификата: Инструкция: http: //lcg-registrar. Регистрация в виртуальной организации 1. Генерация сертификата для браузера генерация сертификата: Инструкция: http: //lcg-registrar. cern. ch/load_certificates. html openssl pkcs 12 -export -inkey userkey. pem -in usercert. pem -out my_cert. p 12 -name "My certificate” userkey. pem usercert. pem my_cert. p 12 Путь к закрытому ключу (доступ 400) Путь к файлу сертификата Путь к создаваемому сертификату брузера в формате PKCS 12. "My certificate" Необязательный параметр. GLite - EGEE Middleware 8

- Включение сертификата в браузер: использовать механизм импортрования сертификатов. - Вход в WEB-портал для - Включение сертификата в браузер: использовать механизм импортрования сертификатов. - Вход в WEB-портал для регистрации членства в VO Доступ через браузер с установленным сертификатом https: //lxb 2023. cern. ch: 8443/edg-voms-admin/EGEE/index. html - Получить извещения о регистрации в VO GLite - EGEE Middleware 9

Подключение к GLite в Церне находится в: /afs/cern. ch/project/egee/jra 1/prototype/glite. Нужно иметь доступ к Подключение к GLite в Церне находится в: /afs/cern. ch/project/egee/jra 1/prototype/glite. Нужно иметь доступ к Церн AFS Наиболее простой путь подключения установить cвязь в директории, куда есть путь доступа: cd $HOME/bin ln -s /afs/cern. ch/project/egee/jra 1/prototype/ glite/bin/glite. Подключение выполнено! GLite - EGEE Middleware 10

Аутентификация 1. Аутентификация через сертификаты 2. Аутентификация через SSH ключи Аутентификация через сертификаты cd Аутентификация 1. Аутентификация через сертификаты 2. Аутентификация через SSH ключи Аутентификация через сертификаты cd ~ mkdir. alien cd ~/. alien/ ln -s ~/. globus/ globus cat > Environment ALIEN_USER= GLite - EGEE Middleware 11

[lxplus 055] ~/. alien > ls -al total 12 drwxr-xr-x -rw-r--r-lrwxr-xr-x 3 40 1 [lxplus 055] ~/. alien > ls -al total 12 drwxr-xr-x -rw-r--r-lrwxr-xr-x 3 40 1 1 vgalakti gr gr 2048 Jan 27 15: 38. 6144 Feb 4 17: 21. . 24 Dec 2 12: 19 Environment 36 Nov 29 09: 48 globus -> /afs/cern. ch/user/v/vgalakti/. globus [lxplus 055] ~/. alien > ls -al globus/ total 19 drwxr-xr-x -rw-r--r--r----rw-r--r-- 2 40 1 1 vgalakti vgalakti gr gr gr 2048 6144 2148 4706 963 1138 Dec 1 17: 43 Feb 4 17: 21 Dec 1 17: 44 Dec 1 17: 33 Nov 30 12: 36 GLite - EGEE Middleware . . . my_cert. p 12 usercert. pem userkey. pem userreq. pem 12

Вход в GLite [lxplus 055] ~ > glite Warning: No valid proxy. Trying SSH Вход в GLite [lxplus 055] ~ > glite Warning: No valid proxy. Trying SSH key. . . An error occured during Ali. En authentication: user not authenticated Jan 27 17: 12: 09 info Could not connect to database: user not authenticated (1) Database: In _validate. User validation of user vgalaktionov (as vgalaktionov) failed. [lxplus 059] ~ > GLite - EGEE Middleware 13

[lxplus 055] ~ > glite proxy-init Your identity: /C=CH/O=CERN/OU=GRID/CN=Victor Galaktionov 7912 Enter GRID pass [lxplus 055] ~ > glite proxy-init Your identity: /C=CH/O=CERN/OU=GRID/CN=Victor Galaktionov 7912 Enter GRID pass phrase for this identity: Creating proxy. . . . . Done Your proxy is valid until: Fri Jan 28 05: 06: 12 2005 GLite - EGEE Middleware 14

[lxplus 055] ~ > glite proxy-info subject : /C=CH/O=CERN/OU=GRID/CN=Victor Galaktionov 7912/CN=proxy issuer : /C=CH/O=CERN/OU=GRID/CN=Victor [lxplus 055] ~ > glite proxy-info subject : /C=CH/O=CERN/OU=GRID/CN=Victor Galaktionov 7912/CN=proxy issuer : /C=CH/O=CERN/OU=GRID/CN=Victor Galaktionov 7912 identity : /C=CH/O=CERN/OU=GRID/CN=Victor Galaktionov 7912 type : full legacy globus proxy strength : 512 bits path : /tmp/x 509 up_u 19747 timeleft : 11: 59: 31 GLite - EGEE Middleware 15

[lxplus 055] ~ > glite [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > [lxplus 055] [lxplus 055] ~ > glite [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > [lxplus 055] ~ > glite -exec whoami vgalaktionov [lxplus 055] ~ > glite -u vgalaktionov -exec whoami vgalaktionov GLite - EGEE Middleware 16

[lxplus 055] ~ > glite -exec ls -al drwxr-xr-x -rwxr-xr-x -rwxr-xr-x vgalakti admin vgalakti [lxplus 055] ~ > glite -exec ls -al drwxr-xr-x -rwxr-xr-x -rwxr-xr-x vgalakti admin vgalakti vgalakti vgalakti vgalakti vgalakti 0 Jan 19 14: 18 0 Jan 14 14: 34 0 Jan 19 14: 18 96 Jan 28 16: 38 182 Jan 28 16: 47 152 Feb 01 17: 43 152 Feb 01 17: 45 152 Feb 01 17: 40 152 Jan 27 15: 25 247 Jan 28 16: 58 152 Jan 27 17: 20 . . . bin glite perltest. pl perltestjdl qwerty second test. Java. jdl third GLite - EGEE Middleware 17

Основные команды [lxn 5220. cern. ch: 3308] / > < tab > $? aioless Основные команды [lxn 5220. cern. ch: 3308] / > < tab > $? aioless exit touch mirror cat umask resolve glob add. Mirror rmdir guid 2 lfn add. Tag. Value show. All. Tag. Value host aiocat aiocert aioget . remove. Tag find. Ex add update mount chmod user mv cp whoami pre. Fetch delete. Mirror df echo aioput tree mkdir cd add. Host rm groups add. Tag services help add. User show. Mirror lfn 2 guid ls lsinternal GLite - EGEE Middleware master. Copy remove find access remove. Tag. Value get mkremdir chgroup update. Tag. Value mssurl chown whereis passwd debug zoom pwd show. Tag. Value quit show. Tags register silent 18

Управление данными Файлы в GLite: Logical File Names (LFN). Physical File Names (PFN). Примеры Управление данными Файлы в GLite: Logical File Names (LFN). Physical File Names (PFN). Примеры PFN: castor: //alienx. cern. ch/castor/cern. ch/user/a/aliprod/sim//2001 -02/V 3. 06. 02 hsi: //pdsflx 002. nersc. gov/nersc/projects/alice/2001 -02/V 3. 06. 02/00034/00056 tape: //alienx. cern. ch/Y 27671/52? size=274&bsize=26214 GLite - EGEE Middleware 19

register - регистрация файлов register -help Feb 3 15: 56: 10 info Error in register - регистрация файлов register -help Feb 3 15: 56: 10 info Error in register: not enough arguments Usage register [ []] Pfn: castor: /// [lxplus 055] ~ > glite login -u vgalaktionov -exec register third file: //lxplus. cern. ch/afs/cern. ch/user/v/vgalakti/lcg/perltest. pl 152 Jan 27 17: 21: 17 info File /egee/user/v/vgalaktionov/third inserted in the catalog [lxplus 055] ~ > glite -u vgalaktionov -exec register qwerty file: //lxplus 029. cern. ch/tmp/vgalakti/perltest. jdl 152 Feb 1 17: 41: 01 info File /egee/user/v/vgalaktionov/qwerty inserted in the catalog GLite - EGEE Middleware 20

[lxplus 055] ~ > glite [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > ls -al [lxplus 055] ~ > glite [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > ls -al drwxr-xr-x -rwxr-xr-x -rwxr-xr-x vgalakti admin vgalakti vgalakti vgalakti vgalakti 0 Jan 19 14: 18 0 Jan 14 14: 34 0 Jan 19 14: 18 96 Jan 28 16: 38 182 Jan 28 16: 47 152 Feb 01 17: 40 152 Jan 27 15: 25 247 Jan 28 16: 58 152 Jan 27 17: 20 . . . bin glite perltest. pl perltestjdl qwerty second test. Java. jdl third GLite - EGEE Middleware 21

[lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ register aqwe file: /afs/cern. ch/user/v/vgalakti/lcg/perltest. jdl 152 Feb [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ register aqwe file: /afs/cern. ch/user/v/vgalakti/lcg/perltest. jdl 152 Feb 3 15: 30: 45 info File /egee/user/v/vgalaktionov/aqwe inserted in the catalog [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > register new. File file: //lxplus 029. cern. ch/tmp/vgalakti/perltest. jdl 152 Jan 27 15: 20: 54 info File /egee/user/v/vgalaktionov/new. File inserted in the catalog [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > register second file: //lxplus. cern. ch/afs/cern. ch/user/v/vgalakti/lcg/perltest. pl 152 Jan 27 15: 25: 53 info File /egee/user/v/vgalaktionov/second inserted in the catalog GLite - EGEE Middleware 22

[lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > cat qwerty Feb 1 17: 41: 51 [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > cat qwerty Feb 1 17: 41: 51 info The SE returned an error: SE : : Not able to get the file: //lxplus 029. cern. ch/tmp/vgalakti/perltest. jdl [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > cat qwer Executable="perltest. pl"; ##############3 Input. Sandbox={"perltest. pl"}; Arguments="Grid"; Std. Output="std. out"; Std. Error="std. err"; Output. Sandbox={"std. out", "std. err"}; GLite - EGEE Middleware 23

add - копирование файлов в GLite. add -help Error: not enough parameters 'add' copies add - копирование файлов в GLite. add -help Error: not enough parameters 'add' copies a file into the SE, and register an entry in the catalogue that points to the file in the SE Usage: add [ []] GLite - EGEE Middleware 24

add perltest. pl /afs/cern. ch/user/v/vgalakti/lcg/perltest. pl Jan 28 16: 39: 04 info The pfn add perltest. pl /afs/cern. ch/user/v/vgalakti/lcg/perltest. pl Jan 28 16: 39: 04 info The pfn '/afs/cern. ch/user/v/vgalakti/lcg/perltest. pl' does not look like a pfn. . . let's hope th Jan 28 16: 39: 04 info Registering the file: //lxplus 080. cern. ch/afs/cern. ch/user/v/vgalakti/lcg/perltest. pl in EG Jan 28 16: 39: 05 info Initializing Service Jan 28 16: 39: 05 info Starting a service to transfer the file from the local machine Can't exec "/afs/cern. ch/project/egee/jra 1/prototype/N 20050113/bin/bbftpd": No such file or directory at /afs/cern Jan 28 16: 39: 05 info Error starting bbftp Jan 28 16: 39: 05 info Starting a soap server. . . Jan 28 16: 39: 05 info Contacting SE at http: //lxb 1432. cern. ch: 8000, and tell it to pick up soap: //lxplus 080. cern. c Jan 28 16: 39: 05 info Copying a file into an SE Jan 28 16: 39: 06 info Transfering file /afs/cern. ch/user/v/vgalakti/lcg/perltest. pl Jan 28 16: 39: 11 info Stopping the service (pid 15041) (and I'm 14620) Jan 28 16: 39: 11 info Getting the file srm: //gridftp 05. cern. ch: 8443/castor/cern. ch/user/g/gproduct/EGEETEST/S Jan 28 16: 39: 11 info File /egee/user/v/vgalaktionov/perltest. pl inserted in the catalog GLite - EGEE Middleware 25

add perltestjdl file: //lxplus 080. cern. ch/afs/cern. ch/user/v/vgalakti/lcg/perltest. jdl Jan 28 16: 47: 24 add perltestjdl file: //lxplus 080. cern. ch/afs/cern. ch/user/v/vgalakti/lcg/perltest. jdl Jan 28 16: 47: 24 info Registering the file: //lxplus 080. cern. ch/afs/cern. ch/user/v/vgalakti/lcg/perltest Jan 28 16: 47: 24 info Initializing Service Jan 28 16: 47: 24 info Starting a service to transfer the file from the local machine Can't exec "/afs/cern. ch/project/egee/jra 1/prototype/N 20050113/bin/bbftpd": No such file or directory at Jan 28 16: 47: 24 info Error starting bbftp Jan 28 16: 47: 24 info Starting a soap server. . . Jan 28 16: 47: 24 info Contacting SE at http: //lxb 1432. cern. ch: 8000, and tell it to pick up soap: //lxplus 08 Jan 28 16: 47: 24 info Copying a file into an SE Jan 28 16: 47: 25 info Transfering file /afs/cern. ch/user/v/vgalakti/lcg/perltest. jdl Jan 28 16: 47: 29 info Stopping the service (pid 21597) (and I'm 14620) Jan 28 16: 47: 30 info Getting the file srm: //gridftp 05. cern. ch: 8443/castor/cern. ch/user/g/gproduct/EGEE Jan 28 16: 47: 30 info File /egee/user/v/vgalaktionov/perltestjdl inserted in the catalog GLite - EGEE Middleware 26

add test. Java. jdl file: //lxplus 080. cern. ch/afs/cern. ch/user/v/vgalakti/lcg/test. Java. jdl Jan 28 add test. Java. jdl file: //lxplus 080. cern. ch/afs/cern. ch/user/v/vgalakti/lcg/test. Java. jdl Jan 28 16: 59 info Registering the file: //lxplus 080. cern. ch/afs/cern. ch/user/v/vgalakti/lcg/test. Java. jdl Jan 28 16: 59 info Initializing Service Jan 28 16: 57: 00 info Starting a service to transfer the file from the local machine Can't exec "/afs/cern. ch/project/egee/jra 1/prototype/N 20050113/bin/bbftpd": No such file or directory at /afs/ Jan 28 16: 57: 00 info Error starting bbftp Jan 28 16: 57: 00 info Starting a soap server. . . Jan 28 16: 57: 00 info Contacting SE at http: //lxb 1432. cern. ch: 8000, and tell it to pick up soap: //lxplus 080. ce Jan 28 16: 57: 00 info Copying a file into an SE Jan 28 16: 57: 00 error The server returned an error: contacting the Submit. File Jan 28 16: 57: 01 info Stopping the service (pid 30864) (and I'm 14620) GLite - EGEE Middleware 27

[lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > add test. Java. jdl file: //lxplus 080. [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > add test. Java. jdl file: //lxplus 080. cern. ch/afs/cern. ch/user/v/vgalakti/lcg/test. Java. jdl Jan 28 16: 58 info Registering the file: //lxplus 080. cern. ch/afs/cern. ch/user/v/vgalakti/lcg/test. Java. jd Jan 28 16: 58 info Initializing Service Jan 28 16: 58: 59 info Starting a service to transfer the file from the local machine Can't exec "/afs/cern. ch/project/egee/jra 1/prototype/N 20050113/bin/bbftpd": No such file or directory at /afs Jan 28 16: 58: 59 info Error starting bbftp Jan 28 16: 58: 59 info Starting a soap server. . . Jan 28 16: 58: 59 info Contacting SE at http: //lxb 1432. cern. ch: 8000, and tell it to pick up soap: //lxplus 080. c Jan 28 16: 58: 59 info Copying a file into an SE Jan 28 16: 58: 59 info Transfering file /afs/cern. ch/user/v/vgalakti/lcg/test. Java. jdl Jan 28 16: 59: 04 info Stopping the service (pid 31433) (and I'm 14620) Jan 28 16: 59: 05 info Getting the file srm: //gridftp 05. cern. ch: 8443/castor/cern. ch/user/g/gproduct/EGEETE inserted in the catalog GLite - EGEE Middleware 28

get - перепись в локальные файлы get -help Error: not enough arguments in get get - перепись в локальные файлы get -help Error: not enough arguments in get Usage: get [-n] [-o] [] Пример из документации: [lxn 5220. cern. ch: 3308] /bin/ > get hello May 19 14: 53: 30 info Getting the file srm: //lxn 5209. cern. ch: 8000/castor/cern. ch/home/egee/00001/00028. 10 And the file is /tmp/EGEE/cache/00028. 1084884720. 130921084884755. 35141084971159 GLite - EGEE Middleware 29

Реально: Пример 1. [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > get second Jan 31 Реально: Пример 1. [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > get second Jan 31 16: 09: 46 info The guid is 58 EDE 0 D 2 -706 F-11 D 9 -B 9 C 8 -D 2 BB 22 BE 5185 Jan 31 16: 09: 46 info Getting the pfn from EGEE: : CERN: : SRMCastor Jan 31 16: 09: 46 error Error contacting the IS GLite - EGEE Middleware 30

Пример 2. [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > get second Feb Feb Feb Пример 2. [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > get second Feb Feb Feb 1 17: 29: 09 1 17: 29: 09 info info The guid is 58 EDE 0 D 2 -706 F-11 D 9 -B 9 C 8 -D 2 BB 22 BE 5185 Getting the pfn from EGEE: : CERN: : SRMCastor Asking the SE at http: //lxb 1432. cern. ch: 8000 In getfile, with EGEE: : CERN: : SRMCastor Getting the file: //lxplus. cern. ch/afs/cern. ch/user/v/vgalakti/lcg/perltest. pl And the file is /tmp/EGEE/cache/perltest. pl. 7411106836302 GLite - EGEE Middleware 31

Пример 3. [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > get test. Java. jdl Feb Пример 3. [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > get test. Java. jdl Feb Feb Feb 1 17: 35: 01 1 17: 35: 02 info info The guid is 85 D 662 FA-7145 -11 D 9 -A 859 -D 2 BB 22 BE 5185 Getting the pfn from EGEE: : CERN: : SRMCastor Asking the SE at http: //lxb 1432. cern. ch: 8000 In getfile, with EGEE: : CERN: : SRMCastor Getting the file srm: //lxb 1432. cern. ch/castor/cern. ch/user/g/gproduct/EGEETEST/SE/15/40831/85 D 6 We are not authenticated to get the file : ( Feb Feb Feb 1 17: 35: 02 1 17: 35: 18 info info Error: file not copied!! Asking the SE to get srm: //lxb 1432. cern. ch/castor/cern. ch/user/g/gproduct/EGEETEST/SE/15/40831/ In bring. Fileto. SE, with EGEE: : CERN: : SRMCastor Getting the local copy brought by the SE file: //lxb 1432. cern. ch/tmp/EGEE/cache/85 D 662 FA-7145 -11 Everything worked and got /tmp/EGEE/cache/85 D 662 FA-7145 -11 D 9 -A 859 -D 2 BB 22 BE 5185. 110692 And the file is /tmp/EGEE/cache/85 D 662 FA-7145 -11 D 9 -A 859 -D 2 BB 22 BE 5185. 1 GLite - EGEE Middleware 32

Управление задачами [lxplus 055] ~ > glite proxy-init Your identity: /C=CH/O=CERN/OU=GRID/CN=Victor Galaktionov 7912 Enter Управление задачами [lxplus 055] ~ > glite proxy-init Your identity: /C=CH/O=CERN/OU=GRID/CN=Victor Galaktionov 7912 Enter GRID pass phrase for this identity: Creating proxy. . . . Done Your proxy is valid until: Mon Feb 7 03: 18: 40 2005 GLite - EGEE Middleware 33

[lxplus 055] ~ > glite login Feb 6 15: 30: 01 notice Starting remotequeue. [lxplus 055] ~ > glite login Feb 6 15: 30: 01 notice Starting remotequeue. . . Feb 6 15: 30: 01 info [ Requirements = ( other. Type == "Job" ); Close. SE = { "EGEE: : CERN: : SRMCastor", "EGEE: : CERN: : SRM", "EGEE: : CERN: : scratch", "EGEE: : CERN: : SRMd. Cache", "EGEE: : CERN: : pcitgm 10", "EGEE: : CERN: : scratch 2", "EGEE: : CERN: : SRMo" }; CE = "EGEE: : CERN: : CONDOR"; Host = "lxn 5210. cern. ch"; Local. Disk. Space = 9000000; WNHost = "lxplus 055. cern. ch"; TTL = 172800; Type = "machine"; Uname = "2. 4. 21 -27. 0. 2. EL. cernsmp"; Grid. Partitions = { "Production" } ] GLite - EGEE Middleware 34

[lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > cat jdl/hello. jdl Type = [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > cat jdl/hello. jdl Type = "Job"; Job. Type = "Normal"; Executable = "hello. World. sh"; cat bin/helloworld. sh #!/bin/bash echo "============" echo "Hello, World" echo `date` echo `hostname` echo "Done" GLite - EGEE Middleware 35

submit jdl/hello. jdl Feb 6 15: 36: 14 info Submitting job '/egee/user/v/vgalaktionov/bin/hello. World. sh submit jdl/hello. jdl Feb 6 15: 36: 14 info Submitting job '/egee/user/v/vgalaktionov/bin/hello. World. sh '. . . Feb 6 15: 36: 14 info There is no time to live (TTL) defined in the jdl. . . putting the default '6 hou Feb 6 15: 36: 14 info Input Box: {} Feb 6 15: 36: 14 info Command submitted (job 14971)!! GLite - EGEE Middleware 36

[lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > top Job. Id Status Command name Exechost [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > top Job. Id Status Command name Exechost 14971 WAITING /egee/user/v/vgalaktionov/bin/hello. World. sh [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > top Job. Id Status Command name Exechost 14971 ASSIGNED /egee/user/v/vgalaktionov/bin/hello. World. sh [email protected] 5210. cern. ch GLite - EGEE Middleware 37

[lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > top Job. Id Status Command name Exechost [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > top Job. Id Status Command name Exechost 14971 STARTED /egee/user/v/vgalaktionov/bin/hello. World. sh [email protected] 5210. cern. ch [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > top Job. Id Status Command name Exechost 14971 SAVING /egee/user/v/vgalaktionov/bin/hello. World. sh [email protected] 5210. cern. ch [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > top Job. Id Status Command name Exechost GLite - EGEE Middleware 38

[lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > cat /proc/vgalaktionov/14971/job-output/stdout Test: Cluster. Monitor is at [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > cat /proc/vgalaktionov/14971/job-output/stdout Test: Cluster. Monitor is at lxn 5210. cern. ch: 8084 Execution machine: lxn 5211. cern. ch ============ Hello, World Sun Feb 6 15: 36: 31 CET 2005 lxn 5211. cern. ch Done GLite - EGEE Middleware 39

get /proc/vgalaktionov/14971/job-output/stdout Feb 6 16: 00: 28 info The guid is 80 BEB 1 get /proc/vgalaktionov/14971/job-output/stdout Feb 6 16: 00: 28 info The guid is 80 BEB 1 EC-784 C-11 D 9 -9403 -D 2 BB Feb 6 16: 00: 28 info Getting the pfn from EGEE: : CERN: : SRMCastor Feb 6 16: 00: 28 info Asking the SE at http: //lxb 1432. cern. ch: 8000 Feb 6 16: 00: 28 info In getfile, with EGEE: : CERN: : SRMCastor Feb 6 16: 00: 28 info Getting the file srm: //gridftp 05. cern. ch: 8443/cast And the file is /tmp/EGEE/cache/7 F 4 C 3 FA 0 -784 C-11 D 9 -92 A 5 -EE 73 GLite - EGEE Middleware 40

[lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > exit bye now! [lxplus 055] ~cat /tmp/EGEE/cache/7 [lxb 2075. cern. ch: 3308] /egee/user/v/vgalaktionov/ > exit bye now! [lxplus 055] ~cat /tmp/EGEE/cache/7 F 4 C 3 FA 0 -784 C-11 D 9 -92 A 5 -EE 73 Test: Cluster. Monitor is at lxn 5210. cern. ch: 8084 Execution machine: lxn 5211. cern. ch ============ Hello, World Sun Feb 6 15: 36: 31 CET 2005 lxn 5211. cern. ch GLite - EGEE Middleware 41

Job Status The usual status transition of a job can be seen in the Job Status The usual status transition of a job can be seen in the following picture: When a user submits a job, the first state of the job will be INSERTING. Then, a service will check the requirements of the job, and set the job to WAITING. The job will wait until a CE gets the job, in which case the job will be firt ASSIGNED, and then QUEUED in the local batch system of the CE. Once the job lands on the worker node, the status will be STARTED, and it will fetch the command the input files from the catalogue. At some point, the job will be RUNNING. Once the job finishes, it will go to SAVING while all its output is added to the catalogue. Finally, the job will be DONE. GLite - EGEE Middleware 42

Язык JDL https: //edms. cern. ch/file/555796/1/ EGEE-JRA 1 -TEC-555796 -JDL-Attributes-v 0 -1. doc GLite Язык JDL https: //edms. cern. ch/file/555796/1/ EGEE-JRA 1 -TEC-555796 -JDL-Attributes-v 0 -1. doc GLite - EGEE Middleware 43

Пример Type =