Searching...
Filters
SmallMediumLarge
Home Print Show Topic URL Previous Next
IT Management Suite
Client Management Suite
Server Management Suite
Deployment Solution
Asset Management Suite
ServiceDesk

Configuring the custom inventory sample script for UNIX, Linux, and Mac

ITMS 6.x Migration

This task is a part of the process for manually migrating your custom inventory script files.

See Manually migrating custom inventory script files

The custom inventory script for UNIX, Linux, and Mac generates a text output that contains the collected inventory data in a specified format. This data is used to create the NSE and is posted into the Configuration Management Database (CMDB). The logic of creating the NSE and posting the data is hidden from the user.

When you configure the sample script, you can modify the output that the script generates.

See Creating a custom inventory script task

See Gathering custom inventory

For more information, see the topics about gathering custom inventory in the Inventory Solution 7.5 SP1 User Guide.

To configure the custom inventory sample script for UNIX, Linux, and Mac

  1. Clone or open an existing sample of the custom inventory script task.

    Do not change the first lines of the script. Make changes after the # SCRIPT_BEGINS_HERE label.

  2. Specify the data class.

    Example:

    echo UNIX_PS_List

  3. Specify the delimiters.

    Example:

    echo "Delimiters=\" \" "

  4. Specify the data type and the length of each column.

    Example:

    echo string20 string20 string20 string256

  5. Specify the column names.

    Example:

    echo PID Terminal Time Command

    Note that the column names are not used in 7.x custom inventory. The column names are left for backward compatibility with 6.x Inventory Solution. You can leave this line empty in 7.x but keep the echo command intact.

    Example:

    echo

  6. Specify commands to retrieve data from system.

    Example:

    ps -ef

  7. Click Save changes.