CiscoDevNet / Hyperflex-Hypercheck

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

Add ESXi SSH enabled on startup check #36

Open sttardy opened 3 years ago

sttardy commented 3 years ago

Hyperflex upgrades fail with non-obvious errors when ESXi reboots and SSH is NOT enabled to start on boot.

HyperCheck should warn if SSH is NOT enabled on boot. ESXi CLI commands to check.

[root@hx-01a-esxi-1:~] grep SSH /etc/chkconfig.db
/etc/init.d/SSH on
[root@hx-01a-esxi-1:~] vim-cmd hostsvc/disable_ssh
[root@hx-01a-esxi-1:~] grep SSH /etc/chkconfig.db
/etc/init.d/SSH off
[root@hx-01a-esxi-1:~] vim-cmd hostsvc/enable_ssh
[root@hx-01a-esxi-1:~] grep SSH /etc/chkconfig.db
/etc/init.d/SSH on
[root@hx-01a-esxi-1:~]