aboutsummaryrefslogtreecommitdiffstats
path: root/extras/tools/lldp/dotnet.sh
diff options
context:
space:
mode:
authorroot <root@DEBIAN.TEMPLATE>2016-06-02 19:07:59 +0200
committerroot <root@DEBIAN.TEMPLATE>2016-06-02 19:07:59 +0200
commit8b580cc21e08b187451cc36a379974ca898e5105 (patch)
tree54545f735e4d626d128bd61effa4360be164756b /extras/tools/lldp/dotnet.sh
parent5222b78af21f90e230d50c075174fc84f45d4172 (diff)
lldpdiscover imported
Diffstat (limited to 'extras/tools/lldp/dotnet.sh')
-rwxr-xr-xextras/tools/lldp/dotnet.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/extras/tools/lldp/dotnet.sh b/extras/tools/lldp/dotnet.sh
new file mode 100755
index 0000000..5c1b369
--- /dev/null
+++ b/extras/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