diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-06-19 18:23:27 +0200 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-06-19 18:23:27 +0200 |
commit | 7b16869513588abe41516e05817d6dabc646fb72 (patch) | |
tree | e16a6defe48781dae6f8ae0162194982efad5f46 /extras/tools/lldp/dotnet.sh | |
parent | 3fc2120c93b5331abac34b1c5b7ef3c41425af37 (diff) | |
parent | 721b6ac2819b9adca2cdda10adf9f6b072710959 (diff) |
Merge branch 'master' of github.com:tech-server/gondul
Diffstat (limited to 'extras/tools/lldp/dotnet.sh')
-rwxr-xr-x | extras/tools/lldp/dotnet.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/extras/tools/lldp/dotnet.sh b/extras/tools/lldp/dotnet.sh new file mode 100755 index 0000000..a3f5623 --- /dev/null +++ b/extras/tools/lldp/dotnet.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +set -xe +DATE="$(date --iso-8601=second | sed s/:/./g)" +OUT=out/ +mkdir -p $OUT +JSON=${OUT}lolwhat-${DATE}.json +./lolwhat.pl $* > ${JSON} +./draw-neighbors.pl < ${JSON} | dot -Tpng > ${OUT}lolwhat-${DATE}.png +./draw-neighbors.pl full < ${JSON} | dot -Tpng > ${OUT}lolwhat-${DATE}-full.png +./draw-neighbors.pl lldp < ${JSON} | dot -Tpng > ${OUT}lolwhat-${DATE}-lldp.png +echo File name: ${OUT}lolwhat-${DATE}*png |