ASDK wizard Screenbert heard about the bounty being offered for the creation of a nifty tool for Notification Server (NS). Looks like the bounty worked ... and so did Screenbert. Here's fruit of his labor: a tool to automatically collect subscription information using NS.
[Updated to let you execute a script at the end of each collection move. This will allow for creation of helpdesk tickets.]
This is a tool that can assist in re-imaging or other collection-based processes.
Click to view.
The ASDK is required to be loaded on the NS Server. It is not required on the client machines.
The app.config has three settings that need to modified:
NS_Server : NSSERVER.DOMAIN.COM Search_Term : ANYTERM Default_Domain : NTDOMAINNAME
If the search term is included ANYWHERE in the collection name, that collection is returned. Leave blank for ALL collections.
For the domain, you will need to enter the netbios name that shows under the domain column in Altiris reports. For instance the DNS domain name may be altiris.com, but the netbios domain name is AltirisNet.
You can specify a non-default domain name by putting computer.domain in the textbox for the new or old PC name.
The command variable will execute the specified exe, vbs or batch file. The command it executes must be in the same directory as the ACST executable. It will execute the command and pass these variables:
1 = Old Computer Name
2 = New Computer Name
3 = “Collection changed”
If the command variable is blank nothing happens. Otherwise it executes the command for each collection moved.
This tool is only designed for static collections.
This is exactly what we are looking for in our 7.1 environment but it looks like it won't complete... It opens and lets us put in the computer names etc. but fails on the collection gathering. See below:
11/15/2012 4:46:08 PM: Old PC Guid is 6afa8745-32f6-4181-8ac9-e39701db7394.. 11/15/2012 4:46:08 PM: New PC Guid is 7918246b-a545-45da-9b01-04cd5a5b724e.. 11/15/2012 4:46:08 PM: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://Altiris.ASDK.NS.com/ExecuteNSDatabaseQuery. at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response) at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing).
Am I missing something obvious? Looks like it is trying to do something with NS.com which I don't understand.
Thanks for a great tool!!!! It works great!!!!
Great tool - I will take it for a spin