From 6ede0e5aae94f0274e91d980bdccb21623db2401 Mon Sep 17 00:00:00 2001 From: Kyle Ruddy Date: Wed, 18 Jan 2017 13:45:56 -0500 Subject: [PATCH 1/3] Get-HVMachine Summary - Remove Informational Message Get-HVMachine Summary - Remove informational nessage and associated break --- Modules/VMware.Hv.Helper/VMware.HV.Helper.psm1 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Modules/VMware.Hv.Helper/VMware.HV.Helper.psm1 b/Modules/VMware.Hv.Helper/VMware.HV.Helper.psm1 index 583933d..7c06a99 100644 --- a/Modules/VMware.Hv.Helper/VMware.HV.Helper.psm1 +++ b/Modules/VMware.Hv.Helper/VMware.HV.Helper.psm1 @@ -5253,10 +5253,6 @@ function Get-HVMachineSummary { } $machineList = Find-HVMachine -Param $PSBoundParameters - if (!$machineList) { - Write-Host "No Virtual Machine(s) Found with given search parameters" - break - } return $machineList } From ea23bb0568b2823b78afff58e48ffa214a1d3822 Mon Sep 17 00:00:00 2001 From: Mike Foley Date: Wed, 18 Jan 2017 15:33:50 -0500 Subject: [PATCH 2/3] Update VMware.VMEncryption.psm1 Added missing parenthesis at line 277 position 35. --- Modules/VMware.VMEncryption/VMware.VMEncryption.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/VMware.VMEncryption/VMware.VMEncryption.psm1 b/Modules/VMware.VMEncryption/VMware.VMEncryption.psm1 index 5252f96..c350955 100644 --- a/Modules/VMware.VMEncryption/VMware.VMEncryption.psm1 +++ b/Modules/VMware.VMEncryption/VMware.VMEncryption.psm1 @@ -274,7 +274,7 @@ Function Set-vMotionEncryptionConfig { [Parameter(Mandatory=$True,ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True)] [VMware.VimAutomation.ViCore.Types.V1.Inventory.VirtualMachine]$VM, - [Parameter(Mandatory=$True] + [Parameter(Mandatory=$True)] [ValidateSet("disabled", "opportunistic", "required")] [String]$Encryption ) From fa6c9f491f4c83ca34fbbf78ca973e923428d73b Mon Sep 17 00:00:00 2001 From: Alan Renouf Date: Thu, 19 Jan 2017 17:44:57 -0800 Subject: [PATCH 3/3] Added NVME Info Script Added NVME Info Script --- Scripts/NVME Info.ps1 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Scripts/NVME Info.ps1 diff --git a/Scripts/NVME Info.ps1 b/Scripts/NVME Info.ps1 new file mode 100644 index 0000000..415b298 --- /dev/null +++ b/Scripts/NVME Info.ps1 @@ -0,0 +1,27 @@ +<# + .NOTES + =========================================================================== + Created by: Alan Renouf + Organization: VMware + Blog: http://virtu-al.net + Twitter: @alanrenouf + =========================================================================== +#> + +Foreach ($vmhost in Get-VMHost) { + $esxcli = get-esxcli -V2 -vmhost $vmhost + Write-Host "Host: $($vmhost.name)" -ForegroundColor Green + $devices = $esxcli.nvme.device.list.Invoke() + Foreach ($device in $devices) { + $nvmedevice = $esxcli.nvme.device.get.CreateArgs() + $nvmedevice.adapter = $device.HBAName + $esxcli.nvme.device.get.invoke($nvmedevice) | Select-Object ModelNumber, FirmwareRevision + $features = $esxcli.nvme.device.feature.ChildElements | Select-object -ExpandProperty name + ForEach ($feature in $features){ + Write-Host "Feature: $feature" -ForegroundColor Yellow + $currentfeature = $esxcli.nvme.device.feature.$feature.get.CreateArgs() + $currentfeature.adapter = $device.HBAName + $esxcli.nvme.device.feature.$feature.get.Invoke($currentfeature) + } + } +} \ No newline at end of file