Information

This site will undergo a brief period of maintenance on Thursday, 23 April at 2:30 AM Central/1:00 PM IST. During a 30 minute window, site availability may be intermittent.

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.

Sample VGJ XML file - VMware vCenter


This section consists of the following samples:

Sample for Server to be Added to a Workgroup - Windows

The following sample is applicable when the server should be added to a workgroup.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<VirtualGuestJobConfiguration>
    <VirtualGuestPackage>
         <VGPackageID>2000003</VGPackageID>
         <VirtualGuestName>win2k8_guest</VirtualGuestName>
         <PlatformInfo>
        <VMwareInfo>
            <ClonedDiskFormat>sameAsSource</ClonedDiskFormat>
            <IsCustomConfig>false</IsCustomConfig>
            <VMXDatastore>DELL-ISCSI-VD4-SHARED</VMXDatastore>
            <GuestOSId>1</GuestOSId>
            <GuestOSVersionId>26</GuestOSVersionId>
            <NumOfProcessors>1</NumOfProcessors>
            <MemoryInMB>1024</MemoryInMB>
            <VMwareDiskSettings>
                <DiskInfo>
                    <DiskSize>40960</DiskSize>
                    <DiskSizeUnit>MB</DiskSizeUnit>
                    <Datastore>DELL-ISCSI-VD4-SHARED</Datastore>
                    <ThinProvisioning>false</ThinProvisioning>
                </DiskInfo>
            </VMwareDiskSettings>
            <VMwareNetworkSettings>
                <NetworkConnection>
                    <Network>VM Network</Network>
                    <Adapter>E1000</Adapter>
                    <ConnectAtPowerOn>true</ConnectAtPowerOn>
                    <GuestNetworkConfiguration>
                        <IPAddress>192.168.1.13</IPAddress>
                        <SubnetMask>255.255.255.0</SubnetMask>
                       <DefaultGateway>192.168.1.1</DefaultGateway>
                        <PrimaryDNS>192.168.1.204</PrimaryDNS>
                        <SecondaryDNS>192.168.1.203</SecondaryDNS>
                        <TertiaryDNS>192.168.1.202</TertiaryDNS>
                        <PrimaryDnsSuffix>dsl.bmc.com</PrimaryDnsSuffix>
                    </GuestNetworkConfiguration>
                </NetworkConnection>
                <NetworkConnection>
                    <Network>VM Network</Network>
                    <Adapter>E1000</Adapter>
                    <ConnectAtPowerOn>true</ConnectAtPowerOn>
                    <GuestNetworkConfiguration>
                        <IPAddress>192.168.1.14</IPAddress>
                        <SubnetMask>255.255.255.0</SubnetMask>
      <DefaultGateway>192.168.1.201</DefaultGateway>
                        <PrimaryDNS>192.168.1.210</PrimaryDNS>
                        <SecondaryDNS>192.168.1.209</SecondaryDNS>
                        <TertiaryDNS>192.168.1.208</TertiaryDNS>
                        <PrimaryDnsSuffix>virtualization.local</PrimaryDnsSuffix>
                    </GuestNetworkConfiguration>
                </NetworkConnection>
                <NetworkConnection>
                    <Network>VM Network</Network>
                    <Adapter>E1000</Adapter>
                    <ConnectAtPowerOn>true</ConnectAtPowerOn>
                    <GuestNetworkConfiguration>
                        <IPAddress>192.168.1.15</IPAddress>
                        <SubnetMask>255.255.255.0</SubnetMask>
                        <DefaultGateway>192.168.1.1</DefaultGateway>
                        <PrimaryDNS>192.168.1.207</PrimaryDNS>
                        <SecondaryDNS>192.168.1.206</SecondaryDNS>
                        <TertiaryDNS>192.168.1.205</TertiaryDNS>
                    </GuestNetworkConfiguration>
                </NetworkConnection>
            </VMwareNetworkSettings>
            <OSCustomizationInfo>
                <WindowsCustomizationInfo>
<ComputerName>win2k8</ComputerName>
    <AdminPassword>BLencrypt:PQEOMXMVOXAAXPQTZNPXVALZMAMUKMXMKLWVWVBVNVALOBBLPWXLVPULUUVVWKNX</AdminPassword>
    <Workgroup>workgroup</Workgroup>
    <UserName>admin</UserName>
    <Organization>bmc</Organization>
    <LicenseKey>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</LicenseKey>
    <LicenseType>perServer</LicenseType>
    <NumOfConnections>5</NumOfConnections>
    <TimezoneId>4</TimezoneId>
    <LocaleId>4</LocaleId>
    <RunOnceCommands>
        <Command> route -p add  192.168.1.13 mask 255.255.255.0 192.168.1.1</Command>
    </RunOnceCommands>
                </WindowsCustomizationInfo>
            </OSCustomizationInfo>
        </VMwareInfo>
    </PlatformInfo>
 </VirtualGuestPackage>
   <VirtualGuestJob>
        <JobName>win2k8_job_4</JobName>
        <JobFolderID>2000100</JobFolderID>
        <VirtualGuestDestination>2000000 VMwareCluster domain-c22</VirtualGuestDestination>                           
        <ExecuteNow>true</ExecuteNow>
    </VirtualGuestJob>
</VirtualGuestJobConfiguration>

Sample for Server to be Added to a Domain and not Workgroup - Windows

The following sample is applicable when the server should be added to a domain and not a workgroup.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<VirtualGuestJobConfiguration>
    <VirtualGuestPackage>
         <VGPackageID>2000003</VGPackageID>
         <VirtualGuestName>win2k8_guest</VirtualGuestName>
         <PlatformInfo>
        <VMwareInfo>
            <ClonedDiskFormat>sameAsSource</ClonedDiskFormat>
            <IsCustomConfig>false</IsCustomConfig>
            <VMXDatastore>DELL-ISCSI-VD4-SHARED</VMXDatastore>
            <GuestOSId>1</GuestOSId>
            <GuestOSVersionId>26</GuestOSVersionId>
            <NumOfProcessors>1</NumOfProcessors>
            <MemoryInMB>1024</MemoryInMB>
            <VMwareDiskSettings>
                <DiskInfo>
                    <DiskSize>40960</DiskSize>
                    <DiskSizeUnit>MB</DiskSizeUnit>
                    <Datastore>DELL-ISCSI-VD4-SHARED</Datastore>
                    <ThinProvisioning>false</ThinProvisioning>
                </DiskInfo>
            </VMwareDiskSettings>
            <VMwareNetworkSettings>
                <NetworkConnection>
                    <Network>VM Network</Network>
                    <Adapter>E1000</Adapter>
                    <ConnectAtPowerOn>true</ConnectAtPowerOn>
                    <GuestNetworkConfiguration>
                        <IPAddress>192.168.1.13</IPAddress>
                        <SubnetMask>255.255.255.0</SubnetMask>
                       <DefaultGateway>192.168.1.1</DefaultGateway>
                        <PrimaryDNS>192.168.1.204</PrimaryDNS>
                        <SecondaryDNS>192.168.1.203</SecondaryDNS>
                        <TertiaryDNS>192.168.1.202</TertiaryDNS>
                        <PrimaryDnsSuffix>dsl.bmc.com</PrimaryDnsSuffix>
                    </GuestNetworkConfiguration>
                </NetworkConnection>
                <NetworkConnection>
                    <Network>VM Network</Network>
                    <Adapter>E1000</Adapter>
                    <ConnectAtPowerOn>true</ConnectAtPowerOn>
                    <GuestNetworkConfiguration>
                        <IPAddress>192.168.1.14</IPAddress>
                        <SubnetMask>255.255.255.0</SubnetMask>
      <DefaultGateway>192.168.1.201</DefaultGateway>
                        <PrimaryDNS>192.168.1.210</PrimaryDNS>
                        <SecondaryDNS>192.168.1.209</SecondaryDNS>
                        <TertiaryDNS>192.168.1.208</TertiaryDNS>
                        <PrimaryDnsSuffix>virtualization.local</PrimaryDnsSuffix>
                    </GuestNetworkConfiguration>
                </NetworkConnection>
                <NetworkConnection>
                    <Network>VM Network</Network>
                    <Adapter>E1000</Adapter>
                    <ConnectAtPowerOn>true</ConnectAtPowerOn>
                    <GuestNetworkConfiguration>
                        <IPAddress>192.168.1.15</IPAddress>
                        <SubnetMask>255.255.255.0</SubnetMask>
                        <DefaultGateway>192.168.1.1</DefaultGateway>
                        <PrimaryDNS>192.168.1.207</PrimaryDNS>
                        <SecondaryDNS>192.168.1.206</SecondaryDNS>
                        <TertiaryDNS>192.168.1.205</TertiaryDNS>
                    </GuestNetworkConfiguration>
                </NetworkConnection>
            </VMwareNetworkSettings>
            <OSCustomizationInfo>
                <WindowsCustomizationInfo>
<ComputerName>win2k8</ComputerName>
    <AdminPassword>BLencrypt:PQEOMXMVOXAAXPQTZNPXVALZMAMUKMXMKLWVWVBVNVALOBBLPWXLVPULUUVVWKNX</AdminPassword>
    <WindowsDomain>domain</WindowsDomain>
    <DomainAdminUser>user@domain</DomainAdminUser>
    <DomainAdminPassword>BLencrypt:LPTWKAWKUQTMKXQKBOLUNPKMPMNBLXTNLZNMKBZAOPNMQLTMMZLZQWWTVQOAPUUP</DomainAdminPassword>
    <UserName>admin</UserName>
    <Organization>bmc</Organization>
    <LicenseKey>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</LicenseKey>
    <LicenseType>perServer</LicenseType>
    <NumOfConnections>5</NumOfConnections>
    <TimezoneId>4</TimezoneId>
    <LocaleId>4</LocaleId>
    <RunOnceCommands>
        <Command> route -p add  192.168.1.13 mask 255.255.255.0 192.168.1.1</Command>
    </RunOnceCommands>
                </WindowsCustomizationInfo>
            </OSCustomizationInfo>
        </VMwareInfo>
    </PlatformInfo>
 </VirtualGuestPackage>
   <VirtualGuestJob>
        <JobName>win2k8_job_4</JobName>
        <JobFolderID>2000100</JobFolderID>
        <VirtualGuestDestination>2000000 VMwareCluster domain-c22</VirtualGuestDestination>                           
        <ExecuteNow>true</ExecuteNow>
    </VirtualGuestJob>
</VirtualGuestJobConfiguration>

Sample VGJ XML file - Linux

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <VirtualGuestJobConfiguration>
   <VirtualGuestPackage>
       <VGPackageID>354</VGPackageID>
       <VirtualGuestName>vm-blcli-mixed-static</VirtualGuestName>
       <PlatformInfo>
         <VMwareInfo>
            <IsCustomConfig>false</IsCustomConfig>
            <VMXDatastore>Storage1 (1)</VMXDatastore>
            <GuestOSId>2</GuestOSId>
            <GuestOSVersionId>39</GuestOSVersionId>
            <NumOfProcessors>1</NumOfProcessors>
            <MemoryInMB>2048</MemoryInMB>
            <VMwareDiskSettings>
              <DiskInfo>
                 <DiskSize>8192</DiskSize>
                 <DiskSizeUnit>MB</DiskSizeUnit>
                 <Datastore>Storage1 (1)</Datastore>
              </DiskInfo>
           </VMwareDiskSettings>
           <VMwareNetworkSettings>
             <NetworkConnection>
                <Network>VM Network</Network>
                <Adapter>VMXNET 3</Adapter>
                <ConnectAtPowerOn>true</ConnectAtPowerOn>
                <GuestNetworkConfiguration>
                   <AutoIPAddress>true</AutoIPAddress>
                   <AutoDNS>true</AutoDNS>
                </GuestNetworkConfiguration>
             </NetworkConnection>
             <NetworkConnection>
                <Network>VM Network</Network>
                <Adapter>Flexible (default)</Adapter>
                <ConnectAtPowerOn>true</ConnectAtPowerOn>
                <GuestNetworkConfiguration>
                   <IPAddress>192.168.1.13</IPAddress>
                   <SubnetMask>255.255.255.0</SubnetMask>
                   <DefaultGateway>192.168.1.1</DefaultGateway>
                   <PrimaryDNS>192.168.1.200</PrimaryDNS>
                </GuestNetworkConfiguration>
             </NetworkConnection>
          </VMwareNetworkSettings>
          <OSCustomizationInfo>
            <LinuxCustomizationInfo>
               <HostName>blcli-vgj-static</HostName>
               <Domain>bmc</Domain>
            </LinuxCustomizationInfo>
          </OSCustomizationInfo>
       </VMwareInfo>
   </PlatformInfo>
 </VirtualGuestPackage>
 <VirtualGuestJob>
     <JobName>blcli-rhel-static-win2k8</JobName>
     <JobFolderID>2000056</JobFolderID>
     <VirtualGuestDestination>1118 VMwareCluster domain-c8</VirtualGuestDestination>
     <ExecuteNow>true</ExecuteNow>
 </VirtualGuestJob>
 <LifeCycle>
     <SkipApproval>true</SkipApproval>
     <ServiceRquestID>SRID1</ServiceRquestID>
     <ChangeID>CID1</ChangeID>
     <TaskID>TID1</TaskID>
     <Owner>Ranga Satteli</Owner>
     <ExpiryDate>2009-07-27 04:54:44</ExpiryDate>
     <GroupName>myGroup</GroupName>
     <ServiceLevel>gold</ServiceLevel>
 </LifeCycle>
</VirtualGuestJobConfiguration>

 

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

BMC Server Automation 8.3