The value of VM OS Type using SDK Perl v5?

I'm trying to define the type of operating system of a shell of the virtual machine using version 5 of Perl SDK and get an error.

Code snippet:

$guestid = "sles11_64Guest".

My $guestid = VirtualMachineConfigInfo-> new (ID = > $guestid);

my $spec = VirtualMachineConfigSpec-> new (ID = > $guestid);

my $task = $vm_view-> ReconfigVM_Task (spec = > $spec);

The returned error is as follows:

String: An error occurred during the configuration of the host.

Detail: PlatformConfigFault

Any help that can be provided would be greatly appreciated.

Thank you.

Hello

You had it right to $spec, if you take a look at the vSphere API Ref - http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc_50%2Fvim.vm.ConfigSpec.html

ReconfigVM_Task() supports property spec which is a VirtualMachineConfigSpec and which has a property named ID, which is just a string.

You must have the following:

$guestid = "sles11_64Guest".

my $spec = VirtualMachineConfigSpec-> new (ID-online $guestid);

My = $vm_view $task-> ReconfigVM_Task (spec-online $spec);

Tags: VMware

Similar Questions

  • Lost the ability to create tokens of debugging: error: Code signing request has failed because the value debug token of Type Package is not allowed.

    I have been a token of debugging and apps on my device Z10 hundreds of times from the command line and Momentics but this time I am confused.

    I am trying to create a token of debugging (in command line and Momentics) and deploy it in my Z10 camera, but it does not work.   In both cases, I get the following error.

    "Error: Code signing request has failed because the value debug token of Type Package is not allowed."

    2 things have happened recently that make this potentially different situation.

    a.) now my device is currently running OS 10.2

    (b) there was something new regarding signing apps with your blackberry ID?

    I was a little out of the loop for 1-2 months so please forgive me if this problem is very obvious... I am looking for a clue to what I'm doing wrong.

    This has been fixed on both of your accounts.  It was a problem of account setup.  We're looking at what caused it to prevent it from happening in the future.

  • the value of a check box using javascript

    Hi experts.

    I have a button that displays or hide a region (which is actually a form of data entry with a couple of boxes and text areas). I can't send the form on this button is clicked, I chose the redirect URL and URL target, I used according
      javascript: $('#AddActivity').show();               // used to show the region. works perfectly
      javascript: $x(P3_Emp_Name).value = '' ;       //  used to set value of Emp Name text box to empty for new entry
      javascript: $x(P3_Emp_FullTime).value = NULL; // used to show check box 'unchecked'.............here is the problem. dont get an unchecked check box
    
      if tried following also
    
     javascript: $x(P3_Emp_FullTime).value = 'N' ; and
     javascript: $x(P3_Emp_FullTime).value = N;
    
     but nothing works. check box retains what ever value last was selected.
    
      
     
    Please tell me how can I set the value of the checkbox to use 'unchecked' above excerpt of code.

    Concerning

    Try

    javascript: $x('P3_Emp_FullTime_0').checked = false;
    instead of
    javascript: $x(P3_Emp_FullTime).value = NULL;
    

    CITY

    Published by: Anderson city on April 22, 2011 05:05

    Published by: Anderson city on April 22, 2011 05:10

  • How to return the value 0 for no data using the County?

    Hi all
    I used this query to count the number of records for each month of the year:

    SELECT DISTINCT COUNT (I.information_sid) COUNT, TO_DATE (TO_CHAR (INSERT_DATE, 'MM'), 'MM') MONTH

    INFORMATION I

    TO_DATE GROUP (TO_CHAR (INSERT_DATE, 'MM'), 'MM')

    ORDER BY TO_DATE (TO_CHAR (INSERT_DATE, 'MM'), 'MM')

    But this code returns no value for months without data
    I want to return the value '0' for any month of data. How, please?

    Note: I use reports 6i.

    Maybe this?

    SELECT SUM(CNT_REC) CNT_REC, MONTH
    FROM
    (
    SELECT COUNT(I.information_sid) CNT_REC, TO_DATE(TO_CHAR(INSERT_DATE,'MM'),'MM') MONTH
    FROM INFORMATIONS I
    GROUP BY TO_DATE(TO_CHAR(INSERT_DATE,'MM'),'MM')
    UNION ALL
    SELECT 0, LPAD(ROWNUM,2,0)
    FROM ALL_OBJECTS
    WHERE ROWNUM <= 12
    )
    GROUP BY MONTH
    ORDER BY MONTH
    

    No need to SEPARATE during the use of GROUP BY.

    -Clément

  • How to extract the value of a tag XML using regular Expressions

    We get a response XML from a WEB SERVICE.

    I convert it to VARCHAR2.

    Now, I want to get the real answer that is inside the tag of the response.

    I tried this:

    DECLARE

    V_1 VARCHAR2 (30000): = ' < soap: Body > < ns:ProcessArgusFeedsResponse xmlns:ns = "urn: PegaRULES:SOAP:ArgusToPegaFeeds:Services" > ' |

    '< response > good < / answer >< / ns:ProcessArgusFeedsResponse > < / soap: Body > ';

    v_response VARCHAR2 (100);

    BEGIN

    DBMS_OUTPUT. PUT_LINE (V_1);

    v_response: = REGEXP_SUBSTR (v_1, ' / < >(.+?) < \/Response > answer /');

    dbms_output.put_line (v_response);

    END;

    It does not work.

    Any help would be greatly appreicated.

    Hello

    user12240205 wrote:

    We get a response XML from a WEB SERVICE.

    I convert it to VARCHAR2.

    Why?  XML has its own native ways of analysis; Why not use them?

    If you use regular expressions, then REGEXP_REPLACE, as shown above, is a good option in Oracle 10, but starting in Oracle 11.1, you can use REGEXP_SUBSTR like this:

    REGEXP_SUBSTR (v_1

    , '(.+?)'

    1

    1

    NULL

    1

    )

    The 6th argument is like a backreference; "He tells REGEXP_SUBSTR did not return to the entire organization, but only the part inside the 1st left '(' et correspondant à sa droite).

    The '?' to make it non-greedy is necessary only if v_1 can contain more than one response.

    Now, I want to get the real answer that is inside the tag of the response.

    I tried this:

    DECLARE

    V_1 VARCHAR2 (30000): = "" |

    'Good';

    v_response VARCHAR2 (100);

    BEGIN

    DBMS_OUTPUT. PUT_LINE (V_1);

    v_response: = REGEXP_SUBSTR (v_1, ' /(. +?)) <\ esponse="">/');

    dbms_output.put_line (v_response);

    END;

    It does not work.

    That's because it's looking for a slash ("/") before the '' tag and another after the ' tag.

    The backslash ("\") is not necessary here, but it is not nothing wrong.

  • Set the value of the page elements using apex.submit

    Hey,.

    Does anyone have an idea how to set the value of several page elements using apex.submit?

    Here is my request, she works for this element of the page, but I want to first the value of the other elements of the page (i.e. P30_SHOW_REF) as well.

    select s.nr as NRR, 
    '<input type="button" value="clickme2" onclick="document.getElementById(''BUTTONS'').style.display = ''block'';apex.submit({request:''SET'',set:{''P30_KLT_NR'':'||s.nr||'});"/>' Button 
    from klant s
    

    Thanks in advance!

    Hi Julijan,

    Here is the example:

    apex.submit({
      request:"DELETE",
      set:{"P1_DEPTNO":10, "P1_EMPNO":5433});
    

    Concerning

    J

  • How to use c:if condition check in the column to display the value

    I'm working on Jdeveloper11g with the table of the ADF.

    UseCase: in one of the column I use the condition such that if the value is not null then use golink otherwise display fair value (in fact, it is nothing). I mean I should be using golink if there is a value for this line. I tried with below but without success.

    Let me know the solution.

    < af:column sortProperty = "docName" sortable = "true".
    headerText = "#{res}" >
    < c:if test = "${docName.length > 0}" >
    "< af:goLink destination =" #{row.docURL} "text =" #{row.docName} ".
    targetFrame = "_blank" / >
    < / c:if >
    < af:outputText value="#{row.bindings.docName.inputValue}"/ >
    < / af:column >

    Thank you
    Katie

    Katie,

    You can do this by using switch or by using the visible property.
    The use of switcher:

    
         
          
              
          
          
              
          
         
    
    

    The visible property using:

    
         
         
    
    

    Jean Lou

  • Get the value of the question page before submitting.

    Hello all, I use the Application Express 4.2.5.00.08. I have a question on getting a value for a page element before the page is sent. I have a dynamic action:

    Action: Moving the mouse (on a region/State)

    Real Action: $('a[href*="39"]').each (function (index) {}
    lnk = $(this) .attr ('href');
    $(this) .parent)
    . Parent ('tr')
    .Attr ("href data ', lnk")
    {.mouseover (function ()}
    $(this) .css ("cursor", "pointer");
    Lrowrequired var = $(this) .closest ("tr"),.
    BLOCK = lRow.find("td[headers=BLOCK]").text ();
    $x('P39_BLOCK').value = BLOCK;
    })
    {.mouseleave (function ()}
    $(this) .css ('cursor', 'default');
    })
    });

    I am successfully able to get the value of the line while I'm hovering above the report (and P39_BLOCK is refreshing). But, in this case, the value is not set whenever it changes. My question is, if I need to use this value (say, put an another page element when P39_BLOCK is changed) without submitting the page, how is that possible?

    Kind regards
    MFadel.

    Hi Mohamed,

    That's what bothers! In my first dynamic action, I have real action 'Execute JavaScript Code', which doesn't have a property "Page items to show.". And I need this code to retrieve values from the row of the report.

    On the right, you will have the option 'page elements to present' the dynamic JavaScript actions. Only the PL/SQL. And you do not need to handle things strictly the use of javascript. JavaScript is usually used to manipulate items on the page itself, not the things on the server/session). If you need to present before your PL/SQL block, you can either use AJAX call, or you can create a dynamic action of PL/SQL that runs before your JavaScript. Put this field in the 'submit' page elements and the block of code, just put null;

    Here's a sample in javascript, ajax call. It pushes three elements of the page in the session or in the scope where APEX can access their values. You can return values through AJAX if necessary also:

    $.ajax ({type: 'POST',})

    URL: "wwv_flow.show",

    data: {}

    p_flow_id: $('#pFlowId').val (),.

    p_flow_step_id: page,.

    p_instance: $('#pInstance').val (),.

    "x 01': P39_PAGE_ITEM_1, '.

    "x 02': P39_PAGE_ITEM_2, '.

    "x 03': P39_PAGE_ITEM_3, '.

    p_request: 'APPLICATION_PROCESS = YOUR_PROCESS_NAME'

    },

    success: function (data) {}

    Console.log (Data);

    }

    });

    Then you would have a PL/SQL process called YOUR_PROCESS_NAME that can refer to variables such as

    my_var_1 VARCHAR2 (100 CHAR): = APEX_APPLICATION. G_X01; -Javascript password

    my_var_2 VARCHAR2 (100 CHAR): = APEX_APPLICATION. G_X02; -Javascript password

    my_var_3 VARCHAR2 (4000 TANK): = APEX_APPLICATION. G_X03; -Javascript password

    Can I use in my "PL/SQL procedure? Because in the end, I'm trying to use this value in a PL/SQL procedure:

    To answer your last question, Yes, you can use the P39_BLOCK in your PL/SQL, how you demonstrated above, but you must submit in the 'page' referred to submit box, otherwise it uses the last value that has been submitted.

    What I'm not clear, is do you need really value before executing the PL/SQL or you just want your PL/SQL? If you just try to pass it in PL/SQL and then just use the dynamic action of PL/SQL and pass it by using the "elements of the page to present. '' Remember, if you need a new value to publish on the page, you will need to put these fields in the box "items to display the page.

    If you only need the value of front page because you will use in javascript, somewhere, then reference it with jQuery or js and then use AJAX to continue your treatment.

    A third way, you could do, is to create a dynamic action of PL/SQL that runs before the javascript code that is null; in the body of PL/SQL, but put the P39_BLOCK in the "elements of page to submit" box. Who will just send the page element, and then take action dynamic javascript. But, I don't know why you would do that since you can't have the value submitted for javascript to use.

    Hope that all makes sense.

    Jen

  • break the values of columns in separate lines

    Hello

    I have a query that returns the values of 4 columns of it. Of this, a column can have many values it contains separated by semocolon (-). The requirement now is if this particular column has more than one value, separated by the semocolon (-), then the query must return each of them separately as a new line and keep the rest, column values as common for each of these values of this colummn.

    For example, select...

    output:
    col1 col2 col3
    Risk of BB IE6 71 of the PACK_PWRMART file. DELETE_POSITION_WO_RISK ($FEEDINSTANCEID); PACK_PWRMART. DELETE_INSTRU_REL_POS_WO_RISK; QC 8401

    COL4
    2010-02-11 09:29:45 December 28, 2010

    Now, col3 has 3 values separated by (;). Therefore, the output of the query
    col1          col2                           col3( now split with 3 values)                                                          col4
    71     BB IE6 risk file     PACK_PWRMART.DELETE_POSITION_WO_RISK($FEEDINSTANCEID)        2/11/2010 9:29:45 AM 28-Dec-2010     
    72     BB IE6 risk file     PACK_PWRMART.DELETE_INSTRU_REL_POS_WO_RISK            2/11/2010 9:29:45 AM 28-Dec-2010     
    73             BB IE6 risk file             QC 8401                                                                                       2/11/2010 9:29:45 AM 28-Dec-2010
    The solution that I thought:

    I don't know if this can be achieved in a single SQL statement, so I thought I should write a block of code that will use the collection separate each of the value of this column and use some sort of record of object to insert the entire line in it 3 times (or the number of times as much as the values in this column) , but without success.

    Something like this:
    declare
    type feed_name is table of varchar2(4000);--feed_static.feed_description% type INDEX BY PLS_INTEGER;
    feed_nm feed_name;
    param_val feed_name;
    dat feed_name;
    feed_desc feed_name;
    str number;
    str1 varchar2(1000);
    begin
    select feed_description as "Feed Name" ,
           param_value as "Post_Proc Prarameter",
           '28-Dec-2010' as "COB date",
           ft.feed_type_description as "Feed Type"    
    BULK COLLECT INTO feed_nm,param_val,dat,feed_desc
    from feed_static fs, feed_parameter fp, feed_type ft 
    where fs.feed_id =fp.feed_id
    and fs.feed_type_id = ft.feed_type_id
    and fs.feed_type_id not in (4,15,16,25)
    and fp.param_name  = 'postproc'
    and fp.close_action_id is null
    and fs.feed_description in ('BB 0J0 risk file')--,'BB 1J1 risk file')
    order by  fs.feed_type_id,feed_description;
    FOR i IN 1..param_val.count
    loop
        select length((param_val(i))) - length(replace(param_val(i),';')) into str from dual;
               dbms_output.put_line(str); 
               for j in 1..str
                   loop
                        SELECT SUBSTR(param_val(i), 1 ,INSTR(param_val(i), ';', 1, j)-1) into str1 FROM dual;
                        dbms_output.put_line(str1); 
                        str1:=' ';
                   end loop;
    end loop;    
    end;
    But the "dbms_output.put_line (str1); does not give me o/p as required except the first value (assume thr are the 3 values of the column).
    Also I'm not sure of what I'm trying to do is in the right direction or not.

    I have not used any RECORDING still to poulate values separated again (I'm not sure about hoe to use)

    Cam anyone help me please with this code.

    Rgds,
    Aashish

    Try this:

    select feed_description as "Feed Name" ,
           param_value as "Post_Proc Prarameter",
           '28-Dec-2010' as "COB date",
           --ft.feed_type_description as "Feed Type" ,
           regexp_substr( ft.feed_type_description,'[^;]+',1,rown.seq)
    from feed_static fs, feed_parameter fp, feed_type ft, (SELECT LEVEL seq FROM DUAL
                        CONNECT BY LEVEL<=max(length(ft.feed_type_description)- length(replace(ft.feed_type_description,';'))))rown
    where fs.feed_id =fp.feed_id
    and fs.feed_type_id = ft.feed_type_id
    and fs.feed_type_id not in (4,15,16,25)
    and fp.param_name  = 'postproc'
    AND rown.seq<=(length(ft.feed_type_description)- length(replace(ft.feed_type_description,';')))
    and fp.close_action_id is null
    and fs.feed_description in ('BB 0J0 risk file')--,'BB 1J1 risk file')
    order by  fs.feed_type_id,feed_description;
    

    regexp_count started in 11g. It counts the number of models in a particular string. I replaced by length - length (repalce).
    You can replace the word 'max (length (ft.feed_type_description) - length (replace(ft.feed_type_description,';'))))' with 10 or 15, i.e. the maximum number of semicolons in the chain

  • How to pass the value entered for the parameter IN a function

    Hello
    I'm new to pl/sql programming.
    The function below is used inside a package and the package is called in visual studio.
    The function uses the input parameters 2.
    Out what "in_report_parameter_id" value comes through the application of service job processor.
    The second IN the parameter values are hard coded into the function.
    I am not able to understand this.
    If the values are hard coded, how to ensure that only the hard coded values are the right ones?
    Please could someone explain?
    I don't really have good idea on how to move the INPUT parameter to the function or procedure
    Is there any nice document that could give me good understanding about what are the ways or types we could transmit values to the input in the subprogrammes parameter?

    Thanks in advance.

    CREATE OR REPLACE FUNCTION get_class_text_str
    (
         in_report_parameter_id IN NUMBER,
         in_which                IN VARCHAR2 DEFAULT 'SELECT'
    )
    RETURN VARCHAR2
    IS
             end_text            VARCHAR2 (50)   := ''; 
             my_class_text_str  VARCHAR2(10000) := '';
             my_class_value_str VARCHAR2(10000) := '';
     
         CURSOR class_text(c_1_text VARCHAR2, c_2_text VARCHAR2) IS
         SELECT c_1_text || report_parameters.report_parameter_value 
                               || c_2_text
                               || report_parameters.report_parameter_value 
                               || '" '
          FROM report_parameters
         WHERE report_parameters.report_parameter_id     = 3690
           AND report_parameters.report_parameter_group  = 'CLASS'
           AND report_parameters.report_parameter_name   = 'CLASS'
     GROUP BY report_parameters.report_parameter_value
     ORDER BY CAST(report_parameters.report_parameter_value AS NUMBER);
     
    BEGIN
    
         IF (in_which = 'SUM') THEN     
      
              OPEN class_text ( 'SUM(NVL("Class ', '", 0)) "Class ' );
        
         ELSIF (in_which = 'PERC')THEN
      
              OPEN class_text ( 'ROUND((("Class ', '" / "Total") * 100), 2) "Class ' );
              end_text := ', DECODE("Total", -1, 0, 100) "Total" ';
        
         ELSE
      
              OPEN class_text ( 'SUM(DECODE(bin_id, ', ', bin_value, 0)) "Class ' );
        
         END IF;
     
         LOOP
              FETCH class_text INTO my_class_value_str;
              EXIT WHEN class_text%NOTFOUND;
     
              my_class_text_str := my_class_text_str || ', ' || my_class_value_str;
         END LOOP;
     
         CLOSE class_text;
      
         my_class_text_str := my_class_text_str || end_text;
     
         RETURN my_class_text_str;
         
    END get_class_text_str;
    /
    Published by: user10641405 on November 19, 2009 08:16

    Published by: user10641405 on November 19, 2009 08:30

    This is not a conception I would use, but should work if coded correctly. I would probably create a reference text cursor query and use a fetch of open and close.

    You have 2 input parameters, in_report_parameter_id and in_which. I could not find where in_report_parameter_id has been used in the program, but the value passed to in_which is used in the logic of the FI to decide on opening the cursor. After the cursor is opened lines are to be read and possibly the cursor is closed.

    The in_which values are compared to the are hard-coded. It is the programming interface to ensure that the values are the values and the measures taken are also correct. Your program is assuming that if the first 2 values are not met the third listed is the one you want.

    To pass values of entry in a procedure you simply provide the values as a literal or something like variable in the call,

    whatever := get_class_text_str(1,'SELECT');
    
  • ListBox stores the independent position of the value

    Hello community,

    When I use the keyboard to control a list box after its value to the change in the value seems to be relative to a position of adjustment of the ListBox stores outside its value.

    To see what I mean please:

    1: run the attached vi.

    2: Press "Tab" on your keyboard once to highlight the ListBox of th.

    3: Press the 'down arrow' on your keyboard - the highlighted line will increase from 1 to 2 (as expected).

    4: run the vi again and repeat steps 2 and 3. The underlined line will increase from 1 to 3 (not scheduled, according to me at least).

    Further testing shows that the change in the value seems to be the last value of listbox was created manually despite that is not perceive not the value.

    I tried using nodes property to get the invisible position value but has not been successful.

    I have not used the listbox control a lot so it's probably my fault - but for me, this behavior is unexpected.

    Any help is appreciated.

    Best regards

    Florian

    This is a known bug:

    http://forums.NI.com/T5/LabVIEW/ListBox-behaves-in-unexpected-manner/m-p/630457#M291808

    I have a workaround posted, and it has a link to a thread of lava that also has a fix.

    Matthew

  • The value read by visa read that VI is not correct!

    I design a labview program to control the Agilent E5072C Network Analyzer. When I want to get the value of this instrument, I use VI "VISA read" listed in the plate. However, the value read from this VI's latest measurement of time value. For example, the last time that the read value is 1.0 db, and this time the measurement value is 1.2 db. But when I use 'VISA read' VI to extract the value is 1.0 db.

    Agilent also provide a VI for this device to read the measurement value and she was always correct value. If someone could tell me why? need to do any action before the value read from this instrument if I want to use VI "VISA reading" instead of Agilent VI?

    You are probably reading too quickly.  Reading it in NOR-MAX, you do it by hand, it takes more time.  When you do that programmatically, it is "instant".  Try using the * OPC? command to activate your order in a query.  He returned then a '1' in the buffer.  Read the '1' and then create the command fetch.

    For Dennis:

    I've had bad experiences with the drivers provided by the manufacturer to the point where I don't even try to use more.  But Agilent is also anal about their drivers, because they are on their books, they should pose no problems.

  • How to remove empty entries in a table and replace them with the values of the instance?

    I have a table with values and spaces elements. I want to organize items such as table contains only values eliminating the empty spaces and re-organize the table with the values of cotimuous.  I use a bollean table to populate the items, so the bolleans to false fill the empty I don't want spaces. How can I program the above operation?

    Thank you

    Thank you for your solution, but I just found an easier way. INDEXING CONDITIONAL!. How I miss that. in any case, thanks...

  • How to get the value of the level attribute of memory in the adf bean

    Hello

    I put the value of an attribute Memory_scoped using a propertylistner set. I now get this value attribute to reach memory in my bean (requestscope) adf.

    So how do you get these. I put the listner as in the screenshots below.

    prop.png

    Please help on this case.

    User

    You are not get value at all or get an incorrect value?

    Why don't you get fair value of link, why do you use the earpiece of the property?

    Ashish

  • How to set the values of the payloads of human task between activities?

    Hello

    I have some patterns that define the payload, and I want to "erase" some of the values of some data by using java or script any between activities. Is there a good way / easy to achieve?

    So no matter if you use a script or in the actual human task task, you will use a data binding...

    Heres the 11.1.1.7 official of the docs on data binding

    http://docs.Oracle.com/CD/E28280_01/doc.1111/e15176/process_info_bpmpd.htm#BPMPD406

    Or c 12

    http://docs.Oracle.com/middleware/1213/BPM/BP-composer-user/dataobj_expression_bpmcu.htm#BPMCU454

    But when you map data in the set, if it is complex, consider using a transformation, its much easier test... and reuse if necessary...

    HTH!

Maybe you are looking for