Path : /proc/2/task/2/root/proc/3/root/proc/self/root/proc/2/cwd/var/lib/zabbix/ |
Current File : //proc/2/task/2/root/proc/3/root/proc/self/root/proc/2/cwd/var/lib/zabbix/exabgp_state.sh |
#!/bin/bash IFS=$'\n' a=$(docker exec exaroute exabgpcli show neighbor summary 2>/dev/null| tail -n +2) for i in ${a} do peer=$(echo "$i"|awk '{print $1}') if [[ "$(echo $i|grep established| wc -l)" = 0 ]]; then result+="${peer}; " fi done echo "$result"