Workflow Soluiton

 View Only
Expand all | Collapse all

SetStatusForAssetComponent

  • 1.  SetStatusForAssetComponent

    Posted Oct 29, 2010 10:04 AM

    Can anyone provide any suggestions for proper use of the "SetStatusForAssetComponent"? I want to use it to change the status of PCs in Altiris, but don't know how to go about configuring it. The asset is obtained from a process variable and the the status will be a constant value. Any examples/suggestoins would be greatly appreciated.

     

     



  • 2.  RE: SetStatusForAssetComponent

    Posted Nov 01, 2010 07:53 AM

    Give the ASDK a go. There's a component called SetAssetStatusComponent that takes computerguid and asset status name ( 'In Stock', 'Active',....) as argument. I think you'll find it easier to use.



  • 3.  RE: SetStatusForAssetComponent
    Best Answer

    Posted Nov 01, 2010 08:22 AM

    Typically, in the SetXforY generated resource components, you're marking up a child dataclass X of Y. In this case, the parent is an asset, and the child is a Fixed Asset Status Resource Type.

    Usually in the case of these components, providing the IDs of the object in question is enough to get the web services working (though there's few guarantees). So if we have the Guid of the asset (since you have the entire asset process variable this is great), and the Guid that matches up to Active/Retired/etc. we should be "OK".

    Doing some "mining",  I've found the following:

    0A0203A5-D2B6-49F1-A53B-5EC31A89437C    Active
    492C463B-AFA2-4DD6-AE73-6FD2C7B0E489   Retired

    I'd try hooking up the component with the asset process variable, and either of the 2 guids above specified for either active/retired, and see if it works.



  • 4.  RE: SetStatusForAssetComponent

    Posted Nov 01, 2010 05:42 PM

    Nevermind. I think i got it. If this works the way i hope it does, this is going to be sick. -Thanks to both of you.



  • 5.  RE: SetStatusForAssetComponent

    Posted Nov 01, 2010 05:49 PM

    Actually, I will need some help loading the ASDK. I still don't have the component you're speaking of Claus.



  • 6.  RE: SetStatusForAssetComponent

    Posted Nov 02, 2010 11:17 AM

    I'm still using Workflow 6.5 but I believe the procedure is the same.

    If you've got ASDK installed properly you should be able to see the following webservice:

    http://localhost/Altiris/ASDKAsset/AssetManagementLibService.asmx?op=SetAssetStatus

    If YES then open WF designer, open Integration, open the project  called Symantec.Components.Generated.Altiris.ASDK.Integration. Pass your crendentials (default should be ok). Now you shold be presented with all the webservices installed by ASDK. The one you want is in the top one 'AssetManagementLibService'. Pick the services you need or select all. Click Finish and the component are generated.

    If NO then install ASDK first.

     

     



  • 7.  RE: SetStatusForAssetComponent

    Posted Nov 02, 2010 01:22 PM

    So that link gets me nowhere. Can you help me out with regard to getting ASDK installed?



  • 8.  RE: SetStatusForAssetComponent

    Posted Nov 02, 2010 01:49 PM

    I was able to find "Symantec.Components.Generated.Altiris.ASDK.Integration". I opened the project but couldn't find  'AssetManagementLibService'. These were the only ones i had.

     

    .



  • 9.  RE: SetStatusForAssetComponent

    Posted Nov 02, 2010 02:24 PM

    Does your NS/SMP have a VD pointing to: /altiris/asdkasset? And does it have an AssetManagementLibService.asmx?

     

    If not, you're probably out of luck... In think this is a pretty old version of the ASDK that introdicesn this web service.



  • 10.  RE: SetStatusForAssetComponent

    Posted Nov 02, 2010 04:05 PM

     

    http://www.altiris.com/Download.aspx

    It's the SDK Administrator 1.4



  • 11.  RE: SetStatusForAssetComponent

    Posted Nov 04, 2010 03:30 PM

    Reecardo,

    I downloaded the ASDK, but am running WF 7.0. Would you advise that I not apply this ASDK?



  • 12.  RE: SetStatusForAssetComponent

    Posted Nov 04, 2010 03:46 PM

    WF doesn't really have a "dependency" on any specific version of ASDK; we just use it for generators, largely. When you install the ASDK, you'll probably just need to regenerate the ASDK DLL against that web service to "refresh" them.



  • 13.  RE: SetStatusForAssetComponent

    Posted Nov 23, 2010 04:25 PM

    Thanks guys, this got me going in the right direction. I think I'm going with the x for y method.