Quantcast
Channel: VMware Communities: Message List - ESXi
Viewing all articles
Browse latest Browse all 28826

Re: VM uptime

$
0
0

Why would you need Putty?

You can do this via PowerCLI, something like this

 

$stat='sys.osuptime.latest'

 

$entity=Get-VM

Get-Stat-Entity$entity-Stat$stat-Realtime-MaxSamples1-ErrorActionSilentlyContinue|

Select @{N='VM';E={$_.Entity.Name}},

    @{N='Uptime (d.hh:mm:ss)';E={[timespan]::FromSeconds($_.value)}}


Viewing all articles
Browse latest Browse all 28826

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>