Atrium CMDB - Import/Export CMDB classes using CMDB driver utility

Version 2
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    BMC CMDB Suite


    APPLIES TO:

    BMC Atrium CMDB Suite



    PROBLEM:

     

    A Detailed description of how to Export/iIport classes from one server to another using cmdbdriver.


     

     


    CAUSE:

    NA


    SOLUTION:

     

    You will find 'cmdbdriver' utility in <CMDBInstallDir>\AtriumCore\server\bin or <CMDBInstallDir>\AtriumCore\cmdb\sdk\bin

    Run that utility & you will see all commands listed there with short description. 

      
    1. To run any command from CMDB driver, you will need to first initialize it using below command :  

    Command: init
    INITIALIZATION

    CMDBInitialization results
    ReturnCode: OK
    Status List : 0 items

      


    2. Login to the server :

      

    Command: log
    Control record:
    Authentication string () :
    User name (Demo) :
    Password () :
    Locale[.charSet] (.WESTERN) :
    TimeZone () :
    Server () : <Server Name>   ----> Dev server from where Attributes needs to be exported .

      


    3. Set AR server TCP port. You can skip this if AR server is using Port mapper.

      

    Command: ssp
    SET SERVER PORT
    The TCP port number of the server (0): < AR Port >
    The RPC port number of the server (0):

      


    4. Run glc command. If it return classes, cmdbdriver connected to AR/CMDB server successfully.

      

    Command: glc
    GET LIST CLASS
    Namespace ():
    CI Class Name For The Relationship
    Namespace ():
    Class name ():
    Super Class Name
    Namespace ():
    Class name ():
    Getting querying Characteristics for this class
    Number of Characteristics (0):
    Retrieve hidden classes? (F):

      

    5. Export class definition :

      

    Command: expdf
    EXPORT DEFINITION
    Export Item List:
    Number of export items (0): 1
       Item Type: (Class, Attribute) (1-2) (1): 1
       Class Type
          Class Name
             Namespace (): BMC.CORE
             Class name (): BMC_Genealogy  ---> You can give any class name here which you want to import
    Filename for exported def: Gen_Export.xml   --> You can give any name for output file.

      

    6. Import the Attribute def :

      

    a) Copy the <filename>.xml to CMDB driver location in the other server
    b) Follow the same steps from 1 to 4 on other server.
    c) Run below command to import definition :

      

    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_Genealogy
    Import option : Create/Overwrite (1-2) (1): 2
    Filename containing import data: Gen_Export.xml

       CMDBImportDef  results
    ReturnCode:  OK
    Status List : 0 items

      

     

     


    Article Number:

    000323105


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles