|
|
@ -47,7 +47,7 @@ _ISPC_login() { |
|
|
|
sessionID=${sessionID:1:-2} |
|
|
|
_info "Successfully retrieved Session ID." |
|
|
|
else |
|
|
|
_err "Couldn't retrieve the Session ID. Aborting."; |
|
|
|
_err "Couldn't retrieve the Session ID." |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
@ -68,26 +68,26 @@ _ISPC_getZoneInfo () { |
|
|
|
_debug2 "$curZone still contains a '.' - so we can check next higher level" |
|
|
|
else |
|
|
|
zoneEnd=true |
|
|
|
_err "Couldn't retrieve zone info. Aborting." |
|
|
|
_err "Couldn't retrieve zone info." |
|
|
|
fi |
|
|
|
done |
|
|
|
if [ ${zoneFound} ]; then |
|
|
|
server_id=$(echo "${curResult}" | _egrep_o "server_id.*" | cut -d ':' -f 2) |
|
|
|
server_id=${server_id:1:-10} |
|
|
|
case ${server_id} in |
|
|
|
''|*[!0-9]*) _err "Server ID is not numeric. Aborting" ;; |
|
|
|
''|*[!0-9]*) _err "Server ID is not numeric." ;; |
|
|
|
*) _info "Successfully retrieved Server ID" ;; |
|
|
|
esac |
|
|
|
zone=$(echo "${curResult}" | _egrep_o "\"id.*" | cut -d ':' -f 2) |
|
|
|
zone=${zone:1:-14} |
|
|
|
case ${zone} in |
|
|
|
''|*[!0-9]*) _err "Zone ID is not numeric. Aborting" ;; |
|
|
|
''|*[!0-9]*) _err "Zone ID is not numeric." ;; |
|
|
|
*) _info "Successfully retrieved Zone ID" ;; |
|
|
|
esac |
|
|
|
client_id=$(echo "${curResult}" | _egrep_o "sys_userid.*" | cut -d ':' -f 2) |
|
|
|
client_id=${client_id:1:-15} |
|
|
|
case ${client_id} in |
|
|
|
''|*[!0-9]*) _err "Client ID is not numeric. Aborting" ;; |
|
|
|
''|*[!0-9]*) _err "Client ID is not numeric." ;; |
|
|
|
*) _info "Successfully retrieved Client ID" ;; |
|
|
|
esac |
|
|
|
unset zoneFound |
|
|
@ -104,7 +104,7 @@ _ISPC_addTxt () { |
|
|
|
record_id=$(echo "${curResult}" | _egrep_o "\"response.*" | cut -d ':' -f 2) |
|
|
|
record_id=${record_id:1:-2} |
|
|
|
case ${record_id} in |
|
|
|
''|*[!0-9]*) _err "Record ID is not numeric. Aborting" ;; |
|
|
|
''|*[!0-9]*) _err "Record ID is not numeric." ;; |
|
|
|
*) _info "Successfully retrieved Record ID"; |
|
|
|
record_data="$record_data $record_id" ;; # Make space seperated string of record IDs for later removal. |
|
|
|
esac |
|
|
|