Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] LS usage in SSHTELNET MP

Subject: perfsonar development work

List archive

Re: [pS-dev] LS usage in SSHTELNET MP


Chronological Thread 
  • From: Stijn Melis <>
  • To: Guilherme Fernandes <>
  • Cc: Michael Bischoff <>, "" <>
  • Subject: Re: [pS-dev] LS usage in SSHTELNET MP
  • Date: Wed, 04 Jun 2008 10:59:51 +0200

Guilherme Fernandes wrote:
Stijn Melis wrote:
Also make sure the
registrator=org.perfsonar.service.base.registration.LSRegistrationComponent is defined in the
component.properties

if the registrator and service.r.ls_url is defined then the errors in the log should point to
anything missing.

Best regards,

Michael Bischoff

Hi all,

Hi Stijn,
I managed to find the error, and the MP is now registering it's metadata to the LS. I will test this further tomorrow morning, and then create a new release for this. I'm very sorry for this, but I wasn't aware of this myself.

What was the error? I suppose it wasn't in the java code, right?

There was a small bug in my web admin handler which didn't enable the scheduler when LS registration is activated. Furthermore, I still used an old registrator in the components.properties file.

Andreas, I attached what I received as metadata for the registered MP. You can see that the different devices which are supported are there (in the different data block, there is a metadata block, which contains the device name in the subject element, and the device url as one of the parameter elements). There is no eventType though, so should I add this?.
Or do I have to change this to the syntax you proposed (for instance by creating a different file for registering, because this is the same one I now use as a metadata configuration file which the MP uses)?
As a side note, do you really want to register username and password for the devices?

At the moment I just register the same file as the one which is used by the MP itself. Please note though that the password is encrypted, so there's nothing you can do with the information you get at first sight. However, if there are more people who have a problem with registering this information, I can create a different LS registration file which leaves a few things out.

Cheers,

Stijn

Best regards,

Guilherme

Best regards,

Stijn

------------------------------------------------------------------------

<nmwg:metadata id="http://mdm-1.par.fr.geant2.net:8090/geant2-java-sshtelnet-mp/services/TelnetSSH";>
<perfsonar:subject id="commonParameters">
<psservice:service id="localhost.6caf9ff4:11a48d59f18:2067">
<psservice:serviceName>geant2-java-sshtelnet-mp</psservice:serviceName>
<psservice:accessPoint>http://mdm-1.par.fr.geant2.net:8090/geant2-java-sshtelnet-mp/services/TelnetSSH</psservice:accessPoint>
<psservice:serviceType>mp</psservice:serviceType>
<psservice:serviceDescription>perfSONAR Java SSH TELNET MP</psservice:serviceDescription>
<psservice:serviceVersion>1.3.1</psservice:serviceVersion>
<psservice:organization>Institution</psservice:organization>
<psservice:contactEmail>user@domain</psservice:contactEmail>
</psservice:service>
</perfsonar:subject>
</nmwg:metadata>
<nmwg:data id="http://mdm-1.par.fr.geant2.net:8090/geant2-java-sshtelnet-mp/services/TelnetSSH/0"; metadataIdRef="http://mdm-1.par.fr.geant2.net:8090/geant2-java-sshtelnet-mp/services/TelnetSSH";>
<nmwg:metadata id="metadata0">
<nmwg:subject id="subject0">CiscoTelnet</nmwg:subject>
<nmwg:parameters id="metaParams0">
<nmwg:parameter name="password" value="QGoEPEaUuZzBI1rnej/6qA=="/>
<nmwg:parameter name="cache" value="0"/>
<nmwg:parameter name="timeout" value="0"/>
<nmwg:parameter name="prompt" value="c72.bogon&gt;"/>
<nmwg:parameter name="numberOfUsers" value="0"/>
<nmwg:parameter name="username" value="telnet-mp-test"/>
<nmwg:parameter name="class_name" value="org.perfsonar.service.measurementPoint.lookingGlassType.engine.adapters.CiscoAdapter"/>
<nmwg:parameter name="url" value="c72.bogon.vh.hbone.hu"/>
<nmwg:parameter name="port" value="23"/>
<nmwg:parameter name="rate" value="100"/>
</nmwg:parameters>
</nmwg:metadata>
</nmwg:data>
<nmwg:data id="http://mdm-1.par.fr.geant2.net:8090/geant2-java-sshtelnet-mp/services/TelnetSSH/1"; metadataIdRef="http://mdm-1.par.fr.geant2.net:8090/geant2-java-sshtelnet-mp/services/TelnetSSH";>
<nmwg:metadata id="metadata2">
<nmwg:subject id="subject0">JuniperSSH</nmwg:subject>
<nmwg:parameters id="metaParams0">
<nmwg:parameter name="password" value="QGoEPEaUuZzBI1rnej/6qA=="/>
<nmwg:parameter name="cache" value="0"/>
<nmwg:parameter name="timeout" value="0"/>
<nmwg:parameter name="prompt" value="&gt;"/>
<nmwg:parameter name="numberOfUsers" value="0"/>
<nmwg:parameter name="username" value="telnet-mp-test"/>
<nmwg:parameter name="class_name" value="org.perfsonar.service.measurementPoint.lookingGlassType.engine.adapters.JuniperSshAdapter"/>
<nmwg:parameter name="url" value="m10.vh.hbone.hu"/>
<nmwg:parameter name="port" value="22"/>
<nmwg:parameter name="rate" value="100"/>
</nmwg:parameters>
</nmwg:metadata>
</nmwg:data>
<nmwg:data id="http://mdm-1.par.fr.geant2.net:8090/geant2-java-sshtelnet-mp/services/TelnetSSH/2"; metadataIdRef="http://mdm-1.par.fr.geant2.net:8090/geant2-java-sshtelnet-mp/services/TelnetSSH";>
<nmwg:metadata id="metadata1">
<nmwg:subject id="subject0">JuniperTelnet</nmwg:subject>
<nmwg:parameters id="metaParams0">
<nmwg:parameter name="password" value="QGoEPEaUuZzBI1rnej/6qA=="/>
<nmwg:parameter name="cache" value="0"/>
<nmwg:parameter name="timeout" value="0"/>
<nmwg:parameter name="prompt" value="&gt;"/>
<nmwg:parameter name="numberOfUsers" value="0"/>
<nmwg:parameter name="username" value="telnet-mp-test"/>
<nmwg:parameter name="class_name" value="org.perfsonar.service.measurementPoint.lookingGlassType.engine.adapters.JuniperAdapter"/>
<nmwg:parameter name="url" value="m10.vh.hbone.hu"/>
<nmwg:parameter name="port" value="23"/>
<nmwg:parameter name="rate" value="100"/>
</nmwg:parameters>
</nmwg:metadata>
</nmwg:data>



Archive powered by MHonArc 2.6.16.

Top of Page