Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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(){
|
SETUPSSH(){
|
||||||
echo -e "\n${idsST[Bold]}${idsCL[LightCyan]}Beginning SSH verifiication, you may get prompted for crednetials along the way\n"
|
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
|
for NTYPE in "${NM_NODE_TYPES[@]}"; do
|
||||||
|
|||||||
Reference in New Issue
Block a user