CLI script can collect information RDM

I was unable to find it in the documentation.  Y at - it a cmdlet or process that I can use to collect a list of virtual machines in a data center has attached RDM disks and info on these RDM disks, IE MONDAY, capacity, used (s)?

This is the RDM disks.

foreach($vm in (Get-Datacenter MyDC | Get-VM)){
    Get-HardDisk -VM $vm -DiskType "RawVirtual","RawPhysical" |
    select @{N="VM";E={$vm.Name}},ScsiCanonicalName,CapacityKb
}

Find the used disc space as far as I know is available on data warehouses.

Or you could ask to leave in guest OS

Tags: VMware

Similar Questions

  • Need powershell scripts to collect information from vm disk

    Hello

    I need two scripts to collect information from vm drive,

    1 script to collect information vm disk mode

    Expected results:

    The virtual computer name. Name of ESX. Cluster name | VMDK name | Device label. disksizeInGB | diskmode

    Disc-> Just need the info as persistent or independent_persistent mode

    2. script to collect info RDM of Vm

    Expected results:

    The virtual computer name. Name of ESX. Cluster name | DeviceName | File name | Compatibility mode | Size

    The first script

    Get-VM | %{
         $vm = $_
         $vm | Get-HardDisk | %{
              $_ | select @{N="VM";E={$vm.Name}},
                   @{N="ESX";E={$vm.Host}},
                   @{N="Cluster";E={(Get-VMHost $vm.Host | Get-Cluster).Name}},
                   @{N="VMDK";E={$_.Filename}},
                   @{N="Device Label";E={$_.Name}},
                   @{N="disksizeInGB";E={"{0:N1}" -f ($_.CapacityKB/1MB)}},
                   @{N="Diskmode";E={$_.Persistence}}
         }
    } | ft -AutoSize -Force
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Script to collect information on an instance of rac oracle / Linux area normal conclusion?

    Hi all
    I have been instructed by the disaster recovery team to get a small quick script of race, to see what oracle instances are in a box, if it is raised, listener is running, etc.

    Normal, only one node instances so far, I've had success. I retrieve the data from the file/etc/oratab and parse try it with awk to get an ORACLE_SID and ORACLE_HOME and.

    This script is run as a user to the dba group, or the oracle so that each instance I try login through SQL * more than connect / as sysdba and not a request to collect information for instance that I echo the screen to determine that the instance is high and connectable.

    The problem I encountered, if there is an instance listed for a node in a RAC cluster... he can't see/etc/oratab entries are quite the same using dbca for RAC nodes as normal nodes.

    For example, say I have a RAC cluster that rac3 and rac1 rac2 nodes.

    From what I see... on the individual nodes, in the/etc/oratab entries only seem to put in for the cluster CCR, rather that say rac1. My script that tries to set the oracle sid and home and connect / as sysdba fails. If the entry has been made there as rac1, it should work, I think.

    Can anyone make any suggestions for me to use with this script, so that I can know which instance of node is running, if CARS is located on the computer... and automatically find and connect similar to how I am doing with the unique databases using/etc/oratab

    Is there a similar to/etc/oratab file that is used by the clusterware on the system?

    Thanks in advance,

    Cayenne

    Published by: cayenne on April 15, 2009 12:57

    Why don't doing by pmon... which I think does not work if she is down but up... you can just run something like:

    ps - ef | grep - v grep | grep pmon | cut '_' f d 3

    or... you could use the oracle_sid you get from oratab (dbname in this case... for example) and run the following:

    srvctl status database-d $sid_from_oratab | grep 'hostname ' | AWK '{print $2} '.

  • Msinfo32.exe generates an Error Message "cannot collect information.

    Hello

    I am running XP Prof with SP3 and made a scan with the perfect system optimizer and it did remove a lot of files he said were copies and since then, Information System says that it can collect Information, cannot access windows management instrumentation software. Windows Management files may have been moved or missing. I tried to use the administrative tools in the Management Console Microsoft and add snap - in following the instructions from microsoft on their site, but still did not help. Also tried to restore as soon as possible and the recovery of deleted files from the optimizer software. Nothing has helped so far. I am also on a network with my laptop which runs on Windows 7, but the have not enabled since I stupidly paid 39.99 for this software now appeasrs to have screwed up my computer. Restoration did do 1 restore and I tried 5 times and it said could not files to an earlier time which is an another prolbem I've had for a while with system restore doesn't work does not correctly. If anyone can help me I would really appericiate it. Thank you my friends.

    PKBISHOP

    Hi PKBISHOP,
     
    The error message occurs if the Windows Management Instrumentation (WMI) service is not started. This can happen if the service is disabled, if a dependent service is not started, or if a problem is preventing start the WMI service. The system information utility will be able to collect information that the WMI service is started.
     
    To correct this information to resolve this problem, see the link below.
     
  • How to collect information of a multi-node apps R12 environment.

    Hello experts,

    What are the ways, I can collect information from a multi-node environment.
    As if it is shared, etc. unified.

    Node 1:-database, Manager of competitor and Admin
    Node 2:-forms & web

    Application:-12.1.3 (R12)
    database :-11.2.0.3.0
    OS:-avalerps002dp SunOS 5.10 Generic_148888-05 sun4v sparc sun4v

    I'm new to the installation program.

    Kind regards
    Rahul

    Hello

    Please check old thread:

    APPL_TOP unified in R12 for the application tier of high availability?

    Re: How to find applications are shared or not

    Kind regards

    Hafiz

  • Msinfo32.exe system information doesn't work no-error can not recueillir collect information, says WMI is problem, but is running

    Running windows 7. WMI is running in the services. Msinfo32.exe does not work

    in the program information system, on the right side in the box grey

    said

    Cannot collect Information

    Unable to access Windows Management Instrumentation software. Management of Windows files may be displaced or missing.

    I looked at other posts, tried patches, watched registry edit info and nothing seems to work

    Why you give up your other post here:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-performance/unable-to-access-Msinfo32-error-message-cant/56060474-BDDA-4094-92EC-52ab8211a713

    You need to maybe just reset the Windows Management Instrumentation (WMI) repository.

    In the box type cmd and click on the Start orb button / open a window as administrator command prompt:

    At the command prompt window, type the following commands one at a time by pressing ENTER after each:

    net stop winmgmt (stop the WMI Service)

    Answer Yes to the warning message about the stop of the:

    Security Center

    IP Helper

    Then in the box enter these commands one at a time:

    /resetrepository of winmgmt (he will tell you that the WMI repository has been reset)

    net start winmgmt (it can report the WMI Service is started - which is correct)

    exit (close the command prompt window)

    See how msinfo32 works now.

    Note that this could take a long time (several to several minutes) for the msinfo32 command complete repository of Windows is set to zero and MOF is compiled:

    If that's what you see, wait patiently to fill information.

    Then don't forget to restart your system so that other important Services get restarted and check again msinfo32.

  • How can I create database in the xi of adobe acrobat professional to collect information of forms to fill out?

    How can I create database in the xi of adobe acrobat professional to collect information of forms to fill out?

    Hey bellaj.jenson,

    Please see the below mentioned KB doc for the same link:

    Acrobat help. Create and distribute PDF forms

    See also: data collection with forms (PDF Forms)

    Hope these helps.

    Kind regards

    Ana Maria

  • Need a Script to extract information for HA, DRS levels and admission control policy.

    Hello

    I'm looking for a Cli Script to get out information for HA, political admission control and the level of the DRS for each Cluster in the CSV format with the name of the Cluster

    (1) it must be HA information, they are handicapped his license, for each Cluster in vcenter.

    Admission control 2) enabled or disabled.

    (3) policy admission policy admission control type speciying control

    (4) DRS Automation level as manual, partially automated and fully automated.

    Need this info to keep track so we have several Cluster

    Thank you

    vmguy

    If you want to select only the groups whose name starts with Cluster, you can then change the command Get-Cluster in the first line of the script in:

    Get-Cluster-name Cluster *.

  • My Windows 8 "your pc fell on problem, collecting information and restart."

    Helloo everybody

    I had a problem with my pc today though:

    yesterday, I unplugged my PC power and changed the place of my PC and everything.

    This morning when I pluged everything I pressed the power button on my PC, it boots up it shows me the logo of the screen and then "your Pc on a problem, collecting information and restart for you" I have installed 2 a 8 and the other 8.1 windows, none of them is ready to start

    but before that I unplugged my PC, it worked very well.

    I tried to do the automatic repair and it says 'auto repair Failled' I also tried to "restore my system" and still the same problem

    I downloaded these girls to dump, please check the

    I'm really grateful if someone can help me

    idon't want to lose those 2 windows, and I don't want to format :(

    Thank you!

    dump girls:

    https://SkyDrive.live.com/redir?RESID=54C1809ED8225CC1%21501

    Salim98

    The crash more recent was November 29 and was tied to a stake of fatal power which might have killed the HD

    have you tried booting in safe mode?  Tried to start the victory 8 dvd?

    INTERNAL_POWER_ERROR (a0)
    Power policy manager has encountered an unrecoverable error.
    Arguments:
    Arg1: 000000000000010, the disk subsystem has no properly read or write the part of hibernation
    file.
    Arg2: 000000000000000a
    Arg3: fffffa8005a39340, POP_HIBER_CONTEXT
    Arg4: ffffffffc0000185, NTSTATUS error code

  • Need a powershell script to gather information from ESX host

    Hello

    I need a powershell script to collect the below given information host ESX to the Virtual Center. My VC:2.5 of the environment, the ESX hosts: 2.5, 3, 3.5

    At present I have individual powershell scripts of a steamer to get these details. Would be more useful to have a single script. I tried VESI, but does not receive the report in the below in the format.

    | ESX host name Version | Number | construction | manufacturer Model | Processor type | Number of physical CPUS | Number of cores | VMotion service IP Console IP | | County HBA | Physical NETWORK interface cards count

    Thanks in advance!

    So I'm at my wits end here.

    It works for me and Robert also confirmed that it worked for him.

    Although I don't see why this would solve the problem, you could finally try an upgrade to PowerShell v2 RTM.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Need a powershell script to collect info patch esx

    Hello

    IAM looking for a powershell script that collects the result of "motion esxupdate" for all versions of esx host 3.5 in the Virtual center 2.5 version and exports to CSV file.

    It should take input as virtual Center and collect all the information of ESX host, connect to esx hosts, run the esxupdate query and update of the CSV with results.

    I got the code base of other scripts. I've pasted below. He collects only results for esx server in view of the need to modify the code for the above requirements.

    -


    $servers = "server0″", server1″

    $account = "root".

    $password = "password".

    $servers | % {$a = plink - pw $password $account@$_ "esxupdate query"

    {$server = $_}

    -


    Thanks in advance!

    Have you tried running the script in the powershell console?

    May be a problem with the vesi script editor.

    Sent from my iPhone

    On 19 March 2010, at 21:14, Sureshadmin<>

  • Plugin or script to collect books framemaker 10 or 11 with files, fonts, images etc. ?

    I'm looking for a plugin or script to collect books from framemaker 10 or 11 with files, fonts, images etc. ? ("Collect for output" I believe it was called...) I am aware of the plugin by Bruce Foster, but I think that this does not work for these new versions of Framemaker. Can anyone help?

    concerning

    Björn

    Hi again

    I also found this Googling autour:

    http://blogs.Adobe.com/TECHCOMM/2011/07/create-a-book-Packager-using-ExtendScript.html

    Thanks for the answers!

    concerning

    Björn

  • Distribute PDF forms to collect information and track their status†

    Hello

    Comparison of the versions of Acrobat (http://www.adobe.com/products/acrobat/matrix.html) there is:

    Distribute PDF forms to collect information and track their status†

    and on the bottom:

    For ad-hoc distribution and collection forms data for up to 500 people.

    This means that only 500 people can send the form to the server acrobat.com?

    Or only 500 Forms supports can be made? Only 500 lines in my tracking page?

    What happens if I check my answers?

    I need follow responses of 50 people, but they fill many many forms and I need track responses on their part so I need to know the limits.

    Thanks for the reply in advance.

    Kind regards

    Maciej elkam

    Captatio

    If you activate player rights, allowing the player uses ave files or related items, then you are limited to 500 uses for the presentation. For more details on this topic, read the article 15 of the LICENSE agreement. Otherwise, do not activate the player rights and collect data only, not complements in PDF format.

    For your 50 people, you should probably read the license carefully, but I think that you are covered. The EULA is downloadable from Adobe to review if you don't have Acrobat.

  • My verse ATT modem (non apple devices to use this modem} is connected to the ATT line, Time Capsule (iPhones, Macs Time Capsule use) via ethernet Uverse.) Non apple devices can collect data from iPhones or Mac using the time Capsule?

    My verse ATT modem ({use of devices not apple wifi of this modem} is connected to the ATT line, Time Capsule (iPhones, Macs use the wifi of the time Capsule) and connect to the Uverse modem via ethernet.)

    Both devices are set to the highest security and each uses separate passwords.

    Non apple devices can collect data from iPhones or Mac using the time Capsule?

    With a bit of work by someone who knows how to do such things, not Apple computers could read some files on the Mac if file sharing is configured on the network... devices non-Apple and... He knew the device passwords or administrator for Macs.

    Mac could also play the files on other Macs if file sharing has been implemented and the device password or admin was known.

    If you ask if a PC can read the files on the Time Capsule, the answer is Yes, without doubt, assuming that the PC knew the password of device for the time Capsule.

  • Looking to find where is the history of my account so I can find information about my purchases

    Looking to find where is the history of my account so I can find information about my purchases

    See here:see your purchase history in iTunes on Mac or PC - Apple Support store

    -AJ

Maybe you are looking for

  • Read channel values

    Hello world I have a very common problem. In a SOUTH dialogue box, I load and display channels in a channel-drop-down list box. If everythings perfect so far, but I have a few text strings and I text entries whose length can vary, but I can't underst

  • Acer V3 - 771G multiple drivers

    Hello! I have a laptop Acer V3 - 771G and I do not understand what driver should I install to my Bluetooth (Atheros, Broadcom), Touchpad (ALPS, ELANTECH) and Wireless LAN (Atheros, Broadcom), the problem is that I don't know what to choose for each o

  • Aspire 7714Z-4433 32-bit or 64-bit?

    I need to know if my Aspire 7714Z-4433 is 32-bit or 64-bit.  He has a bad hard drive and does not start.  I replace the HARD drive and buy a new operating system (windows 7 at home, that's what he was running).  The SNID is [redacted to comply with g

  • Had to format my hard drive and need SP3 for WIndows XP

    I can't get a new computer just now.  I had to format my hard drive.  Now, I can't get SP3.  However, SP3 was downloaded for Word 2002.  Any suggestions? Thank you, JAC

  • How can I remove a card memory protected write?

    How can I remove the write protection of the memory card?