Re: Question about telnet component of SmartFrog

Александр Поляков <[email protected]> Thu, 20 Jan 2011 19:59:19 +0500
Newsgroups gmane.comp.java.smartfrog.user
Message-ID <[email protected]>
--===============3443900934897897704==
Content-Type: multipart/alternative; boundary=0016e644cc1ae010a3049a486033

--0016e644cc1ae010a3049a486033
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi,

Now, telnet component is working on windows when I write this code:

#include "org/smartfrog/components.sf"
#include "org/smartfrog/services/net/telnet.sf"
sfConfig extends WindowsTelnetSessionInlinePassword {
Telnet:host "192.168.56.101";
Telnet:username "qwerty";
password "1";
Telnet:commands ["mkdir c:\\1"];
}

But, it fails when I write this :

#include "org/smartfrog/components.sf"
#include "org/smartfrog/services/net/telnet.sf"
sfConfig extends TelnetSessionInlinePassword {
Telnet:ostype "windows";
Telnet:host "192.168.56.101";
Telnet:username "qwerty";
password "1";
shellPrompt ">";
Telnet:commands ["mkdir c:\\1"];
}

Out is:

[ProcessName(127.0.0.1)] OUT > - FAILED when trying DEPLOY of 'ProcessName'=
,
[org/smartfrog/examples/MyProjects/test3.sf], host:127.0.0.1
[ProcessName(127.0.0.1)] OUT > Result:
[ProcessName(127.0.0.1)] OUT > * Exception: 'SmartFrogLifecycleException::
Unable to login in remote machine 192.168.56.101:23 cause: Password was not
accepted for user "qwerty" or shell prompt "$" was not found. Password
details: password length 1
[ProcessName(127.0.0.1)] OUT > remote server log:
=1B[1;1H*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=1B[2;1H=E2=80=9A =D0=B1 =D0=87=D0=B0=D0=81=D1=9E=D2=90=D0=B2=D0=B1=D0=B2=
=D1=9E=D0=B3=D2=90=D0=B2 Telnet-=D0=B1=D2=90=D0=B0=D1=9E=D2=90=D0=B0 =D0=87=
=D0=B0=C2=AE=D0=81=C2=A7=D1=9E=C2=AE=C2=A4=D0=B1=D0=B2=D1=9E  =D0=84=C2=AE=
=D0=B0=D0=87=C2=AE=D0=B0 =D0=B6=D0=81=D0=81 =D0=8A =C2=A9=D0=84=D0=B0=C2=AE=
=D0=B1=C2=AE=D0=B4=D0=B2
=1B[3;1H*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=1B[4;1HC:\Documents and Settings\qwerty>
=1B[5;1H=1B[K=1B[6;1H=1B[K=1B[7;1H=1B[K=1B[8;1H=1B[K=1B[9;1H=1B[K=1B[10;1H=
=1B[K=1B[11;1H=1B[K=1B[12;1H=1B[K=1B[13;1H=1B[K=1B[14;1H=1B[K=1B[15;1H=1B[K=
=1B[16;1H=1B[K=1B[17;1H=1B[K=1B[18;1H=1B[K=1B[19;1H=1B[K=1B[20;1H=1B[K=1B[2=
1;1H=1B[K=1B[22;1H=1B[K=1B[23;1H=1B[K=1B[24;1H=1B[K=1B[25;1H=1B[K=1B[4;34H
[ProcessName(127.0.0.1)] OUT > SmartFrog 3.17.014 (2009-07-27 16:11:39 BST)
[ProcessName(127.0.0.1)] OUT > data: Failed object class:
org.smartfrog.services.net.TelnetImpl
[ProcessName(127.0.0.1)] OUT > primSFCompleteName: HOST
"192.168.56.1":rootProcess:ProcessName:Telnet
[ProcessName(127.0.0.1)] OUT > primContext: included
[ProcessName(127.0.0.1)] OUT > reference: HOST
"192.168.56.1":rootProcess:ProcessName:Telnet
[ProcessName(127.0.0.1)] OUT > primContext: included'

Looks like shell prompt don't change when I write: shellPrompt ">";
Problem in this I Think.
--=20
*=D0=9F=D0=BE=D0=BB=D1=8F=D0=BA=D0=BE=D0=B2 =D0=90=D0=BB=D0=B5=D0=BA=D1=81=
=D0=B0=D0=BD=D0=B4=D1=80 =D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=
=D0=BE=D0=B2=D0=B8=D1=87,**
*
*=D1=82=D0=B5=D0=BB. 8-902-79-77-152*

--0016e644cc1ae010a3049a486033
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div>Hi,</div><div><br></div><div>Now, telnet component is working on windo=
ws when I write this code:</div><div><br></div><div>#include &quot;org/smar=
tfrog/components.sf&quot;<br>#include &quot;org/smartfrog/services/net/teln=
et.sf&quot;<br>
sfConfig extends WindowsTelnetSessionInlinePassword {<br>Telnet:host &quot;=
192.168.56.101&quot;;<br>Telnet:username &quot;qwerty&quot;;<br>password &q=
uot;1&quot;;<br>Telnet:commands [&quot;mkdir c:\\1&quot;];<br>}<br></div>
<div><br></div><div>But, it fails when I write this :<br></div><div><br></d=
iv><div>#include &quot;org/smartfrog/components.sf&quot; <br>#include &quot=
;org/smartfrog/services/net/telnet.sf&quot; <br>sfConfig extends TelnetSess=
ionInlinePassword { <br>
Telnet:ostype &quot;windows&quot;; <br>Telnet:host &quot;192.168.56.101&quo=
t;; <br>Telnet:username &quot;qwerty&quot;; <br>password &quot;1&quot;; <br=
>shellPrompt &quot;&gt;&quot;;<br>Telnet:commands [&quot;mkdir c:\\1&quot;]=
; <br>
}<br></div><div><br></div><div>Out is:</div><div><br></div><div>[ProcessNam=
e(127.0.0.1)] OUT &gt;  - FAILED when trying DEPLOY of &#39;ProcessName&#39=
;,  [org/smartfrog/examples/MyProjects/test3.sf],  host:127.0.0.1<br>[Proce=
ssName(127.0.0.1)] OUT &gt;     Result:<br>
[ProcessName(127.0.0.1)] OUT &gt;       * Exception: &#39;SmartFrogLifecycl=
eException:: Unable to login in remote machine <a href=3D"http://192.168.56=
.101:23">192.168.56.101:23</a> cause: Password was not accepted for user &q=
uot;qwerty&quot; or shell prompt &quot;$&quot; was not found. Password deta=
ils: password length 1 <br>
[ProcessName(127.0.0.1)] OUT &gt;          remote server log: =1B[1;1H*=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D               =1B[2;1H=E2=80=9A=C2=
=A0=D0=B1 =D0=87=D0=B0=D0=81=D1=9E=D2=90=D0=B2=D0=B1=D0=B2=D1=9E=D0=B3=D2=
=90=D0=B2 Telnet-=D0=B1=D2=90=D0=B0=D1=9E=D2=90=D0=B0 =D0=87=D0=B0=C2=AE=D0=
=81=C2=A7=D1=9E=C2=AE=C2=A4=D0=B1=D0=B2=D1=9E=C2=A0 =D0=84=C2=AE=D0=B0=D0=
=87=C2=AE=D0=B0=C2=A0=D0=B6=D0=81=D0=81 =D0=8A=C2=A0=C2=A9=D0=84=D0=B0=C2=
=AE=D0=B1=C2=AE=D0=B4=D0=B2               =1B[3;1H*=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D               =1B[4;1HC:\Documents and Settings\qwerty&g=
t;                                               =1B[5;1H=1B[K=1B[6;1H=1B[K=
=1B[7;1H=1B[K=1B[8;1H=1B[K=1B[9;1H=1B[K=1B[10;1H=1B[K=1B[11;1H=1B[K=1B[12;1=
H=1B[K=1B[13;1H=1B[K=1B[14;1H=1B[K=1B[15;1H=1B[K=1B[16;1H=1B[K=1B[17;1H=1B[=
K=1B[18;1H=1B[K=1B[19;1H=1B[K=1B[20;1H=1B[K=1B[21;1H=1B[K=1B[22;1H=1B[K=1B[=
23;1H=1B[K=1B[24;1H=1B[K=1B[25;1H=1B[K=1B[4;34H<br>
[ProcessName(127.0.0.1)] OUT &gt;         SmartFrog 3.17.014 (2009-07-27 16=
:11:39 BST)<br>[ProcessName(127.0.0.1)] OUT &gt;         data: Failed objec=
t class: org.smartfrog.services.net.TelnetImpl<br>[ProcessName(127.0.0.1)] =
OUT &gt;         primSFCompleteName: HOST &quot;192.168.56.1&quot;:rootProc=
ess:ProcessName:Telnet<br>
[ProcessName(127.0.0.1)] OUT &gt;         primContext: included<br>[Process=
Name(127.0.0.1)] OUT &gt;         reference: HOST &quot;192.168.56.1&quot;:=
rootProcess:ProcessName:Telnet<br>[ProcessName(127.0.0.1)] OUT &gt;        =
 primContext: included&#39;<br>
<br></div><div>Looks like shell prompt don&#39;t change when I write: shell=
Prompt &quot;&gt;&quot;;=C2=A0</div><div>Problem in this I Think.</div>-- <=
br><div><i>=D0=9F=D0=BE=D0=BB=D1=8F=D0=BA=D0=BE=D0=B2 =D0=90=D0=BB=D0=B5=D0=
=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80 =D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=
=B8=D1=80=D0=BE=D0=B2=D0=B8=D1=87,</i><i><br></i></div><div><i>=D1=82=D0=B5=
=D0=BB. 8-902-79-77-152</i></div>
<br>

--0016e644cc1ae010a3049a486033--


--===============3443900934897897704==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
--===============3443900934897897704==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Smartfrog-users mailing list
Smartfrog-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/smartfrog-users

--===============3443900934897897704==--