Inventory scripts

<< Click to Display Table of Contents >>

Raynet One > 1.1 u4 > User Guide > Workspaces in the sidebar menu > Configuration 

Inventory scripts

Apart from manually triggered or automated inventory runs, you can inventory your IT assets with the help of custom inventory scripts. The idea of inventory scripts is to execute custom logic by the runner during device inventory. They collect device information most valuable to you in the way that you truly want and need. In terms of scripting languages, you have the choice between either CSM or Python. Settle down on the device inventory requirements of your IT landscape (which data to collect from which device), design the inventory scripts thoroughly on a technical level and, finally, maintain the list of active inventory scripts in this list view with great care.

 

You have the option to attach meaningful descriptions to inventory scripts. They should include the inventory script's intention, the details of applicability (besides the supported platform), the logic's version, the author's contact information and an estimation of the impact on the IT landscape during execution (execution time, bandwidth usage, machine resource allocation, dependencies, ...). Proper description helps you to understand inventory operations even tomorrow or as knowledge share to the team.

 

In the Inventory Scripts view you can perform the following actions:

adding new inventory script files and assigning them to different target platforms,

removing incorrect or redundant script files from the inventory process, and

inspecting script details.

 

Screenshot 2024-04-15 100325

 

The Inventory scripts view is empty by default upon platform initialization. In order to get data into it, you need to add new scripts via the Add new script button. In this image, there are two custom inventory scripts as recommended by this documentation in custom inventory scripting use cases. Meaningful descriptions have been assigned to the scripts, following the description guidelines above.

 

Screenshot 2024-06-11 095944

 

The Add inventory script wizard enables you to define a new inventory script file. Each inventory script needs a name, description, target platform and script content. The script name has to be unique across the set of all inventory scripts.

 

tip

Tip:
There is a known issue when trying to select Python inventory script files for upload, using the button labelled ... . The filenames are filtered by file extensions not commonly associated with Python files, usually being .py . As a workaround, to be able to select files following the common naming scheme, select the All files (*.*) option inside of your platform's file browser, disabling file extension filtering.

 

clip0192

 

clip0191

 

The details view of an individual inventory script. The Linux user fetching script is shown. Script content can be changed directly through the web user interface after addition, by clicking on the Edit button inside of the Script content section to the right.