This documentation supports the 9.1 to 9.1 Service Pack 3 version and its patches of BMC Atrium Core. The documentation for version 9.1.04 and its patches is available here.

To view the latest version, select the version from the Product version menu.

cmdbdriver script - Import example

This example shows a cmdbdriver script that imports classes and attributes:

impdf
2
1
BMC.CORE
BMC_ComputerSystem
1
BMC.CORE
BMC_SystemComponent
1
C:\ImportClasses.txt

The script imports two classes, the BMC_ComputerSystem and BMC_SystemComponent classes from the BMC.CORE namespace. These classes are imported from a file called ImportClasses.txt.

To accept a default value for a parameter in the cmdbdriver script, insert a blank line, as shown in the following script that retrieves the destination CI for the BMC_System source class:

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_ComputerSystem
Import option : Create/Overwrite (1-2) (1): 2
Filename containing import data: Compdef

   CMDBImportDef  results
ReturnCode:  OK
Status List : 0 items
Was this page helpful? Yes No Submitting... Thank you

Comments

  1. Al Cepeda

    Where is the cmdbdriver script that is referenced at the bottom of the page? The one that retrieves the destination CI for the BMC_System source class .

    Dec 19, 2017 06:26
    1. Nidhi Das

      Hi Al Cepeda,

      I will discuss this with the concerned SME and will update the topic.

      Regards,
      Nidhi

      Dec 20, 2017 04:42
    1. Kanchana Iyer

      Hello Al Cepeda,

      I have updated the topic with the cmdbdriver script.

      Thanks and regards,

      Kanchana

      Jul 04, 2018 02:22