Ask Your Question

Can I send a command through a socket to OSGi console?

asked 2014-08-25 15:59:24 -0700

Yiliang gravatar image

I know how to start OpenDayLight with an OSGi console, then run commands such as ss/start/stop in the console.

If I start OpenDayLight without the console, is it possible to send these commands to the OSGi container through a socket?


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-08-26 06:07:17 -0700

Madhu gravatar image

Yes. You can telnet/SSH into the controller and execute those commands. In traditional Opendaylight distribution (and i believe this question is for that), In order to use the telnet, you have to start the controller with an option such as : ./ -start 2400

With this, you can telnet into the OSGi console using telnet <controller-ip-address> 2400</controller-ip-address>

Kindly note that entering "exit" command on the OSGi shell will terminate the running controller and also kills the telnet session. So, please dont enter exit if you just want to exit the telnet session.

In the future versions of Opendaylight distribution, such as Karaf, we will also have SSH support.

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


Asked: 2014-08-25 15:59:24 -0700

Seen: 259 times

Last updated: Aug 26 '14