From 0156e238b1b7a6d1c625a3185caa03a6504e7255 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Mon, 4 May 2015 10:26:40 +0200 Subject: Add dotnet.sh support Run ./dotnet.sh and out comes a png with your network topology. --- tools/dotnet.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 tools/dotnet.sh (limited to 'tools/dotnet.sh') 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 -- cgit v1.2.3 From 5108aa44f5c8a1accf42c31cb9670e5dc87ec8a0 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Mon, 4 May 2015 10:37:07 +0200 Subject: Bump dotnet.sh --- tools/dotnet.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/dotnet.sh') 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 " + exit 1; +fi ./lldpdiscover.pl $1 $2 | ./draw-neighbors.pl | dot -Tpng > ${DATE}.png +echo File name: ${DATE}.png -- cgit v1.2.3 From b504bf15f738c7ae3633af3dec14148e79b778f7 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Fri, 8 May 2015 12:25:03 +0200 Subject: lldpdiscovery: More intelligence --- tools/dotnet.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/dotnet.sh') diff --git a/tools/dotnet.sh b/tools/dotnet.sh index 1a0b1e4..5c1b369 100755 --- a/tools/dotnet.sh +++ b/tools/dotnet.sh @@ -5,5 +5,5 @@ if [ -z "$1" ] || [ -z "$2" ]; then echo "Usage: $0 " exit 1; fi -./lldpdiscover.pl $1 $2 | ./draw-neighbors.pl | dot -Tpng > ${DATE}.png -echo File name: ${DATE}.png +./lldpdiscover.pl $1 $2 | ./draw-neighbors.pl | dot -Tpng > dotnet-${DATE}.png +echo File name: dotnet-${DATE}.png -- cgit v1.2.3