aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lldp/dotnet.sh
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2016-02-26 13:05:31 +0000
committerKristian Lyngstol <kly@kly.no>2016-02-26 13:05:31 +0000
commit885156ee6a26ed047bba3f90541eaab92b65d758 (patch)
treee8a70cd6bca09641efac0c64c4c20d27efab2bda /tools/lldp/dotnet.sh
parentc6997a4810e09619e9018c91d163f3f38b17212c (diff)
parent3dae75bde90aecc0cef2e3496f3565dcb3eeec0c (diff)
Merge branch 'master' of github.com:tech-server/tgmanage
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