#!/bin/sh RES=0 check=$(/usr/bin/neutron agent-list | awk '/ DHCP / {print $9}') error="ERROR: Neutron DHCP Agent is not alive." if [[ $check != ":-)" ]]; then echo $error >&2 RES=1 fi exit $RES