Example-creating BMC ProactiveNet data in BMC Atrium CMDB from BAROC files


In this scenario, the goal is to initialize the publishing environment for Dept1 with the default management data instances and with a number of components and impact relationships.

Creating a BAROC source with component and relationship objects

The following BAROC file, sm.baroc, defines the components and impact relationships of "dept1":

Information
Example
BMC_BusinessProcess;
  mc_udid=test1;
  Name=test1;
  OwnerName='DSM PSR/I Lab';
  OwnerContact='713.918.8800';
  Description='BMC DSM - PSR and Interoperability Lab Test Business Process';
  StatusModel=STANDARD;
  HomeCell=lopud;
END
BMC_BusinessService;
  mc_udid=test1_S0101;
  Name=test1_S0101;
  OwnerName='DSM PSR/I Lab';
  OwnerContact='713.918.8800';
  HomeCell=lopud;
END
BMC_ComputerSystem;
  mc_udid=test1_S0101_N01;
  Type='WINDOWS_SYSTEM';
  Name=test1_S0101_N01;
  OwnerName='DSM PSR/I Lab';
  OwnerContact='713.918.8800';
  Description=Computer;
  HostName=test1_S0101_N01;
  HomeCell=lopud;
END
BMC_Application;
  mc_udid=test1_S0101_N01_A01;
  Name=test1_S0101_N01_A01;
  Type=app_type1;
  OwnerName='DSM PSR/I Lab';
  OwnerContact='713.918.8800';
  Description=Application;
  HomeCell=lopud;
END
BMC_Impact;
  mc_udid=test1_obj1<-obj2;
  provider_id=test1_S0101;
  consumer_id=test1;
  PropagationModel=DIRECT;
  provider_home_cell=lopud;
  consumer_home_cell=lopud;

END

Sending service model data to a cell by using a BAROC source file

To initialize the publishing environment for Dept1 with the default management data instances and a number of components and impact relationships, perform the following steps:

  1. Create a directory installationDirectory/pw/server/etc/ps_hostname/kb/data_Dept1.
  2. Copy into it the kb/data directory, add the file sm_Dept1, and edit the .load to add the sm_dept1.
  3. Define the HomeCell parameter of the Dept1 environment as lopud.
  4. Run the following command: penv -e dept1 -p "ManagementData=etc/kb/data_dept1/.load" init -v

The management data is created in the asset dataset of the Atrium CMDB Publish environment Dept1. The cell for Dept1 is running and is initialized immediately when you initialize the BMC Atrium CMDB.

When the initialization completes, the cell has the components and the impact relationships.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC ProactiveNet 9.6