CiscoDevNet / Hyperflex-Hypercheck

Perform pro-active self checks on your Hyperflex cluster to ensure stability and resiliency
MIT License
27 stars 17 forks source link

ESXI NIC team policy up delay check #20

Closed yangli4-leon closed 4 years ago

yangli4-leon commented 4 years ago

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"

hsardana09 commented 4 years ago

Check corrected in the updated/committed build.