ExpressionGroup セクションの Filter タグは、コンポーネントのディスカバリ プロセスに対してフィルタリングを適用するために使用されます。
前述の例でいえば、アクティブなフレーム リレー PVC のみを監視したいとします。 そのためには、frPVCInfoCustom カスタム ベンダー認定にフィルタ タグを適用し、これらの特定のコンポーネントを監視します。 フィルタは ExpressionGroup に追加されます。
注: フィルタ式には MVEL 構文を使用できます。 MVEL 構文、ベンダー認定ユーティリティ関数、ベンダー認定グローバル変数の詳細については、このガイドの付録を参照してください。
更新された frPVCInfoCustom カスタム ベンダー認定の例を以下に示します。 この手順で加えた変更は太字で示されます。
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Auto-generated by the type catalog local manager.-->
<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>Frame Relay PVC Vendor Certification</Documentation>
<FacetOf namespace="http://im.ca.com/core" name="Item" />
<AttributeGroup name="AttributeGroup" external="true" list="true">
<Documentation />
<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>
</AttributeGroup>
<Protocol>SNMP</Protocol>
<DisplayName>Frame Relay PVC Certification</DisplayName>
<Expressions>
<ExpressionGroup destCert="{http://im.ca.com/normalizer}frPVCInfo" name="frPVCInfoDS">
<Filter>(frCircuitState==2)</Filter>
<Expression destAttr="Indexes">INDEX</Expression>
<Expression destAttr="Names">"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>
これらの変更は、カスタム ベンダー認定をインポートした後に行われたと見なします。 そのため、これらを変更した後、ベンダー認定を更新します。
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|