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.

Server - getBulkServerProperties

Server - getBulkServerProperties

Description :

This command gets values for specified properties for a list of servers. As input, this command requires an XML file that lists the servers and properties for which you want values. This command returns the property values in an XML file.

This command works only for the Lifecycle and Virtualization property classes.

This command does not include the results for a server/property whose data could not be found. It does not generate an explicit error in this case.

Here is a sample input XML file that shows the required format. Note that the PSI <Name> element must specify the name of the property class (for example, Lifecycle or Virtualization) to which the desired properties belong.

<ServerDataRequest>

<ServersList>

<ServerName>vm-w23-pune1</ServerName>

<ServerName>vm-w23-pune2</ServerName>

</ServersList>

<PropertiesList>

<PSI>

<Name>Lifecycle</Name>

<Property>OWNER</Property>

<Property>EXPIRY_DATE</Property>

</PSI>

</PropertiesList>

</ServerDataRequest>

Return type : String

Command Input :

Variable Name

Variable Type

Description

inputFile

String

The input XML file that lists the servers and properties to be fetched.

Example

The following example gets server properties in bulk.

Script


Server getBulkServerProperties "//monishd-ask.bmc.com/e/BLCLI-InputFiles/ServerProps-params.xml"

The sample output for the command would look like:

<ServerPropertiesData>

<Server>

<Name>vm-w23-pune1</Name>

<PropertiesList>

<PSI>

<Name>Lifecycle</Name>

<PropertyData>

<PropertyName>OWNER</PropertyName>

<PropertyValue>nwaraich</PropertyValue>

</PropertyData>

<PropertyData>

<PropertyName>EXPIRY_DATE</PropertyName>

<PropertyValue>2012-10-10 00:00:00</PropertyValue>

</PropertyData>

</PSI>

</PropertiesList>

</ServerPropertiesData>
Was this page helpful? Yes No Submitting... Thank you

Comments