Find the UUID and MoRef ID of a VM using PowerCLI

UUID

Get-VM VM_Name | %{(Get-View $_.Id).config.uuid}

MoRef ID

Get-VM VM_name | Get-View
Get-VM VM_name | Select Name, ID
Advertisements

Close an unresponsive ssh session with ~.

SSH escape sequences:

~. – terminate connection (and any multiplexed sessions)
~B – send a BREAK to the remote system
~C – open a command line
~R – Request rekey (SSH protocol 2 only)
~^Z – suspend ssh
~# – list forwarded connections
~& – background ssh (when waiting for connections to terminate)
~? – this message
~~ – send the escape character by typing it twice

Via https://lonesysadmin.net/2011/11/08/ssh-escape-sequences-aka-kill-dead-ssh-sessions/amp/