scripting - Script Karaf shell commands? -
I need to issue the Karaf shell to order non-affiliate, preferably from a script. Specifically, I need the facility to tell Karaf:. Automatically install a set of features
To attempt a feature in a way # attempt I could script the root @ d6d5bf65201a: / opt / opendaylight # ./bin/karaf Utility: Installed ODL-openflowplugin-flow services # leads me into Karaf shell opendaylight-user @ root & gt; Feature: Uninstall ODL-openflowplugin-flows services executing error: Named Feature 'ODL-openflowplugin-flow-services' is not installed # Feature was not installed
Is it possible? Is there a different way to solve this issue (Automated installed of a set of Karaf features) that I am missing?
After
With bin / caraf, you start karaf with a login prompt, if you start karaf If you want to issue an order, you first need to start Karaf in server mode. Use bin / start shell script for this now you can either use bin / customer or bin / shell to communicate with Karaf in a non-head mode.
For example:.
./bin / list of customers START LEVEL 100, list thresholds: 50 IDs. State | Lvl | Version | Name ------------------------------------------------- --------------------------------- 72 | Active | 80 | 0 | Mvn_org.ops4j.pax.web.samples_war_4.1.0-SNAPSHOT_war
This should already work for all versions of Karaf (probably not 2.2.x line ;-))
The version you are using is 3.0.x or higher, which you may have to add a user to commands
./bin / client-to-carafe list
Comments
Post a Comment