Example For Filtering Data With Regular Expression Match - HPE FlexNetwork 5510 HI Series Network Management And Monitoring Configuration Manual

Hide thumbs Also See for FlexNetwork 5510 HI Series:
Table of Contents

Advertisement

</filter>
</get>
</rpc>
Table-based match
You can specify a match criterion for the row attribute filter to implement a table-based match,
for example, IP address filtering. For the table-based match to take effect, you must use this
filtering method before full match, regular expression match, and conditional match.
Table-based match applies only to multi-instance tables with namespace
http://www.hp.com/netconf/base:1.0. Support for the table-based match varies by table. For
more information, see NETCONF XML API documents.
# Copy the following text to the client to retrieve the longest data with VRF name vpn1, IP
address 1.1.1.0, and mask length 24 from the IPv4 routing table:
<rpc message-id="100" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
xmlns:hp="http://www.hp.com/netconf/base:1.0">
<get>
<filter type="subtree">
</filter>
</get>
</rpc>

Example for filtering data with regular expression match

Network requirements
Retrieve all data including colons in the Description column of the Interfaces table under the Ifmgr
module.
Configuration procedure
# Enter XML view.
<Sysname> xml
# Exchange capabilities.
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>
</capability>
</capabilities>
</hello>
# Retrieve all data including colons in the Description column of the Interfaces table under the Ifmgr
module.
<?xml version="1.0"?>
<rpc message-id="100"
</top>
<top xmlns="http://www.hp.com/netconf/data:1.0">
<Route>
<Ipv4Routes>
<RouteEntry hp:filter=" vrf vpn1 IP 1.1.1.0 MaskLen 24 longer"/>
</Ipv4Routes>
</Route>
</top>
urn:ietf:params:netconf:base:1.0
270

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents