How i can get my Esxi servers uptime?

Well, read below!

Well with PowerCli, it takes only seconds:

Get-VMHost | Get-View | select Name, @{N="Uptime"; E={(Get-Date) - $_.Summary.Runtime.BootTime}}

get-esxi-uptime