commit | 7cc19cb1798381af18dfda9c4f7f7fb592dad23d | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@onlab.us> | Thu Apr 04 04:00:03 2013 +0000 |
committer | Pavlin Radoslavov <pavlin@onlab.us> | Thu Apr 04 04:00:03 2013 +0000 |
tree | c9b068f06c3747361431982dde0c2292ba14ea88 | |
parent | 5ed84611d7229518142629e36f5e3f60779cc035 [diff] [blame] |
db check scripts
diff --git a/scripts/check-db-status.sh b/scripts/check-db-status.sh new file mode 100755 index 0000000..b81e02d --- /dev/null +++ b/scripts/check-db-status.sh
@@ -0,0 +1,8 @@ +#! /bin/bash +DIR=~/ONOS +status=`~/titan-0.2.0/bin/gremlin.sh -e $DIR/scripts/check-db-clean | grep null | wc -l` +if [ $status == 0 ]; then + echo "OK" +else + echo "BAD" +fi