Workflow Soluiton

 View Only
Expand all | Collapse all

Workflow with the DS

  • 1.  Workflow with the DS

    Posted Feb 14, 2011 08:56 AM

    I am looking to automate some more of our Deployment Process with Workflow.  I have known that Workflow does have integration with the DS so I figured this would be an easy task.  I want to create a computer in the DS and then schedule some prebuilt jobs on the computer based on the user's selection from a web form.  My problem is,  I don't see an easy way to create the computer.  I know it is easy to schedule jobs on computers that already exist, but is there actually a way to create a computer?

    Workflow 7.0

    DS 6.9 SP4



  • 2.  RE: Workflow with the DS

    Posted Feb 15, 2011 09:41 AM

    At this time, no. You can create computer resources in the SMP via the Create Resource component. How that computer becomes "known" to the DS I'm not sure about.



  • 3.  RE: Workflow with the DS
    Best Answer

    Posted Feb 15, 2011 10:54 AM

    You can create integration components accessing the ASDK webservice directly (you have to install ASDK on the deployment server), using a "web service caller generator".

    http://<yourserver>/Altiris.ASDK.DS/ComputerManagementService.asmx

    The new "AddBasicVirtualComputerComponent" will work.

    I had to use it twice in a row. After first add the computer was predefined. After redo it was ok.



  • 4.  RE: Workflow with the DS

    Posted Feb 16, 2011 07:54 AM

    Do you have a sample script or something that makes the computer?  I am also guessing I can't use the built in DS connection for authentication when security is enabled.  Are you making the HTTP page or running some kind of script that creates the computer? 

    The sample script doesn't appear to work, but mainly we just want to create a blank computer like you can directly in the console.  I believe all that is needed in there is the name, serial, and computer name.  I am not even sure it needs the computer name, but those are the 3 I always put in when creating a computer, and nothing more.



  • 5.  RE: Workflow with the DS

    Posted Feb 16, 2011 10:51 AM

    Script? I am not using any script. You probably can, using some CLI of the ASDK, but i never tried (and dont know) that.

    I am using integration COMPONENTS in the workflow. I generate new components using the "web service caller generator".

    The new "AddBasicVirtualComputerComponent" just needs Name and MAC address to create a computer.

    The webservice (http://<yourserver>/Altiris.ASDK.DS/ComputerManagementService.asmx) is installed by the ASDK.

    No clue what sample script you are talking about, sorry.



  • 6.  RE: Workflow with the DS

    Posted Feb 16, 2011 01:48 PM

    So I was able to create the integration library, thanks! Now when I try to use AddBasicVirtualComputerComponent it give me:

     

    Error Details

    Error Message:
    Object reference not set to an instance of an object. ---> Object reference not set to an instance of an object.

    Message Stack: at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at ComputerManagementServiceDynamicService.ComputerManagementService.AddBasicVirtualComputer(Int32 groupID, String computerName, String assetTag, String serialNumber, String macAddress, Int32 domainMembership, String domain) at ComputerManagementServiceDynamicService.AddBasicVirtualComputerComponent.Run(IData data) at LogicBase.Core.ExecutionEngine.SinglePathProcessComponentExecutionDelegate.Execute(IData data, IOrchestrationComponent comp, String& outputPath, IExecutionEngine engine, TLExecutionContext context) at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.DoRunComp(IOrchestrationComponent comp, IData data, TLExecutionContext context)

    That is what i got when I set something for each of the variables.  I tried just Name and serial as that and got about the same thing.



  • 7.  RE: Workflow with the DS

    Posted Feb 16, 2011 02:48 PM

    I'd try invoking the web service on the machine itself (go to the web service in IIS, browse the .asmx, porovide some vars, and observe the results).

    If you get a similar result, there's probably something wrong with the input.

    If the web service works, something is wrong with the comp. I'd make sure the URL is correct, etc.



  • 8.  RE: Workflow with the DS

    Posted Feb 17, 2011 12:54 AM

    The default database key is the MAC address, not the serial number. Did you really change that to serial?

    Check your settings for the key (MAC, serial, UUID, Asset Tag) and try to use the key in the input data.



  • 9.  RE: Workflow with the DS

    Posted Feb 17, 2011 07:36 AM

    When I just browse to the page, and try the invoke on the AddBasicVirtualComputer and enter some information and click INVOKE I get a HTTP 500 error.  I am guessing this has to do with part of my problem?  I get this when not using Workflow.
     

    Also, we did change the primary look up key(s) to Serial number and UUID not mac.  If we use mac, we will have multiple computers for all our laptops.  One for the Ethernet and one for the wireless.



  • 10.  RE: Workflow with the DS

    Posted Feb 17, 2011 10:47 AM

    Can you give anonymous access to the Altiris.ASDK.DS Web Site, to check if its maybe a permission problem!?



  • 11.  RE: Workflow with the DS

    Posted Feb 18, 2011 08:29 AM

    I am not sure what is wrong, but I think using the ASDK is going to be my solution, if I can get it to work at all.  I tried a few other ASDK components and none, of them are working.  I keep getting the HTTP 500 error.  I tried using anonymous access, and installing a hotfix for the ASDK, same problem.  Since this is now more of an ASDK problem, I will create another forum post there/else where.  Thanks for you help!