aboutsummaryrefslogtreecommitdiffstats
path: root/tools/dotnet.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/dotnet.sh')
-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