Creating a custom inventory script task
| Article:HOWTO63547 | | | Created: 2011-12-16 | | | Updated: 2012-04-20 | | | Article URL http://www.symantec.com/docs/HOWTO63547 |
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.
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
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.
Right-click the sample custom inventory script task and click Clone.
In the Clone dialog box, give the cloned script a descriptive name and click OK.
(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.
To create a custom inventory script task
In the Symantec Management Console, on the Manage menu, click Jobs and Tasks.
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.
In the Create New Task dialog box, in the left pane, click Run Script.
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:
To access a sample custom inventory script, do the following:
(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.
(Optional) To configure the advanced options for running the custom inventory script task, do the following:
On the Run Script page, under Task Status, do one of the following:
|
|
Legacy ID
v17356799_v66534462
Article URL http://www.symantec.com/docs/HOWTO63547
Terms of use for this information are found in Legal Notices









Thank you.