5 Replies Latest reply on Apr 18, 2012 3:57 PM by Julien Boisserie

    How to export CMDB custom attributes from dev env. to production env?

    Thomas Scaccabarozzi
      Share:|

      Hi all,

      is there a simple way to export new custom cmdb attributes from development environment to production environment.

      I'd like not to make all operation manually on production enviroment.

      If I export (arx) from OBJSTR:AttributeDefinition and import it on production env. changing status to "Change Pending", is it enough?

       

      Is there a documentally procedure?

      Thanks

        • 1. How to export CMDB custom attributes from dev env. to production env?
          Vincent Riedweg

          Hi,

           

          To do this, you can use the cmdbdriver utility. It's explained in the CMDB Administrator's Guide.

           

          Vincent.

          • 2. How to export CMDB custom attributes from dev env. to production env?

            Hi, I don't think simple form level export and import will help you in creating the custom fields / attributes on the prod server. As Vincent suggested use the cmdb driver utility which also exports the metadata related to the new fields/ attributes.

             

            -Amey.

            1 of 1 people found this helpful
            • 3. How to export CMDB custom attributes from dev env. to production env?

              Use the cmdbdriver utility present on the AR server where CMDB is installed.

               

              We are on CMDB 7.6.04 SP1 and used cmdbdriver exp and imp commands (miscellaneous section) to export metadata (start from base element and choose 'all child classes' option, then choose 'this class only' to export baselement itself) from a dev 7604sp1 server and then ran cmdbdriver on test 7604sp1 server and used 'imp' to import the attributes.

               

              We had to manually specify all the names of the classes one by one in the imp command. (we couldnt figure out how to import all classes/attributes at once)

               

              The documentation for export/import of attributes/classes within the Developers reference guide and administrators guide is poor, IMO.

               

              -Aravind

              • 4. Re: How to export CMDB custom attributes from dev env. to production env?
                Thomas Scaccabarozzi

                Hi I have some problem importing XML created.

                To import I execute this procedure

                init

                log

                oout

                ...

                Command: impdf

                DEFINITION IMPORT

                Import Item List:

                Number of import items (0): 1

                   Item Type: (Class, Attribute) (1-2) (1): 1

                   Class Type

                      Class Name

                         Namespace (): BMC.CORE

                         Class name (): BMC_BaseElement

                Import option : Create/Overwrite (1-2) (1): 2

                Filename containing import data: d:\BMC_BaseElement.xml

                 

                Command: impdf

                DEFINITION IMPORT

                Import Item List:

                Number of import items (0): 1

                   Item Type: (Class, Attribute) (1-2) (1): 1

                   Class Type

                      Class Name

                         Namespace (): BMC.CORE

                         Class name (): BMC_BaseElement

                Import option : Create/Overwrite (1-2) (1): 2

                Filename containing import data: d:\BMC_BaseElement.xml

                 

                No new attributes are addend in new environment. Where is the error?

                 

                I create XML in this way:

                SET ARSERVER_PORT

                1) init

                2) log

                 

                Command: xexpf

                 

                Command: xexpdf

                XEXPORT DEFINITION

                Export all classes? (F): F

                Classes to export:

                   Class and its subclasses, From namespace (1,2) (1): 1

                      Namespace (): BMC.CORE

                      Class name (): BMC_BaseElement

                Export all attributes with classes? (T): T

                Filename for exported data: d:\BMC_BaseElement.xml

                • 5. How to export CMDB custom attributes from dev env. to production env?
                  Julien Boisserie

                  Hi All,

                   

                  I have added  :

                       new fields on BaseElement with specific Namespace CLI_COMMON

                       new classes under LogicalEntity with specific Namespace CLI_COMMON

                            New fields for my new classes with specific Namespace CLI_COMMON

                   

                  What is the best way to export definition from dev to prod server using cmdb driver and xexpdf command ?

                   

                  Solution 1

                   

                  Command: xexpdf

                  XEXPORT DEFINITION

                  Export all classes? (F):

                  Classes to export:

                     Class and its subclasses, From namespace (1,2) (1):

                        Namespace (): BMC.CORE

                        Class name (): BMC_BaseElement

                  Export all attributes with classes? (T):

                  Filename for exported data: /tmp/BMC_BaseElement.xml

                   

                  Solution 2

                   

                  Command: xexpdf

                  XEXPORT DEFINITION

                  Export all classes? (F):

                  Classes to export:

                     Class and its subclasses, From namespace (1,2) (1): 2

                        Namespace name (): CLI.COMMON

                  Export all attributes with classes? (T):

                  Filename for exported data: /tmp/CLI_COMMON.xml

                   

                  both ?

                   

                  Regards

                  Julien