<?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: How to use the DevNet NETCONF-YANG and RESTCONF AO SandBox in DevNet Sandbox</title>
    <link>https://community.cisco.com/t5/devnet-sandbox/how-to-use-the-devnet-netconf-yang-and-restconf-ao-sandbox/m-p/3812722#M3404</link>
    <description>&lt;P&gt;Hi Hank,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am actually going through those courses and just now getting to try the labs.&amp;nbsp; But if I try this based on the python example, I get errors.&amp;nbsp; Any idea what I am doing wrong?&amp;nbsp; See below.&amp;nbsp; I tried different ports and get the same result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Frank&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;F:\&amp;gt;python F:\python\netconf_entity.py -a 10.1.1.1 -u root -p D_Vay!_10&amp;amp; --port 10000&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "F:\python\netconf_entity.py", line 58, in &amp;lt;module&amp;gt;&lt;BR /&gt;with manager.connect_ssh(host=args.host, port=args.port, username=args.username, hostkey_verify=False, password=args.password) as m:&lt;BR /&gt;File "C:\Users\Frank P. Troy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\ncclient\manager.py", line 128, in connect_ssh&lt;BR /&gt;session.connect(*args, **kwds)&lt;BR /&gt;File "C:\Users\Frank P. Troy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\ncclient\transport\ssh.py", line 384, in connec&lt;BR /&gt;raise SSHError("Could not open socket to %s:%s" % (host, port))&lt;BR /&gt;ncclient.transport.errors.SSHError: Could not open socket to 10.1.1.1:830&lt;BR /&gt;'--port' is not recognized as an internal or external command,&lt;BR /&gt;operable program or batch file.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2019 18:53:04 GMT</pubDate>
    <dc:creator>franktroy</dc:creator>
    <dc:date>2019-03-01T18:53:04Z</dc:date>
    <item>
      <title>How to use the DevNet NETCONF-YANG and RESTCONF AO SandBox</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/how-to-use-the-devnet-netconf-yang-and-restconf-ao-sandbox/m-p/3805972#M3388</link>
      <description>&lt;P&gt;Hi I am new to this sandbox&amp;nbsp;&lt;A href="https://devnetsandbox.cisco.com/RM/Diagram/Index/27d9747a-db48-4565-8d44-df318fce37ad?diagramType=Topology" target="_blank"&gt;https://devnetsandbox.cisco.com/RM/Diagram/Index/27d9747a-db48-4565-8d44-df318fce37ad?diagramType=Topology&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I issue commands to the device or log in?&amp;nbsp; Can someone provide pointers?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Frank&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 09:46:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/how-to-use-the-devnet-netconf-yang-and-restconf-ao-sandbox/m-p/3805972#M3388</guid>
      <dc:creator>franktroy</dc:creator>
      <dc:date>2019-06-04T09:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the DevNet NETCONF-YANG and RESTCONF AO SandBox</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/how-to-use-the-devnet-netconf-yang-and-restconf-ao-sandbox/m-p/3809127#M3393</link>
      <description>&lt;P&gt;The credentials for the sandbox and the ports the interfaces run on are all listed in the lab details at the link you shared. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also checkout the Learning labs on NETCONF/RESTCONF for some example walkthroughs of using the Sandbox. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learninglabs.cisco.com/modules/intro-device-level-interfaces" target="_blank"&gt;Introduction to Model Driven Programmability (ex: NETCONF/YANG)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hank&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 15:45:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/how-to-use-the-devnet-netconf-yang-and-restconf-ao-sandbox/m-p/3809127#M3393</guid>
      <dc:creator>hapresto</dc:creator>
      <dc:date>2019-02-25T15:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the DevNet NETCONF-YANG and RESTCONF AO SandBox</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/how-to-use-the-devnet-netconf-yang-and-restconf-ao-sandbox/m-p/3809397#M3394</link>
      <description>&lt;P&gt;Hi Hank,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I click "Try it Now" I have no way to enter commands.&amp;nbsp; This Resource Commands Window pops up but provides no way to input commands.&amp;nbsp; The only directions provided are SSH Port, NETCONF Port, etc and Username and Password for the box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do I start first python?&amp;nbsp; Sorry this is so confusing at first.&amp;nbsp; I need a step by step guide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Frank&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 21:07:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/how-to-use-the-devnet-netconf-yang-and-restconf-ao-sandbox/m-p/3809397#M3394</guid>
      <dc:creator>franktroy</dc:creator>
      <dc:date>2019-02-25T21:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the DevNet NETCONF-YANG and RESTCONF AO SandBox</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/how-to-use-the-devnet-netconf-yang-and-restconf-ao-sandbox/m-p/3809938#M3395</link>
      <description>&lt;P&gt;Hey Frank,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no interactive command shell within the portal web page for an Always On Sandbox like this one. &amp;nbsp;(Reservable Sandboxes do have options to gain access to an SSH connection through the portal). &amp;nbsp;To use the sandbox, you would use tools like Postman or Python code on your workstation directly to the device using the credentials and address listed in the instructions. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, this curl command run from a bash shell connects to the RESTCONF agent on the device and retrieve some details about GigabitEthernet 1 (if you've a bash shell, you can just run this command).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -k \
    -u 'root:D_Vay!_10&amp;amp;' \
    -H "Accept: application/yang-data+json" \
    "https://ios-xe-mgmt.cisco.com:9443/restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet1?fields=name;description"
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are just getting started with network automation and programmability, first let me welcome you aboard. &amp;nbsp;You're in a great place. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A great place to start your journey, even before diving into the sandbox, is the "Start Now" area of DevNet&amp;nbsp;&lt;A href="http://developer.cisco.com/startnow" target="_blank"&gt;http://developer.cisco.com/startnow&lt;/A&gt; . &amp;nbsp;Specifically take a look at the Coding &amp;amp; APIs and EN Networking tracks. &amp;nbsp;They will help get you started and on the way. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you prefer video format, you can join me in the Network Programmability Basics (&lt;A href="https://developer.cisco.com/video/net-prog-basics/" target="_blank"&gt;https://developer.cisco.com/video/net-prog-basics/&lt;/A&gt;) course. &amp;nbsp;That'll also walk you through the fundamentals of programmability and help you get started quickly. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another great resource are the labs in this module -&amp;nbsp;&lt;A href="https://learninglabs.cisco.com/modules/dev-setup" target="_blank"&gt;https://learninglabs.cisco.com/modules/dev-setup&lt;/A&gt;. They will walk you through installing the key development tools on your workstation, no matter the OS. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All along the way you'll get a chance to use this particular sandbox, as well as others on different platforms. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hank&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 14:12:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/how-to-use-the-devnet-netconf-yang-and-restconf-ao-sandbox/m-p/3809938#M3395</guid>
      <dc:creator>hapresto</dc:creator>
      <dc:date>2019-02-26T14:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the DevNet NETCONF-YANG and RESTCONF AO SandBox</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/how-to-use-the-devnet-netconf-yang-and-restconf-ao-sandbox/m-p/3812722#M3404</link>
      <description>&lt;P&gt;Hi Hank,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am actually going through those courses and just now getting to try the labs.&amp;nbsp; But if I try this based on the python example, I get errors.&amp;nbsp; Any idea what I am doing wrong?&amp;nbsp; See below.&amp;nbsp; I tried different ports and get the same result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Frank&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;F:\&amp;gt;python F:\python\netconf_entity.py -a 10.1.1.1 -u root -p D_Vay!_10&amp;amp; --port 10000&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "F:\python\netconf_entity.py", line 58, in &amp;lt;module&amp;gt;&lt;BR /&gt;with manager.connect_ssh(host=args.host, port=args.port, username=args.username, hostkey_verify=False, password=args.password) as m:&lt;BR /&gt;File "C:\Users\Frank P. Troy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\ncclient\manager.py", line 128, in connect_ssh&lt;BR /&gt;session.connect(*args, **kwds)&lt;BR /&gt;File "C:\Users\Frank P. Troy\AppData\Local\Programs\Python\Python37-32\lib\site-packages\ncclient\transport\ssh.py", line 384, in connec&lt;BR /&gt;raise SSHError("Could not open socket to %s:%s" % (host, port))&lt;BR /&gt;ncclient.transport.errors.SSHError: Could not open socket to 10.1.1.1:830&lt;BR /&gt;'--port' is not recognized as an internal or external command,&lt;BR /&gt;operable program or batch file.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 18:53:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/how-to-use-the-devnet-netconf-yang-and-restconf-ao-sandbox/m-p/3812722#M3404</guid>
      <dc:creator>franktroy</dc:creator>
      <dc:date>2019-03-01T18:53:04Z</dc:date>
    </item>
  </channel>
</rss>

