Provision - provisionDeviceWithApproval
Provision - provisionDeviceWithApproval
Description :
This command provisions a device that is currently in the imported state. The input file URL should be a valid java.net.URL pointing to a text file conforming to the java.util.Properties format.
For information on the basic entries in this properties file, see the description for provisionDevice .
In addition to the basic entries, the properties file for this command must contain an approval ID. Use the format:
- Job.Provision.APPROVAL_ID=APPROVAL_ID
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
systemPackageId | Integer | Integer ID of the system package. |
macAddress | String | MAC address of the device to be provisioned. Format the MAC address as a '-' separated hex string, for example 00-0B-CD-1B-E0-44. Alphabetic characters in the MAC address must be in upper case. As an alternative to the dash character, you can use the colon or space key as the delimiter in the MAC address. |
aclTemplateId | Integer | ACL template to apply to the server that will be added to BMC BladeLogic, once it is provisioned. If you want to use default ACLs, set this variable to 0. |
propsFileURL | String | URL to the input file containing device properties. |
Example
The following example shows how to provision a device that has the MAC address 11-AA-22-BB-33-CC using a system package with ID 2000000. This example uses an ACL template with ID 1. The file propfile.txt, residing on the root directory of the local machine, is the input file for the device properties.
Script
Provision provisionDeviceWithApproval 2000000 11-AA-22-BB-33-CC 1 file:///c:/propfile.txt