Configuring the Script adapter


Adapter type: ro-adapter-script_version

Default adapter name: ScriptAdapter

To configure the Script adapter, see Configuring base adapters.

The following table describes the adapter configuration elements for the Script adapter that you can specify by using the form view, XML view, or both. You cannot use the form view to configure elements and attributes that do not have an entry in the "UI label" column.


 Configuration node elements for the Script adapter

 

 System settings for the Language Enablement (LE) feature

  1. Click Start > Control Panel.
  2. Double-click Regional and Language Options.
  3. Click the Regional Options tab, select a regional standard (for example, Chinese PRC), and then click Apply.
  4. Click the Advanced tab and select the same regional standard (for example, Chinese PRC) that you selected in baob201301:step 2.
  5. Select the check box under Default user account settings.
  6. Click Apply, and then click OK.
  7. Restart your computer.

    The following figure shows an XML template for the Script adapter configuration.

    XML template of the Script adapter configuration

    <config>
      <perl-path></perl-path>
      <handle-script-error></handle-script-error>
    </config>

    The following figure shows an XML sample for the Script adapter configuration.

    XML sample of the Script adapter configuration

    <config>
        <perl-path>c:/Perl/bin/perl.exe</perl-path>
        <handle-script-error>true</handle-script-error>
    </config>

    The following figure shows an XML sample for the Script adapter configuration when the adapter supports Language Enablement (LE) and uses Jython (version 2.2.1) scripts.

    XML sample of the Script adapter configuration when the adapter supports LE and uses Jython scripts

    <config>
     <perl-path>C:\jython2.2.1\jython.jar</perl-path>
     <handle-script-error>true</handle-script-error>
     <character-set>GB18030</character-set>
    </config> 

    The following figure shows an XML sample for the Script adapter configuration when the adapter supports LE and uses Perl(version 5.14.2) scripts.

    XML sample of the Script adapter configuration when the adapter supports LE and uses Perl scripts

    <config>
     <perl-path>C:\Perl\bin\perl.exe</perl-path>
     <handle-script-error>true</handle-script-error>
     <character-set>GB18030</character-set>
    </config> 

 

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

BMC Atrium Orchestrator Content 20.14.01