Skip to Content.
Sympa Menu

perfsonar-user - [perfsonar-user] Re: RES: RES: RES: RES: [Monipe-des] Fwd: lookup service docs

Subject: perfSONAR User Q&A and Other Discussion

List archive

[perfsonar-user] Re: RES: RES: RES: RES: [Monipe-des] Fwd: lookup service docs


Chronological Thread 
  • From: Sowmya Balasubramanian <>
  • To: Murilo Vetter <>
  • Cc: 'Comunicação com os desenvolvedores do projeto MONIPE' <>, 'SE-Cipó Desenvolvimento' <>, ,
  • Subject: [perfsonar-user] Re: RES: RES: RES: RES: [Monipe-des] Fwd: lookup service docs
  • Date: Tue, 06 Aug 2013 12:04:53 -0700

Hi Murilo,

The source can be found here: http://anonsvn.internet2.edu/svn/perfSONAR-PS/trunk/

The common libraries are under "Shared/lib" directory.

Sowmya

On 8/6/13 11:36 AM, Murilo Vetter wrote:

Hi Sowmya,

 

I was starting to code a simple client. I saw that it has some code of perfsonar_ps. Where can I get the source of perfsonar_ps?

 

Thanks,

--
cid:part1.06050809.06020701@pop-sc.rnp.br

Murilo Vetter
Analista REMEP-FLN/PoP-SC
PoP-SC - Ponto de Presença da RNP em Santa Catarina
REMEP-FLN - Rede Metropolitana de Educação e Pesquisa da Região de Florianópolis
RNP - Rede Nacional de Ensino e Pesquisa
UFSC - Universidade Federal de Santa Catarina
SETIC - Superintendência de Governança Eletrônica e Tecnologia da Informação e Comunicação
Fundações de Apoio FEESC e FEPESE
--/--
www.pop-sc.rnp.br
remep.pop-sc.rnp.br
CHAMADOS: .br
+55(48)3721-6335
INOC: 11242*100

 

De: Sowmya Balasubramanian []
Enviada em: segunda-feira, 5 de agosto de 2013 18:20
Para: Murilo Vetter
Cc: 'Comunicação com os desenvolvedores do projeto MONIPE'; 'SE-Cipó Desenvolvimento'; ;
Assunto: Re: RES: RES: RES: [Monipe-des] Fwd: lookup service docs

 

The SimpleLS that I mentioned in the code sample is a client and not the lookup service server. To install a lookup-service server, you need to follow the instructions mentioned here: http://code.google.com/p/perfsonar-ps/wiki/NewLSInstallation,
If you are running your own LS and you want the services registered in it to appear globally, then that needs to be manually added to a static hints file that contains the list of LSes. The criteria to add something to that list is pretty simple: the server should be a production server, which means it needs to be monitored periodically.

For a quick test, you can try registering to one of the servers in this list: http://ps1.es.net:8096/lookup/activehosts.json. They are part of the global lookup service cloud. So, any service that registers to one of them will automatically appear in the global list (after few hours).

Sowmya



On 8/5/13 1:53 PM, Murilo Vetter wrote:

Hi Sowmya,

 

How I understood, I need to instantiate a SimpleLS and register my service into it. One doubt I have, how it would be globally register the service? How can I test this scenario?

 

I appreciate your  help.

 

Murilo

--
cid:part1.06050809.06020701@pop-sc.rnp.br

Murilo Vetter
Analista REMEP-FLN/PoP-SC
PoP-SC - Ponto de Presença da RNP em Santa Catarina
REMEP-FLN - Rede Metropolitana de Educação e Pesquisa da Região de Florianópolis
RNP - Rede Nacional de Ensino e Pesquisa
UFSC - Universidade Federal de Santa Catarina
SETIC - Superintendência de Governança Eletrônica e Tecnologia da Informação e Comunicação
Fundações de Apoio FEESC e FEPESE
--/--
www.pop-sc.rnp.br
remep.pop-sc.rnp.br
CHAMADOS: .br
+55(48)3721-6335
INOC: 11242*100

 

De: Sowmya Balasubramanian []
Enviada em: segunda-feira, 5 de agosto de 2013 17:44
Para: Murilo Vetter
Cc: 'Comunicação com os desenvolvedores do projeto MONIPE'; 'SE-Cipó Desenvolvimento'; ;
Assunto: Re: RES: RES: [Monipe-des] Fwd: lookup service docs

 

Hi Murilo,

You can find the install and config instructions for LSRegistrationDaemon here: http://psps.perfsonar.net/lsregistration/

If you would like to use the perl client then, you will need to do the following:

1) Create a client by instantiating SimpleLS


    $ls_client = SimpleLookupService::Client::SimpleLS->new();
    my $uri = URI->new("http://somehost:port.some.domain"); 
    my $ls_port = 8090;
    if(!$ls_port &&  $uri->scheme() eq 'https'){
        $ls_port = 443;
    }elsif(!$ls_port){
        $ls_port = 80;
    }
 

2) Create a PSService Record


 my $service = new perfSONAR_PS::Client::LS::PSRecords::PSService();
    $service->init(
        serviceLocator => $self->service_locator(), 
        serviceType => $self->service_type(), 
        serviceName => $self->service_name(), 
        serviceVersion => $self->service_version(), 
        serviceHost => $self->service_host(),
        domains => $self->domain(),
        administrators => $self->administrator(), 
        siteName => $self->site_name(),
        city => $self->city(),
        region => $self->region(),
        country => $self->country(),
        zipCode => $self->zip_code(),
        latitude => $self->latitude(),
        longitude => $self->longitude(),
    );
    $service->setServiceEventType($self->event_type()) if($self->event_type());
    $service->setCommunities($self->communities()) if($self->communities());
 
Note: In the above code sample, the service values are read from a config file and stored in memory

3) Use RegistrationClient to register the PSService to the SimpleLS.


    my $ls_client = new SimpleLookupService::Client::Registration();
    $ls_client->init({server => $self->{LS_CLIENT}, record => $reg});
    my ($resCode, $res) = $ls_client->register();

Once the registration is successful, your client will have to renew the record every 2 hours or so (whatever is the lease time offered). Otherwise, when the registration expires, the service record will be removed from the lookup service.


Hope this helps! Let me know if you have any questions.

Regards,
Sowmya

On 8/5/13 12:44 PM, Murilo Vetter wrote:

Hi Sowmya,

 

I would like to use the Daemon or the perl client, either one.

 

Thanks in advance.

 

Murilo Vetter

 

--
cid:part1.06050809.06020701@pop-sc.rnp.br

Murilo Vetter
Analista REMEP-FLN/PoP-SC
PoP-SC - Ponto de Presença da RNP em Santa Catarina
REMEP-FLN - Rede Metropolitana de Educação e Pesquisa da Região de Florianópolis
RNP - Rede Nacional de Ensino e Pesquisa
UFSC - Universidade Federal de Santa Catarina
SETIC - Superintendência de Governança Eletrônica e Tecnologia da Informação e Comunicação
Fundações de Apoio FEESC e FEPESE
--/--
www.pop-sc.rnp.br
remep.pop-sc.rnp.br
CHAMADOS: .br
+55(48)3721-6335
INOC: 11242*100

 

De: Sowmya Balasubramanian []
Enviada em: segunda-feira, 5 de agosto de 2013 15:54
Para: Murilo Vetter
Cc: 'Comunicação com os desenvolvedores do projeto MONIPE'; 'SE-Cipó Desenvolvimento'; ;
Assunto: Re: RES: [Monipe-des] Fwd: lookup service docs

 

Hi Murilo,

Typically, the LSRegistrationDaemon in the perfSONAR-PS Toolkit registers services to the new lookup service.

We also have some perl and Java based client classes (not yet packaged though) in the svn repo which you can use for registering to the lookup service.

Perl classes can be found here: http://anonsvn.internet2.edu/viewvc/viewvc.py/perfSONAR-PS/trunk/Shared/lib/SimpleLookupService/

Java client: https://code.google.com/p/simple-lookup-service/source/browse/#svn%2Ftrunk%2Flookup%2Flookup-service-client%253Fstate%253Dclosed

Let me know which one you would like to use and I can help you out by sending some sample code to help you get started.

Thanks,
Sowmya

On 8/5/13 11:42 AM, Murilo Vetter wrote:

Hi,

 

Here in Brazil we would like to registered some of our tools like ping, owamp and bwctl in internet2 LS service so it may appear in the list of perfSONAR Toolkit. I wonder if someone could help in doing this. What service should we installed so we can test the registration? How could we reproduce it?

 

Hope someone may help us.

 

Regards,

Murilo Vetter

 

--
cid:part1.06050809.06020701@pop-sc.rnp.br

Murilo Vetter
Analista REMEP-FLN/PoP-SC
PoP-SC - Ponto de Presença da RNP em Santa Catarina
REMEP-FLN - Rede Metropolitana de Educação e Pesquisa da Região de Florianópolis
RNP - Rede Nacional de Ensino e Pesquisa
UFSC - Universidade Federal de Santa Catarina
SETIC - Superintendência de Governança Eletrônica e Tecnologia da Informação e Comunicação
Fundações de Apoio FEESC e FEPESE
--/--
www.pop-sc.rnp.br
remep.pop-sc.rnp.br
CHAMADOS: .br
+55(48)3721-6335
INOC: 11242*100

 

De: Murilo Vetter []
Enviada em: sexta-feira, 2 de agosto de 2013 18:30
Para: 'Comunicação com os desenvolvedores do projeto MONIPE'; 'SE-Cipó Desenvolvimento'; ''; ''
Assunto: RES: [Monipe-des] Fwd: lookup service docs

 

Hi Brian,

 

Alex (RNP) sent me some information about the new lookup service. We are interested to registered our new perfSONAR CLMPs service with the new service since it is the new service that is coming with the new perfsonar toolkit. I would like to know if you already have some client that make the registration.

 

I would like to know if I installed the service in RNP like is documented in http://code.google.com/p/perfsonar-ps/wiki/NewLSInstallation, it will appear globally. In the past I did some tests and I had some trouble with the old version of perfsonar lookup service.

 

What components should I install to accomplished this issue?

 

Could you help me to test it in RNP?

 

Thanks in advance,

--
cid:part1.06050809.06020701@pop-sc.rnp.br

Murilo Vetter
Analista REMEP-FLN/PoP-SC
PoP-SC - Ponto de Presença da RNP em Santa Catarina
REMEP-FLN - Rede Metropolitana de Educação e Pesquisa da Região de Florianópolis
RNP - Rede Nacional de Ensino e Pesquisa
UFSC - Universidade Federal de Santa Catarina
SETIC - Superintendência de Governança Eletrônica e Tecnologia da Informação e Comunicação
Fundações de Apoio FEESC e FEPESE
--/--
www.pop-sc.rnp.br
remep.pop-sc.rnp.br
CHAMADOS: .br
+55(48)3721-6335
INOC: 11242*100

 

De: [] Em nome de Alex Moura
Enviada em: quinta-feira, 18 de julho de 2013 13:46
Para: MonIPE Desenvolvimento; SE-Cipó Desenvolvimento
Assunto: [Monipe-des] Fwd: lookup service docs

 

Rezende (Cipó) e Murilo (MonIPÊ),

 

Segue abaixo a referência sobre o LS que Brian acaba de me passar sobre o LS depois que solicitei informações de como podemos integrar nossos desenvolvimentos usando mesmo serviço.

 

Este material é suficiente para os desenvolvimentos? 

 

Se necessário, podemos buscar outras formas de interação - reuniões via web etc. - com a equipe de desenvolvedores para buscarmos dirimir as dúvidas e dificuldades de desenvolvimento nos sistemas do MonIPE e Cipó, que tenham relação com os serviços usados nos EUA.

 

Alex 

---------- Forwarded message ----------
From: Brian Tierney <>
Date: Thu, Jul 18, 2013 at 1:19 PM
Subject: lookup service docs
To: Alex Moura <>
Cc: Sowmya Balasubramanian <>



Hi Alex:

Here are links to the sLS docs. Let us know if you have questions:

https://code.google.com/p/simple-lookup-service/wiki/Overview
https://code.google.com/p/simple-lookup-service/wiki/Records
https://code.google.com/p/simple-lookup-service/wiki/ClientAPI
https://code.google.com/p/simple-lookup-service/wiki/APISpec

 

 

 

 





Archive powered by MHonArc 2.6.16.

Top of Page