Skip to main content

Powercli script RDM details of a VM

Get-VM VmName | Get-HardDisk |

where {"RawPhysical","RawVirtual" -contains $_.DiskType -and

       "Physical","Virtual" -contains (Get-ScsiController -HardDisk $_).BusSharingMode} |


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

    Name,
    DeviceName,
    CapacityGB,

    DiskType,

    ScsiCanonicalName,

    @{N='BusSharing';E={(Get-ScsiController -HardDisk $_).BusSharingMode}},

    @{N='SCSIid';E={

        $hd = $_

        $ctrl = $hd.Parent.Extensiondata.Config.Hardware.Device | where{$_.Key -eq $hd.ExtensionData.ControllerKey}

        "$($ctrl.BusNumber):$($_.ExtensionData.UnitNumber)"

     }} |  export-csv vm.csv | out-gridview

Comments

Popular posts from this blog

Dell EMC VxRail – VMware Virtual SAN Stretched Cluster

Logical Diagram of VMware vSAN Stretched Cluster Physical Diagram of VMware vSAN Stretched Cluster Last week I deployed a test environment of VMware vSAN Stretched Cluster which is running on Dell EMC VxRail Appliance. In this post we will describe how to setup VMware vSAN Stretched Cluster on Dell EMC VxRail Appliance. Above figure is the high level of physical system diagram. In site A/B there are six VxRail Appliances and two 10GB Network Switch which are interconnected by two 10GB links, and each VxRail Appliance has one 10GB uplink connects to each Network Switch. In site C, there are one vSAN Witness host and one 10GB Network Switch. For the details of configuration of each hardware equipment in this environment, you can reference the followings. Site A (Preferred Site) 3 x VxRail E460 Appliance Each node includes 1 x SSD and 3 x SAS HDD, 2 x 10GB SFP+ ports 1 x 10GB Network switch Site B (Secondary Site) 3 x VxRail E460 Appliance Each node includes 1 x SSD and...

VMware Interview Questions & Answers

These interview questions are categorized into the following technical areas: Hypervisor Fault Tolerance (FT) Virtual Networking vCenter Server Virtual Storage (Datastore) What’s New in vSphere 6.0 Content Libraries vSAN vApp and Miscellaneous Hypervisor What is VMKernel and why it is important? VMkernel is a virtualization interface between a Virtual Machine and the ESXi host which stores VMs. It is responsible to allocate all available resources of ESXi host to VMs such as memory, CPU, storage etc. It’s also controlled special services such as vMotion, Fault tolerance, NFS, traffic management and iSCSI. To access these services, VMkernel port can be configured on ESXi server using a standard or distributed vSwitch. Without VMkernel, hosted VMs cannot communicate with ESXi server. What is the hypervisor and its types? A hypervisor is a virtualization layer that enables multiple operating systems to share a single hardware host.  Each operating syste...

AWS on a Nutshell

                             Accessing the Platform To access AWS Cloud services, you can use the AWS Management Console, the AWS Command Line Interface (CLI), or the AWS Software Development Kits (SDKs). The AWS Management Console is a web application for managing AWS Cloud services. The console provides an intuitive user interface for performing many tasks. Each service has its own console, which can be accessed from the AWS Management Console. The console also provides information about the account and billing. The AWS Command Line Interface (CLI) is a unified tool used to manage AWS Cloud services. With just one tool to download and configure, you can control multiple services from the command line and automate them through scripts. The AWS Software Development Kits (SDKs) provide an application programming interface (AP...