上一主题: 筛选支持下一主题: AttributeGroup(多个 MIB 表)


多个 MIB 表支持

在认证供应商 MIB 时,存在您必须从两个或多个表中收集特定度量标准系列原始数据的情况。

CA 性能管理 可对需要访问多个 MIB 表的供应商认证提供支持。 此支持是基于单表认证 XML 文档结构的增强,允许连接通过公用密钥(索引)从多个表中收集的数据。 继续我们的示例,您只希望监视活动的框架转接 PVC。 修改您的 frPVCInfoCustom 自定义供应商认证来添加多个 MIB 表支持。

在此示例中,可采用 ifXTable 中的 ifName MIB 对象以及对 PVC 提供数据链路连接标识符 (DLCI) 的 frCircuitDlci 对象组合来命名框架转接 PVC。 这种命名约定适用于确定 PVC 在哪个框架转接界面分层。

修改您的自定义供应商认证,以添加下列信息:

下列是更新的 frPVCInfoCustom 自定义供应商认证外观示例。 我们在此程序中进行的更改以粗体显示:

<?xml version="1.0" encoding="UTF-8" ?> 
<!--由类型目录本地管理器自动生成。--> 
<DataModel namespace="http://im.ca.com/certifications/snmp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SNMPCertificationFacet.xsd"> 
   <FacetType name="frPVCInfoCustom" descriptorClass="com.ca.im.core.datamodel.certs.CertificationFacetDescriptorImpl"> 
     <Documentation>框架转接 PVC 供应商认证</Documentation> 
     <FacetOf namespace="http://im.ca.com/core" name="Item" /> 
     <AttributeGroup name="ifXTableGroup" external="true" list="true"> 
     <Documentation>将从 ifXTable 提取数据,以便引用对应于 PVC 的 ifName</Documentation> 
     <UseIndex>ifXIndexTag</UseIndex> 
     <Attribute name="ifXTableIndex" type="ObjectID"> 
       <Documentation /> 
       <IsKey>false</IsKey> 
       <IsIndex>true</IsIndex> 
       <Source>1.3.6.1.2.1.31.1.1.1.1</Source> 
       <Polled>false</Polled> 
     </Attribute> 
     <Attribute name="ifName" type="OctetString"> 
       <Documentation /> 
       <IsKey>false</IsKey> 
       <IsIndex>false</IsIndex> 
       <Source>1.3.6.1.2.1.31.1.1.1.1</Source>
       <Polled>false</Polled>
      </Attribute> 
     </AttributeGroup>
     <IndexTagList>
       <PrimaryTag>PVCIndexTag</PrimaryTag>
       <IndexTag>
         <Name>ifXIndexTag</Name>
         <PrimaryKeyExpression>snmpOIDParser(INDEX,1,1)</PrimaryKeyExpression>
         <ThisTagKeyExpression>ifXTableIndex</ThisTagKeyExpression>
       </IndexTag>
     </IndexTagList>
     <AttributeGroup name="AttributeGroup" external="true" list="true"> 
       <Documentation /> 
       <UseIndex>PVCIndexTag</UseIndex> 
       <Attribute name="INDEX" type="ObjectID"> 
         <Documentation /> 
         <Source>1.3.6.1.2.1.10.32.2.1.4</Source> 
         <IsIndex>true</IsIndex> 
         <IsKey>false</IsKey> 
         <NeedsDelta>false</NeedsDelta> 
       </Attribute> 
       <Attribute name="frCircuitReceivedFECNs" type="Long"> 
         <Documentation /> 
         <Source>1.3.6.1.2.1.10.32.2.1.4</Source> 
         <IsIndex>false</IsIndex> 
         <IsKey>true</IsKey> 
         <NeedsDelta>true</NeedsDelta> 
       </Attribute> 
       <Attribute name="frCircuitReceivedBECNs" type="Long"> 
         <Documentation /> 
         <Source>1.3.6.1.2.1.10.32.2.1.5</Source> 
         <IsIndex>false</IsIndex> 
         <IsKey>true</IsKey> 
         <NeedsDelta>true</NeedsDelta> 
       </Attribute> 
       <Attribute name="frCircuitSentFrames" type="Long"> 
         <Documentation /> 
         <Source>1.3.6.1.2.1.10.32.2.1.6</Source> 
         <IsIndex>false</IsIndex> 
         <IsKey>true</IsKey> 
         <NeedsDelta>true</NeedsDelta> 
       </Attribute> 
       <Attribute name="frCircuitSentOctets" type="Long"> 
         <Documentation /> 
         <Source>1.3.6.1.2.1.10.32.2.1.6</Source> 
         <IsIndex>false</IsIndex> 
         <IsKey>true</IsKey> 
         <NeedsDelta>true</NeedsDelta> 
       </Attribute> 
       <Attribute name="frCircuitReceivedFrames" type="Long"> 
         <Documentation /> 
         <Source>1.3.6.1.2.1.10.32.2.1.8</Source> 
         <IsIndex>false</IsIndex> 
         <IsKey>true</IsKey> 
         <NeedsDelta>true</NeedsDelta> 
       </Attribute> 
       <Attribute name="frCircuitReceivedOctets" type="Long"> 
         <Documentation /> 
         <Source>1.3.6.1.2.1.10.32.2.1.9</Source> 
         <IsIndex>false</IsIndex> 
         <IsKey>true</IsKey> 
         <NeedsDelta>true</NeedsDelta> 
        </Attribute> 
        <Attribute name="frCircuitState" type="int"> 
          <Documentation /> 
          <Source>1.3.6.1.2.1.10.32.2.1.3</Source> 
          <IsIndex>false</IsIndex> 
          <IsKey>false</IsKey> 
          <NeedsDelta>false</NeedsDelta> 
        </Attribute> 
        <Attribute name="frCircuitDlci" type="int"> 
          <Documentation /> 
          <Source>1.3.6.1.2.1.10.32.2.1.2</Source> 
          <IsIndex>false</IsIndex> 
          <IsKey>false</IsKey> 
          <NeedsDelta>false</NeedsDelta> 
        </Attribute> 
      </AttributeGroup> 
      <Protocol>SNMP</Protocol> 
      <DisplayName>框架转接 PVC 认证</DisplayName> 
      <Expressions> 
       <ExpressionGroup destCert="{http://im.ca.com/normalizer}frPVCInfo" name="frPVCInfoDS"> 
       <Filter>(frCircuitState==2)</Filter> 
       <Expression destAttr="Indexes">INDEX</Expression> 
       <Expression destAttr="Names">isdef(ifName)? (isdef(frCircuitDlci) ? ifName + " DCLI:" + frCircuitDlci : "Frame Relay " + INDEX) : "Frame Relay " + INDEX</Expression> 
       <Expression destAttr="FECNIn">frCircuitReceivedFECNs</Expression> 
       <Expression destAttr="BECNIn">frCircuitReceivedBECNs</Expression> 
       <Expression destAttr="FramesIn">frCircuitReceivedFrames</Expression> 
       <Expression destAttr="FramesOut">frCircuitSentFrames</Expression> 
       <Expression destAttr="BytesIn">frCircuitReceivedOctets</Expression> 
       <Expression destAttr="BytesOut">frCircuitSentOctets</Expression> 
       <Expression destAttr="BitsIn">frCircuitReceivedOctets*8</Expression> 
       <Expression destAttr="BitsOut">frCircuitSentOctets*8</Expression> 
      </ExpressionGroup> 
     </Expressions> 
    <MIB>RFC1315-MIB</MIB> 
   </FacetType> 
</DataModel>

我们假设在导入自定义供应商认证之后进行这些更改。 因此,在您进行更改之后,请更新供应商认证