"MaJ ctl_vm.sh"
This commit is contained in:
parent
8c10230a2c
commit
0fea561700
@ -122,12 +122,12 @@ function check_vm
|
|||||||
if [ ! ${VM_STATUS} -eq 1 ]; then
|
if [ ! ${VM_STATUS} -eq 1 ]; then
|
||||||
VM_STATUS=$(ssh ${NUC} -p ${NUC_SSH_PORT} "/usr/bin/sudo virsh domstate ${VM} 2>/dev/null | head -n1")
|
VM_STATUS=$(ssh ${NUC} -p ${NUC_SSH_PORT} "/usr/bin/sudo virsh domstate ${VM} 2>/dev/null | head -n1")
|
||||||
VM_STATUS="${VM}: VM is ${VM_STATUS}"
|
VM_STATUS="${VM}: VM is ${VM_STATUS}"
|
||||||
fct_message " - ${VM_STATUS}" -color rose
|
fct_message " - ${VM_STATUS}" -color rose
|
||||||
MESSAGE="${MESSAGE}|||${VM_STATUS}"
|
MESSAGE="${MESSAGE}|||${VM_STATUS}"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
VM_STATUS="${VM}: VM is running"
|
VM_STATUS="${VM}: VM is running"
|
||||||
fct_message " - ${VM_STATUS}" -color vert
|
fct_message " - ${VM_STATUS}" -color vert
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user