Getting property of type 'Date' from a PDO data store

It is therefore a question of both parties.  Part A: when I search for data in a data store, to find data by using the object Navigator returns the correct number of results, using the object. GetElementList does not work.  I'm looking in the data store for steps created between a certain date (using the iStartTime property).  It seems that they must return the same results.  Please see part A of my code pasted below.  Any suggestions?  Perhaps it is - that it is related to part B of my question.

Part b: iStartTime property is the data type 30, or of type Date.  When I try to access the value of the property of iStartTime I got an error stating that ' the object does not support this property or method ".  Is there a special way to get the value of a property when the property is a date?

Any suggestion would be appreciated!

-Russ

Option Explicit  ' force explicit declaration of all variables in a script.
Dim MyElementList, oMyDataStore, StartDate, EndDate, MySearchString

MyDataStorePlugin Sun: myDataStorePlugin = 'PDO '.
MyDataStoreParam Sun: myDataStoreParam = "AVL7D667E7B1EBFBAB6736F66010CCAB1AC8CB28FD2ROCMSAPP01600000000YESYESYESauto"
Set oMyDataStore = Navigator.ConnectDataStoreByParameter (myDataStorePlugin, myDataStoreParam)

StartDate = Cdate (DateAdd("d",-3,Date)) + TimeSerial (0,0,0)
EndDate = Cdate (DateAdd("d",0,Date)) + TimeSerial (23,59,59)

'------------------------------------------------------------------------------------------------------------------------------------------------
' PROBLEM A: THESE TWO SEARCH SHOULD BE THE SAME, BUT THEY RETURN DIFFERENT results.
"This returns zero search results."
Set MyElementList = oMyDataStore.GetElementList ("Action", "iStartTime > =" & StartDate & ") iStartTime<=" &="">
MsgBox ("GetElementList count:" & MyElementList.Count)

«That returns 18 results»
Dial the navigator. Display.CurrDataStore.Browser.refreshALL
Call Navigator.Display.CurrDataStore.QueryForm.Clear
Call Navigator.Display.CurrDataStore.QueryForm.Conditions.Add("Measurement","iStartTime",">=",Startdate) ' here is where I add a new condition.
Call Navigator.Display.CurrDataStore.QueryForm.Conditions.Add ("action", "iStartTime" "<=",EndDate) 'here's="" where="" i'm="" adding="" a="" new="">
Navigator.Display.CurrDataStore.QueryForm.Conditions.Logic = "C1 AND C2.
Navigator.Display.CurrDataStore.ResultsList.Elements.MaxCount = 10000
Call Navigator.Display.CurrDataStore.QueryForm.Search () ' and that triggers the search according to my requirements and the data store I went.
MsgBox ("browser search count:"& Navigator.Display.CurrDataStore.ResultsList.Elements.Count ")

'------------------------------------------------------------------------------------------------------------------------------------
«PROBLEM B: iStartTime IS DATA TYPE 30 OR DATE TYPE.» HOW TO ACCESS THE VALUE?

MsgBox ("identification data type:" & Navigator.Display.CurrDataStore.ResultsList.Elements.Item (1).) Properties.Item ("Id"). DataType) "Message:" data type Id: 3 ""
MsgBox ("Id value:" & Navigator.Display.CurrDataStore.ResultsList.Elements.Item (1).) Properties.Item ("Id"). Value) "Message:" Id value: 266888 ""

MsgBox ("iStartTime data type:" & Navigator.Display.CurrDataStore.ResultsList.Elements.Item (1).) Properties.Item ("iStartTime"). DataType) "Message:" type of identification data: 30 ""
MsgBox ("iStartTime value:" & Navigator.Display.CurrDataStore.ResultsList.Elements.Item (1).) Properties.Item ("iStartTime"). Value) ' results in error, the object does not support this property or method

Sorry, I've replaced iStartTime by measurement_begin to make it work on my local database :-)

The point is that the syntax of GetElementList is the following

"iStartTime > = 20121201033; iStartTime<>

When converting a CDate to str it cause string locale-dependent.

But the suggestion would be to use the

Dim query: query = oMyDataStore.CreateQuery set

instead of the query string. Because he avoid conversion errors. Be aware that even a double value to a string in Germany for example will convert a written decimal number while the stringquery expects at this point notation.

Set MyElementList = oMyDataStore.GetElementList ("Action", "measurement_begin > =" & RTT (StartDate, "#YYYYMMDDhhnnss") & ") measurement_begin<=" &="">

must provide correct results.

Tags: NI Software

Similar Questions

  • How can I get the list of data stores in a cluster data store?

    How can I get the list of data stores in a cluster data store? I mean the command line option.

    Hello

    by command line, you mean PowerCLI?

    If so, you can display data with this warehouses:

    Get-DatastoreCluster-name DSClustername | Get-Datastore

    Tim

    Edit: Moved the thread to the PowerCLI community

  • Property of block size of the data store

    How to get the block size defined in the configuration of the data store tab. Is there a property, I should be looking. Currently, I tried getting the object managed data store but were not able to get the size of the block that.

    If you are looking for the solution with PowerCLI, take a look at Re: version list VMFS and block size of all data stores

    André

  • get the names of Get-ScsiLun data store

    Im stuck here...  Can anyone help me to get the names of data store for storage devices using the script below? My requirement is to get the naa (ConsoleDeviceName) address and the names of data store for each storage device.

    $esxName = "esxsrv1".

    $report = @)

    Get-ScsiLun - VmHost $esxName - LunType "disk". %{

    $row = "" | Select the host, ConsoleDeviceName, model, provider

    $row.host = $esxName

    $row. ConsoleDeviceName = $_. ConsoleDeviceName

    $row.vendor = $_. Name of the vendor

    $row.model = $_. Model

    $report += $row

    }

    $report | Export Csv c:\Temp\results.csv - NoTypeInformation

    Thank you very much, Kev - o

    Try it like this

    $esxName = "esxsrv1"
    
    $dsTab = @{}
    foreach($ds in (Get-Datastore -VMHost $esxName | where {$_.Type -eq "vmfs"})){
        $ds.Extensiondata.Info.Vmfs.Extent | %{
            $dsTab[$_.DiskName] = $ds.Name
        }
    }
    
    $report = @()
    Get-ScsiLun -VmHost $esxName -LunType "disk" | %{
    
        $row = "" | Select Host, ConsoleDeviceName, Vendor, Model, Datastore    $row.host = $esxName    $row.ConsoleDeviceName = $_.ConsoleDeviceName
        $row.vendor = $_.Vendor
        $row.model = $_.Model
        $row.Datastore = &{
            if($dsTab.ContainsKey($_.CanonicalName)){
                $dsTab[$_.CanonicalName]
            }
        }
        $report += $row}
    
    $report |Export-Csv c:\Temp\results.csv -NoTypeInformation
    

    The script begins by creating a hash table where he maps the CanonicalName with the DatastoreName.

    In the 2nd part of the script of the hash table is used to find the DatastoreName through the CanonicalName.

  • SVMotion VMs to different data stores

    I need to automate the migration of VMs in a certain folder their existing data to new warehouses of data warehouses.

    Each VM has 3 VMDK.

    1 cdrive VMDK

    2. temp/VMDK file

    3 data VMDK

    I need a script that moves the Cdrive VMDK and the configuration of a new datastore cdrive files, then move the temp/VMDK file for a new temp/page data store and data VMDK to a new data store.

    Any help would be appreciated!

    I already responded to this post, but then you changed the script here...

    so

    $cdriveds = (get-Datastore your_cdrive_destination_datastore | get-view).moref.value

    $tempds = (get-Datastore your_temp_destination_datastore | get-view).moref.value

    $datads = (get-Datastore your_data_destination_datastore | get-view).moref.value

    $vmxds = (get-Datastore your_vmx_destination_datastore | get-view).moref.value

    foreach ($vm in get-folder "ben" | get - vm) {}

    $disks =$vm| Get-harddisk. % {($_.id.split('/') [1]} #-> drive 3 ID must be here
    $spec = new-Object VMware.Vim.VirtualMachineRelocateSpec
    $spec.datastore = new-Object VMware.Vim.ManagedObjectReference
    $spec.datastore.type = 'Datastore '.
    $spec.datastore.Value = $vmxds
    $spec.disk = new-Object VMware.Vim.VirtualMachineRelocateSpecDiskLocator [] (3)
    $spec.disk [0] = new-Object VMware.Vim.VirtualMachineRelocateSpecDiskLocator
    $spec.disk [0] .diskId = $disks [0]
    $spec.disk [0] .datastore = new-Object VMware.Vim.ManagedObjectReference
    $spec.disk [0].datastore.type = "data store".
    $spec.disk [0] .datastore. Value = $cdriveds
    $spec.disk [1] = new-Object VMware.Vim.VirtualMachineRelocateSpecDiskLocator
    $spec.disk [1] .diskId = $disks [1]
    $spec.disk [1] .datastore = new-Object VMware.Vim.ManagedObjectReference
    $spec.disk [1].datastore.type = "data store".
    $spec.disk [1] .datastore. Value = $tempds
    $spec.disk [2] = new-Object VMware.Vim.VirtualMachineRelocateSpecDiskLocator
    $spec.disk [2] .diskId = $disks [2]
    $spec.disk [2] .datastore = new-Object VMware.Vim.ManagedObjectReference
    $spec.disk [2].datastore.type = "data store".
    $spec.disk [2] .datastore. Value = $datads
    _this $ get-view-Id = $vm.id
    _this $. RelocateVM_Task ($spec, "defaultPriority")
    }
  • report using data store VMs

    I found the following script that runs through each VM in my vCenter and report in the database by using the virtual machine is. I try to add additional information to the State.  I would like to add the host name were lies the path to VMDK virtual machine and the virtual machine.

    $vcserver = "vcenter01".
    to connect-VIServer $vcserver

    $report = @)
    Get - VM | `
    {ForEach-Object
    $VM = $_
    $VM | Get-hard drive | `
    {ForEach-Object
    $HardDisk = $_
    $row = "" | Select the data store, hard disk, VM, CapacityGB
    $row. Data store = $HardDisk.Filename.Split("]") [0]. TrimStart("[")
    $row. VM = $VM. Name
    $row. Hard drive = $HardDisk.Name
    $row. CapacityGB = ('{0:f1}' f ($HardDisk.CapacityKB / 1 MB))
    $report += $row
    }
    }
    $report | Export-Csv "C:\Scripts\VMwareExport\vcenter01-datastore.csv" - noTypeInformation


    Disconnect-VIServer-confirm: $false

    I found this script that indicates the host name and works with my vCenter connection, but I can't recover the data store news.

    $vcserver = "center01".
    to connect-VIServer $vcserver

    $report = @)
    Get - VM | %{
    $vm = $_ | Get-View
    $row = "" | SELECT name, host
    $row. Name = $_. Name
    $row. Host = $_. Host
    $report += $row
    }

    $report | Export-Csv "C:\Scripts\VMwareExport\vcenter01-hosts.csv" - noTypeInformation

    disconnect-viserver-confirm: $false

    I also found this script that reports the path of virtual machines on the data store, but it only seems to work when it connects directly to the host, do not when connecting to the vCenter.

    $vcserver = "vhost01".
    to connect-VIServer $vcserver

    $report = @)
    Get - VM | Get-View | % {
    $current = get-view $_. Parent
    $path = $_. Name
    {}
    $parent = $current
    if($parent.) Name - only "vm") {$path = $parent. {Name + "\" + $path}
    $current is get-view $current. Parent
    } While ($current. Parent - no $null)
    foreach ($ds (Get-view $ _.)) Data store)) {}
    $row = "" | Select the name, the data store, path
    $row. Data store is $ds. Summary.Name
    $row. Name = $_. Name
    $row. Path = $path
    $report += $row
    }
    }
    $report | Export-Csv "C:\Scripts\VMwareExport\vhost01-datastore.csv" - noTypeInformation

    disconnect-viserver-confirm: $false

    If someone could combine these scripts that would be awesome!

    I combined the three scripts and add the host name and the path on the data store for the first script:

    $vcserver="vcenter01"
    connect-VIServer $vcserver
    
    $report = @()
    Get-VM | `
      ForEach-Object {
        $VM = $_
        $VM | Get-HardDisk | `
          ForEach-Object {
            $HardDisk = $_
            $row = "" | Select Datastore, VM, VMHost, HardDisk, CapacityGB, Path
                        $row.Datastore = $HardDisk.Filename.Split("]")[0].TrimStart("[")
                        $row.VM = $VM.Name
                        $row.VMHost = $VM.VMHost.Name
                        $row.HardDisk = $HardDisk.Name
                        $row.CapacityGB = ("{0:f1}" -f ($HardDisk.CapacityKB/1MB))
                        $row.Path = $HardDisk.FileName
                        $report += $row
          }
      }
    $report | Export-Csv "C:\Scripts\VMwareExport\vcenter01-datastore.csv" -noTypeInformation
    
    Disconnect-VIServer -Confirm:$false
    

    Best regards, Robert

  • Size of data store

    I have a dell poweredge 2900 with a 12 to raid 5. OK, I installed esxi. However it is to see the CT 12 but when I try to use it it says only 768 AMS are available. I think that the maximum size is 2 TB for esx and esxi. I was hoping to get esxi build a data store on the raid to the limit of 2 TB. Ideally, I wanted more than one partition on the raid 2 TB. is there any hope here. What is my options to use this server. Im a pretty new on this product and would appreciate some guidance on how to run esxi with this 12 to raid array.

    Thank you mark

    Datastore ESX/ESXi VMFS LUNS must not be greater than 2 to 512 b size... You'll want to use the configuration tools RAID (bios level generally) to carve up the storage falls within these parameters.

    VMware VCP4

    Review the allocation of points for "useful" or "right" answers.

  • Get the data from a virtual computer store

    I'm looking to get the data from a virtual computer store, but format to be used with vmrun.  My current vmrun statement is:

    vmrun t CR h < IPAddress > https://: 443/SDK u & lt; username & gt; Pei & lt; password & gt; runProgramInGuest "[& lt;. datastorename & gt;] & lt; datastorefolder & gt; / & lt; virtualmachinename & gt;. VMX' c:\myscript.bat

    The idea is to replace & lt; datastorename & gt; given with the name of the LUN that is running on a virtual machine.  In this case, I'm running my statement vmrun from inside a script PowerCLI.  I can use a variables powerCLI, if the vmrun instruction can take and use all escape sequences are needed to adapt the format vmrun to this argument.

    That is right.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • I get an error-invalid data type

    DECLARE
    CURSOR med_rec_cur
    IS
    SELECT *.
    OF temp_records_med;

    p_success NUMBER;
    strQuery VARCHAR2 (10000);
    v_count NUMBER;
    v_filename temp_records_med.filename%TYPE;

    TYPE med_rec_tab IS TABLE OF temp_records_med % ROWTYPE;

    ErrNum NUMBER;

    Slno_tab TYPE IS a TABLE OF VARCHAR2 (100);

    v_med_rec_tab med_rec_tab;
    dml_errors EXCEPTION;
    v_slno NUMBER;
    v_all_slno VARCHAR2 (1000);
    v_slno_tab slno_tab;
    tba_slno temp_records_med.slno%type;

    BEGIN
    OPEN med_rec_cur.

    LOOP
    BEGIN
    EXTRACTION med_rec_cur
    LOOSE COLLECTION v_med_rec_tab LIMIT 1000;

    FORALL I IN 1... v_med_rec_tab. COUNT SAVE EXCEPTIONS
    INSERT INTO meddetail
    VALUES v_med_rec_tab (i)
    RETURN slno BULK COLLECT INTO v_slno_tab;

    EXCEPTION
    WHEN dml_errors
    THEN
    v_all_slno: = ', '. To_char (v_all_slno);
    END;

    EXIT WHEN med_rec_cur % NOTFOUND;
    END LOOP;

    CLOSE Med_rec_cur;

    INSERT INTO BOSSDRAGON - INVALID DATA TYPE
    SELECT * FROM TEMP_RECORDS_MED WHERE SLNO NOT IN (SELECT tba_slno FROM)
    (TABLE (CAST (v_slno_tab AS slno_tab) tba_slno))) ;

    END;

    Published by: user8731258 on Sep 6, 2010 23:14

    Casting will not change the fact that you have a local collection type in a SQL statement, which is not allowed. You can create a stand-alone type with CREATE TYPE? Or use something like SYS. DBMS_DEBUG_VC2COLL that is already defined.

    You don't need a CAST explicitly in the TABLE expressions after around Oracle 8i.

  • I need to delete files from data store. Get the message "could not open because it was in use" How can I work around?

    9 my Windows update does not work. It is said to open "Datastore" and del; files allow you updates. When I try to open the data store in a first time, I wonder what program to use, and then said "can not open because it is used by another program."  This Windows Vista bit. I can't install Explorer 9 until I have a workaround. Help.

    Hello

    What is the exact error code or error message?

    I suggest to reset the Windows update components and then try to check updates, and then install the updates and check if it helps.

    How to reset the Windows Update components?: http://support.microsoft.com/kb/971058

    Solve problems when you can not install Internet Explorer 9: http://support.microsoft.com/kb/2409098

    I hope that helps!

  • [ADF, JDev12.1.3] What is the right approach to manage the Value property of a Date of entry through a bean?

    Hallo,

    I created a custom search form by dragging on the CIU af:inputText and af:inputDate.

    I have some difficulties in the treatment of af: inputDate CIU.

    I've linked the Value of each af:inputDate property to a Date variable in a range backingBean bean.

    It is the correct type of Date or can I use the String type?

    When the user clicks the button to search for the form of the search_action in the bean creates the query with parameters (identified by (?) because I am using SQL Server as DBMS).

    Then, I need programmatically check the values of af: inputDate CIU and then use them to define the query parameters.

    Are there property should I settle for FA: inputDate CIU to "do a good job? For example Valdiator, converter...?

    I see that when I use the calendar of af: inputDate, the field is entered in the format dd/mm/yyyy is good for me but I'm not able to uderstand how to treat the value to check by program and then use it to set a parameter to the query of VO.

    I also want to set the initial value of some CIU af:inputDate in the bean. It takes for example the 1st of the month 6 months ago. What code would I use to do this?

    You could you kindly help me (better if give me a simple example)?

    Thank you

    Federico

    I've linked the Value of each af:inputDate property to a Date variable in a range backingBean bean.

    It is the correct type of Date or can I use the String type?

    Date type is correct.

    Are there property should I settle for FA: inputDate CIU to "do a good job? For example Valdiator, converter...?

    Well, if you need validate the date, then you will need validator (or check the value in managed bean)

    It goes the same for the converter.

    I see that when I use the calendar of af: inputDate, the field is entered in the format dd/mm/yyyy is good for me but I'm not able to uderstand how to treat the value to check by program and then use it to set a parameter to the query of VO.

    In your beans, you will get the Date value, so no matter how it is displayed on the user interface.

    To date handling, you can use standard java api as java.util.Calendar

    I also want to set the initial value of some CIU af:inputDate in the bean. It takes for example the 1st of the month 6 months ago. What code would I use to do this?

    Use standard java api to calculate the new date, then assign accessor value in your bean (for example, in the constructor of the bean)

    Dario

  • Unable to display data from a csv file data store

    Hi all

    I'm using ODI 11 g. I'm trying to import metadata from a csv file. To do this, I have created physical and logical diagrams corresponding. Context is global.

    Then, I created a model and a data store. Now, after reverse engineering data store, I got the file headers and I changed the data type of columns to my requirement and then tried to view the data in the data store. I am not getting any error, but can't see all the data. I am able to see only the headers.

    Even when I run the interface that loads data into a table, its operation without error, but no data entered...

    But the data is present in the source file...

    Can you please help me how to solve this problem...

    Hi Phanikanth,

    Thanks for your reply...

    I did the same thing that you suggested...

    In fact, I'm working on the ODI in UNIX environment. So I went for the record separator on UNIX option in the files of the data store tab and now its works well...

    in any case, once again thank you for your response...

    Thank you best regards &,.

    Vanina

  • Get full names extended data warehouses

    Hello

    I used PowerCLI 5.1

    I am able to get the name of the data store + its first respective measure in this way:

    Get-Datastore. where {$_.type - eq "VMFS"} | % {write-host $_.} Name $(_.ExtensionData.Info.Vmfs.Extent[0])$. DiskName}


    But it simply returns a canonical name, not the full name as DGC fiber... . (< canonical name >) or Local disk from VMware (< canonical name >) which is seen in the graphical interface for a data store selected under scopes.

    It is possible to retrieve the full name of the first measure for all stores of data in a liner uses just cmdlet Get - data store ? So if there are 10 stores data only 10 datastore + extensions display names pairs will be returned similar to the highest of the output of the command.

    It is possible to get a similar output as in list of devices/paths get HBA with Powercli for peripheral column, but without having to use the cmdlets Get-VMHost, Get-VMHostHba and Get-ScsiLun because I just need 1 to 1 output to the data store and her first litter?

    Thank you

    Rindr

    Try like this

    Get-Datastore | where {$_.type -eq "VMFS"} |
    Select Name,
        @{N="CanonicalName";E={($_.ExtensionData.Info.Vmfs.Extent[0]).DiskName}},
        @{N="DisplayName";E={(Get-ScsiLun -CanonicalName ($_.ExtensionData.Info.Vmfs.Extent[0]).DiskName -VMHost (Get-VIObjectByVIView $_.ExtensionData.Host[0].Key)).ExtensionData.DisplayName}}
    
  • Get the size of the file for a particular file in a data store

    I was wondering if it was possible to get the size of a particular file on a data store. It seems that this should be trivial, but I'm new to PowerCLI and I see not all the properties of size when I invoke the cmdlet:

    PS fs:------> Get-ChildItem "somefile" * | Get-Member

    TypeName: VMware.VimAutomation.ViCore.Impl.V1.DatastoreManagement.DatastoreFolderImpl

    Name MemberType definition

    ----              ----------   ----------

    Method of ConvertToVersion T ConvertToVersion [T])

    Equals method Boolean Equals (System.Object, obj)

    GetHashCode method int GetHashCode()

    Type of the method GetType GetType()

    IsConvertableTo method bool IsConvertableTo (type toType)

    String the ToString ToString() method

    PSChildName NoteProperty System.String PSChildName = XXXXXXXXXXXXXXXXX

    PSDrive NoteProperty VMware.VimAutomation.ViCore.Cmdlets.Provider.DatastoreProvider.DatastoreDriveInfo PS...

    PSIsContainer NoteProperty System.Boolean PSIsContainer = True

    PSParentPath NoteProperty System.String PSParentPath=VMware.VimAutomation.Core\VimDatastore::\XXXXXXXXXXXXXX

    PSPath NoteProperty System.String PSPath=VMware.VimAutomation.Core\VimDatastore::\XXXXXXXXXXXX

    PSProvider NoteProperty System.Management.Automation.ProviderInfo PSProvider=VMware.VimAutomation.Core\VimDa...

    Datastore property {get ;} VMware.VimAutomation.ViCore.Types.V1.DatastoreManagement.Datastore data store

    DatastoreFullPath property System.String DatastoreFullPath {get ;}

    DatastoreId property System.String DatastoreId {get ;}

    FolderPath property System.String FolderPath {get ;}

    FullName property System.String FullName {get ;}

    Property ItemType ItemType of VMware.VimAutomation.ViCore.Types.V1.DatastoreManagement.DatastoreItemType...

    System.Nullable'1 [[System.DateTime LastWriteTime, mscorlib, Version = 4.0.0.0 property, Culture = neutral, publ...

    Property System.String name {get ;}

    UID property System.String Uid {get ;}

    Faik, you must use the SDK API to find this HostDatastoreBrowser of information, i.e.

    .

    See for example Re: using SearchDatastore_Task

  • Get the device UID (naa) in the data store

    Hello

    I want to get the UID (naa) device from a data store (VcHostDatastoreSystem).

    But I don't seem to find it.

    Can someone help me with this?

    Kind regards

    Jonathan

    Look at the code in this post: receive information from scsi to a data store if the data store is known

    I used that as a starting point for the following... I put this code in a script task and passed in a VC:HostSystem object named "wfHostObject":

    for each (var lun in wfHostObject.configManager.storageSystem.storageDeviceInfo.multipathInfo.lun) {
        for each (var path in lun.path) {
            if (path.state == "active") {
                // Get the mountinfo
                for each (var mount in wfHostObject.configManager.storageSystem.fileSystemVolumeInfo.mountInfo) {
                    if (mount.volume.hasOwnProperty("extent")) {
                        for each (var extent in mount.volume.extent) {
                            var tmp = extent.diskName.split(/\./);
                            var regExp = new RegExp(tmp[1],'gi');
                            if (lun.id.match(regExp)) {
                                System.debug("=========== Mount Name: "+mount.volume.name);
      System.debug("Type: "+mount.volume.type);
                                System.debug("Extent diskName: "+extent.diskName);
      System.debug("vStorageSupport: "+mount.vStorageSupport);
      System.debug("---- Mount Info");
      var mountInfo = mount.mountInfo;
      System.debug("AccessMode: "+mountInfo.accessMode);
      System.debug("Accessible: "+mountInfo.accessible);
      System.debug("Inaccessible Reason: "+mountInfo.inaccessibleReason);
      System.debug("Mounted: "+mountInfo.mounted);
      System.debug("Path: "+mountInfo.path);
                            }
                        }
                    }
                }
            }
        }
    }
    

    Example of output:

    [2013-12-12 17:03:57.370] [D] =========== Mount Name: qnap-iscsi
    [2013-12-12 17:03:57.370] [D] Type: VMFS
    [2013-12-12 17:03:57.370] [D] Extent diskName: naa.60014055dbf2832dbc91d4bacdb356d9
    [2013-12-12 17:03:57.370] [D] vStorageSupport: vStorageSupported
    [2013-12-12 17:03:57.370] [D] ---- Mount Info
    [2013-12-12 17:03:57.374] [D] AccessMode: readWrite
    [2013-12-12 17:03:57.374] [D] Accessible: true
    [2013-12-12 17:03:57.374] [D] Inaccessible Reason: null
    [2013-12-12 17:03:57.374] [D] Mounted: true
    [2013-12-12 17:03:57.374] [D] Path: /vmfs/volumes/528cbe4f-6ae388d8-6a9e-14dae927d5bb
    

Maybe you are looking for