Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Netconf equivalent for "show running-config" in IOS XR

Hello,

I have an ASR9K router, on which I want to get full running configurration in XML format.

To start netconf prompt, I go with

netconf echo format

And then I send the following request:

<?xml version="1.0" encoding="UTF-8"?>

<rpc message-id="106" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

  <get-config>

       <source>

         <running/>

       </source>

       <filter>

           <Configuration/>

       </filter>

   </get-config>

</rpc> 

]]>]]>

In the output, it is seen that it is trimmed after start of ISIS configuration. In addition, there is an error message:

<error-message xml:lang="en">

            &apos;XMLMDA&apos; detected the &apos;warning&apos; condition &apos;An XML request provided too little or too much values for a class&apos;

        </error-message>

        <error-info>

            <Configuration ErrorCode="0x4368a200" ErrorMsg="&apos;XMLMDA&apos; detected the &apos;warning&apos; condition &apos;An XML request provided too little or too much values for a class&apos;">

Is there a way to get the whole content of the configuration (preferable, in one message), like it is done in IOS with "no netconf max-message"?

-Alex.

Everyone's tags (3)
929
Views
0
Helpful
0
Replies
CreatePlease to create content