Get the size of the lun by using the name of runtime

Hello everyone

Does anyone know how to get the size of the lun using the runtime name?

$runtimeName = "vmhba0:C0:T0:L3".

You mean something like this?

$runtimeName = "vmhba2:C0:T4:L42"

Get-VMHost MyEsx | Get-ScsiLun | where {$_.RuntimeName -eq $runtimeName} |Select RuntimeName, CapacityGB

Tags: VMware

Similar Questions

  • Get the name of file that uses the file adapter

    Hello world.

    I know I can get the file name during playback of a file by clicking on properties and jca.filename and by setting a file name by going in the invoke properties when using 'Type' as an input. My question is, can we get the name of the file that the file adapter is used when you specify the file naming convention in the Setup Wizard. For example, you can have the file adapter use filenames like "MyFile%yyMMddHHmmssSSz%.txt". I want to get this information from the file adapter. I thought if the property jca.filename uses 'Type' as 'Input' assign names to files then surely 'Type' as 'exit' get the file name or a file adapter that writes a file, but of course it is not. Does anyone know if this can even be done?

    Thanks in advance.

    Hello

    You can perform a synchronization of read operation (without reading the content of the file) after writing the file in the same BPEL process, to get the name of the file that was written by the write operation.

    Thank you

  • How can I get the name of the package where a table is used

    Hello... Hello...

    How can I know the name of the package or procedures where a particular table is used?

    is there a such sql query, I can get the names?

    It should work. Not tested.

    SELECT *
      FROM USER_DEPENDENCIES
     WHERE     TYPE LIKE 'PACKAGE%'
           AND REFERENCED_TYPE = 'TABLE'
           AND REFERENCED_NAME = 'YOUR_TABLE_NAME'  --Replace with the table name you are looking for
    

    G.

    Edited by: g. on February 23, 2011 12:42 AM

  • How to use tio as textitem operator to get the name

    Oracle forms6i

    Hai All

    I created a form to create a list of hierarchy. I got a Text_item how can I use as an operator to get the name to select it. What trigger, I need to use. When I select the name I need to get his employee ID and other details

    Thanks in advance

    Srikkanth.M

    A is the head of Dept 10 and three people are under to know

    How will you know that B, C and D are under A is there any child-parent relationship between Manager and employee code? If so, you can then create the relationship between the blocks don't need to programmatically set the where_clause. Thus, the relationship can be as...

    leader_block.emp_code = emp_block.leader_code
    AND leader_blokc.dep_code = emp_block.dep_code
    

    Thus, when you interrogate data in block LEADER it will show employees under CHIEF who ask block LEADER.

    Or if there is no relationship then how will you know what employee under what leader?

    002 10 1 b

    1-10-003 c

    1-10-004 d

    When I enter the Department name of the corresponding head of other members and you need to display in the
    Tabular

    Or if you want to query records only for the service relationship. As you say you create two blocks and then create the relationship using dep_code between blocks.
    as...

    leader.dep_code = emp_block.dep_code
    

    -Clément

  • uniquifyforuser can't get the name unique size, code 1355

    Just installed v11.1.1.1 on Windows XP SP2.

    When I launch Excel, I get:

    uniquifyforuser can't get the name unique size, code 1355


    When I run Visual Explorer, I get the same thing.


    Clues?

    Thank you!

    A couple of things come to mind first... What is the ARBORPATH on the desktop? I saw him get messed up in 11.1.1 installs. Also, have you tried the standby old "restart the computer" to see if it made a difference?

    Tim Tow
    Applied OLAP, Inc.

  • get the name of the active tool and set the "BRUSHSIZE' of the Freeformpen tool

    Hello all,.

    Can I use the same script to swap "pentool' 'freeformPenTool' and 'vice versa' with a ' if... Else statement.

    How can I get the name of the active tool?

    then set the size of the tool Freeformpen: "PaintingCursors BRUSHSIZE?  (ScriptingListener does not save this setting).

    But I have no example on "PaintingCursors"...

    then set the size of the Freeformpen too

    What is that supposed to mean? A path has no width or brushsize self.

    How can I get the name of the active tool?

    2016, use it at your own risk.

    #target photoshop

    Var ref = new ActionReference();

    ref.putProperty (stringIDToTypeID ("property"), stringIDToTypeID ("tool"));

    ref.putEnumerated (charIDToTypeID ("capp"), charIDToTypeID ("Ordn"), charIDToTypeID ("Trgt"));

    var applicationDesc = executeActionGet (ref);

    Alert (typeIDToStringID (applicationDesc.getEnumerationType (stringIDToTypeID ("Tool")));

  • new-store data using the name of runtime

    Hello

    I know the name of runtime - vmhba2:0:0:201 and I would like to create a VMFS data store using PowerCLI. In the past, I'm sure I could use the runtime for the path parameter, but today I need the canonical name.

    So either 1) how to create the data store with the info I have, or 2) how obtain the canonical name of the runtime name would help me greatly.

    Thank you, Andy.

    Or all at once

    $esxName = 
    $runtimeName = "vmhba2:0:0:201" $dsName = "MyDS"
    $esx = Get-VMHost -Name $esxName $lun = Get-ScsiLun -VmHost $esx | where {$_.RuntimeName -eq $runtimeName}
    New-Datastore -VMHost $esx -Path $lun.CanonicalName
    
  • How can we get the names of police of every text layer in a document?

    Hi all!

    I wanted to know how we can get the names of fonts applied in each text layer in a psd file. I tried the following,

    NumLayers Int32 = 0;

    calculate the number of text layers.

    error = PIUGetInfo (classTextLayer, keyCount and numLayers, NULL);

    for (int i = numLayers - 1; i > 0;--i)

    {

    char * fontName = new char [100];

    Int32 len = 100;

    get the name of the font of each layer by index.

    error = PIUGetInfoByIndex (I, classTextLayer, keyFontName, fontName and len);

    }

    Suppose I have a document that has 2 layers of text and 2 layers of solid color as shown in the screenshot. Note that this document does not have a background layer. So, number of layers is 4.

    Forum.JPG

    If the layer is a layer of solid color, then I get the number of layers 0. But, if the selection of the layer is at all layers of text, I get number of layers 4. Why not get the number of layers 2 I requested info in the instruction text layers, PIUGetInfo (classTextLayer, keyCount and numLayers, NULL).

    In addition, I get error =-25922 to PIUGetInfoByIndex (I, classTextLayer, keyFontName, fontName and len).

    which is errReferenceNotFoundDefine.

    How can I go about it?

    Thank you!

    Hello

    I usually have "remember" United in what image is and then start working on it. This allowes me to iterate through layers when draft information or perform an action, and then set the document (in the previous state, with this wantsof user change course). Using this approach I am using index layers, but I don't know as I work on the layer is curently active layer.

    Now

    Getting the numbers of layer in a document:

    SPErr AMAutoPlugin::GetLayNum()

    {

    SPErr error = kSPNoError;

    numLayers Int32;

    Result PIActionDescriptor = NULL;

    Reference PIActionReference = NULL;

    error = sPSActionReference-> Make (& reference);

    If (error) goto returnError;

    error is sPSActionReference-> PutEnumerated(reference,classDocument,typeOrdinal,enumTarget);.

    If (error) goto returnError;

    error is sPSActionControl-> Get (& result, reference);.

    If (error) goto returnError;

    error = sPSActionDescriptor-> GetInteger (result, keyNumberOfLayers, & numLayers);

    If (error) goto returnError;

    stDocData.iNumLayers=numLayers;// is just my overall

    returnError:

    If (result! = NULL) sPSActionDescriptor-> Free (result);

    If (reference! = NULL) sPSActionReference-> Free (reference);

    error return;

    }

    Here is a part of the code (I hope you can understand that I have cut out a lot of)

    code that is not necessary in order to shorten the post) that retrieves the names of fonts.

    I used this approach since I have to get a lot more detailed information about text layers (not prsented here)

    I guess bu using routines from PIUGetInfoByIndex to aproprite, you can do much shorter.

    SPErr AMAutoPlugin::GetTextLayerAttributes(int index, TxtLayerInfo* info)

    {

    In order to clarify

    'info' is my structure that I filled with the data I need you can use somethong that suites you

    //

    UInt32 stringLength = 0;

    UInt32 STRL = 0;

    "" fontName char [255] = "";

    "" chariot of fontStyle [255] = "";

    "" char fontPSname [255] = "";

    HasKey Boolean = false;

    SPErr error = kSPNoError;

    DescriptorTypeID runtimeKeyID;

    DescriptorTypeID runtimeClassID;

    DescriptorTypeID runtimeTypeID;

    DescriptorTypeID runtimeUnitID;

    DescriptorTypeID runtimeEnumID;

    DescriptorClassID descClass;

    DescriptorEnumID enumValue.

    PIActionList listTextStyle = NULL;

    PIActionDescriptor descLayer = NULL; / / *

    PIActionDescriptor descPosition = NULL;

    PIActionDescriptor descTextLayer = NULL;

    PIActionDescriptor descTextStyle = NULL;

    PIActionDescriptor descFont = NULL;

    PIActionDescriptor descFontColor = NULL;

    PIActionDescriptor descClickPoint = NULL;

    PIActionDescriptor desclayerLocking = NULL;

    PIActionDescriptor descEFFECTS = NULL;

    error = sPSActionDescriptor-> Make (& descLayer);

    If (error) goto returnError;

    error = sPSActionDescriptor-> Make (& descTextLayer);

    If (error) goto returnError;

    error = sPSActionDescriptor-> Make (& descTextStyle);

    If (error) goto returnError;

    error = sPSActionList-> Make (& listTextStyle);

    If (error) goto returnError;

    error = sPSActionDescriptor-> Make (& descFont);

    If (error) goto returnError;

    error = PIUGetInfoByIndex(index,classLayer,0,&descLayer,);

    If (error) goto returnError;

    text

    error is PIUGetSingleItemFromDescriptor (descLayer, keyText, & descTextLayer, & descClass);.

    If (error) goto returnError;

    //

    get the police handle

    error = sPSActionDescriptor-> GetList (descTextLayer, keyTextStyleRange, & listTextStyle);

    If (error) goto returnError;

    error = sPSActionList-> GetObject (listTextStyle, 0, & descClass, & descTextStyle);

    If (error) goto returnError;

    error is PIUGetSingleItemFromDescriptor (descTextStyle, keyTextStyle, & descFont, & descClass);.

    If (error) goto returnError;

    font size

    error = sPSActionDescriptor-> GetFloat (descFont, keySizeKey, & dFontSize);

    If (error) goto returnError;

    Info-> dFontSize = dFontSize;

    name of the font

    error = sPSActionDescriptor-> GetStringLength (descFont, keyFontName, & stringLength);

    If (error) goto returnError;

    stringLength += 2;

    error = sPSActionDescriptor-> GetString (descFont, keyFontName, fontName, stringLength);

    If (error) goto returnError;

    Info-> sFName = fontName;

    NAME OF FONT PS

    error = sPSActionControl-> StringIDToTypeID ("fontPostScriptName", & runtimeKeyID);

    If (error) goto returnError;

    error = sPSActionDescriptor-> GetStringLength (descFont, runtimeKeyID, &STRL);)

    If (error) goto returnError;

    STRL += 2;

    error = sPSActionDescriptor-> GetString (descFont, runtimeKeyID, fontPSname, STRL);

    If (error) goto returnError;

    Info-> sPSName = fontPSname;

    font name style

    error = sPSActionDescriptor-> GetStringLength (descFont, keyFontStyleName, & stringLength);

    If (error) goto returnError;

    stringLength += 2;

    error = sPSActionDescriptor-> GetString (descFont, keyFontStyleName, fontStyle, stringLength);

    If (error) goto returnError;

    Info-> sFStyle = fontStyle;

    etc...

    Hope this helps,

    Kind regards

    Momir

  • Get the name of the network license server automatically?

    Is it possible, perhaps by means of Windows Script, to get the name of a computer is currently using the license server?

    Hi Rose Dalban,.

    You can know which servers a computer turns to the registry HKEY_LOCAL_MACHINE\SOFTWARE\FLEXlm Manager\NILM_LICENSE_FILE license key

  • How to get the name of a class private data controls?

    How can I get the names of the controls within a class private data?

    I use the framework of the actor and try to create a tha method will be executed when run the actor. This method should an o list all names of control inside the data class to find the initial value within a configuration file (config.ini file), the key to the configuration file will be the name of the control.

    Thank you.

    You already do the substitution method just because you write for the bundle by name.  And then how are you going to respond to all types of data might be the key.  You do more difficult things that it takes to really very few benefits.

  • Get the name of the current stage of MainSequence in parallel sequence

    Hello

    I starts a sequence in parallel of the MainSequence by "use new run." This parallel sequence is constantly in querying CPU performance data for my USE and records 'on the fly' an Excel file while the MainSequence turns the test scenario.

    To get a clear reference of the performance of the CPU DUT to test steps, I need to somehow get the name of the step of the test step currently performed in the MainSequence for saving it and the CPU performance data.

    Is it possible to identify the current stage of the main sequence in the parallel sequence (for example, property)?

    Thanks in advance,

    MRet

    Rette01 wrote:

    Hi Doug,.

    Finally, we have updated to TestStand 2013 and try to use your example.

    We have some problems to get the referral of wire, which is replaced by "threadToMonitor" in the expression you have posted, as far as I understand.

    The thread to monitor is the MainSequence. So, how can I get a reference to the MainSequence?

    Kind regards

    Rette01

    Pass RunState.Thread as a parameter to the call of the sequence. The parameter must be specified as an object reference variable.

    -Doug

  • Get the names of palette file types

    Hello

    How can I get the names of all types of step programmatically in a palette file?

    In my view, it should be possible, but I tried different approaches using the poster of API reference and couldn't find a way.

    Thank you and best regards,

    Aditya

    TestStand 4.2.1

    LabVIEW 2009 SP1

    propertyObjFile.TypeUsageList.NumTypes

    propertyObjFile.TypeUsageList.GetTypeDefinition)

    typeaspropobj. TypeCategory is TypeCategory_StepTypes

    Hope this helps,

    -Doug

  • How do I get the name of a duplicated or created control and add a reminder

    Hi all

    According to the number of entry points I need, I duplicate a digital or an input string to the DuplicateCtrl function. My question is, how do I get the name and id of the control that has been created, and how can I assign a callback to it? Alternatively, it would be better to create a fresh ctrl instead of duplicate?

    Thanks in advance!

    Hi TurboMetrologist,

    Why are you trying to get the name of constant control? Remember that you cannot use this name to address control; control names are in fact simply the macros in the file associated with the UIR, include in other words, the preprocessed compiler code and everywhere where the names of PANEL_CONTROL replaces the digital value as parameters to functions (and therefore 'control' parameter is an int value and not a char *)

    That's why NewCtrl () or DuplicateCtrl () functions return a control ID: this is the handle to the new object, the only way to handle it. You will need to store this handle in a nonvolatile memory so that you can access durng life program.

    In addition, there are other ways to assign a meaning to a control to pass on the name of constant control. For example, you can use the callbackData parameter to differentiate the different copies of a control.

    Let me explain with an example. You said that you need several entries (dynamically created that you don't know in advance how many of them use); a solution could be:

    • Design a master copy of a control in the IUR Editor, where it is easy to customize; also assign a callback function, if it must be common to all copies of the control
    • Assign a value to this control callbackData, programmatically for example SetCtrlAttribute (...,..., ATTR_CALLBACK_DATA, (void *) 1);
    • Duplicate the control, and then assign a different callbackData
      for (i = 2; I have< 5;="" i++)="">
      handle = DuplicateCtrl (...);
      SetCtrlAttribute (..., handle, ATTR_CALLBACK_DATA, (void *) I);
      }

    By operating this way, whenever the reminder of control is triggered by any control, it will receive the callbackData assigned, and you will be able to differentiate your code with a simple switch:

    switch (callbackData (int)) {}

    case 1: / / the master controls

    break;

    case 2: / / first dual control

    break;

    }

  • interoperability c# get the name of the step

    I'm trying to use a code c# module in order to be able to read the name of the step of the call. However, my code only all returns 'Step' as the name of the object (no matter what the step is actually called in the sequence). Note that I also tried to do the same thing to get the name of the calling sequence - and it always returns 'Sequence '. Where I'm going wrong? Here's the code: (see attachment for full source and example TestStand sequence in the "Debug" folder.

    using System;
    using System.Collections.Generic;
    using System.Text;
    using NationalInstruments.TestStand.Interop.API;
    using System.Windows.Forms;

    namespace Test
    {
    public class TestClass
    {
    public void TestMethod (SequenceContext thisContext)
    {
    PropertyObject pObj = thisContext.AsPropertyObject ();
    PropertyObject stepObj;
    stepObj = pObj.Evaluate ('Step');
    MessageBox.Show (stepObj.Name);
    }
    }
    }

    As a bit of background, I'm trying to retrieve the name of the step of the call and the name of sequence all call them all the way to the top of the stack to the root. This same method works using the steps of the Expression, but I would like to hide the mess in a single code module. Any ideas would be appreciated!

    Thank you

    Phil

    Hi Ray,

    Thanks for the tips. Unfortunately, I think I did my a little too simplistic example! Your solution is perfect for the case of the name of the step, unfortunately, this won't work for what I'm trying to do. I write a journal of custom result which is called from the ProcessModelPostResultListEntry callback and check if 'The RecordResult' is enabled on all stages of SequenceCall in the stack and if every sequence in the stack has the option "RecordResults" is enabled. (Essentially, result record should be enabled at all levels so that the result to be connected). You may think that the recall of ProcessModelPostResultListEntry would be called only if this condition is met - unfortunately, it is only affected by the combination more nested "RecordResult" step and the properties of "RecordResults" of the sequence. Therefore, frustrating, I need to check all the way to the top of the stack to the ProcessModel. The reson why it is more complex, it is that step and sequence property further to the top of the battery are accessible by using the Evaluate() method, as opposed to the lowest level in the stack that can be accessed via thisContext.Step and thisContext.Sequence.

    In any case, I worked it out in the end: in TestStand Expressions allow you to take a number of shortcuts to APIs that are not available when you use the API in a different language - so why I was able to use phrases such as:

    Locals.SequenceRef = evaluate ("RunState.Caller.RunState.Caller.Sequence"),

    Locals.SequenceName = SequenceRef.Name

    Locals.SequenceRecResult = SequenceRef.RecordResults

    whereas the similar c# code worked as expected (note that the string of RunState.Caller above is actually built dynamically depending on the depth of the call stack).

    Be more explicit in c# works correctly even if:

    seqObj = pObj.Evaluate ("RunState.Caller.RunState.Caller.Sequence");
    SequenceName = seqObj.Evaluate ("name"). GetValString ("", 0);

    SequenceReqResults = seqObj.Evaluate ("RecordResults"). GetValBoolean ("", 0);

    Although writing this response, I just found the following property:

    SequenceContext.CallerDiscardsResults

    ' Returns if any order in the call stack tells TestStand to disable the results or if any step caller in the call stack instructed TestStand do not save results.

    Typical! I think that this may be an easier to use way!

    Thanks anyway,

    Phil

  • How to get the name of sbRIO programmatically

    How to get the 'name' and 'Comment' by sbRIO I write to sbRIO-9602 Max in the box of Identification (model, serial number, MAC address, name)?

    Use RT Information.vi of target is located under the range of public services under LabVIEW Realtime.

    Christian

  • When booting I get the Visual C++ runtime library error message. This application has requested the execution in an unusual way. Any ideas how to fix?

    When booting I get the Visual C++ runtime library error message

    Hi ToddLynch,

    (1) since when are you facing this problem?

    (2) remember to make changes?

    It is sufficient to indicate the complete error message you receive.

    Put the computer to boot and then check if the problem persists

    Follow step 1 in the link below,

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    If everything works well after a clean boot, you can deduce that some third-party services are at the origin of the problem.

    Continue with the remaining steps to pin-point on the third party service.

    After find you the program that is causing the problem, you will have to perhaps to update or install a newer version of the program, if you rarely use that you should consider uninstalling the software.

    Important: n ' forget not to put the computer to a normal startup follow step 7 in the link.

Maybe you are looking for

  • iPhone 5 s keeps restart / shutdown

    Hello! I have a problem with my iphone 16 GB iOS 9.3.3 5s: It keeps stopping and won't turn on. Sometimes it's just a reboot, and it looped infinite times. I tried everything, including a factory reset. So it is definitely not a software problem. I t

  • Cannot connect to PayPal due to the unreliable login prompt

    I can't access the secure site https://www.paypal.com/fr. Whenever I try to load the site, the following message appears (see attachment), without the possibility to add an exception. My system is Microsoft Windows 8.1 x 64 Edition Build 9600, I use

  • How to choose a new calendar as a "schedule in writing"?

    Thunderbird 24.3.0/Mac OS X Mavericks/Lightning 2.6.4. I have a set schedule in place for synchronization with a cloud Internet service (not Google; not iCloud). This calendar has worked well for me for months and I have many events calendar and task

  • Satellite C855-1TF - boot BSOD "unmountable boot volume".

    It's the only occurrence that it happened, I tried to use a disc of windows 7 comes to boot from, to access the command prompt and try a disk check, but I'm unable to cross the loading animation windows such that it hangs at this point. There is noth

  • Upper left touchscreen issues

    I have been having problems lately with the upper left corner of my screen touch not resonding. You don't notice it until you try to access an application. Here is an example when I go to the game store and try to get into the settings area bars trhe