<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can't fetch configuration data from device in Tools</title>
    <link>https://community.cisco.com/t5/tools/can-t-fetch-configuration-data-from-device/m-p/3489373#M2328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The last line of your script seems to be missing a parameter (see &lt;A href="http://ydk.cisco.com/py/docs/api/services/netconf_service.html#ydk.services.NetconfService.get_config"&gt;docs&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;configuration = junos_configuration.Configuration()
read_configuration = netconf.get_config(provider, Datastore.running, configuration)
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also can you please includes any logs you are seeing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jun 2018 17:14:08 GMT</pubDate>
    <dc:creator>abhirame</dc:creator>
    <dc:date>2018-06-11T17:14:08Z</dc:date>
    <item>
      <title>Can't fetch configuration data from device</title>
      <link>https://community.cisco.com/t5/tools/can-t-fetch-configuration-data-from-device/m-p/3489372#M2327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; !&lt;BR /&gt;I tried to run test code with purpose to fetch configuration from device&lt;BR /&gt;I used netconf service (both "get" and "get_config" operations), but face an issue&lt;BR /&gt;In log I could see messages like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt;"&gt;Can't find data tag in reply sent by device&lt;BR /&gt;&amp;lt;requested-device configuration&amp;gt;&lt;BR /&gt; ...&lt;BR /&gt; ...&lt;BR /&gt;&amp;nbsp; ...&lt;BR /&gt;&amp;lt;/requested-device-configuration&amp;gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;Traceback (most recent call last):&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "3.py", line 30, in &amp;lt;module&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; configuration = netconf.get(provider, configuration)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/local/lib/python2.7/dist-packages/ydk/services/netconf_service.py", line 133, in get&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = self._ns.get(provider, filters)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.gen.throw(type, value, traceback)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/local/lib/python2.7/dist-packages/ydk/errors/error_handler.py", line 82, in handle_runtime_error&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _raise(_exc)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/local/lib/python2.7/dist-packages/ydk/errors/error_handler.py", line 56, in _raise&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise exc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;ydk.errors.YServiceProviderError:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&amp;lt;requested-device configuration&amp;gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;STRONG&gt; ...&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; ...&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; ...&lt;/STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&amp;lt;/requested-device-configuration&amp;gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Test code in attachement&lt;/P&gt;&lt;P&gt;Could you please help to understand, what am I doing wrong or what could be a reason of an issue ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jun 2018 16:48:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/can-t-fetch-configuration-data-from-device/m-p/3489372#M2327</guid>
      <dc:creator>aligang1988</dc:creator>
      <dc:date>2018-06-09T16:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can't fetch configuration data from device</title>
      <link>https://community.cisco.com/t5/tools/can-t-fetch-configuration-data-from-device/m-p/3489373#M2328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The last line of your script seems to be missing a parameter (see &lt;A href="http://ydk.cisco.com/py/docs/api/services/netconf_service.html#ydk.services.NetconfService.get_config"&gt;docs&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;configuration = junos_configuration.Configuration()
read_configuration = netconf.get_config(provider, Datastore.running, configuration)
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also can you please includes any logs you are seeing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 17:14:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/can-t-fetch-configuration-data-from-device/m-p/3489373#M2328</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2018-06-11T17:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can't fetch configuration data from device</title>
      <link>https://community.cisco.com/t5/tools/can-t-fetch-configuration-data-from-device/m-p/3489374#M2329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Abhirame !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran 2 samples of code. Both considers your recommendation, one of them contains &lt;STRONG&gt;"filter"&lt;/STRONG&gt; argument, another not (samples and logs in attachment).&lt;BR /&gt;In both cases, log written using standard python logging contains&lt;SPAN style="font-size: 8pt;"&gt; "&lt;STRONG&gt;Can't find data tag in reply sent by device&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and such message is given in shell&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;Traceback (most recent call last):&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "filter_undefined.py", line 30, in &amp;lt;module&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; read_configuration = netconf.get_config(provider, Datastore.running)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/local/lib/python2.7/dist-packages/ydk/services/netconf_service.py", line 108, in get_config&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return _read_entities(provider, True, source)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.gen.throw(type, value, traceback)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/local/lib/python2.7/dist-packages/ydk/errors/error_handler.py", line 82, in handle_runtime_error&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _raise(_exc)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/local/lib/python2.7/dist-packages/ydk/errors/error_handler.py", line 56, in _raise&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise exc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;ydk.errors.YServiceProviderError: // full_device_configuration_in_xml_format&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 19:29:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/can-t-fetch-configuration-data-from-device/m-p/3489374#M2329</guid>
      <dc:creator>aligang1988</dc:creator>
      <dc:date>2018-06-11T19:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can't fetch configuration data from device</title>
      <link>https://community.cisco.com/t5/tools/can-t-fetch-configuration-data-from-device/m-p/3489375#M2330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Created an issue for this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/CiscoDevNet/ydk-gen/issues/799" title="https://github.com/CiscoDevNet/ydk-gen/issues/799"&gt;https://github.com/CiscoDevNet/ydk-gen/issues/799&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 20:47:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/can-t-fetch-configuration-data-from-device/m-p/3489375#M2330</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2018-06-11T20:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't fetch configuration data from device</title>
      <link>https://community.cisco.com/t5/tools/can-t-fetch-configuration-data-from-device/m-p/3489376#M2331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 22:21:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/can-t-fetch-configuration-data-from-device/m-p/3489376#M2331</guid>
      <dc:creator>aligang1988</dc:creator>
      <dc:date>2018-06-11T22:21:11Z</dc:date>
    </item>
  </channel>
</rss>

