SVS Integration with Notification Server - Part 7: Custom Inventory
| Article:HOWTO8494 | | | Created: 2008-01-17 | | | Updated: 2009-10-28 | | | Article URL http://www.symantec.com/docs/HOWTO8494 |
Question
SVS Integration with Notification Server - Part 7: Custom Inventory
Answer
In Part 6 of this article series the basic concept of Inventory Solution and how Software Virtualization Solution fits in with the current version was covered. Part 7 now takes the concept into practice, showing how Custom Inventory can be setup to capture the state of the layer, and how the audit data can be used to join the data and show a complete picture of what layers are activated on the target computers. The best part is that both the SVS stand-alone agent and the SVS Solution integration are supported.
Introduction
This article will cover what audit data is captured that is relevant to determining if the .exe is part of a Layer and walk through a Custom Inventory for capturing the data necessary to tell if the Layer is active or not. With the two, we determine what layers are active, and you can even use the audit data to show what layers are not active. This article will focus on configuring Inventory to capture the necessary information.Inventory Audit
The software audit captures all header information and data from the file properties, including the file path. It’s the file path that clues us into whether an .exe is contained within an layer or not. The default file path will contain C:\fslrdr. Note that this location can be changed by using a command-line when importing the layer.Configuring the Audit
By default, Software Inventory will capture executables used by SVS, with two exceptions. First, the default Audit scan runs in Package mode, which means we may not capture all individual files for an application. To keep it simple, we’ll recommend switching to File Mode so this will not be a factor. The second potential problem occurs if the application files do not conform to a standard Windows application. The following walks through a simple process of how to add file types and set the Audit scan to File Mode.- On the Notification Server browse to install path\Program Files\Altiris\Notification Server\NSCap\Bin\Win32\X86\Inventory Solution.
- Open the following files. We will make the same change to each file:
- AeXInvSolnAdm2.ini
- AeXInvSolnAdm2.ini
- Under the line that calls AeXAuditpls.exe, add a /file command line switch, as shown:
aexauditpls.exe /hidden /file…
- Save the files. Within 24 hours most clients should have the updated mode.
- Browse back to the X86 folder (one folder up from Inventory Solution) and launch AeXAPEdit.exe.
- Go to File > Open and browse to the auditpls.ini file location within the Inventory Solution folder. (The default open will point to the X86; you do not want the auditpls.ini located in that location.)
- Under the File Masks tab, include filenames and extensions you want captured.
- Under the Include Unknown, check all options that apply to the files you want (if you’re unsure, try checking all of them and then work your way back if the result set is too large).
- Save the file. As with step 4, the changes will take time to propagate out to the managed clients.
SVS Identifiers
What data in the audit scan signifies an SVS layer? The obvious one has been covered. The file path will not contain the typical Program Files designation, but will be either the default folder C:\fslrdr or another folder designated during the install. The data will be contained in the File Path column of the AeX SW Audit Software data class. The following examples show how the file path will look:- C:\fslrdr\1\[_b_]programfiles[_e_]\mozilla firefox
- C:\fslrdr\3\[_b_]mssharedtools[_e_]\Office11
Custom Inventory
The registry contains the necessary information to complete the picture on active or inactive SVS layers. It also provides a snapshot of where the files for the layers are kept.Required SVS Data
The Registry location where we capture SVS data is HKEY_LOCAL_MACHINE | System | Altiris | FSL. Under this folder we have numbered folders that coincide directly with the folders located at C:\fslrdr\. Within these folders are the registry settings for the specified layer. In the example Custom Inventory provided in this article, the following values are captured:- Registry key the two following values are stored. We capture the number of the registry key, which coincides with the containing folder for the application files.
- Name. The name of the VSA (Virtual Software Archive) is included here.
- Active. This lets us know if a layer is active or not. A 1 represents active, while a 0 represents inactive.
Registry Capture
To capture data from the registry, we configure a file in XML format. The following walkthrough demonstrates how a default template is changed to capture the previously indicated registry data on SVS. The key components required in the file are- Data Class Name. This will signify the name of the data class and thus the name of the underlining table in SQL.
- Attributes. This is the data structure to be used for creating the columns (when Custom Inventory is sent for the first time) or populate existing columns of the same data types. Simply put, this is the SQL schema.
- Data Source. This is the source of where the data will be pulled from. For registry items like this one, it is a registry key. Further, there are pointers to exactly what data to pull from the main data source location, such as values from a registry key. The values are named, and their associated data captured.
SVS Custom Inventory Walkthrough
The following steps show how this particular Custom Inventory came into being. There’s no need to write the entire XML code as a few basic templates supply most of the required XML structure. See kb: https://kb.altiris.com/article.asp?article=4237&p=1 for a repository of sample files are provided for Custom Inventory. For this walkthrough, the file reg_recurse.xml was downloaded from https://kb.altiris.com/article.asp?article=4237&p=1. The file appears as such:
Reference the following picture in reference to the steps below:
Conclusion
Inventory and Custom Inventory is now configured to capture the necessary data to report what computers have active SVS layers employed. The next part of this article series (part 8) will cover creating useful reports on the captured data. The files provided in this article are provided “As is”, and contain no guarantees in your environment. It is highly recommended to test the implementation before rolling out any custom inventory captures in production environments.
Attachments
|
|
|
Legacy ID
40102
Article URL http://www.symantec.com/docs/HOWTO8494
Terms of use for this information are found in Legal Notices









Thank you.