<!-- $Header: emdb/sysman/admin/metadata/osb_server.xml /st_emdbsa_11.2/1 2009/02/03 18:27:47 swbalasu Exp $
   MODIFIED    (MM/DD/YY)
      swbalasu  09/09/08 - NLS strings not picked up 
      swbalasu  08/01/08 - setting OPTIONAL=FALSE for InstanceProperties
      swbalasu  07/13/08 - version chage of agent to 10.2.0.5
      pfgavin   05/13/08 - 
      swbalasu  10/25/07 - Creation
-->

<!DOCTYPE TargetMetadata SYSTEM "../dtds/TargetMetadata.dtd">

<TargetMetadata META_VER="1.0"
                TYPE="osb_server"
                REQUIRED_AGENT_VERSION="10.2.0.4.0"
                RESOURCE_BUNDLE_PACKAGE="oracle.sysman.db.rsc.ob">
  <Display>
    <Label NLSID="osb_server_title">Oracle Secure Backup</Label>
        <ShortName NLSID='osb_server_shorttitle'>OSB</ShortName>
        <Description NLSID='osb_server_desc'>Monitoring Oracle Secure Backup from EM</Description>
  </Display>

  <!--
  ==================================================================
  == Response
  ==================================================================
    -->
  <Metric NAME="Response" TYPE="TABLE">
    <Display>
      <Label NLSID="osb_server_resp">Response</Label>
    </Display>
    <TableDescriptor>
      <ColumnDescriptor NAME="Status" TYPE="NUMBER" IS_KEY="FALSE">
        <Display>
          <Label NLSID="osb_server_resp_status">Status</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="State" TYPE="NUMBER" IS_KEY="FALSE">
        <Display>
          <Label NLSID="osb_server_resp_state">State</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Message" TYPE="STRING" IS_KEY="FALSE" TRANSIENT="FALSE" HELP="NO_HELP">
        <Display>
          <Label NLSID="osb_server_resp_mesg">Message</Label>
        </Display>
      </ColumnDescriptor>
    </TableDescriptor>

    <QueryDescriptor FETCHLET_ID="OSLineToken" ON_TARGET="TRUE">
      <Property NAME="perlBin" SCOPE="SYSTEMGLOBAL">perlBin</Property>
      <Property NAME="scriptsDir" SCOPE="SYSTEMGLOBAL">scriptsDir</Property>
      <Property NAME="command" SCOPE="GLOBAL"> %perlBin%/perl </Property>
      <Property NAME="script" SCOPE="GLOBAL">%scriptsDir%/db/ob/ob_resp.pl</Property>
      <Property NAME="startsWith" SCOPE="GLOBAL">em_result=</Property>
      <Property NAME="warningStartsWith" SCOPE="GLOBAL">em_warning=</Property>
      <Property NAME="delimiter" SCOPE="GLOBAL">|</Property>
      <Property NAME="ENVINSTALL_HOME" SCOPE="INSTANCE">InstallHome</Property>
      <Property NAME="ENVADMIN_HOST" SCOPE="INSTANCE">AdminHost</Property>
      <Property NAME="STDINEM_TARGET_USERNAME" SCOPE="INSTANCE">UserName</Property>
      <Property NAME="STDINEM_TARGET_PASSWORD" SCOPE="INSTANCE">password</Property>
    </QueryDescriptor>

  </Metric>

  <!--
  ==================================================================
  == Devices
  ==================================================================
    -->
    <Metric NAME="DeviceList" TYPE="TABLE"> 
    <Display>
      <Label NLSID="osb_server_devices">Devices</Label>
    </Display>
    <TableDescriptor>
      <ColumnDescriptor NAME="Name" TYPE="STRING" IS_KEY="TRUE">
        <Display>
          <Label NLSID="osb_server_dev_name">Name</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Type" TYPE="STRING" IS_KEY="FALSE">
        <Display>
          <Label NLSID="osb_server_dev_type">Type</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Library" TYPE="STRING" IS_KEY="FALSE">
        <Display>
          <Label NLSID="osb_server_dev_lib">Library</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Slot" TYPE="STRING" IS_KEY="FALSE">
        <Display>
          <Label NLSID="osb_server_dev_slot">Slot</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Status" TYPE="STRING" IS_KEY="FALSE">
        <Display>
          <Label NLSID="osb_server_dev_status">Status</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Active" TYPE="NUMBER" IS_KEY="FALSE">
        <Display>
          <Label NLSID="osb_server_dev_active">Active</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Cleanreq" TYPE="STRING" IS_KEY="FALSE">
        <Display>
          <Label NLSID="osb_server_dev_cleanreq">Cleaning Required</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Mediaserver" TYPE="STRING" IS_KEY="FALSE">
        <Display>
          <Label NLSID="osb_server_mediaserver">Media Server</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Vendor" TYPE="STRING" IS_KEY="FALSE">
        <Display>
          <Label NLSID="osb_server_dev_vendor">Vendor</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Firmware" TYPE="STRING" IS_KEY="FALSE">
        <Display>
          <Label NLSID="osb_server_dev_firmware">Firmware</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Component" TYPE="STRING" IS_KEY="FALSE">
        <Display>
          <Label NLSID="osb_server_res_component">Component</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Process" TYPE="STRING" IS_KEY="FALSE">
        <Display>
          <Label NLSID="osb_server_res_process">Process</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Host" TYPE="STRING" IS_KEY="FALSE">
        <Display>
          <Label NLSID="osb_server_res_host">Host</Label>
        </Display>
      </ColumnDescriptor>
    </TableDescriptor>

    <QueryDescriptor FETCHLET_ID="OSLineToken" ON_TARGET="TRUE">
      <Property NAME="perlBin" SCOPE="SYSTEMGLOBAL">perlBin</Property>
      <Property NAME="scriptsDir" SCOPE="SYSTEMGLOBAL">scriptsDir</Property>
      <Property NAME="command" SCOPE="GLOBAL"> %perlBin%/perl </Property>
      <Property NAME="script" SCOPE="GLOBAL">%scriptsDir%/db/ob/ob_devices.pl</Property>
      <Property NAME="startsWith" SCOPE="GLOBAL">em_result=</Property>
      <Property NAME="warningStartsWith" SCOPE="GLOBAL">em_warning=</Property>
      <Property NAME="delimiter" SCOPE="GLOBAL">|</Property>
      <Property NAME="ENVINSTALL_HOME" SCOPE="INSTANCE">InstallHome</Property>
      <Property NAME="ENVADMIN_HOST" SCOPE="INSTANCE">AdminHost</Property>
      <Property NAME="STDINEM_TARGET_USERNAME" SCOPE="INSTANCE">UserName</Property>
      <Property NAME="STDINEM_TARGET_PASSWORD" SCOPE="INSTANCE">password</Property>
    </QueryDescriptor>

  </Metric>

  <!--
  ==================================================================
  == Jobs 
  ==================================================================
    -->
    <Metric NAME="Jobs" TYPE="TABLE"> 
    <Display>
      <Label NLSID="osb_server_jobs">Operations</Label>
    </Display>
    <TableDescriptor>
      <ColumnDescriptor NAME="JobId" TYPE="STRING" IS_KEY="TRUE">
        <Display>
          <Label NLSID="osb_server_job_id">Operation Id</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Type" TYPE="STRING" IS_KEY="FALSE">
        <Display>
          <Label NLSID="osb_server_job_type">Type</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="State" TYPE="STRING" IS_KEY="FALSE">
        <Display>
          <Label NLSID="osb_server_job_state">State</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="RunOnHost" TYPE="STRING" IS_KEY="FALSE">
        <Display>
          <Label NLSID="osb_server_job_runonhost">Run on Host</Label>
        </Display>
      </ColumnDescriptor>
      <ColumnDescriptor NAME="Info" TYPE="STRING" IS_KEY="FALSE">
        <Display>
          <Label NLSID="osb_server_job_information">Additonal Information</Label>
        </Display>
      </ColumnDescriptor>
    </TableDescriptor>

    <QueryDescriptor FETCHLET_ID="OSLineToken" ON_TARGET="TRUE">
      <Property NAME="perlBin" SCOPE="SYSTEMGLOBAL">perlBin</Property>
      <Property NAME="scriptsDir" SCOPE="SYSTEMGLOBAL">scriptsDir</Property>
      <Property NAME="command" SCOPE="GLOBAL"> %perlBin%/perl </Property>
      <Property NAME="script" SCOPE="GLOBAL">%scriptsDir%/db/ob/ob_jobs.pl</Property>
      <Property NAME="startsWith" SCOPE="GLOBAL">em_result=</Property>
      <Property NAME="warningStartsWith" SCOPE="GLOBAL">em_warning=</Property>
      <Property NAME="delimiter" SCOPE="GLOBAL">|</Property>
      <Property NAME="ENVINSTALL_HOME" SCOPE="INSTANCE">InstallHome</Property>
      <Property NAME="ENVADMIN_HOST" SCOPE="INSTANCE">AdminHost</Property>
      <Property NAME="STDINEM_TARGET_USERNAME" SCOPE="INSTANCE">UserName</Property>
      <Property NAME="STDINEM_TARGET_PASSWORD" SCOPE="INSTANCE">password</Property>
    </QueryDescriptor>

  </Metric>

    <!--
    ======================================================================
    == Instance Properties:
    ======================================================================
      -->
   <InstanceProperties>
    <InstanceProperty NAME="InstallHome" CREDENTIAL="FALSE" OPTIONAL="FALSE">
      <Display>
        <Label NLSID="osb_server_home_iprop">Installation Path</Label>
      </Display>
    </InstanceProperty>
    <InstanceProperty NAME="AdminHost" CREDENTIAL="FALSE" OPTIONAL="FALSE">
      <Display>
        <Label NLSID="osb_server_host_iprop">Administrative Server Host Name</Label>
      </Display>
    </InstanceProperty>
    <InstanceProperty NAME="UserName" CREDENTIAL="FALSE" OPTIONAL="FALSE">
      <Display>
        <Label NLSID="osb_server_username_iprop">Username</Label>
      </Display>
    </InstanceProperty>
    <InstanceProperty NAME="password" CREDENTIAL="TRUE" OPTIONAL="FALSE">
      <Display>
        <Label NLSID="osb_server_password_iprop">Password</Label>
      </Display>
    </InstanceProperty>

    <!--
    ======================================================================
    == Dynamic Properties: OSB version
    ======================================================================
      -->
    <DynamicProperties NAME="osb_version" FORMAT="ROW" PROP_LIST="version">
      <QueryDescriptor FETCHLET_ID="OSLineToken" ON_TARGET="TRUE">
        <Property NAME="perlBin" SCOPE="SYSTEMGLOBAL">perlBin</Property>
        <Property NAME="scriptsDir" SCOPE="SYSTEMGLOBAL">scriptsDir</Property>
        <Property NAME="command" SCOPE="GLOBAL"> %perlBin%/perl </Property>
        <Property NAME="script" SCOPE="GLOBAL">%scriptsDir%/db/ob/ob_version.pl</Property>
        <Property NAME="startsWith" SCOPE="GLOBAL">em_result=</Property>
        <Property NAME="warningStartsWith" SCOPE="GLOBAL">em_warning=</Property>
        <Property NAME="delimiter" SCOPE="GLOBAL">|</Property>
        <Property NAME="ENVINSTALL_HOME" SCOPE="INSTANCE">InstallHome</Property>
        <Property NAME="ENVADMIN_HOST" SCOPE="INSTANCE">AdminHost</Property>
        <Property NAME="STDINEM_TARGET_USERNAME" SCOPE="INSTANCE">UserName</Property>
        <Property NAME="STDINEM_TARGET_PASSWORD" SCOPE="INSTANCE">password</Property>
      </QueryDescriptor>
    </DynamicProperties>

  </InstanceProperties>

</TargetMetadata>
