Verifying the configuration, Filtering data, Full match – H3C Technologies H3C MSR 5600 User Manual
Page 161: Regular expression match
148
Verifying the configuration
If the client receives the following response, the save operation is successful:
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
# Examine the storage media of the device to verify that the files my_config.cfg and my_config.mdb
exist.
Filtering data
You can define a filter with the
get-config, or get-bulk-config operation. Data filtering mechanisms include full match, regular expression
match, and conditional match.
Full match
You can specify an element value in an XML message to implement full match. If multiple element values
are provided, the system returns the data matching all the specified values.
# Copy the following text to the client to retrieve the configuration data of all interfaces in UP state.
Regular expression match
To implement a complex data filtering with characters, you can add a regExp attribute for a specific
element.
# Copy the following text to the client to retrieve the descriptions of interfaces, of which all the characters
must be upper-case letters from A to Z.
xmlns:h3c="http://www.h3c.com/netconf/base:1.0" >