Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 5 of 5

Thread: Programically accessing data from AssetCenter

  1. #1
    Junior Member
    Join Date
    Feb 2009
    Posts
    3

    Exclamation Programically accessing data from AssetCenter

    Hello,

    I am building a series of application connectors that need to pull/push data from/to HP Openview AssetCenter 5.x to automate EDI between departments. I have been advised that we are not allowed to have our applications directly interface with the database behind AssetCenter due to licensing/warranty restrictions.

    I am looking for some sort of documentation on how to interface with AssetCenters API (which I believe is called Connect-IT). Even Googling this info came up with mostly consultants or brief abstract information that was thing. Could someone please give me some guidance on how to create a connection to AssetCenter with PHP?

    Is it as simple as making a ODBC connection ie.:

    Code:
    <?php
    
    class Database_1_0 {
    
        var $dbh, $db, $host, $user, $pass;
    
        function Connect(){
            if($this->db != '' && 
               $this->host != '' && 
               $this->user != '' && 
               $this->pass != '')
                    {
                $this->dbh = odbc_connect($this->host,$this->user,$this->pass) 
                    or die ('Error connecting to database ');
            }
        }
        function Disconnect(){ odbc_close($this->dbh); }
        function Database_1_0(){}
    }
    
    ?>
    Last edited by Avitar; 2009-02-23 at 06:08. Reason: inserting code example

  2. #2
    Senior Member
    Join Date
    Apr 2006
    Location
    Poland
    Posts
    680

    Default

    I believe there is a "data" or "datakit" subdirectory under AssetCenter with
    demo in VB for connecting.
    I do not recall any restrictions for reading using any tool/language.
    But there are for sure restrictions for writing - you have to use API or ConnectIt.
    ConnectIt is just a tool for integration not an API.
    If you are able to use DLL with php - you can use the API for reading and writing.

    regards
    Artur

  3. #3
    Junior Member
    Join Date
    Feb 2009
    Posts
    3

    Smile Awesome

    I will try this out later today. Thanks that at least gets me in the right direction.

    Update:

    I tried using the code base located in the SDK folder of assetcenter and the example code doesn't even compile; their example is broken code! Maybe I will just push for the company to go to a better designed system like Altiris Asset Management. In the mean time I am stuck with this lousy application.
    Last edited by Avitar; 2009-02-25 at 18:42.

  4. #4
    Junior Member
    Join Date
    Feb 2009
    Posts
    3

    Default

    More info for anyone else working with this app:

    I found that the DLL is not a valid COM object as well and has problems at the low levels just being registered via windows reg server commands (both .net and earlier models).

    I did discover that installing the client application for asset center does create a generic odbc connection that can be used to work with the oracle back end.

  5. #5
    Senior Member
    Join Date
    Apr 2006
    Location
    Poland
    Posts
    680

    Default

    Remeber - if you do some dorect writing - HP support will likely to refuse to help in case of problems (if you tell them about it, or send the logs or DB ant they will find it).

    Last version I used DLL fo AC was about AC4.4. It worked well with VB, no problems to use the API.

    regards
    Artur

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts