Protocol Operations Examples
<get-config>
508
NE2552E Application Guide for ENOS 8.4
Following are examples of the NETCONF protocol operations supported by the
NE2552E.
Usage:
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get-config>
<source>
<running/>
</source>
<filter type="subtree">
<configuration-text
xmlns="http://www.lenovo.com/netconf/1.0/config-text"/>
</filter>
</get-config>
</rpc>
Response from the switch:
<rpc-reply message-id="101"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<data>
<configuration-text
xmlns="http://www.lenovo.com/netconf/1.0/config-text">
<!-- configuration text... -->
</configuration-text>
</data>
</rpc-reply>
See Table
36 for the tag elements and their values.
Table 36.
get-config Tag Element Values
Tag Element
source
filter type="subtree"
!--configuration
text...--
Description
The configuration text you
want to retrieve.
The filter type.
Contains the running
configuration in ISCLI format.
Value
running/
or
startup/
subtree