Endpoint Management User Group (Osterreich, Schweiz, Deutschland)

Expand all | Collapse all

change asset status with ASDK 8.x

Jump to Best Answer
  • 1.  change asset status with ASDK 8.x

    Posted 02-21-2017 10:08 AM

    Hello,

    I need to change asset status for example from 'Active' to 'Retired' using ASDK webservices. I looked over the ASDK help. The ItemManagement or Resource Management does not seem to offer any suitable methods.

    In ASDK 7.x we could use 

    Class: Altiris7.ResourceComponents.SetStatusForAssetComponent

    Library: Symantec.Components.Generated7.Altiris.Resource.dll



  • 2.  RE: change asset status with ASDK 8.x

    Trusted Advisor
    Posted 02-21-2017 12:26 PM

    Settings | Notification Server | Resource and Data Class Settings | Resource Associations | Asset’s Status

    You could use a combination of checking if it has a status, as it doesn't when first created, even though it shows a "Active"

    Then if it does break the association

    http://localhost/altiris/nswebservice/resourcemodel.asmx?op=BreakAssociation

    Finally create one

    http://localhost/altiris/asdk.ns/ResourceManagementService.asmx?op=CreateResourceAssociation

     

    How are you planning on calling the WS?



  • 3.  RE: change asset status with ASDK 8.x

    Trusted Advisor
    Posted 02-21-2017 11:42 AM

    Have you seen:

    Change asset status with ASDK 7.x
    https://www.symantec.com/connect/forums/change-asset-status-asdk-7x

    You could use Workflow to update the Status.

     

    How does a computer's Status work?
    https://support.symantec.com/en_US/article.HOWTO59823.html



  • 4.  RE: change asset status with ASDK 8.x
    Best Answer

    Trusted Advisor
    Posted 02-28-2017 09:44 AM

    You'd just need to get the Guid of Asset Status and the Resource Association Guid for Asset Status and use those two methods



  • 5.  RE: change asset status with ASDK 8.x

    Trusted Advisor
    Posted 03-01-2017 03:28 AM

    Data classes for Asset Management Suite
    https://www.symantec.com/connect/articles/data-classes-asset-management-suite

    Accounting Information

    • Disposal Date
    • Disposal Reason

    [Settings | Notification Server | Resource and Data Class Settings | Data Classes | Financial Data Classes | Accounting Information]

    There are a couple of Articles that maybe of use in pointing you in a direction

    Workflow - SMP - ASDK - Asset Ownership
    https://www.symantec.com/connect/articles/workflow-smp-asdk-asset-ownership
     
    How to change CMDB asset owner in a Workflow project?
    https://www.symantec.com/connect/articles/how-change-cmdb-asset-owner-workflow-project

    SMP 8.0 HF1 added SaveDataClassLight / SaveDataClassRowsLight

    You could just build a WF to achieve this, pass in the inputs you need like Date and Reason and map them to the Resource you are Disposing.



  • 6.  RE: change asset status with ASDK 8.x

    Trusted Advisor
    Posted 02-28-2017 09:45 AM


  • 7.  RE: change asset status with ASDK 8.x

    Posted 03-01-2017 02:20 AM

    Got it working, many thanks!

    But is it possible to set the "DisposalDate", "DisposalReason",etc ,too?



  • 8.  RE: change asset status with ASDK 8.x

    Posted 02-28-2017 06:02 AM

    We planning to use the adk.dll / webservice to set asset status for "retrired" computers via powershell.

     



  • 9.  RE: change asset status with ASDK 8.x

    Posted 03-02-2017 09:01 AM

    THX