import/export CMDB classes

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 Atrium CMDB Suite


    APPLIES TO:

    BMC Atrium CMDB Suite



    PROBLEM:

     

    A Detailed description of how to export/import classes from one server to another using cmdbdriver.


     

     


    SOLUTION:

     

    Legacy ID:KA355318

      


    Run the 'cmdbdriver' utility ( <cmdb_install_dir>\AtriumCore\server\bin> or <BMC install dir>\AtriumCore\cmdb\sdk\bin)
    Command: init
    INITIALIZATION

    CMDBInitialization results
    ReturnCode: OK
    Status List : 0 items

    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 .

    Command: ssp <+++++++++++++++++++++++++++++skip this steps if registered with port mapper
    SET SERVER PORT
    The TCP port number of the server (0): < AR Port >
    The RPC port number of the server (0):

    CMDBSetServerPort results
    ReturnCode: OK
    Status List : 0 items

    Command: glc -->> This step allows you to list the classes so you can check what you want to export is present
    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):

    Command: expdf
    EXPORT DEFINITION
    Export Item List:
    Number of export items (0): 10 ----------------------> For example you have 10 custom attributes you want to export.
    Item Type: (Class, Attribute) (1-2) (1): 1
    Attribute Type
    Class Name
    Namespace (): BMC.CORE.CONFIG <++++++++++++++++++++++++ Please change this accordingly
    Class name (): BMC_UIComponent <++++++++++++++++++++++++ Please Change this accordingly

    Filename for exported def: <filename>.xml <++++++++++++++++++++++++ Provide a filename ( this file name will be stored in CMDB driver directory )

    CMDBExportDef results
    ReturnCode: OK
    Status List : 0 items


    3) To Import the Attribute def - .

    a) Copy the <filename>.xml to CMDB driver location in the other server
    b) Run the 'cmdbdriver' utility ( <cmdb_install_dir>\AtriumCore\server\bin> or <BMC install dir>\AtriumCore\cmdb\sdk\bin))

    Command: init
    INITIALIZATION

    CMDBInitialization results
    ReturnCode: OK
    Status List : 0 items

    Command: log
    Control record:
    Authentication string () :
    User name (Demo) :
    Password () :
    Locale[.charSet] (.WESTERN) :
    TimeZone () :
    Server () : <Server Name> <+++++++++++++++++++++++++++++Test/Prod server to where Attributes needs to be imported.

    Command: ssp __________ skip this steps if registered with port mapper
    SET SERVER PORT
    The TCP port number of the server (0): < AR Port >
    The RPC port number of the server (0):

    CMDBSetServerPort results
    ReturnCode: OK
    Status List : 0 items

    Command: glc -->> again a step to allow you to check what you are working with, skip it if you are happy you have the correct info
    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):

    Command: impdf
    DEFINITION IMPORT
    Import Item List:
    Number of import items (0): 1
    Item Type: (Class, Attribute) (1-2) (1): 1
    Attribute Type
    Class Name
    Namespace (): BMC.CORE.CONFIG <++++++++++++++++++++++++ Please change this accordingly
    Class name (): BMC_UIComponent <++++++++++++++++++++++++ Please change this accordingly
    Import option : Create/Overwrite (1-2) (1): 1

    Filename containing import data: <filename>.xml

    CMDBImportDef results
    ReturnCode: OK
    Status List : 0 items

      
    Related Products:  
       
    1. BMC Atrium CMDB Suite

     


    Article Number:

    000093930


    Article Type:

    Solutions to a Product Problem



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