#!/bin/bash applications=$(juju status --format json | jq ".applications | to_entries[] | .key" | sed s/\"//g) for app in ${applications} do vip=$(juju config $app --format json | jq ".settings.vip.value" | sed s/\"//g) if [[ $vip != "null" ]] ; then echo "${app}: ${vip}" fi done