Update nodemgmt-scripts.sh

This commit is contained in:
2023-12-29 22:55:39 -06:00
parent cd435f69ed
commit 61f0c6d89f

View File

@@ -879,6 +879,21 @@ MAINTENANCE_MODE(){
}
ESXI_ISCSI_STORAGE_RESCAN(){
[ "${1}" != "now" ] && sleep 30s
for NIP in "${ESXIHOSTS[@]}"; do
if [ $(CHECK_HOST ${NIP}) == true ]; then
ssh root@${NIP} esxcli storage core adapter rescan --all &
ssh root@${NIP} vmkfstools -V &
fi
done
exit 0
}
SETUPSSH(){
echo -e "\n${idsST[Bold]}${idsCL[LightCyan]}Beginning SSH verifiication, you may get prompted for crednetials along the way\n"
for NTYPE in "${NM_NODE_TYPES[@]}"; do