Web Page for Collection Management Functions
Do you ever need to quickly add/remove a PC from an inclusion or exclusion list in a collection? Do you wish you had a Web page that could do just that without filtering all the way through the console? Well here is another Web page to add to your collection. (Pun intended).
For the version that I use I've added Ajax controls that query the Altiris database so as I type, it completes the name of the collection. However, the page will come back and tell you if the collection does not exist even if you don't add this in yourself.
If you have not ever done any Web programming, don't be intimidated. If you've done batch or VB scripting, you can muddle your way through it.
Ingredients
You'll need the following to use it:
- ASDK
- Server with IIS
- Basic programming knowledge. Preferably in C#.
If you haven't created any Web pages using the ASDK then follow the instructions found in the help file under "Creating and Using Proxy Classes" before you start using this Web page. That will set up the interface from the IIS server to the NS server. It will create some class files that you need to put in an APP_CODE folder where you house these files.
You will need to change 4 lines for your environment. Find everywhere it says YOURDOMAIN (4 locations) and replace them with ... well, your domain name.
Guid machineGuid = resourceMS.GetComputerByNameAndDomain(txtPCName.Text,"YOURDOMAIN");
| License: | AJSL By clicking the download link below, you agree to the terms and conditions in the Altiris Juice Software License |
| Support: | User-contributed tools on the Juice are not supported by Altiris Technical Support. If you have questions about a tool, please communicate directly with the author by visiting their profile page and clicking the 'contact' tab. |

Comments
Nice!
Screenbert,
Another fine download...we're looking at maybe doing something similar (or modifying this) to help our Helpdesk add computers to software deployment collections, without accessing the console (after several instances of the entire membership of the "Authorized" collection getting blasted for several apps). A drop-down to select the collection (given a limited list of choices) would be one feature we'd add.
We're also getting started with WorkFlow and thought that might be a nice way to break into publishing some Workflows as it seems (on the surface at least) to be fairly straight-forward.
Thanks,
Kyle
Symantec Trusted Advisor
For Forum threads, please click "Mark as Solution" if answered.
For all content, please give a thumbs up if you agree with or support the post.
Screenbert,I am trying to
Screenbert,
I am trying to create a web application with a drop down list for machines to be added to collections, I have the following code using the addResourcesToCollection() method (I am still in the unit testing stage). The following code gives me a "request failed with http status 404: not found". The SOURCE ERROR is in line 260 of CollectionManagementService.cs. PLEASE help me, we need to roll this app out ASAP.
public partial class altirisupdatecollection : System.Web.UI.Page {
protected void Button1_Click(object sender, EventArgs e){
Guid collection_guid = new Guid("fcb0f65d-xxx");
string machine_guid = "{9a90aa66-xxx}"
CollectionManagementService coll = new CollectionManagementService();
coll.AddResourcesToCollection(collection_guid, machine_guid);
}
}
CollectionManagementService.cs file
Do you have the ASDK loaded on the Notification server?
Also are you passing Credentials in your code? ( don't see in the snippet above)?
Otherwise I would open the CollectionManagementService.cs file and see what is at line 260. There may be something that needs to either be uncomment or commented out.
Screenbert
Collections
This would probably be a great candidate for workflow...
For this page creating a drop-down wouldn't be that hard. It would just involve adding a filter on the query to the Altiris DB and adding a Drop-down control.
Screenbert
I must be dumb
Screenbert,
I guess I"m not quite getting the Proxy Class stuff. Do I need to actually install VS.NET on my NS to run wsdl? Sorry I'm dumb :)
Nevermind about the ASDK, I found the video series.
Thanks,
Kyle
Symantec Trusted Advisor
For Forum threads, please click "Mark as Solution" if answered.
For all content, please give a thumbs up if you agree with or support the post.
Fat Tool
Do you think this tool might be useful as a standalone tool outside of a web page?
Screenbert
Sure!
Yes, that would be handy...as long as there would be a way to customize it. I actually have handed this off to our co-op to work on, and also simplify it. I'm going for a hard-coded list of collections and a button to "Add Computer to Collection" only. This is for managing our "Authorized" software collections (which are interlinked with Deployment and "Already Installed" collections to deploy the software if it is not already installed).
Thanks,
Kyle
Symantec Trusted Advisor
For Forum threads, please click "Mark as Solution" if answered.
For all content, please give a thumbs up if you agree with or support the post.
Fat Client
I've got the fat client completed for the web page. I'll see what I can do to modify it also for what you are asking for.
Screenbert
Visual Studio is is required
You do have to install Visual Studio to run WSDL. When you install it you will have a "Visual Studio 200x Command Prompt". It will have the path environment variable set so that you can run it from any folder.
Screenbert
.NET SDK
Actually, after I got over being a whiny "how can I do it" and started researching, I found that you CAN get the wsdl.exe without a full-blown Visual Studio install. The trick is to install the .NET Framework 2.0 SDK (or maybe the 2008/.NET 3.5, didn't try that one), then it gets installed to C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin.
Just FYI...
Thanks,
Kyle
Symantec Trusted Advisor
For Forum threads, please click "Mark as Solution" if answered.
For all content, please give a thumbs up if you agree with or support the post.
Workflow
Well I managed to get a really simple Workflow created for adding computers to a collection. I think I would have been done a lot faster if I hadn't tried to use the AJAX auto-complete textbox to the form. But it was good practice. We don't have a prod WF environment up yet (and not for quite some time) so using the ASDK method will still be needed I think.
Thanks for all your efforts Robert!
Thanks,
Kyle
Symantec Trusted Advisor
For Forum threads, please click "Mark as Solution" if answered.
For all content, please give a thumbs up if you agree with or support the post.
Would you like to reply?
Login or Register to post your comment.