URLXML fetchlet: how to map Tabledescritptor with QueryDescriptor

I have a problem:
1. I have a xml file which looks like this
<?xml version="1.0" ?>
<testfile>1</testfile>
2. my URLFetchlet looks like this
<QueryDescriptor FETCHLET_ID="URLXML">
<Property NAME="url"
SCOPE="GLOBAL">http://thil0010:7001/examplesWebApp/examples/src/examples/xml/orderParser/order.xml</Property>
<Property NAME="pattern" SCOPE="GLOBAL"><![CDATA[<testfile>*</testfile>]]></Property>
</QueryDescriptor>
3. I have written my metric like this but it fails to show any data in agent metric browser, Is this the way to fetch content of the column "testfile"
<Metric NAME="test" Type="TABLE">
<Display>
<Label NLSID="hs_test_displayname">test Information</Label>
</Display>
<TableDescriptor>
<ColumnDescriptor NAME="testfile" TYPE="STRING" IS_KEY="TRUE">
<Display>
<Label NLSID="hs_test_testfile">test file</Label>
</Display>
</ColumnDescriptor>
</TableDescriptor>
<QueryDescriptor FETCHLET_ID="URLXML">
<Property NAME="url"
SCOPE="GLOBAL">http://localhost:9090/order.xml</Property>
<Property NAME="pattern" SCOPE="GLOBAL"><![CDATA[<testfile>*</testfile>]]></Property>
</QueryDescriptor>
</Metric>
Need some help in understanding , how to get the data from Querydescriptor and display in TableDescriptor
thank you

Hi!!!
Ok, thank you. When I changed
<Property NAME="HOSTNAME" SCOPE="GLOBAL">10.0.3.200</Property>
to
<Property NAME="hostname" SCOPE="GLOBAL">10.0.3.200</Property>
fetchlet had started get metric from target. But now I can't understand how get values from multiple OIDs.
I've pass
<Property NAME="TABLE" SCOPE="GLOBAL">TRUE</Property>
<Property NAME="OIDS" SCOPE="GLOBAL">1.3.6.1.4.1.9839.2.2.2.1.0 1.3.6.1.4.1.9839.2.2.2.4.0</Property>
(it's like as first example in mentioned manual)
to snmp fetchlet. When I tested my metric through emctl ilint I had got
INFO fetchlets.snmp: Oids sending with the query
INFO fetchlets.snmp: 1.3.6.1.4.1.9839.2.2.2.1.0
INFO fetchlets.snmp: 1.3.6.1.4.1.9839.2.2.2.4.0
DEBUG fetchlets.snmp: Result vector size 0
DEBUG fetchlets.snmp: Final Result is :
Number of Rows = 0
While I try to get values thought snmpget I've got
snmpget -v 1 -c public 10.0.3.200 1.3.6.1.4.1.9839.2.2.2.4.0 1.3.6.1.4.1.9839.2.2.2.1.0
SNMPv2-SMI::enterprises.9839.2.2.2.4.0 = INTEGER: 219
SNMPv2-SMI::enterprises.9839.2.2.2.1.0 = INTEGER: 385
May be, I have to change DELIM parameter?

Similar Messages

  • How to mapping Bapi_EeCatimesheet with Web Dynpro iview

    I have problem with CATS:
    1. mapping field from Web Dynpro iview with Bapi_EeCatimesheet_Worklist
    Column: Activity = Bapi_EeCatimesheet_Worklist_input_Out.???
    Column: xxx = ???
    Variable as TimeSheet of SAP Easy View
    2. How to insert Employee timesheet into SAP System by Bapi

    Hi,
    At first time the ApplicationParameter was not displayed among the mappable properties. After that I changed the ApplicationParameter property of the WD iView (so it became different from the default one) and created a new room template. What happened ? At the new template I could map to room_id to the ApplicationParameter. Interesting, not?
    One other thing: What do you think about the following ?
    1. First creating a "Concat Strings" extension to create a string like "room_id=<room_id>"
    2. Creating an other extension and mapping the newly created string to the ApplicationParameter property
    3. Getting the parameter from WD with the help of getRequestParameter(java.lang.String key)
    I have not tried it yet, but I plan to do it.
    Regards,
    Ferenc

  • How to map field with xsd:dateTime dataType?

    Dear friends,
    I need to produce the following output for a field defined as xsd:dateTime.
    2009-02-18T09:53:02.491+01:00
    I tried with a XSLT mapping with a XPATH function "current-dateTime()". However, the XSLT engine of XI doesn't seem to support this XPATH function.
    How can I produce the output according to the XSD datTime datatype?
    Regards,
    Roberto

    Hi
    You can use XSLT runtime constants.
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    Check this link for XSLT date time
    Error in Current Date in XSLT Mapping
    Regards
    Vishnu

  • How to map field with nillable = 'true'

    Hi,
    how can i map with the graphical tool of integration repository a field with nillable = 'true'?
    When i have a value to map there is no problem, only when we have the source message without the element we map the problem occurs. is there an attribut to be set or something else?
    thx

    Hi Ralph,
        From what I understand, there is a target field which is mandatory.
    If the source field that is mapped to this field exixts, then there is no problem.
    But when the source field doesn;t exists, then there is a problem. Right?
    YOu can use the node function mapWithDefault for your requirement.
    source -> mapWithDefault -> target
    Regards,
    Ravi Kanth Talagana

  • Quantity  Conversion : How to map 0MAT_UNIT_ATTR with UOM0MATE ODS

    Hi dear BWers,
    Can any of you help, about mapping 0MAT_UNIT_ATTR fields to UOM0MATE ODS fields in conversion ?
    (UOM0MATE  is my generated ODS for conversion factor)
    I've mapped them as below, but not sure with which Datasource field to map 0BASE_UOM:
    Material (0MATERIAL) ==> Datasource : MATNR Material
    Quantity - Counter (0UOMZ1D) ==> Datasource :UMREZ Counter
    Quantity -Denominator (0UOMN1D) ==> Datasource :UMREN Denominator
    Base Unit of Measure (0BASE_UOM) ==> Datasource :<b> ???</b>
    Unit of Measure (0UNIT)  ==> Datasource :MEINH Alternative Unit
    Regards,
    Rozz

    Solved on my own as below:
    0Base_Unit exists in master data table of InfoObject 0MATERIAL.
    While creating tranformation rule for ODS, 0Base_Unit should be mapped to master data attribute of 0MATERIAL.
    So, every item's base unit is loaded not from 0MAT_UNIT_ATTR or similar datasource, but from 0MATERIAL master data.
    (Of course I0MATERIAL master data should have been loaded beforehand)

  • JPA - How to map relation with NON-KEY field.

    Hello.
    Problem with mapping is NullPointerException when calling EntityManager em.createNativeQuery:
    Table1 (Bm_Treeassoc):
    MY_ID (Primary Key)
    BOOKMARKID (-> MY_ID in Table2)
    Text
    Table2 (Bm_Bookmark):
    MY_ID ( Primary Key)
    Text
    //CLASS BmTreeassoc
    @OneToMany(targetEntity=BmBookmark.class, mappedBy="treeMaster", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
         private BmTreeassoc treeMaster = null ;
    //CLASS BmBookmark
    @ManyToOne(targetEntity=BmTreeassoc.class, fetch = FetchType.LAZY, cascade = CascadeType.ALL, optional = true)
         @JoinColumn(name="MY_ID", referencedColumnName="BOOKMARKID", unique=true)     
         private ArrayList<BmBookmark> bookmarks = new ArrayList<BmBookmark>() ;
    This Leads to the exception.
    Mapping form MY_ID to MY_ID instead BOOKMARKID will not throw the exception,
    so I assume I have a problem with the KEY Field?
    Any ideas?
    Kind regards
    Frank

    OK,
    after reflecting (after maniacally trying for days).
    Here is the answer by myself:
    I do not use the mapping stuff at all no more.
    I solved my join by using a view:
    CREATE VIEW SAPDEMO.VTree
         AS SELECT t.TreeID, b.MY_ID, b.CLIENTID, b.Nickname, u.URL
         FROM SAPDEMO.BM_TreeAssoc as t
              JOIN SAPDEMO.BM_BOOKMARK as B ON t.BookmarkID = b.MY_ID
              JOIN SAPDEMO.BM_URL as U ON b.URL = u.MY_ID
    Create the entity and then do a:
    select * from VTREE where clientid=1 and treeid=446
    Works great, simple, fast.

  • How to .map files with OS X?

    The title is basically the question. I am about to start work on an RPG and the python module I am going to use requires .map files for many functions.
    I found 1 or 2 programs for Windows machines, but none for OS X.
    If you know any programs or suggestions please respond. If I have to program my game on MS it will never get done.

    Yes, you can install OS 9 onto the same volume.  However, when you initially formatted the drive you had an option to install Mac OS 9 drivers.  If you did not choose that option then you can only use OS 9 through the OS X Classic emulator.  You cannot boot directly into OS 9 unless the OS 9 drivers were installed when the drive was formatted.
    To install the Mac OS 9 drivers you would need to re-partition the drive which is a destructive process that will remove all the data currently installed.
    There is afirmware update needed for your particular model.  The update must be installed while booted directly into OS 9.1 or higher.  You may want to check with your sister to find out if the update has already been installed.

  • How to Compare date with Current system date in XSLT mapping.

    Hello Experts
    In a XSLT mapping program, I hava a filed, ZZOB which is giving some date.
    which I need to compare with the current date.
    Condition-
    ZZOB is greater than current date or ZZOBLIG = NULL
    Then go further statements.
    how can i campare with the current date?
    Please help.
    Thanks
    Balaprasad

    This example may help:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:param name="currentDate"/>
        <xsl:variable name="firstDate" select="concat(substring($currentDate, 1,4),substring($currentDate, 6,2),substring($currentDate, 9,2))"/>
        <xsl:template match="/">
            <xsl:apply-templates select="//item"/>
        </xsl:template>
        <xsl:template match="item">
            <xsl:variable name="secondDate" select="concat(substring(submissionDeadline, 1,4),substring(submissionDeadline, 6,2),substring(submissionDeadline, 9,2))"/>
            <xsl:choose>
            <xsl:when test="$firstDate &gt; $secondDate">
                <xsl:call-template name="late"/>
                </xsl:when>
                <xsl:when test="$firstDate &lt; $secondDate">
                    <xsl:call-template name="ontime"/>
                </xsl:when>
                <xsl:when test="$firstDate = $secondDate">
                    <xsl:call-template name="same"/>
                </xsl:when>
                <xsl:otherwise>Monkeys<br /></xsl:otherwise>
            </xsl:choose>
        </xsl:template>
        <xsl:template name="ontime">
            This is on time
        </xsl:template>
        <xsl:template name="late">
            This is late
        </xsl:template>
        <xsl:template name="same">
            This is on time
        </xsl:template>
    </xsl:stylesheet>

  • How to create Rules with Flex Field mapping in the bpm worklist

    I Have created a flex field label and was able to map to the flex field attributes .
    But when i try to create a rules , I don't see the label or the flex attributes in the task payload .
    Can someone please help is understanding how to create Rules with Flex Field mapping in the bpm worklist .
    Even I am also searching for any scripts which will take the flex fields prompts and can directly create a label in the bpm worklist .
    Any pointers or suggestion is highly appreciated .

    Hi,
    SE38 -> Enter program
    Select Variants button and display. In the next screen, enter a variant name, (If not existing , press Create to create new one), else click on Change.
    Now the selection screen will display with a button "Variant Attributes" at the top.
    Click on that button.
    In the next screen, go to the selection variable column of the date field. Press F4 or drop down and select 'D' for date maintenance.
    In the column "Name of Variable (Input Only Using F4)" press F4 or drop down, select whichever kind of date calculation you want and save the variant.
    Now whenever you run the prgrm with this variant, date will be displayed by default.
    Regards,
    Subramanian

  • How to do this with message mapping in PI  ?

    Hi All,
    Field 1 = 100 characters having values in  first fifty characters and last 50 characters blank . I need to remove all the first 50 characters with blank and pass 100 blank characters .How to do this with message mapping
    Thanks

    Adding to that, since usually a tab = 8 spaces. What you can do is to open notepad, press tab 4 times. Copy it and paste 3 times, afterwards press space 4 more times and you get 100 spaces.
    Regards,
    Mark

  • How to map Idoc fields with external file

    Hi All,
    How to map Idoc fields with external file.
    I want to check the settings where Idoc fields are mapped with external file.
    Thanks in advance.
    Regards,
    Govind.

    If you have configured a fileport where on trigger of IDOC you are creating the file, you can look at the message type documentation and get the offset values for each field in each segment

  • How to map secondry elements with main if have same ids for both?

    I need to map secondry elements with its matching primary elements if they both have same id.
    How can this be achieved in xslt.
    If ids are not matching then not a single element of secondry sholud be shown.
    If ids matching, then other fields of secondry elements, should be mapped to similar fields of primary elements.
    Eg: Its like some program running and in between some add on programs started (may be trailor or advertisement).
    the add on program is not always shown (optional), and whenever shown it has its own data information etc etc.
    Please provide me some input, how to map and proceed.
    Not sure what this code is really doing.
    <xsl:template match="SECONDARY_EVENT_LIST">
              <xsl:variable name="secondaryElements" select="ancestor::SCHEDULE/SECONDARY_ELEMENT_LIST"/>
              <xsl:for-each select="SCHEDULE_ELEMENT_ID">
                   <xsl:variable name="id" select="."/>
                   <xsl:apply-templates select="$secondaryElements/SCHEDULE_ELEMENT[(@ID=$id)]"/>
              </xsl:for-each>
         </xsl:template>
    Is this having any relation with what my requirement is all about?

    Hi,
    You can use XPATH command to get the exact tag.
    You can access each tag with it location like “/Report_Name/Group_Tag/Element_ID”.
    I think this will remove the ambiguity of Tags with same ID.

  • How to map the bulk users with the required  roles in portal at one time

    Hi,
    Would anyone tell me how to map the bulk users with the required roles in portal at one time?

    Thanks for all the reply.
    <b>I need to assign 1 or 2 group to n((eg) 1000)number of users</b>
    I tried the first option like
    [group]
    gid=
    gdesc=
    user=
    Thr problem with this is I could n't put more no of users in the notepad.
    I would be able to put only 150 users in the single line of notepad. If it goes to next line it is not working.
    I tried creating seperate notepad but in Import it says "exists"
    I'm not sure about LDAP. Would anyone explain me the best approach to do this.

  • How to Map Proces form field with Resource form field?

    Hi,
    How to Map Proces form field with Resource form field while creating Process form in Form designer

    Are you talking about Provisioning ?
    then you do that in Data Flow under Process Defintion in OIM 10g
    In OIM 11g you use Request Dataset. In that you can directly map fields to process form.

  • How to use GPS with google maps in ios 6.01

    How to use GPS with google maps in ios 6.01

    Settings > Privacy > Location Services.
    Make sure Safari is On.

Maybe you are looking for