Highlighted
Active participant

programatically setting status to dispose

Jump to solution

Is there a way to use Chef or other infra as code tool to set a hardware asset to disposed and the inventory to ignored as part of a Chef deconstruction process?  

I think it would be preferred to use an API to interact instead of directly accessing the database to do so.

1 Solution

Accepted Solutions
Highlighted
Active participant

Re: programatically setting status to dispose

Jump to solution

From what I know, the only current method to change data in assets or discovered assets is using a business adapter. 

 

With that, you could generate a file for upload and manage the run of the business adapter with you orchestration tool. 

View solution in original post

5 Replies
Highlighted
Active participant

Re: programatically setting status to dispose

Jump to solution

From what I know, the only current method to change data in assets or discovered assets is using a business adapter. 

 

With that, you could generate a file for upload and manage the run of the business adapter with you orchestration tool. 

View solution in original post

Highlighted
Rising star

Re: programatically setting status to dispose

Jump to solution

Hi,

If you would like to decouple the database access a bit, you could write a tiny PowerShell funtion to use with your tool.

Best regards,

Markward

Softline Group is Europe's leading independent expert in Software Asset Management.
0 Kudos
Highlighted
Active participant

Re: programatically setting status to dispose

Jump to solution

Would the powershell script change the status in the database directly?  As example find the host name + SN and set status to Disposed in the table.  Would this show up in the history?

0 Kudos
Highlighted
Occasional contributor

Re: programatically setting status to dispose

Jump to solution

We have a daily export of asset status from our asset tool to a staging database, and then have a scheduled task running the business adapter tool to import the asset status from the staging database into the FNMS database. When an asset is marked as disposed in our asset tool, within a day or two the asset status is automatically updated in FNMS and inventory set to ignored.

There is some knowledge required to configure the business adapter studio, our was setup by Flexera services during our implementation.

Post-setup the biggest challenges we face are data accuracy issues, ie the serial number is missing/incorrect/duplicated in our asset tracking tool, but when the data is correct it works pretty well.