The script reports failed if the value is default.
If customer changed the value to an incorrect value, it will PASS as well.
example:
esxcli system settings advanced set -o /Net/TeamPolicyUpDelay --int-value 30
the Health check will PASS and upgrade may failed due to customer think the unit is second.
cmd = "esxcli system settings advanced list | grep TeamPolicyUpDelay -A2 | grep Int"
op = execmd(cmd)
check_HX_down_status = ""
for line in op:
if line.endswith(" 100"):
check_HX_down_status = "FAIL"
The script reports failed if the value is default. If customer changed the value to an incorrect value, it will PASS as well. example: esxcli system settings advanced set -o /Net/TeamPolicyUpDelay --int-value 30 the Health check will PASS and upgrade may failed due to customer think the unit is second.
cmd = "esxcli system settings advanced list | grep TeamPolicyUpDelay -A2 | grep Int" op = execmd(cmd) check_HX_down_status = "" for line in op: if line.endswith(" 100"): check_HX_down_status = "FAIL"