source: install/redundancy_status.sh @ ab298e7

Last change on this file since ab298e7 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 470 bytes
Line 
1#!/bin/bash
2
3echo "Bringing network cards up..."
4for ETH in `seq 0 20`; do
5    ifconfig eth$ETH up &>/dev/null
6done
7
8while true; do
9    echo "Listening for heartbeats..."
10    HEARTBEATS="`syndog all --cat|sort|uniq`"
11
12    clear
13
14    echo "[ Redundancy heartbeat and link monitoring ]"
15    echo
16    echo "Received heartbeats (showing all clusters): "
17    echo "$HEARTBEATS"
18    echo
19    echo "Link status:"
20    echo -e "eth:\tlink:\tcard:"
21    linkbeep -l
22    echo
23done
Note: See TracBrowser for help on using the repository browser.