Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsAutomatically executing OSGI bundles commands
https://www.eclipse.org/forums/index.php/mv/msg/735280/1337019/#msg_1337019
I would like to automatically execute OSGI and bundles commands for maintenance purpose.
In my case, stop a CDO server to perform a repository backup and restart.
So far, I added osgi.console=5555 in configuration/config.ini and felix gogo bundles.
I get Telnet access with PuTTY and can MANUALLY issue my commands.
I then tried its command line interface :
Plink -telnet -P 5555 -batch localhost ss
I get the OSGI prompt but, apparently, the ss command is not executed as I don't get anything displayed.
Can somebody tell me what's wrong or if there's a more appropriate way to achieve what I want ?
Kind regards,
Laurent]]>Laurent Le Moux2014-05-06T17:31:02-00:00Re: Automatically executing OSGI bundles commands
https://www.eclipse.org/forums/index.php/mv/msg/735280/1343419/#msg_1343419
I finally implemented a basic remote OSGI command runner based on Apache Commons Net library (see attached file for anyone interested).
Regards,
Laurent]]>Laurent Le Moux2014-05-09T09:27:23-00:00