Added SMD port option for docker

This commit is contained in:
David J. Allen 2023-10-03 12:26:51 -06:00
parent 69374a29e8
commit c2567a0b56

View file

@ -6,6 +6,7 @@ PORTS=""
USER="" USER=""
PASS="" PASS=""
SMD_HOST="" SMD_HOST=""
SMD_PORT=""
THREADS="-1" THREADS="-1"
TIMEOUT="30" TIMEOUT="30"
ARGS="" ARGS=""
@ -27,7 +28,7 @@ function list(){
function collect() { function collect() {
# ./magellan collect --user admin --pass password # ./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
shift shift
;; ;;
--smd-port)
SMD_PORT="$2"
shift
shift
;;
--timeout) --timeout)
TIMEOUT="$2" TIMEOUT="$2"
shift shift
@ -82,6 +88,8 @@ done
set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters
echo "SMD host = ${SMD_HOST}"
echo "SMD port = ${SMD_PORT}"
echo "subnets = ${SUBNETS}" echo "subnets = ${SUBNETS}"
echo "ports = ${PORTS}" echo "ports = ${PORTS}"
echo "user = ${USER}" echo "user = ${USER}"