Hello,
Is there a way to get a list of currently installed addons using command line in Openhabian? I would like to include this list to my automatic backups.
ssh -l openhab 192.168.1.168 -p 8101 "bundle:list | grep Add-ons"
I am not sure how to use it:
I have tried (with my IP address and port):
ssh -l openhab 192.168.1.168 -p 8101 "bundle:list | grep Add-ons"
I get: ssh: connect to host 192.168.1.168 port 8101: No route to host
Then also:
bundle:list | grep Add-ons
I get: bash: bundle:list: command not found
Works for me:
openhabian@openhabian:~/i2c_lua $ ssh -l openhab 192.168.1.168 -p 8101 "bundle:list | grep Add-ons"
Password authentication
Password:
322 β Active β 80 β 3.2.0.202111250338 β openHAB Add-ons :: Bundles :: Exec Binding
323 β Active β 80 β 3.2.0.202111250342 β openHAB Add-ons :: Bundles :: HTTP Binding
324 β Active β 80 β 3.2.0.202111250350 β openHAB Add-ons :: Bundles :: MQTT Broker Binding
325 β Active β 81 β 3.2.0.202111250417 β openHAB Add-ons :: Bundles :: MQTT EspMilightHub
326 β Active β 81 β 3.2.0.202111250417 β openHAB Add-ons :: Bundles :: MQTT Things and Channels
327 β Active β 82 β 3.2.0.202111250418 β openHAB Add-ons :: Bundles :: MQTT HomeAssistant Convention
328 β Active β 82 β 3.2.0.202111250418 β openHAB Add-ons :: Bundles :: MQTT Homie Convention
329 β Active β 80 β 3.2.0.202111250403 β openHAB Add-ons :: Bundles :: Systeminfo Binding
330 β Active β 80 β 3.2.0.202112020338 β openHAB Add-ons :: Bundles :: ZigBee Binding
331 β Active β 80 β 3.2.0.202111230338 β openHAB Add-ons :: Bundles :: ZigBee CC2531 Bridge
332 β Active β 80 β 3.2.0.202111230338 β openHAB Add-ons :: Bundles :: ZigBee Console
333 β Active β 80 β 3.2.0.202111230339 β openHAB Add-ons :: Bundles :: ZigBee Console Ember
334 β Active β 80 β 3.2.0.202111230339 β openHAB Add-ons :: Bundles :: ZigBee Console Telegesis
335 β Active β 80 β 3.2.0.202111230338 β openHAB Add-ons :: Bundles :: ZigBee Ember Bridge
336 β Active β 80 β 3.2.0.202111230337 β openHAB Add-ons :: Bundles :: ZigBee Serial Driver
337 β Active β 80 β 3.2.0.202111230338 β openHAB Add-ons :: Bundles :: ZigBee Telegesis Bridge
338 β Active β 80 β 3.2.0.202111230339 β openHAB Add-ons :: Bundles :: ZigBee XBee Bridge
347 β Active β 80 β 3.2.0.202111250411 β openHAB Add-ons :: Bundles :: Persistence Service :: RRD4j
348 β Active β 75 β 3.2.0.202111250412 β openHAB Add-ons :: Bundles :: Transformation Service :: RegEx
349 β Active β 75 β 3.2.0.202111250412 β openHAB Add-ons :: Bundles :: Transformation Service :: Scale
Of course, you would have to setup SSH public key authentication in addition.
I am Linux newbie and not sure how that command works and have trouble to use it.
I am already SSHed to my R-Pi as βopenhabianβ with βsudo suβ privileges. Then I try to use
bundle:list | grep Add-ons
command from my β/home/openhabianβ directory but I get
bash: bundle:list: command not found
.
Does βbundle:listβ part require some package to be installed?
Please read
The ssh
command connects to the Console and executes Karaf commands within the Karaf console. The openhabian command line doesnβt understand Karaf commands.
I got it working after reading proposed docs. Another rabbithole to explore Thx.