JDBCSQL fetchlet

I have gone through the documentation and found that the JDBC fetchlet doesn't appear to allow you to get return values from a SQL statement. I have looked at the MS SQL Server plug-in and it uses a JDBCSQL fetchlet that is not documented anywhere.
Where do I find the documentation for this fetchlet and if not available, how do I use it?
Thnx

ConnInfo
Class
STATEMENT
CONNECT_PROP_user
CONNECT_PROP_password
CONNECT_PROP_role
CONNECT_PROP_*
SQLINPARAM*
These are all of the parameters I can find. Most of them are either self explanatory or should be in the example you found. CONNECT_PROP lets you specify other connect properties by replacing the * with the property name. It is the same for SQLINPARAM, except SQLINPARAM will work on the statement rather than the connection.

Similar Messages

  • How to get the Sysman password in a fetchlet?

    Folks,
    Need advise.
    I have a fetchlet and I need to get the username and password of the oracle management repository (using some Perl and SQL Scripts) to fetch some details.
    How I can get the password of Sysman user in a fetchlet?
    Is there some thing similar to <Property NAME="emdRoot" SCOPE="SYSTEMGLOBAL">emdRoot</Property>
    thanks
    Mathew

    Those are parameters you would have to take in as instance properties, which would force the user to enter them every time they create an instance of your target type.
    What's the reason you need to connect to the repository? That's an extremely odd case unless your target type is monitoring the repository.

  • Use of SQL fetchlet to create a custom management plug-in

    Hi,
    I would appreciate if you anyone could help me out on this:
    I need to fetch some data from EMF tables and create a custom Management plug-in in OEM so that it can be monitored from OEM itself. For getting the data from database table i am using SQL fetchlet coz it provides the facility to use SQL statement in it. Following is the code i have developed in target-type.xml file.
    <TargetMetadata META_VER="1.0" TYPE="emf_filer">
    <Display>
    <Label NLSID="emf_filer">Error Management Filer</Label>
    </Display>
    <Metric NAME="emf_filer" TYPE="TABLE">
    <Display>
    <Label NLSID="emf_filer_resp">Response</Label>
    </Display>
    <TableDescriptor>
    <!-- <ColumnDescriptor NAME="tcpPing" TYPE="NUMBER" >
    <Display>
    <Label NLSID="netapp_filer_resp_tcpPing">TCP Ping, Milliseconds</Label>
    </Display>
    </ColumnDescriptor> -->
    <ColumnDescriptor NAME="Status" TYPE="NUMBER" >
    <Display>
    <Label NLSID="emf_filer_resp_status">Status</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="PROGRAM_NAME" TYPE="STRING" >
    <Display>
    <Label NLSID="PROGRAM_NAME">Program Name</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="PROGRAM_TYPE" TYPE="STRING" >
    <Display>
    <Label NLSID="PROGRAM_TYPE">Program Type</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="RICEW_ID" TYPE="STRING" >
    <Display>
    <Label NLSID="RICEW_ID">Rice Id</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="Request_id" TYPE="NUMBER" IS_KEY="TRUE" >
    <Display>
    <Label NLSID="Request_id">Request Id</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="EBIZ_INSTANCE_NAME " TYPE="STRING" >
    <Display>
    <Label NLSID="EBIZ_INSTANCE_NAME">Instance Name</Label>
    </Display>
    </ColumnDescriptor>
    </TableDescriptor>
    <QueryDescriptor FETCHLET_ID="SQL">
    <Property NAME="MachineName" SCOPE="INSTANCE">MachineName</Property>
    <Property NAME="Port" SCOPE="INSTANCE">Port</Property>
    <Property NAME="SID" SCOPE="INSTANCE">SID</Property>
    <Property NAME="UserName" SCOPE="UserName">apps</Property>
    <Property NAME="password" SCOPE="password">password</Property>
    <Property NAME="ServiceName" SCOPE="INSTANCE">ServiceName</Property>
    <Property NAME="STATEMENT" SCOPE="INSTANCE">
    BEGIN
    SELECT PROGRAM_NAME, PROGRAM_TYPE,
    RICEW_ID,REQUEST_ID, EBIZ_INSTANCE_NAME FROM XX_EMF_MESSAGE_HEADER WHERE STATUS = 'ERROR' AND RICEW_ID = 'INT-DL019';
    END;
    </Property>
    <!-- <Property NAME="SQLINPARAM1" SCOPE="ENV">HOSTNAME</Property>
    <Property NAME="SQLOUTPARAMPOS" SCOPE="GLOBAL">2</Property>
    <Property NAME="SQLOUTPARAMTYPE" SCOPE="GLOBAL">SQL_CURSOR</Property>-->
    <Property NAME="NUMROWS" SCOPE="GLOBAL">40
    </Property>
    </QueryDescriptor>
    <ExecutionDescriptor>
    <GetTable NAME="emf_filer"/>
    <GetView NAME="emf_View" FROM_TABLE="emf_filer">
    <Column NAME="PROGRAM_NAME"/>
    <Column NAME="PROGRAM_TYPE"/>
    <Column NAME="RICEW_ID"/>
    <Column NAME="REQUEST_ID"/>
    <Column NAME="EBIZ_INSTANCE_NAME"/>
    <Filter COLUMN_NAME="REQUEST_ID" OPERATOR="GT">0</Filter>
    </GetView>
    </ExecutionDescriptor>
    <InstanceProperties>
    <InstanceProperty NAME="UserName" CREDENTIAL="TRUE" OPTIONAL="FALSE" NEED_REENTER="FALSE" HIDE_ENTRY="FALSE">
    <Display>
    <Label NLSID="UserName_emf">Username</Label>
    </Display>
    </InstanceProperty>
    <InstanceProperty NAME="password" CREDENTIAL="TRUE" OPTIONAL="FALSE" NEED_REENTER="TRUE">
    <Display>
    <Label NLSID="password_emf">Password</Label>
    </Display>
    </InstanceProperty>
    <InstanceProperty NAME="MachineName" CREDENTIAL="FALSE" OPTIONAL="FALSE">
    <Display>
    <Label NLSID="MachineName_emf">Listener Machine Name</Label>
    </Display>
    </InstanceProperty>
    <InstanceProperty NAME="Port" CREDENTIAL="FAL
    My doubt here is:
    As per Oracle it is importent to use response matrics with status column. How can i accomodate Response matrics with this code. what will be the columns except Status that i need to mention? if i use just one matrics i.e response then what will i use in in FROM clause in ExecutionDescriptor [<GetView NAME="emf_View" FROM_TABLE="emf_filer">]? i wuld appreciate if anyone could clarify my issues.
    Thanks for your help.
    Regards,
    AS

    That is what i am trying to ask..as i will b using 2 dfifferent matrics so i will have to use 2 diffrent QueryDescriptors one for Response matric and one for other one. Now following QueryDescriptor will be added in other(Not Response) matric then what should i add in QueryDescriptor in Response matric?
    Query Descriptor for matric other than "Reposnse":
    QueryDescriptor FETCHLET_ID="SQL">
         <Property NAME="MachineName" SCOPE="INSTANCE">MachineName</Property>
         <Property NAME="Port" SCOPE="INSTANCE">Port</Property>
         <Property NAME="SID" SCOPE="INSTANCE">SID</Property>
         <Property NAME="UserName" SCOPE="UserName">UserName</Property>
         <Property NAME="password" SCOPE="password">password</Property>
         <Property NAME="ServiceName" SCOPE="INSTANCE">ServiceName</Property>
         <Property NAME="STATEMENT" SCOPE="GLOBAL">
              SELECT PROGRAM_NAME,
                             PROGRAM_TYPE,
                             RICEW_ID,REQUEST_ID,
                             EBIZ_INSTANCE_NAME
              FROM XX_EMF_MESSAGE_HEADER WHERE STATUS = 'ERROR' AND RICEW_ID = 'INT-DL019';
              </Property>
    </QueryDescriptor>
    what should be the QueryDescriptor for Response matric?? Will it be same or different?
    Thanks for your help.
    Regards,
    AS
    Edited by: user9959418 on Oct 31, 2008 1:10 PM

  • Oracle Enterprise Plugin using WBEM fetchlet

    Hi
    I am trying to create the OEM 12c plugin using WBEM fetchlet. The Response metric definition is quite standard using the information given in the Oracle Docs - http://docs.oracle.com/cd/B19306_01/em.102/b16246/fetchlets.htm#i1007401.
    The plugin validates and creates the plugin with no error. But when i try collecting the metrics using "All Metrics", I get a "+You have attempted to access real-time data for metric Response. This action is not supported. Obtaining real-time metric data requires information about the collection that is not currently available from the Enterprise Manager Repository. This does not affect the collection of data and you can continue to access historical data for this metric+"...
    Is there anyway to get this to work
    Edited by: 950136 on Oct 3, 2012 5:10 PM

       Hello AkankshaSheoranKaler
    We have done the following, but we aren't able to resolve this issue. Thank you for your help!
    lf
    “This  happen if the software library is not accessible, readable or unmounted (if it is in shared file system).”
    On Enterprise Manager server [nsn175-105], we did the following:
    1. we modified /etc/exports to include this line: /export *(rw,no_root_squash,sync)
    we start nfs service by executing command “service nfs start”.  
    On Management Agent server (nsn175-89), we verified that we are able to mount /export directory of EM server.
    On Management Agent server, we started firefox browser and were able to run successfully https://nsn175-105.us.oracle.com:4904/empbs/genwallet
    After making this change, we ran agent deployment again. We encountered the same error as shown above.
    “You can fix the software library or you can download the agent bits in offline mode.”
    For fixing the software library, select Setup->Provision and Patching->Offline Patching, then select Offline Patching radio button, download: https://updates.oracle.com/download/em_catalog.zip. Next upload this zip file.
    “Try downloading the bits again”
    We are not sure what agent bits are. Would you please explain this and provide procedure how we can download this?
    (Here I have attempted to fix the software library, but I am new to Enterprise Manager and not sure how to interpret this).

  • RE: Can an OEM Plug-IN use the JavaWrapper fetchlet ?

    Hi:
    - Can I create an OEM Plug-In using the JavaWrapper fetchlet for data acquisition ?
    - If yes, can I add my own jar files to the OEM Plug-In archive
    and call my own classes ?
    And, what would be the path to my own jar files in the XML metadata file ?
    IE, can I update the CLASSPATH ?
    Thanks
    John

    Can I create an OEM Plug-In using the JavaWrapper fetchlet for data acquisition ?Yes
    If yes, can I add my own jar files to the OEM Plug-In archive and call my own classes ?Yes, however, depending on the OEM Agent version, you will have to take different options
    If you are using OEM Agent version lesser than 10.2.0.5:
    You have two options:
    - If you have necessary approval / license clearance to bundle jars as part of plug-in , do so.
    - If not, you may need to ask EM/plug-in user to copy these jars to specific location on Agent_home
    - In my case (for jdbcdrivers), I recommended the jars to be copied to $AH/sysman/jdbcdriver
    - Ask the EM/plug-in user to update the $OH/sysman/admin/config/classpath.lst
    (provide absolute path)
    - Now, depending on how you have done the coding, i.e.,
    - if you depend on JavaWrapperFetchlet - you can document that re-start of agent is required for the new
    classpath takes effect
    OR
    - As you pointed out (reference to one of my earlier post), you need not use JavaWrapperFetchlet,
    instead, use OSLineToken to invoke java (custom class) which can handle dynamic class loading.
    Advantage in this is - no agent re-start.
    Disadvantage - you will be invoking java process for every metric collection (quite an overhead)
    However, if you are using OEM Agent version 10.2.0.5, things are much simpler. I believe, 10.2.0.5 Agent supportd additional property (which should reference to the absolute path of the jar location after plug-in deployment ) for JavaWrapperFetchlet and its done ! No agent re-start required. No java process invocation for every metric collection !!

  • 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?

  • Can python be invoked inside a fetchlet?

    Hi Guys
    I'm trying to build a customized plug-in for our storage device which only has a python API exposed to developers. I'm wondering if it is supported by enterprise manager to invoke python script inside a fetchlet.
    if it is possible, I'll manage to figure out a way to embed the client python module into the plug-in jar file, I don't know if this is supported either.
    I noticed EM has already contain perl in its install directory and perl scripts could be kicked inside a OSLines fetchlet. Not sure if python has a similar treatment.
    Please tell me if you have any thought on this, your input will be appreciated !
    Edited by: user9219284 on Mar 30, 2010 7:08 AM
    Edited by: user9219284 on Mar 30, 2010 7:08 AM

    Your best bet will be to use the OSLineToken fetchlet to invoke perl or some other executable which knows how to call a python script. The agent has no special handling for python.

  • What is "child processes" if using OS Fetchlet with "em_metric_timeout"?

    On page 330 of document <Oracle® Enterprise Manager Extensibility Guide 10g Release 5 (10.2.0.5) B40007-02>, there are a description of using "em_metric_timeout" with OS Fetchlet as below,
    Parameter : em_metric_timeout
    Type : integer
    Description :
    Metric timeout period (in seconds). After the timeout period has finished, the Management Agent returns a timeout >exception and terminates any child processes that may have been created. The Management Agent DOES NOT kill >any of the grandchild processes. Specify "-1" for no timout period.
    Use : OptionalWhat does "child processes" mean here?
    Any help will be appreaciated!!!
    Thanks,
    Satine

    I would assume it means the process created to run your script to collect the data, but if you create any processes in that script (grandchild processes) the agent won't get those.

  • Wbem fetchlet

    i am trying to create plugin by using the Wbem fetchlet. Right now i am trying just to get the Status for the Response Metrics.
    According to http://docs.oracle.com/cd/B19306_01/em.102/b16246/fetchlets.htm#i1007401, there's a starightforward metric definition for response under WBEM fetchlet. But that gives me an collection error saying "Could not create fetchlet instance: Wbem"
    Can anyone help out here?
    Thanks in advance

    I am on Solaris 9 using dbconsole for administrating 10 RAC database. I do not have "Enterprise Manager Grid Control", we use Enterprise Manager Database Control
    When i go to "Monitoring Configuration" page, i see "Configure Cluster Database: Properties" not hostname.
    Where do i enter the OS username/password, to monitor host machine.
    Do i need to stop this service, if i am not using grid control (Not my prefered choice).
    $/etc/init.d/init.wbem stop
    Thanks
    -Prasad
    Message was edited by:
    pinjam
    Message was edited by:
    pinjam

  • SQL Fetchlet Input Parameter -- password

    I am working on developing a new target type. In my metadata .xml file, I need to use SQL FETCHLET to retrive information from a database. I hard-coded input parameters of "UserName" and "password". Everything deployed fine. But I get error with metric collections. ORA-01017: invalid username/password. On the target and in emagent.trc file, it shows the user name was correct. But it seems the password did not get resolved from the xml file.
    Any help is highly appreciated.

    Here you go:
    <QueryDescriptor FETCHLET_ID="SQL">
    <Property NAME="MachineName" SCOPE="GLOBAL">"test01.us.oracle.com"</Property>
    <Property NAME="Port" SCOPE="GLOBAL">1521</Property>
    <Property NAME="ServiceName" SCOPE="GLOBAL">"dev1.us.oracle.com"</Property>
    <Property NAME="UserName" SCOPE="GLOBAL">"scott"</Property>
    <Property NAME="password" SCOPE="GLOBAL">"tiger"</Property>
    <Property NAME="STATEMENT" SCOPE="GLOBAL">
    DECLARE
    v_host_name VARCHAR2(30);
    BEGIN
    IF INSTR(:1, '.') != 0 THEN
    v_host_name := SUBSTR (:1, 1, INSTR (:1, '.') -1);
    ELSE
    v_host_name := :1;
    END IF;
    SELECT event_id INTO :2 FROM event_detail WHERE hostname = v_host_name and rownum = 1;
    END;
    </Property>
    <Property NAME="SQLINPARAM1" SCOPE="ENV">HOSTNAME</Property>
    <Property NAME="SQLOUTPARAMPOS" SCOPE="GLOBAL">2</Property>
    <Property NAME="SQLOUTPARAMTYPE" SCOPE="GLOBAL">SQL_CURSOR</Property>
    <Property NAME="NUMROWS" SCOPE="GLOBAL">1</Property>
    </QueryDescriptor>
    In emagent.trc file, I got below error:
    2008-07-30 07:29:21,809 Thread-4124756880 WARN vpxoci: OCI Error -- ErrorCode(1017): ORA-01017: invalid username/password; logon denied
    SQL = " OCISessionBegin"...
    LOGIN = "scott"/<PW>@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST="test01.us.oracle.com")(PORT=1521))(CONNECT_DATA=(SERVICE_NAME="dev1.us.oracle.com")))
    2008-07-30 07:29:21,809 Thread-4124756880 ERROR vpxoci: ORA-01017: invalid username/password; logon denied
    Thanks!

  • Returning Usable Errors to OSLineToken Fetchlet

    My Java Programs that are called via OSLineToken Fetchlet need some exception handling work. Today, they simply throw an exception if something goes wrong. This results in a rather ugly Metric's Collection error with a full stack trace.
    My goal is to:
    - Write a "simple" error to the user
    - Write a full stack trace to the emagent.trc file
    It seems like System.err goes to emagent.trc but System.out does not and the only flag I can use is to indicate whether System.out should go to the metric collection error or ONLY System.err.
    So, if I were to do something like:
    System.err.println("Something horrible happened");
    System.exit(1)
    The Metric Collection Error would have the single line. But the emagent.trc file would only have the println.
    If I did this:
    exception.printStackTrace(System.err);
    System.err.println("Something horrible happened");
    System.exit(1)
    Then my Metric Collection Error would get super busy when shown to the user, but emagent.trc would have my details.
    Should I be using a separate logging framework and if I do, specify an alternate file for my logging and have my stack traces separated from the emagent.trc logging?
    Thanks,
    Paul

    This approach basically works, but since the logger also forks to the console, the stack trace appears to get put into the message that is displayed in the GC console as well.
    Still, this appears to be the direction to go.
    Paul

  • Failed to initialize the Fetchlet Manager while starting agent

    Hi all,
    I am getting following error message while starting an agent. This agent installation gets failed at the point of starting agent. Normally this happens when the dns /hostfile entry have any problems and I made sure those things are OK.
    This agent is on a Solaris server and all other similar servers are working fine. Have anyone came across this situation?
    $ emctl start agent
    Oracle Enterprise Manager 10g Release 3 Grid Control 10.2.0.3.0.
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    Starting agent ........ failed.
    Failed to initialize the Fetchlet Manager.
    Consult the log files in: /u01/oracle/product/agent10g/sysman/log

    cat emagent.trc
    2009-12-04 12:25:54 Thread-1 ERROR util.files: ERROR: nmeufis_new: failed in lfi opn on file: /u01/oracle/product/agent10g/sysman/emd/agntstmp.txt. error = 2 (No such file or directory)
    2009-12-04 12:25:54 Thread-1 ERROR pingManager: nmepm_pingReposURL: Did not rece ive a response header from repository
    2009-12-04 12:25:54 Thread-1 WARN command: Job Subsystem Timeout set at 600 sec onds
    2009-12-04 12:25:54 Thread-1 ERROR fetchlets: Error when initializing C Logging Package for ECID generation.
    2009-12-04 12:25:54 Thread-1 ERROR main: nmefmgr_initialize failed to initialize Fetchlet Manager

  • Executing shell script using OSLinetoken fetchlet

    Hii,
    I do have a requirement. I need to use a shell script in the OSLineToken fetchlet. In response metric i will be checking whether the directory exists or not on the server. In order to check the existence of the directory, i have created a shell script. But how can i relate its result with the Response metric? The shell script is as follows:
    Shell Script:
    if test -d $1 ; then
    echo "DIR exist"
    else
    echo "false"
    fi
    The Response metric for the same will be:
    <QueryDescriptor FETCHLET_ID="OSLineToken">
         <Property NAME="command" SCOPE="GLOBAL">
              sh {dir_name where the shell script is uploaded}/{shell script file name} {dir_name_parameter} </Property>
         <Property NAME="startsWith" SCOPE="GLOBAL">em_result=</Property>
         <Property NAME="delimiter" SCOPE="GLOBAL">|</Property>
    </QueryDescriptor>
    Please suggest what is the use of em_result here?
    once the existence of the directory is checked, if it up then i need to call another shell script in order concatenate the contents of all the files with extension .log(this will be the parameter of shell script). Get the output from shell script and display it into custom management plug-in. As i am using cat *.log>>consolidatefile command to concatenate the data, i need to read consolidatefile file from the server and return this concatenated file data into plug-in. Again, how can i read the content of consolidatefile file in EMF? I will be creating another matric for this purpose say "read_content". the querydesciptor of the same will be as follows:
    <QueryDescriptor FETCHLET_ID="OSLineToken">
         <Property NAME="command" SCOPE="GLOBAL">
              sh {dir_name where the shell script is uploaded}/{shell script file name} {dir_name_parameter} {extension of the files to concatenated} </Property>
         <Property NAME="startsWith" SCOPE="GLOBAL">em_result=</Property>
         <Property NAME="delimiter" SCOPE="GLOBAL">|</Property>
    </QueryDescriptor>
    I am not sure which all properties to be used in this case..I have seen multiple sample files some of them uses perbin, scriptsdir but some of them does not..The related pdf also does not say anyhting about such kind of properties. Please suggest.
    I hope the explaination of the problem is not so cumbersome. Please let me know if you have any query to understand.
    Thanks,
    AS

    If you notice, localScriptsDir is a directory within scriptsDir. If you package your plug-in up and deploy it through the UI, any scripts you create will go into %scriptsDir%/emx/<target_type>. So localScriptsDir just specifies that directory for you. You don't need it but then in the command paramater you'll have something like:
    sh %scriptsDir%/emx/yourtargettype/yourscript...
    So whether you specify it in the command or another property (localScriptsDir) doesn't really matter.
    You can create your own properties in the QueryDescriptor. Just make sure you have the correct scope specified and it should be fine (options for scope are described in the Enterprise Manager DTD section of the Extensibility Guide).
    Metric collection isn't really meant for dynamic specification of input parameters. I can think of a few solutions:
    1) Create a target instance for each log directory. When you create the instance, the directory is specified. If you need to monitor a different directory, you can just create another instance. Upside is that it's flexible and scalable, and also, when you get an error you'll know exactly which directory it is based on which instance throws the error. Downside is that you have to have a separate instance for each directory.
    2) If the log directories are well known and finite (and won't change names), hardcode them into the target metadata. Have a different metric collect for each log directory, so you'll have as many metrics as log directories you want to monitor. Even if the names of the directories are different, you can use instance properties to map them, so if you know there will always be 5 log directories you want to monitor, you can have 5 instance properties to map the names into the metrics, although this won't work if you don't have the same number each time. Upside is that there is only a single target instance. Downside is that it's not as flexible.
    3) Use a job rather than a target type to find out this information. You could create a new job type which scans the logs for information and have the directory as an input parameter to the job. You could have this job on a repeating schedule to duplicate the effect you are trying to get out of creating a target type. The upside is that you can start the job whenever you want from the UI and specify exactly which directory whenever you run it. The downside is that the job system is centered on the OMS rather than the agent, so every time it runs it will have to contact the agent to do the work. In the case of the target type, the agent acts autonomously without contact from the OMS.
    There are probably other options, but these are the quick ones off the top of my head.
    Chris

  • Custom scripts inside a WBEM fetchlet

    Hi,
    Can I use scripts (that query CIMOM instances and get the result) inside a WBEM fetchlet just like we use scripts in a OS Fetchlet ? In the extensibility guide, there is no mention of using custom scripts inside a WBEM fetchlet. Please clarify.
    Thanks.

    Your best bet will be to use the OSLineToken fetchlet to invoke perl or some other executable which knows how to call a python script. The agent has no special handling for python.

  • ConnectDescriptor in SQL fetchlets

    Hello!
    Is it possible to use connect descriptors in SQL type fetchlets?
    What I mean is that I would like to use a connection string similar like this and not hostname:port:sid :
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = vip-node1)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = vip-node2)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = servicename)
    I recognized that some Oracle shipped target types use ConnectDescriptor as optional property in query descriptors together with the common parameters (MachineName,Port etc.). If ConnectDescriptor is a valid parameter is there a precedence when the fetchlet creates the connect string (if connect descriptor is present and not empty use it otherwise use MachineName:Port:SID)?
    Regards,
    Robert

    Database: 10.2.0.3
    EM: 10.2.0.3
    Regards,
    Robert
    Ps. This question is now obsolete and replaced by a new one:
    Is custom OMS mediated multi agent targets are supported (that is can we use
    <MonitoringMode MEDIATOR="OMSMediated" CLUSTERDESCRIPTOR="">
    </MonitoringMode>
    in our target type definition file)?

Maybe you are looking for

  • How do I associate two different Apple ID's?

    My family has two different Apple ID's.  How do I associate both of those libraries into one library?

  • Is it possible for one user to use Aperture and another iPhoto?

    I have a new imac 21.5", 3.33ghz, 4gb and I was wondering if it is possible for me as admin user to handle camera downloads automatically with Aperture, and my wife as second user to use iPhoto as automatic camera destination? Any comments would be a

  • ORA-00026: missing or invalid session ID

    I am receiving following error, while executing a procedure kill_session EXEC kill_session('USERNAME'); 4329 267 TARIQ_CORE ORA-00026: missing or invalid session ID create or replace procedure kill_session (usr_2_kill in varchar2) as vsid    number(6

  • Problem in creating cursor

    hi, i am using oracle forms & while creating following cursor it shows error CURSOR C_LEAVE IS SELECT LEAVE,FDATE,TODATE FROM LEAVETAB1 WHERE EMPNO=:DB_BLOCK1.EMPNO and YEAR=:DB_BLOCK1.LEAVEYEAR AND (SELECT FDATE FROM LEAVETAB2 WHERE '06-MAY-10' BETW

  • Oracle Role Creation Date time stamp

    Hi All , Can anyone pls help me to find out the Date time stamp when a Role has been created into database . Your early response will be appreciable. Many thanks ,