2 Replies Latest reply on Oct 3, 2018 2:32 AM by Rajat Jain

    Updating Software Server CI name in CMDB from ADDM

    Rajat Jain
      Share:|

      Hi Guys,

       

      I want to send a customize name for SI from ADDM to CMDB. For the same, I have written a CMDB Extension TPL but it is working only for SI which are NOT on cluster. For the CIs running on cluster, this is not working. I understand the reason for the same as - there is a "for" loop on host name, which is putting the filter only on Hosts and not clusters. But is there a way to include SI running on cluster also for these changes?

       

      The purpose of pattern is that whenever the SI name contains subword "Oracle Database Server" or "Sybase ASE Database", the SI name in CMDB changes to the name coming out of the regular expression used in below script.

       

      body 

          software_server:= SoftwareInstance_SoftwareServer.softwareserver;

          SI_Instance:= softwareInstance.instance;

         SI_Name:=softwareInstance.name;

       

      for each host do

         hosting_node:=host.name;

       

         if SI_Name has subword 'Oracle Database Server' or SI_Name has subword 'Sybase ASE Database' then

             log.debug("software instance available, mapping it to NameFormat in BMC_SoftwareServer");

              software_server.Name:= regex.extract(SI_Name, regex '(?<=identified as).*$', raw'\1');

             log.debug("Updated Name as-> %software_server.Name%");

         end if;

      end for;

      end body;

       

       

      Regards,

      Rajat Jain