BMC CMDB Suite - Import/Export CMDB classes using CMDB driver utility INCLUDES VIDEO
Knowledge Article
BMC CMDB Suite - Import/Export CMDB classes using CMDB driver utility INCLUDES VIDEO
BMC CMDB Suite - Import/Export CMDB classes using CMDB driver utility
BMC CMDB Suite
BMC Atrium Core
BMC Atrium CMDB Suite
A detailed description of how to Export/Import classes from one server to another using CMDB Driver.
This knowledge article may contain information that does not apply to version 21.05 or later which runs in a container environment. Please refer to Article Number 000385088 for more information about troubleshooting BMC products in containers.
'CMDB Driver' Utility can be found in <CMDBInstallDir>\AtriumCore\server\bin or <CMDBInstallDir>\AtriumCore\cmdb\sdk\bin
Run this utility & it shows all the commands listed there with the description for each command.
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