Get-VMHostSnmp returns nothing

Hi all

I need to get out a bunch of SNMP parameters for some 5.5 ESXi hosts.

This bit is easy. I say that because when I run the command set-vmhostsnmp to add the targets and community names, no error is returned.

It's when I try to check the settings, or search the SNMP settings on different hosts that I run into trouble.

I want to add that I tried the following on PowerShell (v3), Powershell ISE, with VMware PowerCLI (5.5 Release 1).

Always with the same results.

to connect-viserver MyESXiHost-credential (get-credential)

Get-VMHostSNMP #returns nothing

Get-VMHostSNMP-returns # server MyESXiHost the below error

Get-VMHostSnmp: 26/Jun/2015 12:14:18Get-VMHostSnmpThe method or operation is not implemented.

On line: 1 char: 1

+ Get-VMHostSnmp-Server MyESXiHost

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo: NotSpecified: (:)) [Get-VMHostSnmp], VimException)
+ FullyQualifiedErrorId: Core_BaseCmdlet_UnknownError, VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.GetVMHostSnmp

I checked the snmpd Service and it is running

Get-VMHostService - VMHost MyESXiHost | where {$_.} Key - eq "snmpd"}

Required Label key running policy

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

snmpd snmpd on True False

I even restarted the snmpd service after adding the SNMP parameters using

Get-VMHostService - VMHost MyESXiHost | where {$_.} Key - eq "snmpd"} | Restart-VMHostService-confirm: $false

That is to say;LabelPolicyRunning required
---------------------  --------
snmpdsnmpdonTrueFake

I even tried to Get-EsxCli

$esxcli = get-EsxCli - VMHost siprb3esx01.corp.emc.com

$esxcli.system.snmp.get)

several errors returned

Community string has not been specified in the trap target

When I put something inside the brackets, I get the following

The 'get' method is called with parameters '1', but the number of parameters expected is '0'

Any help that can be offered would be appreciated.

Thank you all

Problem solved.

I've updated since PowerCLI 5.5 Release 1 to PowerCLI version 5.8 Release 1 and the get-vmhostsnmp command now works.

Better yet Get-VMHostSnmp | Select VMHost, works of TrapTargets

Tags: VMware

Similar Questions

  • PowerCLI Get-AdvancedSetting returns nothing

    Hello.

    I have a problem with the Get-AdvancedSetting command.

    The return is always nothing, unless an error occurs, which in this case indicates the error.

    In the example below, it should return a list of required parameter for all virtual machines that have this setting:

    PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI > Get - vm | Get-AdvancedSetting - name disk. EnableUUID

    PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI >

    Also the same in this variant:

    PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI > Get-AdvancedSetting - entity (Get - VM - name SRVNAME) - disk name. EnableUUID

    PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI >

    As you can see, it only skips line and returns nothing. I am able to enumerate all the virtual machines if I just launched Get - vm and I get an error if I try the above without the entity.

    I tried with arguments of different setting different disk . EnableUUID, but got the same result.

    What could be wrong?

    Thank you.

    Ouch, that's a pretty old version.

    No particular reason, you can not upgrade?

  • Custom view get-inventory returns nothing

    Here is an excerpt of what I'm trying to accomplish (I filter certain fields/results)

    Get-Inventory | %{
         $type = $_.Id
         if($_.Id.Contains("-")) {
              $type =  $type.Substring(0, $type.IndexOf("-"))
         }
    
         switch ($type) {
              "ClusterComputeResource" {
                   select  @{name="[MACHINE_NAME]"; expression={$server}},
                             @{name="[PATH]Id"; expression={$_.Id}},
                             @{name="[PATH]Name"; expression={$_.Name}},
                             @{name="Name"; expression={$_.Name}},
                             @{name="HA Enabled"; expression={$_.HAEnabled}},
                             @{name="HA Admission Control Enabled"; expression={$_.HAAdmissionControlEnabled}},
                             @{name="HA Failover Level"; expression={$_.HAFailoverLevel}},
                             @{name="HA Restart Priority"; expression={$_.HARestartPriority}},
                             @{name="HA Isolation Response"; expression={$_.HAIsolationResponse}},
                             @{name="DRS Enabled"; expression={$_.DrsEnabled}},
                             @{name="DRS Automation Level"; expression={$_.DrsAutomationLevel}},
                             @{name="VM Swapfile Policy"; expression={$_.VMSwapfilePolicy}},
                             @{name="Custom Fields"; expression={$_.CustomFields}},
                             @{name="Type"; expression={$type}}
              }
              "HostSystem" {
                   select  @{name="[MACHINE_NAME]"; expression={$server}},
                             @{name="[PATH]Id"; expression={$_.Id}},
                             @{name="[PATH]Name"; expression={$_.Name}},
                             @{name="Name"; expression={$_.Name}},
                             @{name="State"; expression={$_.State}},
                             @{name="VM Swapfile Datastore Id"; expression={$_.VMSwapfileDatastoreId}},
                             @{name="VM Swapfile Policy"; expression={$_.VMSwapfilePolicy}},
                             @{name="Custom Fields"; expression={$_.CustomFields}},
                             @{name="Type"; expression={$type}}
              }
              ...
    

    It returns nothing every time.  If I just run Get-inventory I collect a lot of data.  My guess is that I do something wrong in a perspective of PowerShell, not a point of view CLI.

    Any ideas?

    It's because you're not 'feed' anything in the select cmdlet.

    And the Switch statement modifies the contents of the variable $_

    And to get the type that you can use the GetType method that exists on any object.

    Get-Inventory | % {
         $type = ($_ | Get-View).gettype().Name
         $obj = $_
         switch ($type) {
              "ClusterComputeResource" {
                   $obj | select @{name="[MACHINE_NAME]"; expression={$server}},
                   @{name="[PATH]Id"; expression={$obj.Id}},
                   @{name="[PATH]Name"; expression={$obj.Name}},
                   @{name="Name"; expression={$obj.Name}},
                   @{name="HA Enabled"; expression={$obj.HAEnabled}},
                   @{name="HA Admission Control Enabled"; expression={$obj.HAAdmissionControlEnabled}},
                   @{name="HA Failover Level"; expression={$obj.HAFailoverLevel}},
                   @{name="HA Restart Priority"; expression={$obj.HARestartPriority}},
                   @{name="HA Isolation Response"; expression={$obj.HAIsolationResponse}},
                   @{name="DRS Enabled"; expression={$obj.DrsEnabled}},
                   @{name="DRS Automation Level"; expression={$obj.DrsAutomationLevel}},
                   @{name="VM Swapfile Policy"; expression={$obj.VMSwapfilePolicy}},
                   @{name="Custom Fields"; expression={$obj.CustomFields}},
                   @{name="Type"; expression={$type}}
              }
              "HostSystem" {
                   $obj | select @{name="[MACHINE_NAME]"; expression={$server}},
                   @{name="[PATH]Id"; expression={$obj.Id}},
                   @{name="[PATH]Name"; expression={$obj.Name}},
                   @{name="Name"; expression={$obj.Name}},
                   @{name="State"; expression={$obj.State}},
                   @{name="VM Swapfile Datastore Id"; expression={$obj.VMSwapfileDatastoreId}},
                   @{name="VM Swapfile Policy"; expression={$obj.VMSwapfilePolicy}},
                   @{name="Custom Fields"; expression={$obj.CustomFields}},
                   @{name="Type"; expression={$type}}
              }
         }
    }
    
  • Services Web site deployment error "server returned nothing (no header, no data)" and much more

    I develop a VI on a large scale with a VI of web service combined in 2010 SP1. The "auxiliary" VI is responsible for storage of data capture and analysis as well as data and communications. It's big enough and communicates with the web method VI through shared network variables [and I use the DSC module to allow the management of shared variables of events].

    I can build and deploy the web method VI very well and it runs great. However, I need to communicate between the auxiliary and web method VI, and it seems that I can't do without including the auxiliaries vi when generating RESTful web services [also, is there a way to make this web service generates?]. When I added the auxiliary vi for the construction, he built very well, but then I got during deployment:

    "Server returned nothing (no header, no data).

    The next time I tried to deploy, I got a fake NI Auth dialog by this knowledge base article. By following the instructions for case 1 ["failure of Web application server since last started"], I ran Services.msc and found that NEITHER Application Web Service was not running. I tried to restart the service, but got this error:

    "The NI Application Web Server service on Local computer started and then stopped. Some services stop automatically if they have no work to do, for example, the service logs and alerts. »

    Knowledge base article suggests to restart at this point and I did, but I still see the same behavior. So really, I have a few questions:

    1. is it possible to deploy a variable library shared on the network through a local web service deployed and VI?

    2. What are the causes "server returned nothing (no header, no data)" in the deployment? A google search gave very little.

    3. what this means: "NI Application Web Server service on Local computer started and then stopped... '. "and what do I do to get my Web Application Server up?

    [to pile on the pile... I tried to re - activate the localhost:3580 Web application server and got an error. Localhost:3580 then offline also.]

    Thank you!

    Update.

    I noticed that the Web application server attempted to deploy the web service broken and choke her. There seemed to be no way to clear the .lvws created at the origin of the construction. I was able to remove the deployment folder to \UserServices\deployed\ $(WebServicesRoot)- , but it has been recreated from the .lvws whenever I tried to restart the service.

    So I called NOR and they told me this directory [XP]:

    C:\Documents and Settings\LocalService\My Documents\LabVIEW Data\WebServices\Standalone

    The .lvws has been in this folder. I deleted it and now I can run the ApplicationWebService. Apparently this file hidden undocumented is a "not-quite-bug" that is recognized as needing a fix in future releases.

  • QueryUnresolvedVMFSVolumes() returns nothing

    Hi @all,

    I build a PowerShell script to mount the snapshot LUN in a case of DR. But my QueryUnresolvedVMFSVolumes returns nothing in my script. If I use all the lines manually I get the expected return. There is nothing in the script. Can anyone help?

    function Getunresolved()
    {
    $hostdetail = get-VMHost $vmhosts [0]
    $hostview = get - see $hostdetail. ID
    $hostss = get - see $hostview. ConfigManager.StorageSystem
    $hostds = get - see $hostview. ConfigManager.DatastoreSystem
    $hostss. RefreshStorageSystem()
    $hostuvmfs = $hostds. QueryUnresolvedVMFSVolumes()
    Write-Host $hostuvmfs.count
    }

    Thanks Klaus

    Maybe try to wait between the RefreshStorageSystem and the QueryUnresolvedVMFSVolumes of the calls.

    For example put a 10 ' sleep ' cmdlet between 2 calls. "

    You probably play with the duration

  • What is a good way to check if the selection ADB sql cursor returns nothing

    Hi all

    I am trying to find a good way to identify that a select SQL basic cursor return nothing.
    I know that or we use exception when no data found or count (*) to check how many rows are returned.


    I have a cursor based on a long statement select.
    As
    CREATE OR REPLACE PROCEDURE aaa (v_input IN NUMBER, v_output OUT VARCHAR2)
         CURSOR long_cursor IS
              --long select statement(with input variable) ;
    
    BEGIN
         Select count(*) 
         Into v_count
      From
      -- a long select statment with input again ;
      IF v_count > 0 then
        For record in long_cursor loop
         --Get information from cursor
            --other processing for output
        End loop;
      END IF;
    
    END;
    Is there a way other than the above?
    I would like to reduce the amount of typing. I know that repetition in code is not good.

    Thanks in advance,
    Ann

    Published by: Ann586341 on February 28, 2013 14:29

    Hello Ann,.

    Apart from the possibility has already been mentioned that other users can change the data during execution of your process, you can check if something needs to be done without the COUNTY. Set a flag in the cursor for loop. When there is no data, then the flag will not change one you can perform the necessary procedure.

    CREATE OR REPLACE PROCEDURE aaa (v_input IN NUMBER, v_output OUT VARCHAR2)
    
        v_data_found    BOOLEAN := FALSE;
        CURSOR long_cursor IS
            --long select statement(with input variable) ;
    
    BEGIN
        For record in long_cursor loop
            v_data_found := TRUE;
            --Get information from cursor
            --other processing for output
        End loop;
        IF NOT v_data_found THEN
            -- set processed flag
        END IF;
    END;
    

    Concerning
    Marcus

  • Profile of user - purchase - returns nothing

    I created a user profile in the Oracle Applications Sub - application developer

    Application: purchase
    Profile name: PO: CHANGE of SBM
    Type of hierarchy: security
    Validation of SQL:
    SQL = "select decode (meaning,".
    "Yes',"Full. "
    'No', 'None') \"Access Level\ «,»
    lookup_code
    in: visible_option_value,: profile_option_value
    of fnd_lookups
    where lookup_type = 'YES_NO '.

    Now, I am trying to run this query that returns nothing. Is it because I have the application level * purchase *.

    {code}
    Select apps.fnd_profile.value ('PO: SBM CHANGE ') twice;
    {code}

    Thank you

    Hello

    First you need to get the values of this profile option (resp. system administrator > profile > system).
    In addition, when you use fnd_profile.value, you must specify the option of internal profile name and not the name of user profile option (maybe they are the same in your case?).
    And also, in general, you need to specify your context before calling fnd_profile. You can use fnd_global.apps_initialize to do this.

    It will be useful.

  • get the return value of a method of the application module in the workflow

    Hello

    I use jdeveloper 11.1.1.7.0

    I defined a method (return type is useful java card) in the Module of the Application and add this method to the client interface.

    also I have a workflow and in this TF firstly I should execute this method and put the return value for the pageFlowScope parameter. I know that to use this method as a methodCall and set it as an activity by default, but I don't know how to get the return value before entering the jsff page and set the pageFlowScope parameter.

    Habib

    Concerning

    When you add the activity to the way to deal, there are 'Return value' property that you can set to #{pageFlowScope.yourVariable}

    Dario

  • How to filter data according to internal application and in case if returns nothing outside the query must return all the lines

    create table ab (a number, b varchar2 (20));

    Insert into ab

    Select rownum, rownum. "" sample "

    of the double

    connect by level < = 10

    create table bc (a number, b varchar2 (20));

    Insert into BC.

    Select rownum + 1, rownum + 1 | "" sample "

    of the double

    connect by level < = 10

    Select * AB

    where b in (select b BC where b = "2sample")

    This query will return me 1 row, but there are cases where the value of the parameter b is null

    and that it should return all rows in the table

    as

    Select * AB

    where b in (select b BC where b = "2sample")

    which return specific values, but I want to change in a way when the inner query returns nothing then outer query should return all the lines and works as

    Select * AB;

    Is it possible to put in a single query

    Hello

    You seem to ask for different things.  You want all the lines AB when

    1. The parameter ("2sample' in the example) is NULL, or when
    2. There is no corresponding row in the 2 tables (which could happen even if the parameter is not NULL)

    ?

    Assuming you want the option 2, here's one way:

    WITH got_rnk AS

    (

    SELECT ab.*

    DENSE_RANK () (ORDER IN CASE

    WHEN b (IN)

    SELECT b

    BC.

    WHERE b = "2sample" - parameter

    )

    THEN "A".

    OF ANOTHER 'B '.

    END

    ) AS rnk

    AB

    )

    SELECT a, b

    OF got_rnk

    WHERE rnk = 1

    ;

    This does not assume b is unique in each table.

    Thanks for posting the CREATE TABLE and INSERT statements; It is very useful.

  • Why my function returns nothing when I create as a schema object

    I have the ABC's of the user who owns several paintings, some of which have foreign key constraints.

    I have user XYZ who has access to all the tables belonging to the user ABC.

    When I create a user XYZ feature to use more I get no return when I run:

    Select XYZ.ztm_tables_depended_on ('ABC', 'A_TABLE_OWNED_BY_ABC') of double:

    Please see after the function definition.

    CREATE or REPLACE FUNCTION ZTM_TABLES_DEPENDED_ON (p_Owner VARCHAR2, nom_table_p VARCHAR2) RETURN VARCHAR2 IS

    CURSOR C1 IS

    SELECT CONSTRAINT_NAME, OWNER, R_CONSTRAINT_NAME, R_OWNER

    OF ALL_CONSTRAINTS

    WHERE OWNER = p_Owner

    AND TABLE_NAME = nom_table_p

    AND CONSTRAINT_TYPE = 'R '.

    ORDER BY OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME;

    --

    v_Referenced_Owner VARCHAR2 (31);

    v_Ret_Val VARCHAR2 (4000);

    --

    The FUNCTION CONSTRAINT_TABLE_NAME(p_Owner VARCHAR2, p_Constraint_Name VARCHAR2) RETURN VARCHAR2 IS

    CURSOR C1 IS

    SELECT TABLE_NAME

    OF ALL_CONSTRAINTS

    WHERE OWNER = p_Owner

    AND the argument CONSTRAINT_NAME = p_Constraint_Name;

    --

    v_Ret_Val ALL_CONSTRAINTS. TABLE_NAME % TYPE;

    BEGIN

    OPEN C1;

    FETCH C1 INTO v_Ret_Val;

    CLOSE C1;

    --

    RETURN v_Ret_Val;

    END;

    --

    BEGIN

    FOR R IN C1 LOOP

    IF (R.OWNER <>R.R_OWNER) THEN v_Referenced_Owner: = R.R_OWNER | '.';

    ANOTHER v_Referenced_Owner: = NULL;

    END IF;

    --

    v_Ret_Val: = v_Ret_Val | ', ' || v_Referenced_Owner | CONSTRAINT_TABLE_NAME (R.R_OWNER, R.R_CONSTRAINT_NAME);

    END LOOP;

    --

    RETURN LTRIM (v_Ret_Val, ',');

    END;

    /

    But if I enter the function within an anonymous block as follows, I get results:

    DECLARE
    CURSOR C1 IS
    Select owner, table_name
    From all_tables where owner = 'ABC ';

    --

    The FUNCTION ZTM_TABLES_DEPENDED_ON(p_Owner VARCHAR2, p_Table_Name VARCHAR2) RETURN VARCHAR2 IS
    CURSOR C1 IS
    SELECT CONSTRAINT_NAME, OWNER, R_CONSTRAINT_NAME, R_OWNER
    OF ALL_CONSTRAINTS
    WHERE OWNER = p_Owner
    AND TABLE_NAME = nom_table_p
    AND CONSTRAINT_TYPE = 'R '.
    ORDER BY OWNER, CONSTRAINT_NAME, R_OWNER, R_CONSTRAINT_NAME;
    --
    v_Referenced_Owner VARCHAR2 (31);
    v_Ret_Val VARCHAR2 (4000);
    --
    The FUNCTION CONSTRAINT_TABLE_NAME(p_Owner VARCHAR2, p_Constraint_Name VARCHAR2) RETURN VARCHAR2 IS
    CURSOR C1 IS
    SELECT TABLE_NAME
    OF ALL_CONSTRAINTS
    WHERE OWNER = p_Owner
    AND the argument CONSTRAINT_NAME = p_Constraint_Name;
    --
    v_Ret_Val ALL_CONSTRAINTS. TABLE_NAME % TYPE;
    BEGIN
    OPEN C1;
    FETCH C1 INTO v_Ret_Val;
    CLOSE C1;
    --
    RETURN v_Ret_Val;
    END;
    --
    BEGIN
    FOR R IN C1 LOOP
    IF (R.OWNER <>R.R_OWNER) THEN v_Referenced_Owner: = R.R_OWNER | '.';
    ANOTHER v_Referenced_Owner: = NULL;
    END IF;
    --
    v_Ret_Val: = v_Ret_Val | ', ' || v_Referenced_Owner | CONSTRAINT_TABLE_NAME (R.R_OWNER, R.R_CONSTRAINT_NAME);
    END LOOP;
    --
    RETURN LTRIM (v_Ret_Val, ',');
    END;

    --

    BEGIN
    FOR R IN C1 LOOP
    DBMS_OUTPUT. Put_line (ztm_tables_depended_on (R.Owner, R.Table_Name));
    END LOOP;
    END;
    /

    Any ideas what is happening here?

    Any ideas what is happening here?

    Justin said the likely reason.

    See the section "How to exercise roles in PL/SQL blocks" the doc of database security for details

    http://docs.Oracle.com/CD/E25054_01/network.1111/e16543/authorization.htm#i1007304

    Operation of the roles in PL/SQL blocks

    The use of roles in a PL/SQL block depends on if it is an anonymous block, or a block named (stored procedure, function, or trigger), and if it runs with the rights of the author or the rights of the applicant.

    Roles used in the appointed with rights to define blocks

    All roles are disabled in any PL/SQL block named (stored procedure, function, or trigger) that runs with the rights of the author. Roles are not used to privilege control, and you cannot define roles within the procedure of a DEFINER rights.

    The SESSION_ROLES view shows all roles that are currently enabled. If a named PL/SQL block that runs with Definer Rights queries SESSION_ROLES , then the query will return no rows.

    Roles used in blocks named with the rights of the plaintiff and anonymous PL/SQL

    Named PL/SQL blocks that run with the rights of the applicant and the anonymous PL/SQL blocks are executed at the end of the privileges granted through active roles. Current roles are used for verification within rights Summoner of privilege the PL/SQL block. You can use dynamic SQL statements to define a role in the session.

    See this line beginning by "all roles are disables in any PL/SQL block named"?

  • Extract XML Value returns nothing

    Hi, I have a table where I put an XMLTYPE column called XML_RESPONSE and a CLOB called XML_RESPONSE_CLOB with the same XML content each.

    One of the values of records in the two columns look like this:

    <? xml version = "1.0" encoding = "UTF - 8"? >< s : Envelope xmlns:S = » http://schemas.xmlsoap.org/soap/envelope/ « >< Body >< ns2:StampCFDBytesResponse xmlns:ns2 = » http://impl.Controllers.massive.Fe.STO.com/ "xmlns:ns3 = » http://exception.Fe.STO.com/ "><stampedDocument>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGNmZGk6Q29tcHJvYmFudGUgdmVyc2lvbj0iMy4yIiBmb2xpbz0Cinb2IubXgvVGltYnJlRmlzY2FsRGlnaXRhbCBodHRwOi8vd3d3LnNhdC5nb2IubXgvVGltYnJlRmlzY2FsRGlnaXRhbC9UaW1icmVGaXNjYWxEaWdpdGFsLnhzZCIgeG1sbnM6dGZkPSJodHRwOi8vd3d3LnNhdC5nb2IubXgvVGltYnJlRmlzY2FsRGlnaXRhbCIvPgogICAgPC9jZmRpOkNvbXBsZW1lbnRvPgo8L2NmZGk6Q29tcHJvYmFudGU+</stampedDocument></ns2:StampCFDBytesResponse></S:Body></S:Envelope>

    I am trying to extract the base64 code, that is inside the < stampedDocument > element.

    If I use this code, the procedure runs, but returns nothing:

    Select apex_web_service.parse_xml (XML_RESPONSE, "/ / envelope/body/stampedDocument")

    in v_stamped from f_cfdi_timbrados where id_cfdi_timbrado = 1002;

    If I use the following the procedure returns an error:

    Select apex_web_service.parse_xml (XML_RESPONSE, '//Envelope/Body/stampedDocument/stampedDocument ()')

    Select apex_web_service.parse_xml (XML_RESPONSE, '//S:Envelope/S:Body/stampedDocument/stampedDocument ()')

    Select apex_web_service.parse_xml (XML_RESPONSE, ' / / s: Envelope / Body / stampedDocument')

    in v_stamped from f_cfdi_timbrados where id_cfdi_timbrado = 1002;

    06503 00000 - "PL/SQL: function returned no value."

    * Cause: A call to the PL/SQL function completed, but no RETURN statement has been

    executed.

    * Action: Function to rewrite PL/SQL, ensuring that it always returns

    a value of the appropriate type.

    I also tried with the ExtractValue function and retunrs null or an error.

    SELECT id_cfdi_timbrado,

    EXTRACTVALUE (e.xml_response, ' / envelope/body/stampedDocument ')

    'CFDI_BASE_64 '.

    OF e f_cfdi_timbrados

    WHERE id_cfdi_timbrado = 1002;

    Please notify. It's my first experience of XML parsing and it seems that I am lost.

    Francisco

    The error message provides the clue that you need.  If you were to search on this error message, you will see he's trying to tell you that you are missing a RETURN statement at the end of your function.  Something like

    RETURN v_stamped;

    That would resolve the issue causing the error ORA.

    Regarding the second question, that you will encounter, your clips are not correctly name space which is part of the XML.  For extractValue, there is a third parm

    EXTRACTVALUE

    If your query would look like

    EXTRACTVALUE (e.xml_response, ' / s: Envelope/Body / ns2:stampedDocument ',' xmlns:S = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns2 = "http://impl.controllers.massive.fe.sto.com/"')

    I leave you to you of apex_web_service.parse_xml of research

    That said, depending on your version of Oracle, extractValue might be obsolete and you will have to go in a different direction.

    Here are a few tips to post on the forums

    Re: 2. How can I ask a question in the forums?

  • I just publish my Muse on Adobe site, and now when I do a search and get a return on research, it contains the name of the site several times. It is in the properties of the page?

    I just published my Muse on Adobe site, and now when I do a search and get a return on research, it contains the name of the site several times. is it in the properties of the page?

    You mean search Google search? or you use any search module in your site and the keywords shows same subject several times on the page?

    Please elaborate more, indicate the url of site.

    Concerning the use of keywords, description, etc, you can add on your page using the page properties > metadata section.

    http://Muse.Adobe.com/strategies-for-SEO.html

    Thank you

    Sanjit

  • Question of Get-VMHostSnmp

    Hi all

    I did want to restart the snmp service (d) on a non - ESX(I) hosts bunch and hoped to do with PowerCLI.

    I found already that "Get-VMHostSnmp | "Set-VMHostSnmp-enabled: $false" stop snmp and Get-VMHostSnmp | Set-VMHostSnmp-enabled: $true should allow.

    However, when I connect to one of the ESX host directly and I do a Get-VMHostSnmp, it is said that SNMP is * not * currently enabled (even if I know that it is), and there is no set of snmp community. However, I can use snmpwalk very well, and in snmpd.conf community is defined.

    So I create a script to disable and enable snmp on all my guests, I would like to know where PowerCLI tries to configure Set-VMHostSnmp. It configures snmpd.conf, or something else?

    Look in the etc/vmware/snmp.xml file.

    See KB1008065 for the in and out of SNMP on ESX 4.x

  • How to get the return value from Java runtime.getRuntime.exec?

    I am running shell from a (GR 11, 2) Oracle database commands on aix.
    But, I would get a return value of a shell comand... as you get with "echo $?"

    I use a code like
    CREATE OR REPLACE JAVA SOURCE NAMED common."Host" AS
    import java.io.*;
    public class Host {
      public static int executeCommand(String command) {
        int retval=0;
        try {
            String[] finalCommand;
            finalCommand = new String[3];
            finalCommand[0] = "/bin/sh";
            finalCommand[1] = "-c";
            finalCommand[2] = command;
    
          final Process pr = Runtime.getRuntime().exec(finalCommand);
          pr.waitFor();
    }
       catch (Exception ex) {
          System.out.println(ex.getLocalizedMessage());
          retval=-1;
        }
        return retval;
    };
    /
    but I do not get a return value... because I don't know how to get the return value...

    Published by: user9158455 on 22-Sep-2010 07:33

    Hello

    Your pr.exitValue () has tried?

    I think you also need a finally block that destroys the sub-process

    Concerning
    Peter

  • Get.get ('XML') returns Null

    I use AJAX in my program to recover the city and the State of the ZIP Code entered. It used to work now it isn't and I don't know why. I have not changed at all the javascript or the application process. During the decoding of the javascript, I discovered that get.get('XML') returns NULL.

    The javascript is as follows:
    <script language="JavaScript" type="text/javascript">
    <!--
    function pull_multi_value(pValue){
        var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
        'APPLICATION_PROCESS=SET_CITY_STATE',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    }    
    gReturn = get.get('XML');
    alert('gReturn'+gReturn);
      if(gReturn){
            var l_Count = gReturn.getElementsByTagName("item").length;
            for(var i = 0;i<l_Count;i++){
                var l_Opt_Xml = gReturn.getElementsByTagName("item");
    var l_ID = l_Opt_Xml.getAttribute('id');
    var l_El = html_GetElement(l_ID);
    if(l_Opt_Xml.firstChild){
    var l_Value = l_Opt_Xml.firstChild.nodeValue;
    }else{
    var l_Value = '';
    }
    if(l_El){
    if(l_El.tagName == 'INPUT'){
    l_El.value = l_Value;
    }
    else if(l_El.tagName == 'SPAN' &&
    l_El.className == 'grabber'){
    l_El.parentNode.innerHTML = l_Value;
    l_El.parentNode.id = l_ID;
    }else{
    l_El.innerHTML = l_Value;
    }
    }
    }
    }
    get = null;
    }

    //-->
    </script>
    The on-demand process is as follows:
    DECLARE
    v_county VARCHAR2 (25);
    v_city VARCHAR2 (25);
    v_state VARCHAR2 (2);
    v_zip varchar2 (5);
    CURSOR cur_c
    IS
    SELECT the County, city, State, zip
    OF ZIP
    WHERE zip = v ("TEMPORARY_APPLICATION_ITEM");
    BEGIN
    HTP.p (: TEMPORARY_APPLICATION_ITEM);
    C BY cur_c
    LOOP
    v_city: = c.city;
    v_state: = c.state;
    v_zip: = c.zip;
    v_county: = c.county;
    END LOOP;
    OWA_UTIL.mime_header ("text/xml", FALSE);
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ("< body >");
    HTP.prn ("< desc > This XML genericly defines several elements < / desc > '");
    HTP.prn ("< item id ="P2_CO_CITY"> ' |") v_city | ("< / item >");
    -HTP.prn ("< option id ="P2_CO_STATE"value ="' | c.state |) '">' || c.State | ("< / option >");
    HTP.prn ("< item id ="P2_CO_STATE"> ' |") v_state | ("< / item >");
    HTP.prn ("< item id ="P2_COUNTY"> ' |") v_county | ("< / item >");
    HTP.prn ("< item id ="P2_CO_ZIP"> ' |") v_zip | ("< / item >");
    HTP.prn ("< / body >");
    EXCEPTION
    WHILE OTHERS
    THEN
    OWA_UTIL.mime_header ("text/xml", FALSE);
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ("< body >");
    HTP.prn ("< desc > This XML genericly defines several elements < / desc > '");
    HTP.prn ("< item id ="P2_CO_CITY"> ' |") SQLERRM | ("< / item >");
    HTP.prn ("< / body >");

    END;
    The javascript is run when someone tabs out of P2_CO_ZIP_LOOKUP. The HTML Form Element Attributes is:
    onChange = "pull_multi_value (this.value); »
    I ran the SQL statement from the On-Demand Process (ODP) in SQL Workshop and it worked fine.
    
    It doesn't work using FF or IE7 at my company but iIt works fine on APEX.ORACLE.COM. I tried using Firefox but could not find the cause of the problem.
    
    Login Credentials:
    Workspace:  RGWORK
    Application:  Online Certification Application Prototype (21405)     
    User:           tester
    Password:    test123
    Page     :     2 (Name and Address)
    
    Can someone help me?
    
    Thanks,
    Robert
    http:\\apexjscss.blogspot.com
    
    Edited by: sect55 on Mar 24, 2010 9:52 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    Hello:

    The AJAX call that happens from a public page? If so replace the '0' in the instantiation of the 'htmldb_Get' $v ('pFlowStepId').

    CITY

Maybe you are looking for