You want to collect additional data that can’t be collected using the standard scanning capabilities of the Snow agent.
With Snow Inventory version 3 and version 5, Snow offered the possibility in the Windows client/agent to run PowerShell scripts to capture additional data.
These scripts were executed exclusively by our agent or client. Platforms like Linux, Unix or MAC were not covered by this PowerShell solution.
However, Snow Inventory 6 enables additional data to be captured independently of the platform it is executed from. This new capability is called “Snow Dynamic Inventory”
How does it work?
Since this new functionality is only available on Snow Inventory Version 6 and higher, you’ll need to upgrade to this version to unlock the potential. Besides that, you also need Snow Agent version 6 running on each of the platforms in your IT estate.
Create your own script to capture your specific data. The script language does not matter; use the scripting language you know best.
Guidelines for your own scripts:
- The script name cannot be longer than 100 characters.
- No space in the filename.
- The Script itself can be placed anywhere
- The data that you want to collect has to be in valid json format and Base64 encoded.
- Output the result to the designated output folders with the script name as the destination
Create and maintain a log file in the output folder named ScriptName.log
This handles the lifecycle of the logfile, i.e. deletion and/or overwrites.
Create a metadata file along with the script output called metadata.json
The following tags must be included
|ScriptName||used by the server to separate json blobs in the database table|
|ScriptRunUTCTimeStamp||time in UTC when the script run|
|DaysToRetain||used by the server to determine how many days the data should be kept in the database before getting cleaned out by the Garbage Collector|
The Server will be parsing this information and use it when storing the data in the database.
Example of metadata.json file
Schedule your own script to run!
Step 1 – Step 3 is included in the main script.
All output data is base64 encrypted
After running your default snow Agent scan, all output files are collected and deleted.
You can find your collected data in the inventory Database:
Example for Shell Script: