You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Calin <ca...@gmail.com> on 2015/10/19 18:45:35 UTC

Running client list | grep on remote server (checking that a deployment was successful)

Hi,

I am deploying ServiceMix bundles from a Windows machine, using .sh scripts
that I execute in Cygwin.

I am connecting via ssh to remote machines to uninstall bundles, delete them
from the "deploy" folder, then I copy the file from the local machine folder
in which they are built.

The last step of the script is checking if the deployment was successful or
not.
In order to do this, I run a list on the remote server, grep-ing for the
name of the bundle, and capture the result in a variable.

Then I check the variable for the presence of the string "Active", which
should signify that my bundle was successfully deployed.

This was working fine with ServiceMix 4.5.0, but on ServiceMix 6.0.0 this no
longer works.

In order to remove my script and then Cygwin as possible error points, I
tried executing list on the remote server from my windows machine in a cmd
window:

* > \dev\servers\apache-servicemix-6.0.0\bin\client.bat -h remote_host list
| grep my_bundle*

What I get is:

*Logging in as smx
1119 [sshd-SshClient[69930714]-nio2-thread-4] WARN
org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - Server at
[remote_host/remote_ip:8101, RSA,
c5:79:eb:23:6b:74:d9:0b:bd:ee:59:92:a0:f1:6d:0d] presented unverified {}
key: {}*

and then the console hangs.

If I connect with the same client to another remote server running
ServiceMix 4.5.0, it returns what I expected:

[ 521] [Active     ] [            ] [Started] [   80] my_bundle
(1.0.0.SNAPSHOT)


If I connect to the remote server running ServiceMix 6.0.0 and just try to
execute "list" (without the "grep", I get:

*Logging in as smx
689 [sshd-SshClient[69930714]-nio2-thread-1] WARN
org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - Server at
[remote_host/remote_ip:8101, RSA,
c5:79:eb:23:6b:74:d9:0b:bd:ee:59:92:a0:f1:6d:0d] presented unverified {}
key: {}
ID  | State       | Web-State   | Level | Web-ContextPath | Name
-----------------------------------------------------------------------------------------
279 | Active      | Deployed    | 50    | /activemqweb    |
activemq-web-console (5.11.1)*

and then the console hangs.


Help would be greatly appreciated.
Thank you.




--
View this message in context: http://karaf.922171.n3.nabble.com/Running-client-list-grep-on-remote-server-checking-that-a-deployment-was-successful-tp4043154.html
Sent from the Karaf - User mailing list archive at Nabble.com.