aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2015-05-04 10:37:07 +0200
committerKristian Lyngstol <kristian@bohemians.org>2015-05-04 10:37:07 +0200
commit5108aa44f5c8a1accf42c31cb9670e5dc87ec8a0 (patch)
tree9d9207a1c96bb27a304f8ef72a43639425e064d0 /tools
parent0156e238b1b7a6d1c625a3185caa03a6504e7255 (diff)
Bump dotnet.sh
Diffstat (limited to 'tools')
-rwxr-xr-xtools/dotnet.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/dotnet.sh b/tools/dotnet.sh
index ccba503..1a0b1e4 100755
--- a/tools/dotnet.sh
+++ b/tools/dotnet.sh
@@ -1,4 +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 > ${DATE}.png
+echo File name: ${DATE}.png