Creating a custom inventory script task

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


Subject


Creating a custom inventory script task

After you have created the custom inventory data class, you create a custom inventory script task that gathers the custom inventory. The script task is configured with the script to gather the custom inventory and the schedule of the task.

See Creating and customizing a data class.

To create a custom inventory script task, you can clone a sample script task and modify it with the custom data classes that you created. You can also create and confgure a custom inventory script task on the Jobs and Tasks portal page.

When you customize your custom inventory script, you can benefit from different options that let you easily insert a token to the script and create or edit tokens for use in the script.

For more information, see the topics about the Run script task page and the Tokens page in the Symantec Management Platform User Guide.

Note:

The process of creating a custom inventory script task is the same across all platforms: Windows, UNIX, Linux, and Mac. However, the scripting language and the logic that is used in the scripts are different.

For more information, see the topics about running a task and about task advanced options in the Symantec Management Platform User Guide.

See About gathering custom inventory.

This task is a step in the process for gathering custom inventory.

See Gathering custom inventory.

To clone a sample custom inventory script task

  1. In the Symantec Management Console, on the Manage menu, click Jobs and Tasks.

  2. In the left pane, under Jobs and Tasks, expand Samples > Discovery and Inventory > Inventory samples > Custom.

  3. Right-click the sample custom inventory script task and click Clone.

  4. In the Clone dialog box, give the cloned script a descriptive name and click OK.

  5. (Optional) Customize the sample script, and then click Save changes.

    Depending on the selected script type, you have different options to customize the sample script.

    See Customizing the custom inventory sample script for Windows.

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

  6. Under Task Status, do one of the following:

    • To schedule the task to run on client computers, click New Schedule.

    • To perform a quick run of the task on client computers, click Quick Run.

  7. Click Save changes.

To create a custom inventory script task

  1. In the Symantec Management Console, on the Manage menu, click Jobs and Tasks.

  2. In the left pane, navigate to the folder where you want to create a custom inventory script task, right-click the folder, and then click New > Task.

    For example, to create the task in the Jobs and Tasks folder, right-click Jobs and Tasks, and then click New > Task.

    To create the task in the Inventory folder, expand Jobs and Tasks > System Jobs and Tasks > Discovery and Inventory, right-click Inventory, and then click New > Task.

  3. In the Create New Task dialog box, in the left pane, click Run Script.

  4. In the right pane, enter a descriptive name for the task.

  5. In the Script type drop-down list, select the script type.

  6. Enter your own script or copy a sample custom inventory script to the script editor.

    To easily insert a token to your custom inventory script, do the following:

    • In the Insert token drop-down list, select the token that you want to insert.

    • Click Insert.

    To access a sample custom inventory script, do the following:

    • In the Symantec Management Console, on the Manage menu, click Jobs and Tasks.

    • In the left pane, under Jobs and Tasks, expand Samples > Discovery and Inventory > Inventory samples > Custom.

  7. (Optional) In the Create New Task dialog box, in the script editor, customize the copied sample script or your own script.

    Depending on the selected script type, you have different options to customize the script.

    See Customizing the custom inventory sample script for Windows.

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

  8. (Optional) To configure the advanced options for running the custom inventory script task, do the following:

    • Click Advanced, and on the Script tab, specify the user account that the task runs in and other script options.

    • In the Task options tab, specify the settings for running the script task simultaneously with other tasks and the maximum possible length of the script task.

    • Click OK.

  9. In the Create New Task dialog box, click OK.

  10. On the Run Script page, under Task Status, do one of the following:

    • To schedule the task to run on client computers, click New Schedule.

    • To perform a quick run of the task on client computers, click Quick Run.

  11. Click Save changes.


Legacy ID



v17356799_v66534462


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


Terms of use for this information are found in Legal Notices