Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

0

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

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

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?

Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

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

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 : ./run.sh -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
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

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

Seen: 296 times

Last updated: Aug 26 '14