Presentation is loading. Please wait.

Presentation is loading. Please wait.

INFSO-RI-508833 Enabling Grids for E-sciencE www.eu-egee.org Examples of the SRM client Author E.Slabospitskaya Location IHEP, Protvino, Russia.

Similar presentations


Presentation on theme: "INFSO-RI-508833 Enabling Grids for E-sciencE www.eu-egee.org Examples of the SRM client Author E.Slabospitskaya Location IHEP, Protvino, Russia."— Presentation transcript:

1 INFSO-RI-508833 Enabling Grids for E-sciencE www.eu-egee.org Examples of the SRM client Author E.Slabospitskaya Location IHEP, Protvino, Russia

2 Enabling Grids for E-sciencE INFSO-RI-508833 2 What is SRM? Storage Resource Manager is a middleware component that provides a common iterface to different Mass Storage System or simple disk caches on a Grid. The SRM does not perform any file transfer itself,but can invoke middleware components that perform file transfers, such as GridFTP.

3 Enabling Grids for E-sciencE INFSO-RI-508833 3 SRM client anatomy SRM’ wsdl are existing in different versions http://sdm.lbl.gov/srm-wg/intefaces.html Makefile gcc -g -DGFAL_ENABLE_RFIO - DGFAL_ENABLE_DCAP -DGFAL_SECURE- I/afs/cern.ch/user/l/lspitsky/Cern2004/SRM_TESTS/gsoa p-linux-2.3 -o srm_libFull srm_libFull.c stdsoap2.o srmC.o srmClient.o -lcgsi_plugin_gsoap_2.3 - L/opt/globus/lib -lglobus_gssapi_gsi_gcc32dbg - lglobus_gss_assist_gcc32dbg

4 Enabling Grids for E-sciencE INFSO-RI-508833 4 Examples of SRM functions. 1.Functions are working : soap_call_tns__ping soap_call_tns__getProtocols soap_call_tns__put, soap_call_tns__get, soap_call_tns__getMetafileData soap_call_tns__setFileStatus (' Done') soap_call_tns__setFileStatus (' Running') 2. Don't working: multiple files' support 3. Stubs: soap_call_tns__getEstGetTime soap_call_tns__getEstPutTime soap_call_tns__pin, Unpin soap_call_tns__mkPermanent

5 Enabling Grids for E-sciencE INFSO-RI-508833 5 Examples of clients Lxb1523%./srm_testping http://lxb0740:8443/srm/managerv1 http://lxb0740:8443/srm/managerv1 SRM server is alive. lxb1523%./srm_testgetProtocols http://lxb0740:8443/srm/managerv1 http://lxb0740:8443/srm/managerv1 Supported protocols are: gsidcap gsiftp dcap

6 Enabling Grids for E-sciencE INFSO-RI-508833 6 srm_testping.c #include #include "srmH.h“ #include "soapSRMServerV1.nsmap “ main(argc, argv) int argc; char **argv; { struct tns__pingResponse out; struct soap soap; soap_init (&soap); if (soap_call_tns__ping (&soap, argv[1], "ping", &out)) { soap_print_fault (&soap, stderr); exit (1); } if (out._Result) printf ("SRM server is alive\n"); else printf ("SRM server is not responding\n"); exit (0);}

7 Enabling Grids for E-sciencE INFSO-RI-508833 7 srm_testgetprotocols.c #include #include "srmH.h“ #include "soapSRMServerV1.nsmap“ main(argc, argv) int argc;char **argv { int i; struct tns__getProtocolsResponse out; struct soap soap; –soap_init (&soap); –if (soap_call_tns__getProtocols (&soap, argv[1], "getProtocols", &out)) {  soap_print_fault (&soap, stderr);  exit (1); }  printf ("Supported protocols are:");  if (out._Result) for (i = 0; i __size; i++) oprintf (" %s", out._Result->__ptr[i]); printf ("\n"); exit (0);}


Download ppt "INFSO-RI-508833 Enabling Grids for E-sciencE www.eu-egee.org Examples of the SRM client Author E.Slabospitskaya Location IHEP, Protvino, Russia."

Similar presentations


Ads by Google