aboutsummaryrefslogtreecommitdiffstats
path: root/tools/dotnet.sh
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2015-05-04 10:26:40 +0200
committerKristian Lyngstol <kristian@bohemians.org>2015-05-04 10:26:40 +0200
commit0156e238b1b7a6d1c625a3185caa03a6504e7255 (patch)
tree143c87e63767cf772ff0b263be02b5c4b5e0fe60 /tools/dotnet.sh
parent018186eba522de5b96e5583dc9ddbef28da8e245 (diff)
Add dotnet.sh support
Run ./dotnet.sh <ip> <community> and out comes a png with your network topology.
Diffstat (limited to 'tools/dotnet.sh')
-rwxr-xr-xtools/dotnet.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/dotnet.sh b/tools/dotnet.sh
new file mode 100755
index 0000000..ccba503
--- /dev/null
+++ b/tools/dotnet.sh
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+
+DATE="$(date +%s)"
+./lldpdiscover.pl $1 $2 | ./draw-neighbors.pl | dot -Tpng > ${DATE}.png