mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Added SMD port option for docker
This commit is contained in:
parent
69374a29e8
commit
c2567a0b56
1 changed files with 9 additions and 1 deletions
|
|
@ -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}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue