From c2567a0b569b55d3ec226040710a3491aa0f9b12 Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Tue, 3 Oct 2023 12:26:51 -0600 Subject: [PATCH] Added SMD port option for docker --- bin/magellan.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/magellan.sh b/bin/magellan.sh index e81a90b..4c34a82 100755 --- a/bin/magellan.sh +++ b/bin/magellan.sh @@ -6,6 +6,7 @@ PORTS="" USER="" PASS="" SMD_HOST="" +SMD_PORT="" THREADS="-1" TIMEOUT="30" ARGS="" @@ -27,7 +28,7 @@ function list(){ function collect() { # ./magellan collect --user admin --pass password - ${EXE} collect --user ${USER} --pass ${PASS} --timeout ${TIMEOUT} --threads ${THREADS} --host ${SMD_HOST} + ${EXE} collect --user ${USER} --pass ${PASS} --timeout ${TIMEOUT} --threads ${THREADS} --host ${SMD_HOST} --port ${SMD_PORT} } @@ -59,6 +60,11 @@ while [[ $# -gt 0 ]]; do shift shift ;; + --smd-port) + SMD_PORT="$2" + shift + shift + ;; --timeout) TIMEOUT="$2" shift @@ -82,6 +88,8 @@ done set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters +echo "SMD host = ${SMD_HOST}" +echo "SMD port = ${SMD_PORT}" echo "subnets = ${SUBNETS}" echo "ports = ${PORTS}" echo "user = ${USER}"