From 34aa9568d90c84296d1e1f631748e9aa44227802 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Fri, 26 Feb 2016 11:32:15 +0100 Subject: tools: Make directory for lldp-misc Cleaner this way --- tools/lldp/dotnet.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 tools/lldp/dotnet.sh (limited to 'tools/lldp/dotnet.sh') diff --git a/tools/lldp/dotnet.sh b/tools/lldp/dotnet.sh new file mode 100755 index 0000000..5c1b369 --- /dev/null +++ b/tools/lldp/dotnet.sh @@ -0,0 +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 > dotnet-${DATE}.png +echo File name: dotnet-${DATE}.png -- cgit v1.2.3