Client Management Suite

 View Only

Software Delivery Solution Purging Issues and Their Workarounds 

Feb 01, 2008 12:39 PM

This document covers issues introduced into the Notification Server environment by improperly purged items by the Software Delivery purge mechanism. This article covers the symptoms, the causes, impacts, and workarounds to avoid the issues. This document provides all the work-around items that account for these issues, eliminated them so that the Notification Server will not be adversely affected. Most of the issues stem from hidden items generated by the Software Portal.

Introduction

In the 6.x versions of Software Delivery Solution for Windows there are a number of purging issues uncovered while troubleshooting a myriad of symptoms. The items have been tested in a number of environments, but full QA testing has not been conducted. As such it is possible there are side affects we are unaware of. It is recommended to test the methods against a test server before implementing into production if possible. Note that these are workaround scenarios and no permanent fix is yet available. With these, a Notification Server can avoid the potential issues stemming from the Software Delivery Solution purge mechanism. The mechanism is controlled at the following page in the Altiris Console:

It is worth noting that often times all of the steps in this document should be followed, for full resolution of these issues.

Symptoms and Causes

Note! The symptoms and causes do not line up completely with the workaround items. As such, the workaround section will indicate which steps are required for which issues.

Permission Issues

Description

Security Permissions can also cause many of the issues documented here. The reason for this problem is that when a user requests software from the Altiris Software Portal, the user's account is the only account granted permissions to the Software Delivery Task that is created. Members of the Altiris Administrators group are not granted access to these Tasks. This issue is further complicated by the Software Delivery Purge mechanism because the purge mechanism uses the Notification Server Application Identity account to run the purging. Without permissions to edit or delete the Software Delivery Tasks created by the user, the purge will fail.

Common Symptoms

  • Software Delivery Purge fails with message "Rights do not include deletion"
  • Members of the "Altiris Administrators" group are unable to manage Software Delivery Tasks or Sequential Tasks and recieve permission errors when attempting to access them.

Complete the following workaround section to resolve the Correct Permission Issues.

Software Portal Collections

Description

When either a regular Software Program or Sequential Task is selected in the Software Portal, the Notification Server checks to see if the computer where the request is being made from has a collection. If it does, the process continues. If it does not, it creates an automatic collection with the one computer in it with the format SWRCollection_%COMPUTERNAME%. Since an automatic collection is subject to collection updates, it will be included with every collection update that applies to it.

Though the single computer collections created by a Software Portal request do not, by nature, show up in the Collection Picker, the Collection Picker mechanism must examine each collection as part of the picker tree population process. If many of these collections are created and purging does not remove them, this can slow down the picker population significantly. In some instances this has caused timeouts to occur with the picker.

Common Symptoms

  • Slow Collection Update Performance.
  • The Software Portal generates a collection with a single computer in it when a Software Portal request is made. The number of collections can grow significantly if purging isn't properly removing them. This causes collection updates for Notification Server to perform poorly.
  • Collection Picker slow to load
  • When a Software Portal request is made, the Software Portal generates a collection with a single computer in it. The number of collections that are created as a result of this behavior can grow significantly if purging is not properly removing them. This can cause the collection picker to take a long time to load as it has to cycle through all collections to identify which ones should be displayed.

Complete the follwing workaround: Correct Permission Issues, Delete Portal Collections

Improperly Purged Tasks

Description

When purging executes against a software request, it first purges the item from SWDSoftwareRequest, followed by SWDAdvertisement. However Altiris Support has noted that sometimes the purge from SWDAdvertisement does not remove the row for from the Item table. When this occurs the link from the single computer collection to the Task remains, and thus the broken task will be included when the machine requests its Client Configuration. The process to fetch the task fails with the error seen above.

Software Portal Tasks and Sequential Tasks are scheduled to 'Run as soon as the computer is notified.' This schedule ensures that when the computer is 'tickled' during the Software Portal request process it will run the Task or Sequential Task as soon as it receives it. The standard Altiris Agent treatment of this type of schedule is to mark the Task or Sequential Task as 'Run' in the AeXSWDPolicy.xml file. The Task or Sequential Task still exists in the client's client policy XML file, but the Altiris Agent knows not to run it due to the AeXSWDPolicy.xml file. When the Altiris Agent is uninstalled and reinstalled, that file is deleted, and thus the Agent on reload will not know it already ran those previous Portal Tasks or Sequential Tasks. The same is true if the system is reimaged but retains the same NS record on reload.

Common Symptoms

  • High number of License Errors in the Notification Server log.
  • If a Task is only partially purged, it means it has been removed from either the SWDAdvertisement table, or the Item table, but not both. When this scenario occurs, errors will be generated by client machines for each partial task that has been assigned.
  • The error when this symptom occurs will be similar to this:
    Log File Name: C:\Program Files\Altiris\Notification Server\Logs\a.log
    Priority: 2
    Process: aexsvc.exe (7904)
    Thread ID: 8156
    Module: AltirisNativeHelper.dll
    Source: AdvertisementItemEx::OnBuildClientConfigXml2
    Description: The specified resource failed to obtain a license (Resource: <COMPUTERNAME>, Product Altiris Software Delivery Solution, Exception: Unable to build the client configuration XML for advertisement with guid Software Request - <NAME OF SOFTWARE REQUEST>. 
    Reason: Did not get a row for Software Delivery Advertisement "Software Request - 
  • Reimaging a computer causes the machine to execute all of the old Software Portal Requests
  • Reinstalling the Altiris Agent causes the machine to execute all of the old Portal Requests

Complete the following workaround: Correct Permission Issues, Delete Orphaned Tasks

Workaround

The following section provides the full methods of implementing the workaround items to ensure the purging issues do not adversely affect your Notification Server Infrastructure.

Correct Permission Issues

For All Issues

The attached file UpdatePortalPermissions.zip is a sql query that can be run in SQL Query Analyzer or SQL Managment Studio. This query updates the permissions on all Portal items to allow the "Altiris Administrators" group rights to the Task, which will allow regular purging to execute successfully.

It is recommended to create a SQL maintenance item to run the script nightly to ensure new tasks that are created are also updated with the new security permissions.

Delete Portal Collections

For Collection Issues

The attachment DeleteCollectionItems.zip can be used to delete old Software Portal Collections. To use this file the following steps are necessary:

  1. Download DeleteCollectionItems.zip file
  2. Extract the contents to the Altiris Notification Server folder:
    "install path\Program Files\Altiris\Notification Server\Bin\" 
    
    
  3. Open DeleteCollectionItems.cs in a text editor
  4. Line 19 begins with the text "static public string sql =" Edit the date found at the end of Line 19 to be yesterday's date.
  5. Connect to the Altiris Notification Server as a user that is in the "Altiris Administrator" group.
  6. Open a command prompt and execute the following:
    NScript.exe DeleteCollectionItems.cs
    
    

    Screenshot example:

Delete Orphaned Tasks

For Task Issues

The two types of items available in the Portal. First, a Standard Software Delivery Package-Program, and second, a Sequential Software Delivery Task. The two workaround methods here overlap, but if you are using Sequential Tasks in the portal it is recommended to do both, whereas if you are only using Standard Package-Program selection only the first need be done.

First Method

The attached file DeletePortalsItems.zip will need to be run to delete item statements against Tasks and Sequential subtasks. Although part of the tasks have been removed, the item delete mechanism will still execute properly to remove the remnants.

To use this file the following steps are necessary:

  1. Download DeletePortalsItems.zip file
  2. Extract the contents to the Altiris Notification Server folder:
    "install path\Program Files\Altiris\Notification Server\Bin\"
    
    
  3. Connect to the Altiris Notification Server as a user that is in the "Altiris Administrator" group.
  4. Open a command prompt and execute the following:
    NScript.exe DeletePortalItems.cs
    
    
  5. When the previous command has completed, execute the following
    NScript.exe DeletePortalItemsSeq.cs
    
    
  6. Once these have completed, it is recommended that these be run nightly. One method of doing so is to create a batch file with both options and setup a Windows Scheduled Task to execute them using the Altiris Administrator's credentials.

Second Method

The attached file RemovePortalSequentialTask.zip is a self-contained executable that can be run on the SQL Server to delete all Sequential Tasks requested from the Software Portal. If someone is in the process of requesting a sequential task when this executable is run, it is possible their request will be deleted before it's delivered. As a result, it is highly recommended that this executable be run during off-hours.

To invoke, run the executable on the Notification Server at install path\Program Files\Altiris\Notification Server\Bin located on the NS. (NOTE> We are currently investigating what is required for systems that have SQL off-box and will update the article when we understand how the EXE works in those environments).

Conclusion

These methods are not by far the fix for these issues. They offer methods to work around the issue in lieu of the full fix that will come around the Notification Server and Software Delivery Solution 7.0 version timeframe.

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.

Statistics
0 Favorited
0 Views
4 Files
0 Shares
0 Downloads
Attachment(s)
zip file
DeleteCollectionItems.zip   1 KB   1 version
Uploaded - Feb 25, 2020
zip file
DeletePortalItems.zip   2 KB   1 version
Uploaded - Feb 25, 2020
zip file
RemovePortalSequentialTask.zip   4 KB   1 version
Uploaded - Feb 25, 2020
zip file
UpdatePortalPermissions.zip   593 B   1 version
Uploaded - Feb 25, 2020

Tags and Keywords

Related Entries and Links

No Related Resource entered.