Skip to main content

Loading a new or modified discovery template

Bravura Security Fabric can load target system discovery templates dynamically. Connector Pack 3.1.0 or later is required. By default, they are located in the agent\dat directory.

Discovery template files are written in the following format:

KVGROUP-V2.0
templates = {
  <TARGET_TEMPLATE> = {
        name = <PSLang name description>
  
        address = <PSLang address description>
        <key> = <value>; # target system option
        ...
        ...
        <key> = <value>;
           Resources = {
           };
           TargetAttrs = {
           };
  };
}

for example:

# KVGROUP-V2.0
templates = {
  NT_TEMPLATE = {
    name = "$comp[\"dNSHostName\"][0]";
    address = "\"{server=\" + $comp[\"dNSHostName\"][0] + \";}\"";
    runlist = true;
    listattributes = true;
    listgroups = true;
    idarchivepush = true;
    adminresethide = true;
    selfresethide = true;
    adminunlockhide = true;
    selfunlockhide = true;
    adminclaimhide = true;
    selfclaimhide = true;
    selfmanagehide = true;
    listmembertype = A;
      Resources = {
        ls_scmacct;
        ls_taskacct;
        ls_iisacct;
        ls_comacct;
        ls_normacct;
       };
     TargetAttrs = {
       ADDR_ATTR = "DNSHOSTNAME";
       DESC_ATTR = "DNSHOSTNAME";
     };
  };

The keys in the discovery template file are all required, and are all case sensitive. The name and address keys are written using PSLang expression based on account attributes discovered using auto discovery.

To load a discovery template:

  1. Modify or create a new <target>-template.cfg file in the agent\dat directory.

  2. From the util directory, run:

    loadplatform -a <agent>

This loads the agent with the new/modified discovery template onto the instance. You should be able to find the discovery template under Manage the system > Resources > Target systems > Discovery templates.