2.6 Lab - Raw NETCONF
2.6 Lab - Raw NETCONF
Objectives
Part 1: Verify that NETCONF is Running on the IOS XE
Background / Scenario
In this lab, you will learn how to verify that the NETCONF service is running on the device by directly
connecting to its port using an SSH client. You will be sending raw NETCONF Remote Procedure Calls
encoded in XML structures.
Required Resources
• Access to a router with the IOS XE operating system version 16.6 or higher
• Putty
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>urn:ietf:params:netconf:base:1.0</capability>
</capabilities>
</hello>
]]>]]>
g. After the client hello message has been sent, the NETCONF session is ready to process RPC messages.
For example, the following XML formatted RPC message will return the ietf-interfaces model data. Please
note that the returned XML data are designed to be consumed by an application. By default, this data
might be difficult to for humans to read.
<rpc message-id="103" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get>
<filter>
<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"/>
© 2017 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 2 www.netacad.com
Lab – raw NETCONF
</filter>
</get>
</rpc>
]]>]]>
h. To close the NETCONF session, the client needs to send the following message:
© 2017 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 2 www.netacad.com