Topic
  • 5 replies
  • Latest Post - ‏2012-03-20T19:26:23Z by dme_1
kcarpenter
kcarpenter
3 Posts

Pinned topic Looking for Java APIs to replace the system genevent command

‏2012-03-07T15:33:28Z |
We currently deploy IBM xSeries servers with IBM Director 5.20.
We are looking at upgrading to 6.3 and are researching the APIs for submitting Events directly into IBM Director, currently we use the command line program "genevent" to get events into IBM Director.

Any help in this direction would be appreciated

Which jar file contains the API's ?
Which interface am I looking for ?
Are there examples ?
Thanks
Updated on 2012-03-20T19:26:23Z at 2012-03-20T19:26:23Z by dme_1
  • Sohtaroh
    Sohtaroh
    1 Post

    Re: Looking for Java APIs to replace the system genevent command

    ‏2012-03-08T01:49:05Z  
    Agent-side genevent command is mensioned in following article,

    http://www.ibm.com/developerworks/forums/thread.jspa?threadID=347218

    When you using windows, It is located at <DirInstall>\agent\runtime\agent\bin\agentcli.bat

    However, currently IBM seems not officialy support to use it (since the command is not mensioned in any its manuals), but below url implicates they may handle agent-side genevent command.

    http://www-01.ibm.com/support/docview.wss?rs=0&context=SGZ2Z3&q1=genevent&uid=isg1IC73361&loc=ja&cs=utf-8&lang=
  • kcarpenter
    kcarpenter
    3 Posts

    Re: Looking for Java APIs to replace the system genevent command

    ‏2012-03-09T16:36:20Z  
    Thanks for the reply

    We are already using the genevent command and are trying to replace that system call with the actual Java PUT api.

    I'm looking for the API for the PUT method as documented in REST section of
    http://publib.boulder.ibm.com/infocenter/director/sdk/index.jsp?topic=/com.ibm.usmi.dir612.doc/dir6_1_2_api_events.html
    PUT is documented as "Update the resource if it already exists based on information passed in the body of the HTTP request. An HTTP response code of 404 will be returned if the resource doesn't exist"

    If you look at
    http://publib.boulder.ibm.com/infocenter/director/sdk/index.jsp?topic=/com.ibm.usmi.dir612.doc/dir6_1_2_api_events.html
    you will find the api for the GET api.

    Any idea where the PUT api documention is ?
  • dme_1
    dme_1
    25 Posts

    Re: Looking for Java APIs to replace the system genevent command

    ‏2012-03-12T15:13:13Z  
    Thanks for the reply

    We are already using the genevent command and are trying to replace that system call with the actual Java PUT api.

    I'm looking for the API for the PUT method as documented in REST section of
    http://publib.boulder.ibm.com/infocenter/director/sdk/index.jsp?topic=/com.ibm.usmi.dir612.doc/dir6_1_2_api_events.html
    PUT is documented as "Update the resource if it already exists based on information passed in the body of the HTTP request. An HTTP response code of 404 will be returned if the resource doesn't exist"

    If you look at
    http://publib.boulder.ibm.com/infocenter/director/sdk/index.jsp?topic=/com.ibm.usmi.dir612.doc/dir6_1_2_api_events.html
    you will find the api for the GET api.

    Any idea where the PUT api documention is ?
    There is currently no REST API for generating a custom event for the IBM Systems Director management server.

    However, here is information on the genevent command:

    http://publib.boulder.ibm.com/infocenter/director/pubs/index.jsp?topic=%2Fcom.ibm.director.cli.helps.doc%2Ffqm0_r_cli_genevent.html&resultof=%22genevent%22%20%22genev%22
  • kcarpenter
    kcarpenter
    3 Posts

    Re: Looking for Java APIs to replace the system genevent command

    ‏2012-03-20T18:17:15Z  
    • dme_1
    • ‏2012-03-12T15:13:13Z
    There is currently no REST API for generating a custom event for the IBM Systems Director management server.

    However, here is information on the genevent command:

    http://publib.boulder.ibm.com/infocenter/director/pubs/index.jsp?topic=%2Fcom.ibm.director.cli.helps.doc%2Ffqm0_r_cli_genevent.html&resultof=%22genevent%22%20%22genev%22
    Thanks Dave

    If there is not an REST APIs to send events to IBM Director is there a JAVA API ?

    We really do not want the overhead of executing a "system" command from our JAVA programs.

    I noticed that you are in Rochester NY, who do you work for?
    I'm in Fairport working for Soleo Communcations and am originaly from the old Nortel
    building on Humbold street.

    Again, Thanks
  • dme_1
    dme_1
    25 Posts

    Re: Looking for Java APIs to replace the system genevent command

    ‏2012-03-20T19:26:23Z  
    Thanks Dave

    If there is not an REST APIs to send events to IBM Director is there a JAVA API ?

    We really do not want the overhead of executing a "system" command from our JAVA programs.

    I noticed that you are in Rochester NY, who do you work for?
    I'm in Fairport working for Soleo Communcations and am originaly from the old Nortel
    building on Humbold street.

    Again, Thanks
    Hi Ken!

    There is no PUT method supported for the events API - only the GET method is supported at this time. I understand your concern calling the CLI from within your Java program, but at present, I believe this is only way you can manually generate an IBM Systems Director event. If I find out any more information, I'll update this thread...