Provision - reProvisionDevice
Provision - reProvisionDevice
Description :
This command re-provisions a device. This command is the same as the provisionDevice command, except that it works on devices that are already in the provisioned state. This command first decommissions the server associated with the provisioned device, and then starts re-provisioning the device.
If approval is enabled for the job type, use the reProvisionDeviceWithApproval command instead.
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 entries in this properties file, see the description for provisionDevice .
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 re-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 re-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 reProvisionDevice 2000000 11-AA-22-BB-33-CC 1 file:///c:/propfile.txt