Workflow Soluiton

 View Only
  • 1.  Getting computer details and deleting computer in 2 NS'es

    Posted Feb 08, 2012 03:11 AM

    Hallo Guys and gals

    I need some help with a simple task, i need to delete a computer resource in 2 seperate Notification servers, and i can't seem to get my Create SMP credentials to work.
    I have all the other stuff in place, i just need this to work, if i do a "Configure custom logic" i can get what i want, but i can't get the properties to flow outside that component.

    Any help on how to accomplish this is greatly appreciated.

    Kind Regards
    Morten Leth



  • 2.  RE: Getting computer details and deleting computer in 2 NS'es

    Posted Feb 08, 2012 05:57 AM

    I just tried making global variables, and putting the info inside of them, but things does not work as intended, it gives me "reference of an object is not set to an instance" or something similar to that.

    Any help would very much help me, problem is i'm on a very tight schedule. :)

    Kind Regards
    Morten Leth



  • 3.  RE: Getting computer details and deleting computer in 2 NS'es

    Posted Feb 08, 2012 07:19 AM

    Basically the Create SMP credentials writes the SMP creds provided into global variables that the SMP components down the stream use (you can see these global vars in project Properties). One thing to note for multiple SMPs: if you need to run the comps against multiple SMPs, you need to do the following:

    1. Create SMP creds for SMP 1

    2. comps that run against SMP 1

    3. Create SMP creds for SMP 2

    4. comps that run against SMP 2

    etc.

    The Delete Resource for SMP component should be adequate for removing a computer resource if you now the GUID of the machine.



  • 4.  RE: Getting computer details and deleting computer in 2 NS'es

    Posted Feb 08, 2012 07:44 AM

    Hey Reecardo

    That's a bit strange, do you know, if it could be that it uses other ports than port 80???

    The reason i ask, is because the NS where i want to delete thing is situated in DMZ, and i have only opened up for a number of ports.
    I Just tried creating an empty project, having only 1 component inside it, which is the component that creates the SMP credentials, and then having one component that gets the GUID for the computer on the NS, and this ones throws me an error, which is "reference is not set to an instance of an object".
    if i change it back to my NS things are working again.

    But the thing is before i got port 80 opened i got an could not find the computer, this i got changed, then i got an access denied because my credentials were wrong.
     

    And now i simply get this error.

    Kind Regards
    Morten Leth



  • 5.  RE: Getting computer details and deleting computer in 2 NS'es

    Posted Feb 08, 2012 07:47 AM

    If i need to open up more ports, would that be from the workflow server (i would assume it is) or the NS, or perhaps both?

    /Morten



  • 6.  RE: Getting computer details and deleting computer in 2 NS'es

    Posted Feb 08, 2012 07:56 AM

    Unsure as far as ports go. The resource components, in general, use the ResourceModel to perform the work (on the SMP, it should be under Altiris/NSWebService in IIS).  At the very least, the WF server needs to be able to contact this service.

    If you're using the Get Resource for SMP components, I believe you have to specify a number of dataclasses to fetch. In my past experience, esp. with resources with a lot of dataclasses like computers, it's best to specify the fewest number of dataclasses you need as possible. If you're just needing the GUID, you can probably get away with just getting the Identity dataclass (maybe not even any dataclasses, as GUID might be at the parent level)



  • 7.  RE: Getting computer details and deleting computer in 2 NS'es

    Posted Feb 08, 2012 08:29 AM

    Well, funny thing is, i just tried calling my network administrator to see if we could figure things out together, and while i had him in the ear, i tried doing what i think i had been doing all day, but this time it worked....
    So i can conclude that it is not the ports... :)

    I then went ahead trying to establish one more connection to the internally NS, and this time i got the same error as last time, i am definently getting closer, but i'm not there yet...

    Problem now is, i can only have one connection open, is there a "close connection to ns" or something like that?

    /Morten



  • 8.  RE: Getting computer details and deleting computer in 2 NS'es

    Posted Feb 08, 2012 10:16 AM

    Ok, one thing I see: you've declared a global server name/token/use https for the remote (other) server. The Create SMP creds component will ONLY write values into the NotificationServer/NSAuthenticationToken/UseHTTPS field. So don't count on it writing any values to the global vars you introduce.

    You can use other components to write to these new values, though. Like Initialize Data.

    If you want to go the route of having 2 sets of global properties, make sure the resource comps downstream are pointing to the right machine (resource comps usually have a Notification Server tab, make sure the comps run against the 1st SMP pointing to one set of global vars, make sure the comps that run against the 2ns SMP are using the 2nd set)

    If you're using 2 SMPs, I'd strongly recommend using the model above:

    1. Create SMP creds for SMP 1

    2. comps that run against SMP 1

    3. Create SMP creds for SMP 2

    4. comps that run against SMP 2, etc.

    Set the creds explicitly at first to test it out.



  • 9.  RE: Getting computer details and deleting computer in 2 NS'es
    Best Answer

    Posted Jul 20, 2012 04:00 AM

    It's fixed... ;)