2 Replies Latest reply on Dec 18, 2006 5:48 AM by Andrew Warriner

    OS provisioning : increment server name and IP automaticly

      Is there an easy wayto increment the server name and ip address automatically by one in the GUI of Provisioning Manager ?

      ex. name wh0001 could become wh0002 to the next server

      and IP address 172.30.8.1 could become 172.30.8.2

       

      Fred

        • 1. Re: OS provisioning : increment server name and IP automaticly

          I can't think of a way to do this from the GUI. Provisioning jobs can be kicked off from the BLCLI though. You could probably write an NSH script to do the incrementing using properties for these values in the control file, then kick off the provisioning job from the script.

          • 2. Re: OS provisioning : increment server name and IP automaticly

            If you go the CLI route, this may help but you need to add the counter bit yourself :)

             

            Here's an example blcli command ...

            blcli Provision provisionByName

             

            e.g.

            blcli Provision provisionByName /windows w2k3 00-00-00-00-00-00 c:\values.txt

             

            And here's a sample template file ...

            (it uses properties that you will need to setup in the package)...

             

            1. BladeLogic provisioning configuration file (c) 2005 BladeLogic

            2. usage:

            3. blcli Provision provisionByName {group-name} {system-package-name}

            4. {mac-id} {this config file}

            #

            1. The following properties are from the Provisioning Manager, under

            2. Tools | Property Dictionary

            #

            1. Property.DATA_STORE_USERNAME=guest

            2. Property.DATA_STORE_FULL_PATH=C:/Program Files/BladeLogic/PXE/pxestore

            3. Property.DATA_STORE_SHARE_VIRTUAL_DIR=pxestore

            4. Property.DATA_STORE_LOCATION=MAIN DATA STORE

            5. Property.DATA_STORE_PASSWORD=pmuser

            6. Custom property

            7. Property.test=somevalue

            #

            1. if Network.DHCPEnabled is false then the following properties must

            2. be set: Network.IPAddress, Network.SubNetMask, Network.DefaultGateway

            #

            1. Network.DHCPEnabled=false

            2. Network.IPAddress=192.168.65.234

            3. Network.SubNetMask=255.255.255.0

            4. Network.DefaultGateway=192.168.65.1

            #

            1. if Network.AutoDNSEnabled is false then the following properties must

            2. be set: Network.DNSAddress.Primary, Network.DNSAddress.Secondary

            #

            1. Network.AutoDNSEnabled=false

            2. Network.DNSAddress.Primary=10.1.1.1

            3. Network.DNSAddress.Secondary=10.1.1.2

            #

            1. Server.Property.prop_name=value, where prop_name is the name of a server property.

            2. SystemPackage.LocalProperty.prop_name=value, where prop_name is the name of a property of the given system package.

            3. Network.network_setting=value, where network_setting is a PXE or JumpStart network setting.

             

            SystemPackage.LocalProperty.DATA_STORE=Class://SystemObject/DataStore/PXE DataStore/r5201

             

            SystemPackage.LocalProperty.PROV_DISK_CLEANUP_SETUP=fdisk /info >> %log%

            SystemPackage.LocalProperty.PROV_DISK_CLEANUP_COMMAND=fdisk /clear 1 >> %log%

            SystemPackage.LocalProperty.PROV_DISK_CLEANUP_FINALISE=fdisk /delete 1 >> %log%

             

            SystemPackage.LocalProperty.PROV_DISK_PARTITION_COMMAND1=fdisk /PRI:4000

            SystemPackage.LocalProperty.PROV_DISK_PARTITION_COMMAND2=fdisk /activate:1

            SystemPackage.LocalProperty.PROV_DISK_PARTITION_COMMAND3=fdisk /mbr

            SystemPackage.LocalProperty.PROV_DISK_PARTITION_COMMAND4=fdisk /info

            SystemPackage.LocalProperty.PROV_DISK_PARTITION_COMMAND5=

             

            SystemPackage.LocalProperty.PROV_DISK_FORMAT_COMMAND1=stuffit +2 89 13

            SystemPackage.LocalProperty.PROV_DISK_FORMAT_COMMAND2=format c: /v:""

            SystemPackage.LocalProperty.PROV_DISK_FORMAT_COMMAND3=

            SystemPackage.LocalProperty.PROV_DISK_FORMAT_COMMAND4=

             

            SystemPackage.LocalProperty.PROV_HOSTNAME=auto1

            SystemPackage.LocalProperty.PROV_ENROLLNAME=auto1

             

            SystemPackage.LocalProperty.PROV_WORKGROUP=bladelogic

             

            SystemPackage.LocalProperty.PROV_USERNAME=BladeLogic

            SystemPackage.LocalProperty.PROV_ORGNAME=BladeLogic

             

            SystemPackage.LocalProperty.PROV_DRIVERS_PATH=drivers\net;drivers\scsi

            SystemPackage.LocalProperty.PROV_DRIVERS_LOCATION=

             

            SystemPackage.LocalProperty.PROV_LICENSE_KEY=JB8WM-FX9DP-W3D7V-9WQP3-Y4CMB