aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lldp/dotnet.sh
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2016-02-26 11:32:15 +0100
committerKristian Lyngstol <kristian@bohemians.org>2016-02-26 11:32:15 +0100
commit34aa9568d90c84296d1e1f631748e9aa44227802 (patch)
tree56648f9c95651ac7a6940c1f5ac0086e18a4176c /tools/lldp/dotnet.sh
parente6fd0035555499fa186845f4c69b715e9ad246b9 (diff)
tools: Make directory for lldp-misc
Cleaner this way
Diffstat (limited to 'tools/lldp/dotnet.sh')
-rwxr-xr-xtools/lldp/dotnet.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/lldp/dotnet.sh b/tools/lldp/dotnet.sh
new file mode 100755
index 0000000..5c1b369
--- /dev/null
+++ b/tools/lldp/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