To create a package (F_PACKAGE) that can be used for inventory, some scalars must have valid values (such as the Name scalar). Other scalars are optional (such as Comment) or are set and used only by the SMS system (such as Key).
The Inventory package scalar is used to indicate whether the SMS system scans for the package on all SMS computers at the current site and all sites below the current site in the site hierarchy. The SMS API engine sets the Inventory package scalar when the package is created. The SMS API engine sets this scalar to TRUE if the package folder has an inventory rules subfolder and the Inventory this package scalar for the Inventory rules subfolder is set to TRUE.
Note that Required means that a valid value must be set. For more information about the range of valid values for a scalar, click on the scalar name in the following table. Your application is responsible for verifying that the value it sets for a scalar is valid.
For a package to be available for inventory, the following scalars must be set in the package folder:
Scalar name | Data type | Requirement |
---|---|---|
Name | String | Required. |
Comment | String | Optional. |
Inventory package | Integer | Required. The SMS API engine sets this scalar to TRUE if the package has an Inventory rules subfolder and the Inventory this package scalar for the Inventory rules subfolder is set to TRUE. When this scalar is set to TRUE, this package will be available for inventory. If this scalar is set to FALSE, this package will not be available for inventory. |
In addition, the following scalar must be set in the inventory rules folder:
Scalar name | Data type | Requirement |
---|---|---|
Inventory this package | Integer | Required. |