Warehouses of data, ScsiLuns, and the VI-plugin (c#)

Hello

I'm writing a VI - Plugin (vmware infrastructure client version 2.5.0)

I'm a little stuck trying to decode the API...

I'll try to find the relationship between a data store ("DS_1" in the attached JPG) and the ScsiLun ("vmhba2:6:1:1" in the attached JPG)

what I found so far:

I can find the host

Vmomi.HostSystem host = Service.ManagedObjectIdentifiedBy [suid] like Vmomi.HostSystem;

I can also find the data store

Vmomi.Host.DatastoreBrowser ds = host. GetDatastoreBrowser();

Vmomi.DatastoreArray dsa is ds. GetDatastore();

now dsa. GetInfo(). Name could give me a name ("DS_1 or DS_2 or DS_3')

find the ScsiLun is also simple:

Vmomi.Host.ConfigManager cm = host. GetConfigManager();

Vmomi.Host.StorageDeviceInfo sdi = cm. StorageSystem.GetStorageDeviceInfo ();

//now sdi. ScsiLun. CanonicalName would give me a Lun (vmhba2:6:2:1 or vmhba2:6:1:1 or vmhba2:6:3:1)

I'll try to find what connects these 2 bays (warehouses of data and ScsiLuns)

Thank you

Gil.

He is buried a little, but it's in DatastoreInfo property.  You must list your data warehouses, get each property of the info .  Then test that it is an object of VmfsDatastoreInfo .  You will then need to enumerate the properties of the vmfs.extent table (maybe only 1 if no extensions) for the diskName property.

This should match canonicalName in scsiLun.

I have a few undocumented Perl code if you are interested which shows how I did it.   Let me know if it helps, I'll post it.

Tags: VMware

Similar Questions

  • I can't download the Adobe Edge reflow. The file download is successful but the file is not in my creative cloud so I can't install the program. I already install the CC of Photoshop and the reflow plugin for Photoshop. Can I ask for help? :) T

    I can't download the Adobe Edge reflow. The file download is successful but the file is not in my creative cloud so I can't install the program. I already install the CC of Photoshop and the reflow plugin for Photoshop.

    We have fixed an issue in the cloud, so reflow creative application must be appear to install now.  In order to ensure that the list of products is updated, quit and restart Creative Cloud: cloud creative, select the gear icon at the top right and choose Exit, then restart the Adobe Creative Cloud application.

    I hope this fixes things for you!  If it doesn't, please let us know your operating system and version, as well as the steps how you feel.

  • I paid for a month to inspect the Adobe and the Chrome plugin is still telling me that I have to upgrade

    @AdobeSupport

    I paid for a month to inspect the Adobe and the Chrome plugin is still telling me that I have to upgrade.  I need this job.

    Thank you.

    SOLUTION:

    In my case I had to uninstall the Adobe Edge inspect exe (Windows) of the control panel. Uninstall the Plugin Chrome and quit the installer of creative cloud.

    I then restarted the CC Setup program, then I'm went to the Adobe download page inspect, clicked on the download button, THEN installed the Plugin Chrome.

    I guess that when in doubt, reinstall everything.

  • Script to list all the warehouses of data in a cluster, the virtual machines on the data store and the host of the virtual machine is on

    We have warehouses of data which are seen by more than one cluster. I need a script that will display:

    all stores of data seen by a cluster

    the virtual machines on the data store

    the host of the virtual machine is on

    the cluster the host is in

    The output I want is

    name of the store of data, the VM name, host name, the name of the Cluster

    any help would be appreciated

    Pretty sure this will do what you need:

    $report = @()
    Foreach($cluster in Get-Cluster){
        $datastores = $cluster | Get-VMHost | Get-Datastore
        foreach($datastore in $datastores){
        $vms = $datastore | Get-VM
        If ($vms.count -ge 1){
            foreach($VM in $vms){
            $object = New-Object -TypeName PSObject -Property @{
                  Datastore = $datastore.Name
                  VM = $VM.Name
                  HostName = $VM.VMhost
                  Cluster = $cluster
                }
            $report += $object
            }
    
        }
        }
    }
    $report | Export-Csv C:\Temp\VMs.csv -NoTypeInformation -UseCulture
    

    If you only want to shared data warehouses you can then use

    $datastores = $cluster | Get-VMHost | Get-Datastore | Where {$_.Extensiondata.Summary.MultipleHostAccess -eq $True}
    

    Hope this helps

  • How to disable the Date/time and the side Pop out window of Windows 8.1

    When I move my cursor/arrow on my touchpad on my laptop 11 flow through the office, or sometimes on a web page, for example, the date and time pop - up down to left and the research / action / start / devices / Setup window appears on the right side of the screen. It makes me crazy. How can I disable this feature of the software?  If I need them, I can simple enter the windows on the bottom of the screen icon. In its current form, it is playing all the time and I want to turn it off. Thank you.

    HP PC laptop flow 11 model: 11-d010nr, product number: K2L95UA #ABA, file system NTFS, Intel Celeron CPU N2840 2.16 GHz, RAM 2.00 GB, 64-bit x 64 based processor, 8.1 with Bing Windows operating system, HP USB 3.0 flash drive 128 GB, Sandisk Ultra SDHC 32 GB FAT 32 memory card

    Hello @BubuBaby,

    Thank you for visiting the HP Forums! A place where you can find solutions for your problems, with the help of the community!

    I stumbled upon your post on the laptop and wanted to help you! I looked in your question about your HP Notebook PC 11 workflow and settings of Touchpad not working not properly. You can disable the popup of charms by right-clicking on the desktop go to properties. In the properties of Navigation window and the taskbar, click the Navigation tab and uncheck the box - when I point to the upper right corner, show the charms.

    Here is a document on how to troubleshoot the Touchpad, if you need it.

    If you proceed to the section setting of TouchPad pointing the sensitivities it should help solve the problem. Enable or disable individual gestures by clicking the check box next to each item. A check mark in the check box indicates that the gesture is turned on.

    Hope this fixes the Touchpad settings.

    Thank you.

  • 15 - ac122tu: PCI of Data Acquisition and the controller driver of laptop HP 15-ac122TU signal processing

    Hi team,

    I just install windows 7 edition integral and peripheral Bluetooth windows 8.1 is not be detectable, when I search for problem that I came across this PCI data acquisition and Signal Processing controller driver is missing and a unknown device driver missing shownup in my result of troubleshooting. Please help me

    Please find the screenshot for your reference

    Thank you

    Hello:

    See if these drivers work...

    CQI PCI controller:

    This package contains the driver which allows Intel platform dynamic and thermal firmware setting. Intel platform dynamic and thermal environment information system temperature and power use for the heat of the system
    protection to work properly. This package is provided for the laptop models running a supported operating system.

    File name: sp71638.exe

    Bluetooth:

    This package contains the installation package driver for Realtek bluetooth in the laptop models running a supported operating system.

    File name: sp71288.exe

    Unknown dev:

    This package provides the HP 3D DriveGuard software (HP ProtectSmart Hard Drive Protection) for the laptop models running a supported operating system. HP 3D DriveGuard software protects the drive hard by parking the heads if cell phone accidentally falls, or is suddenly struck by another object.

    File name: sp71811.exe

  • Cannot get data author and the title for the pdf files display in the Explorer of Windows 7

    How can I get Windows 7 explore to display the author information and the title for the pdf files?  I can get columns to display for the author and the title of information, but they are empty and when I click it, I get the message "not specified."   I use Acrobat to create and read pdf files.  Pdf files, I create include the author and title information in the metadata, so I know the information are here. When I used Windows XP, I could hover over a pdf file and metadata would leap upward with the author and title, but Windows 7 does not display no information in the pop up more than Tpye/size/update even if the metadata author data and the title has been entered.

    nothing to see here...

  • vRO 7 and the vAPI plugin.  Someone at - it get this working?

    I am trying to configure endpoint vAPI in vRO 7 and I seem to be stuck.  The first step is to run the «Import vAPI Metamodel» workflow  No matter what I try I can't seem to get this to work.  We have a unique vCenter with an external CFP.  From what I can tell in the documentation should be endpoint vAPI https://< vCenterHostname > / rest.  I can navigate to the endpoint and the list of services and navigate around the api but the plugin does not appear happy with all that I am giving him.  I got these errors:

    point: 'Import vAPI metamodel/item1', State: 'impossible', State of the business: "null" exception: "HTTP response with the status code 404 (enable logging of debugging for details) (Workflow: Import metamodele vAPI / Import metamodele vAPI (item1) #4)"

    workflow: 'Import metamodele vAPI' (9eee7150-b606-46c8-8caa-5b5d927ff5bc)

    |  "input": name = endpointUrl type = string value =https://vc-dev-lascolo.qualcomm.com/rest

    I love her just after that I have post something like that I found the answer.  I had the wrong url... it should have been /api no/rest apparently... argh... He would kill anyone to have some examples in the documentation for the plugin?

  • By using a data form and the display of graphics

    Hi guys,.

    Don't know how to approach this issue.

    My partner has a severely autistic son who has aggression and the wild emotional changes. Then we wanted to use a predetermined list of control on a Web page, so it can record and save daily moods were a few displayed graphics (for example a graphical pie or line graphs etc.) to show trends in its conduct on a daily, weekly and continued basis.

    Seemed much easier that trying to record everything on paper as we do now and we well on the use of a Web page so she can access and save if we are away from home or at one of the clinics.

    Can is this possible in Dreamweaver and someone suggest how to on this subject? I think that we would need a data graphic radio button or something like that, a database and then a way to extract and view a chart.

    Kind regards

    Paul

    Public static HTML has no opportunity to do such things. We could use use the script on the server with a database to preserve the history of day to day information side. As a result, with limited experience (static only), I would say your chance to be able to produce something like you describe in a reasonable amount of time would be low. I agree with the suggestion of Ben to use an online tool which is able to give you what you need. Try it and see if you can adapt the features of Google spreadsheet.

    However, with your experience, you can pick up enough information PHP and MySQL just Google search for tutorials online on the subject. David Powers has a great resource of information out there that could help you get started-

    Amazon.com: David powers: biography, Blog, audiobooks, Kindle books

  • How can I turn off date stamp and the time in the comments

    I have a laptop and need to turn off the stamp tme and date in the comments is it possible?

    The purpose of the hour and the date is to allow the chronological classification of the comments. Because date timestamp is based on UTC and the displayed value is adjusted to the local time zone, this could be a handy feature for certain documents that could help to establish when something has been done.

    There is no way to the turnoff to the timestamp date of comments. You might be able to use JavaScript to manipulate the properties of the comment.

  • Problems with configuration properties and the java plugin

    Hello

    I have test the java plugin from the hyperic documents. Autodiscover works very well. Now, I had the problem if I want to change all "configuration properties" I get following error message:
    ' The configuration has not been set for this resource due to: invalid configuration: error reported by Agent @ 141.73.130.146:2144: java.lang.NullPointerException.
    Wait I use properties by default, then I don't get any errors.

    What is the problem?

    MyAutoDiscoveryServerDetector.java
    ---------------------------------------------------------------------------------------------------------------------------
    SerializableAttribute public class MyAutoDiscoveryServerDetector extends ServerDetector implements

    {AutoServerDetector}

    public list getServerResources (ConfigResponse platformConfig)

    get {PluginException}

    Server list = new ArrayList();

    Server ServerResource = createServerResource ("My Auto-Discovery Server->" + (x + 1));

    ConfigResponse productConfig = new ConfigResponse();

    productConfig.setValue ("myTimeout", String.valueOf ((x+1) * 1000));
    productConfig.setValue ("myUrl", "http://127.0.0." + (x + 1));
    productConfig.setValue ('Description', 'Description - my Auto Discovery Description->' + (x + 1));
    productConfig.setValue ("myValue", 10);

    server.setProductConfig (productConfig);

    Servers.Add (Server);

    return of the servers;

    }
    ---------------------------------------------------------------------------------------------------------------------------

    HQ - plugin.xml
    ---------------------------------------------------------------------------------------------------------------------------
    <? XML version = "1.0"? >
    < package = "com.citytechinc.articles.hyperic.plugin plugin" >

    < name of the filter = "domain" value = "My Auto Discovery" / >

    < name of the server = "MyAutoDiscoverServer" version = "0.1 c" platforms = "Unix, Win32" >

    < plugin type = "autoinventory" class = "MyAutoDiscoveryServerDetector" / >
    < plugin type = 'measure' class = "MyAutoDiscoveryServerMeasurementPlugin" / >

    < config >

    < name of option = 'myUrl '.

    Description = "Enter the URL for this resource"

    " default = ' http://127.0.0.1 "/>

    < name of option = "Description".

    Description = "enter a description of this plugin"

    default = "default my Auto Discovery Description" / >

    < name of option = "myTimeout."

    Description = "time-out for something in my plug-in.

    default = "0" / >

    < name of option = "myValue"

    Description = "a metric value.

    default = "10" / >


    < / config >


    < name metric = "availability".
    alias = 'availability '.
    Template = "System.avail:type = Platform:Availability"
    category = "AVAILABILITY".
    indicator = 'true '.
    collectionType = "dynamic".
    units = "percentage" / >

    < name metric = 'value '.
    alias = 'value '.
    model = "" MyPlugin:Type = value: value ' "
    category = 'USE '.
    indicator = 'true '.
    collectionType = "dynamic".
    units = "none" / >

    < / Server >

    < / plugin >
    ---------------------------------------------------------------------------------------------------------------------------

    UM,.

    This must be due to an incompatibility between the definitions of plugin in the server (and/or of the database) and the agent.

    First of all, always check the server log, errors that appear it should lead to the cause.

    The plugin xml initialized ok on the server, or any error appear?

    You go to Administration-> default trace and see your plugin (Server Type: MyAutoDiscoverServer) and everything is there?
    If this isn't the case, errors occurred when starting the server, check the log.

    Did you start to shave - created the plugin, added to both server and agent, autodiscovery, the platform/server added in Hyperic - or you already had the server/platform added in Hyperic and who has made some changes in the xml plugin that may be in conflict with what is already in the Hyperic database?

    Generally the pitfalls that come from these errors.

    Been there, done that.

  • Why does not define RMAN bkp merge data files and the archivelogs in a single bkp

    version: 11.2.0.3

    Why not RMAN backup data files (fusion) handset and the archivelogs in a single backupset?

    Published by: Y.Ramlet on April 15, 2013 07:15

    Changed the subject line to clarity

    What would be the advantage?

    ArchiveLogs must be independent of the specific database backups. ArchiveLogs can be used for the review (RECOVER) a database to a point in time beyond the backup database. Can I get L0 data backups once a week and backups of databases L1 on a daily basis with the ArchiveLogs daily. The ArchiveLogs should not be bound to the L0, or L1 backups but be useful to RECOVER the database to any point in time.

    Hemant K Collette

  • How to get the ID of a single data centre and the Cluster

    Hello

    We have a product we need get the detail of data centers, Clusters, the Esx host and all Virtual Machines of a Virtual Center. And keep it in sync with the VCenter. I use a thread that queries the VCenter every 5 minutes and retrieves the data.

    We use Java VI SDK 4.0 for this.

    At the present time I am able to read all the details using PropertyCollector. But once a data center is renowned for my application, it is similar to a fact that a data center with the old name has been deleted and a data center with the new name has been added. For this reason, when data center is renamed, I remove entities for the former my application Esx host and adding new features to the ESX hosts in new data center. It causes a lot of unwanted things.

    So, I want to go get some unique Id of the dataCenter and Cluster, so that when a cluster/datacenter is renamed, uniqueId is always the same and my app will be able to know that it is just a change of name. And entities for ESX/VirtualMachine will be kept.

    Please, help me to know the unique id of the cluster/datacenter.

    Thank you

    Deepak

    Yes, there are supposed to be unique UUID generated by vCenter or ESX (i) and if you have not manually mux with values. The UUID is guaranteed to be unique within a given instance of vCenter.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    150 VMware developer

    If you find this information useful, please give points to "correct" or "useful".

  • ERPI configuration: data server and the physical schema

    Hello

    I use ERPI11.1.2.1.

    I try to configure ERPI following the documentation of erpi_admin.

    It is said that to create the database server and the physical schema for ERPI, I must develop 'ERP Integrator' in the tab 'Physical Architecture' in the Manger of the topology of the ODI.

    But I have no 'Integrator of the ERPI' node 'Technical' below in physical architecture :-(

    Thanks in advance for your help

    Fanny

    You need technology that works on the basis of data of the ERPI. So if your the ERPI on Oracle database, expand the Oracle technology and then right-click and choose Insert database server.

  • create a tablespace without specifying the path to the data file and the name

    Hello

    Is it possible to create a tablespace without specifying the name and the path of the data file.

    For example: just specify the name of the tablespace and the size of the data file, the data file must be created in a default location with the default name? Is this possible?

    user13364377 wrote:
    Hello

    Is it possible to create a tablespace without specifying the name and the path of the data file.

    For example: just specify the name of the tablespace and the size of the data file, the data file must be created in a default location with the default name? Is this possible?

    The use of the files managed by Oracle
    Internally, Oracle uses standard file system interfaces to create and delete files if necessary for the following data structures:

    * Tablespaces
    * Online redo logs
    * Control of files

    Through initialization parameters, you specify the directory of file system to use for a particular file type.
    EXAMPLE:
    The following parameters are included in the initialization parameter file:

    DB_CREATE_FILE_DEST = ' / u01/oradata/sample.
    DB_CREATE_ONLINE_LOG_DEST_1 = "/ u02/oradata/sample.
    DB_CREATE_ONLINE_LOG_DEST_2 = ' / u03/oradata/sample.

    The following statement is issued at the SQL prompt:

    SQL > CREATE a DATABASE sample.
    SQL > CREATE TABLESPACE tbs_2 DATAFILE SIZE 400 M;
    SQL > CREATE UNDO TABLESPACE undotbs_1;

    check the link for more information:
    http://download.Oracle.com/docs/CD/B10500_01/server.920/a96521/OMF.htm

Maybe you are looking for

  • Topic: downloads of guard opening when I record something

    Whenever I have record something (image, video, etc.) a new tab with the url of ' subject: downloads "opens. Firefox has never done this before for me, and it just started an hour ago. I searched for a setting that stops at this, but I have found not

  • Multimedia playback on another platform

    Hi everyone, this is the first time that I ask the question on this forum. My question is that I do a lot of pages documents and I have iMac, iPad, so no problem reading media (videos in iMovie), which is not integrated into the documents page. But h

  • Activation and guarantee extremely

    I bought a "Notebook Toshiba" Satellite series Serial No. 35025599 model n ° PSA60E-09505YDU Q and I trying to activate the warranty online but its gives me error on the web and asking me to try again. Please check and let me know if my PC is already

  • I can play a dvd on my pc via the media player windows media if my operating system is vista?

    I can play a dvd on my pc via the media player windows media if my operating system is vista? I'm doing a DVD and every time I have ATS to open it on a PC with Vista, it says "Windows Media Player may not play the DVD because no compatible DVD decode

  • Can not change the themes for Windows 7 Home Premium.

    I use Windows 7 Home Premium on my Toshiba Satellite laptop. I can't change anything in relation to the themes. Specifically, I want to change the wallpaper. But I just can't. I ran the File Checker system under the prompt as an administrator, but he