diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2015-05-04 10:37:07 +0200 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2015-05-04 10:37:07 +0200 |
commit | 5108aa44f5c8a1accf42c31cb9670e5dc87ec8a0 (patch) | |
tree | 9d9207a1c96bb27a304f8ef72a43639425e064d0 /tools | |
parent | 0156e238b1b7a6d1c625a3185caa03a6504e7255 (diff) |
Bump dotnet.sh
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/dotnet.sh | 5 |
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 |