aboutsummaryrefslogtreecommitdiffstats
path: root/tools/dotnet.sh
diff options
context:
space:
mode:
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