Information
Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

ProvisionDevice - bulkSetProvisionDevicePropertyValue


ProvisionDevice - bulkSetProvisionDevicePropertyValue

Description :

This command sets the value(s) of one or more properties of a device.

Set the propsFileURL argument to a valid java.net.URL that points to a text file conforming to the java.util.Properties format. Property entries in this file should be as follows:

Device.<prop_name>=<value>

where <prop_name> is the name of a device property.

For example, to set a device's architecture to x86, you would add the following line to props.txt:

Device.ARCHITECTURE=x86

This command returns the device ID of the device whose properties you set.

Note : 1. Cannot use this command to set a device's description. Instead use setDescription 2. Cannot use this command to set a device's architecture of PXE Device. Instead use setPxeDeviceArch

Return type : Integer

Command Input :

Variable Name

Variable Type

Description

macAddress

String

MAC address of the device to be re-provisioned.

Format the MAC address as a hex string, separated with dashes, colons, or spaces (for example, 00-0B-CD-1B-E0-44). Alphabetic characters must be in upper case.

propsFileURL

String

URL to the input file containing device properties.

Example

This example shows how to set the SERIAL_NUMBER property for a PXE device having a MAC address 00-00-29-3F-08-86. The 'props.txt' file contains the following :

Device.SERIAL_NUMBER=273J836S

Script


ProvisionDevice bulkSetProvisionDevicePropertyValue 00-00-29-3F-08-86 file:///c:/props.txt



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Server Automation Command Line Interface 8.3