H3C Technologies H3C S6300 Series Switches User Manual
Page 258

245
</Interfaces>
</Ifmgr>
</top>
</filter>
</get-config>
</rpc>
•
Conditional match
To implement a complex data filtering with digits and character strings, you can add a match
attribute for a specific element.
lists the conditional match operators.
Table 29 Conditional match operators
Operation Operator
Remarks
More than
match="more:value"
More than the specified value. The supported data types
include date, digit, and character string.
Less than
match="less:value"
Less than the specified value. The supported data types
include date, digit, and character string.
Not less than
match="notLess:value"
Not less than the specified value. The supported data types
include date, digit, and character string.
Not more than
match="notMore:value
"
Not more than the specified value. The supported data types
include date, digit, and character string.
Equal match="equal:value"
Equal to the specified value. The supported data types
include date, digit, character string, OID, and BOOL.
Not equal
match="notEqual:value
"
Not equal to the specified value. The supported data types
include date, digit, character string, OID, and BOOL.
Include match="include:string"
Includes the specified string. The supported data types
include only character string.
Not include
match="exclude:string"
Excludes the specified string. The supported data types
include only character string.
Start with
match="startWith:strin
g"
Starts with the specified string. The supported data types
include character string and OID.
End with
match="endWith:string
"
Ends with the specified string. The supported data types
include only character string.
# Copy the following text to the client to retrieve extension information about the entity of which the
CPU usage is more than 50%:
<rpc message-id="100" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
xmlns:h3c="http://www.h3c.com/netconf/base:1.0">
<get>
<filter type="subtree">
<top xmlns="http://www.h3c.com/netconf/data:1.0">
<Device>
<ExtPhysicalEntities>
<Entity>
<CpuUsage h3c:match="more:50"></CpuUsage>
</Entity>
</ExtPhysicalEntities>
</Device>