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

Article:HOWTO63564  |  Created: 2011-12-16  |  Updated: 2012-04-20  |  Article URL http://www.symantec.com/docs/HOWTO63564
Article Type
How To


Subject


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

(UNIX, Linux, and Mac only)

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 customize the sample script, you can modify the output that the script generates.

See Creating a custom inventory script task.

See Gathering custom inventory.

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

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

    Note that the first lines of the script should not be changed. Changes should be made 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 -e

  7. Click Save changes.


Legacy ID



v40420046_v66534462


Article URL http://www.symantec.com/docs/HOWTO63564


Terms of use for this information are found in Legal Notices