aboutsummaryrefslogtreecommitdiffstats
path: root/tools/dotnet.sh
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2015-06-23 14:26:30 +0200
committerKristian Lyngstol <kristian@bohemians.org>2015-06-23 14:26:30 +0200
commita495b7094845f2f484b8e6e0ea0b7077bbb790a5 (patch)
treedcdc5ff650850675b11d3919d5c13dda8afb4c9d /tools/dotnet.sh
parentc8a1ab2f825348969ffe72a20f562b329e271db1 (diff)
parentaf9a801eb6c21c1c9087f1f8f910b98c4ad1ecc6 (diff)
Merge branch 'master' of 192.168.122.1:tgmanage
Diffstat (limited to 'tools/dotnet.sh')
-rwxr-xr-xtools/dotnet.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/dotnet.sh b/tools/dotnet.sh
new file mode 100755
index 0000000..5c1b369
--- /dev/null
+++ b/tools/dotnet.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+DATE="$(date +%s)"
+if [ -z "$1" ] || [ -z "$2" ]; then
+ echo "Usage: $0 <ip> <community>"
+ exit 1;
+fi
+./lldpdiscover.pl $1 $2 | ./draw-neighbors.pl | dot -Tpng > dotnet-${DATE}.png
+echo File name: dotnet-${DATE}.png