<?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 NC_get_config.py failing with Sandbox in DevNet Sandbox</title>
    <link>https://community.cisco.com/t5/devnet-sandbox/nc-get-config-py-failing-with-sandbox/m-p/4803865#M7935</link>
    <description>&lt;P&gt;Beginner with NETCONF here, could just be missing something obvious. Could also be the sandbox isn't working correctly, but if someone can verify what I'm doing I'd appreciate ruling in or out my own work here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attempting to do a little NETCONF sandbox demo, I keep getting:&lt;/P&gt;&lt;P&gt;"File "/opt/homebrew/lib/python3.11/site-packages/ncclient/manager.py", line 176, in connect&lt;BR /&gt;return connect_ssh(*args, **kwds)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/opt/homebrew/lib/python3.11/site-packages/ncclient/manager.py", line 143, in connect_ssh&lt;BR /&gt;session.connect(*args, **kwds)&lt;BR /&gt;File "/opt/homebrew/lib/python3.11/site-packages/ncclient/transport/ssh.py", line 364, in connect&lt;BR /&gt;self._auth(username, password, key_filenames, allow_agent, look_for_keys)&lt;BR /&gt;File "/opt/homebrew/lib/python3.11/site-packages/ncclient/transport/ssh.py", line 480, in _auth&lt;BR /&gt;raise AuthenticationError(repr(saved_exception))&lt;BR /&gt;ncclient.transport.errors.AuthenticationError: AuthenticationException('Authentication failed.')"&lt;/P&gt;&lt;P&gt;The script I'm using is:&amp;nbsp;&lt;A href="https://github.com/CiscoDevNet/python_code_samples_network/blob/master/NC-get-config/NC-get-config.py" target="_blank" rel="noopener"&gt;https://github.com/CiscoDevNet/python_code_samples_network/blob/master/NC-get-config/NC-get-config.py&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The command I'm using is:&amp;nbsp;python3 NC_get_config.py --host sandbox-iosxe-recomm-1.cisco.com -u developer -p C1sco12345 --port 830&lt;/P&gt;&lt;P&gt;Details of the host:&lt;/P&gt;&lt;P&gt;CSR1000V Host: sandbox-iosxe-recomm-1.cisco.com&lt;BR /&gt;SSH Port: 22&lt;BR /&gt;NETCONF Port: 830&lt;BR /&gt;RESTCONF Ports: 443 (HTTPS)&lt;BR /&gt;Username: developer&lt;BR /&gt;Password: C1sco12345&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2023 11:47:33 GMT</pubDate>
    <dc:creator>tristanh</dc:creator>
    <dc:date>2023-03-29T11:47:33Z</dc:date>
    <item>
      <title>NC_get_config.py failing with Sandbox</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/nc-get-config-py-failing-with-sandbox/m-p/4803865#M7935</link>
      <description>&lt;P&gt;Beginner with NETCONF here, could just be missing something obvious. Could also be the sandbox isn't working correctly, but if someone can verify what I'm doing I'd appreciate ruling in or out my own work here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attempting to do a little NETCONF sandbox demo, I keep getting:&lt;/P&gt;&lt;P&gt;"File "/opt/homebrew/lib/python3.11/site-packages/ncclient/manager.py", line 176, in connect&lt;BR /&gt;return connect_ssh(*args, **kwds)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/opt/homebrew/lib/python3.11/site-packages/ncclient/manager.py", line 143, in connect_ssh&lt;BR /&gt;session.connect(*args, **kwds)&lt;BR /&gt;File "/opt/homebrew/lib/python3.11/site-packages/ncclient/transport/ssh.py", line 364, in connect&lt;BR /&gt;self._auth(username, password, key_filenames, allow_agent, look_for_keys)&lt;BR /&gt;File "/opt/homebrew/lib/python3.11/site-packages/ncclient/transport/ssh.py", line 480, in _auth&lt;BR /&gt;raise AuthenticationError(repr(saved_exception))&lt;BR /&gt;ncclient.transport.errors.AuthenticationError: AuthenticationException('Authentication failed.')"&lt;/P&gt;&lt;P&gt;The script I'm using is:&amp;nbsp;&lt;A href="https://github.com/CiscoDevNet/python_code_samples_network/blob/master/NC-get-config/NC-get-config.py" target="_blank" rel="noopener"&gt;https://github.com/CiscoDevNet/python_code_samples_network/blob/master/NC-get-config/NC-get-config.py&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The command I'm using is:&amp;nbsp;python3 NC_get_config.py --host sandbox-iosxe-recomm-1.cisco.com -u developer -p C1sco12345 --port 830&lt;/P&gt;&lt;P&gt;Details of the host:&lt;/P&gt;&lt;P&gt;CSR1000V Host: sandbox-iosxe-recomm-1.cisco.com&lt;BR /&gt;SSH Port: 22&lt;BR /&gt;NETCONF Port: 830&lt;BR /&gt;RESTCONF Ports: 443 (HTTPS)&lt;BR /&gt;Username: developer&lt;BR /&gt;Password: C1sco12345&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 11:47:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/nc-get-config-py-failing-with-sandbox/m-p/4803865#M7935</guid>
      <dc:creator>tristanh</dc:creator>
      <dc:date>2023-03-29T11:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: NC_get_config.py failing with Sandbox</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/nc-get-config-py-failing-with-sandbox/m-p/4803902#M7936</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1485009"&gt;@tristanh&lt;/a&gt;&amp;nbsp;its failing as your username/password is not correct (&lt;SPAN&gt;AuthenticationError:) is you use the same details ssh to the device will also fail&lt;/SPAN&gt;. I think work was being done and password etc.. are being updated. Reserve this one&amp;nbsp;&lt;A href="https://devnetsandbox.cisco.com/RM/Diagram/Index/f2e2c0ad-844f-4a73-8085-00b5b28347a1?diagramType=Topology" target="_self"&gt;HERE&lt;/A&gt;&amp;nbsp;and try the code.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 12:57:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/nc-get-config-py-failing-with-sandbox/m-p/4803902#M7936</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2023-03-29T12:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: NC_get_config.py failing with Sandbox</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/nc-get-config-py-failing-with-sandbox/m-p/4805441#M7947</link>
      <description>&lt;P&gt;Thanks yeah, that's what I thought it was, I appreciate the second set of eyes!!&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 14:27:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/nc-get-config-py-failing-with-sandbox/m-p/4805441#M7947</guid>
      <dc:creator>tristanh</dc:creator>
      <dc:date>2023-03-31T14:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: NC_get_config.py failing with Sandbox</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/nc-get-config-py-failing-with-sandbox/m-p/4824962#M8082</link>
      <description>&lt;P&gt;anybody know if they fixed the username/password?&lt;/P&gt;
&lt;P&gt;i'm using the following and still getting same error&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;CSR1000V Host: sandbox-iosxe-recomm-1.cisco.com
&lt;UL&gt;
&lt;LI&gt;SSH Port: 22&lt;/LI&gt;
&lt;LI&gt;NETCONF Port: 830&lt;/LI&gt;
&lt;LI&gt;RESTCONF Ports: 443 (HTTPS)&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Username: &lt;SPAN&gt;developer&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Password: &lt;SPAN&gt;lastorangerestoreball8876&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Sun, 30 Apr 2023 19:44:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/nc-get-config-py-failing-with-sandbox/m-p/4824962#M8082</guid>
      <dc:creator>Sanito</dc:creator>
      <dc:date>2023-04-30T19:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: NC_get_config.py failing with Sandbox</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/nc-get-config-py-failing-with-sandbox/m-p/4826526#M8085</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1504043"&gt;@Sanito&lt;/a&gt;&amp;nbsp;the username and password are ok, but looks like the enable password has been removed or the developer username is no longer priv level 15&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 10:42:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/nc-get-config-py-failing-with-sandbox/m-p/4826526#M8085</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2023-05-02T10:42:52Z</dc:date>
    </item>
  </channel>
</rss>

