Client Management Suite

 View Only
  • 1.  Package Server Manual Assignment

    Posted Dec 07, 2012 04:44 PM

    Does anyone know of a way via ASDK or SQL that I can manually assign a number of package servers to a particular package? I've seen a few items posted to change the package server assignment to ALL but I need to specify indivual package servers. Any insight would be greatly appreciated. 

     

    CMS 7.1.1

    Server 2008 R2



  • 2.  RE: Package Server Manual Assignment

    Posted Dec 07, 2012 05:33 PM

    Have you tried the below?

     

    public bool SetPackageExPackageServerOptions(
    	string sPackageGuid,
    	bool bAllOrSpecificPackageServers,
    	string sPackageServerGuids,
    	string sLocationOnPackageServer
    )


  • 3.  RE: Package Server Manual Assignment

    Posted Dec 11, 2012 02:48 AM

    Hi,

    This functionality will be available in the next release, but for 7.1 SP2 you can request the Beta Software ASDK via support, where you can see how it works.

    Regards,

    Dmitri



  • 4.  RE: Package Server Manual Assignment

    Posted Apr 10, 2013 01:40 PM

    So I'm finally getting back around to this and I'm having issues with it. I'm trying to invoke this method from Powershell and it's partially working, it's setting the package to All Package Servers rather than the individual servers specified. Also invoking the method from the asmx page gives me more errors.

     

     

    $ns = new-object -comObject "Altiris.ASDK.NS.SoftwareDelivery.SWDSolnPackageManagement"
    $ns.TargetServer = $server
    $ns.authenticate()
     
    $pc = $ns.GetPackageExByGuid('7c19b03a-e172-4cec-a906-ad7b648a2f7f')
     
    $list = $pc.selectedpackageservers, "3B72E021-74AA-4B19-9C79-023E8F9AC392"
     
    $ns.SetPackageExPackageServerOptions("7c19b03a-e172-4cec-a906-ad7b648a2f7f",$false,$list,"c:\test")