<?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: Lab: &amp;quot;IOS XE on CSR Recommended Code&amp;quot; DevBox missing ncclient in DevNet Sandbox</title>
    <link>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/3957881#M4139</link>
    <description>Thanks for the update - i have opened to ticket with devnet ENG team for this sandbox to have those dependency installed.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Nov 2019 11:11:05 GMT</pubDate>
    <dc:creator>bigevilbeard</dc:creator>
    <dc:date>2019-11-13T11:11:05Z</dc:date>
    <item>
      <title>Lab: "IOS XE on CSR Recommended Code" DevBox missing ncclient</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/3956897#M4132</link>
      <description>&lt;P&gt;Hi Devnet team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am working with the IOS-XE CSR lab (RESTCONF/NETCONF).&amp;nbsp; It appears that the Dev box in this sandbox is missing the NETCONF client install.&amp;nbsp; Also, without external Internet access, I couldn't PIP install it.&amp;nbsp; Am I missing something?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;------------&lt;/P&gt;
&lt;P&gt;File "get_capabilities.py", line 3, in &amp;lt;module&amp;gt;&lt;BR /&gt;from ncclient import manager&lt;BR /&gt;ImportError: No module named ncclient&lt;/P&gt;
&lt;P&gt;------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to get NETCONF commands working from my local laptop, but seems as though the Dev server should be a one stop shop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Mike&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 23:48:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/3956897#M4132</guid>
      <dc:creator>micdenne</dc:creator>
      <dc:date>2019-11-11T23:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Lab: "IOS XE on CSR Recommended Code" DevBox missing ncclient</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/3957188#M4133</link>
      <description>&lt;P&gt;Hi there, i am sorry you are having difficulty with this sandbox (i am guessing you are using this one &lt;A href="https://devnetsandbox.cisco.com/RM/Diagram/Index/5977fea3-58da-4cd9-ade8-a95c79edfd1d" target="_blank" rel="noopener"&gt;here)&lt;/A&gt;. I have reserved one just now and ran the following for python 2 (default) and python 3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(venv) STUACLAR-M-R6EU:~ stuaclar$ ssh root@10.10.20.20
The authenticity of host '10.10.20.20 (10.10.20.20)' can't be established.
ECDSA key fingerprint is SHA256:IZJVFckeMZy8BIdcqaFRl5gFxs7LTD8L5Uu7XvvJVmo.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.10.20.20' (ECDSA) to the list of known hosts.
root@10.10.20.20's password:
Last failed login: Tue Nov 12 12:46:17 GMT 2019 from 192.168.104.1 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Wed Jun  6 14:40:15 2018 from 10.10.2.21
Updating Sample Code Repo
fatal: unable to access 'https://github.com/DevNetSandbox/sbx_iosxe/': Could not resolve host: github.com; Unknown error

Activating Python 2.7.13 Virtual Environment

*************************************************************
Welcome to the IOS XE Programmability Sandbox!

You are in '~/sbx_iosxe', which is a code samples repository for use with this Sandbox.  This repo is available at https://github.com/DevNetSandbox/sbx_iosxe.

A Python 2.7.13 Virtual Environment has been activated.  If you wish to work with Python 3.6, you can switch with:
    deactivate
    source ~/venv/python3/bin/activate

The IOS XE device is available at:
   IP:   10.10.20.48
   User: cisco
   Pass: cisco_1234!

Have fun!
(python2) [root@localhost sbx_iosxe]# pip freeze | grep ncc
ncclient==0.5.3
(python2) [root@localhost sbx_iosxe]# source ~/venv/python3/bin/activate
(python3) [root@localhost sbx_iosxe]# pip freeze | grep ncc
ncclient==0.5.3&lt;/PRE&gt;
&lt;P&gt;After this i went to&lt;/P&gt;
&lt;PRE&gt;(python3) [root@localhost netconf]# pwd
/root/sbx_iosxe/yang/netconf&lt;/PRE&gt;
&lt;P&gt;Then ran the python script&lt;/P&gt;
&lt;PRE&gt;(python3) [root@localhost netconf]# ls
get_capabilities.py  get_hostname.py  get_interfaces_config.py  get_interfaces.xml
(python3) [root@localhost netconf]# python get_capabilities.py
***Here are the Remote Devices Capabilities***
urn:ietf:params:netconf:base:1.0
urn:ietf:params:netconf:base:1.1
[removed]
urn:ietf:params:xml:ns:yang:smiv2:VPN-TC-STD-MIB
urn:ietf:params:xml:ns:netconf:base:1.0
urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults

        urn:ietf:params:netconf:capability:notification:1.1
(python3) [root@localhost netconf]#&lt;/PRE&gt;
&lt;P&gt;There should be no requirements to install any dependency for this. Please let me know if this helps or you have further questions, i am looking at the right sandbox etc...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 12:12:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/3957188#M4133</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2019-11-12T12:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Lab: "IOS XE on CSR Recommended Code" DevBox missing ncclient</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/3957392#M4135</link>
      <description>&lt;P&gt;Thanks for the clarification.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue I saw was actually on the devbox in the sandbox.&amp;nbsp; Lab was IOS-XE on CSR recommended code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[developer@devbox yang]$ cd netconf/&lt;BR /&gt;[developer@devbox netconf]$ python --version&lt;BR /&gt;Python 2.7.5&lt;/P&gt;
&lt;P&gt;[developer@devbox netconf]$ python get_capabilities.py&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "get_capabilities.py", line 3, in &amp;lt;module&amp;gt;&lt;BR /&gt;from ncclient import manager&lt;BR /&gt;ImportError: No module named ncclient&lt;BR /&gt;[developer@devbox netconf]$ pip install ncclient&lt;BR /&gt;DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.&lt;BR /&gt;Collecting ncclient&lt;/P&gt;
&lt;P&gt;---snip---&lt;/P&gt;
&lt;P&gt;WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('&amp;lt;pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fcea9f905d0&amp;gt;: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/ncclient/&lt;BR /&gt;ERROR: Could not find a version that satisfies the requirement ncclient (from versions: none)&lt;BR /&gt;ERROR: No matching distribution found for ncclient&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;^Z&lt;BR /&gt;[1]+ Stopped pip install ncclient&lt;/P&gt;
&lt;P&gt;[developer@devbox netconf]$&lt;/P&gt;
&lt;P&gt;etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understand correctly, is the only real way to run this through guestshell on the router?&amp;nbsp; I'm making that assumption as .48 is the router in the topology.&amp;nbsp; It wasn't clear from the lab docs what and where I should run my tasks.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 16:47:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/3957392#M4135</guid>
      <dc:creator>micdenne</dc:creator>
      <dc:date>2019-11-12T16:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Lab: "IOS XE on CSR Recommended Code" DevBox missing ncclient</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/3957428#M4136</link>
      <description>&lt;P&gt;Thanks, i was looking at the wrong sandbox as i see you are using this one &lt;A href="https://devnetsandbox.cisco.com/RM/Diagram/Index/e0922930-8833-477b-8317-f6dc7d85c1b9" target="_self"&gt;here&lt;/A&gt; - so slight difference here. When you first login there is no ncclient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[developer@devbox ~]$ pip list | grep ncc
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.&lt;/PRE&gt;
&lt;P&gt;What is meant to happen is for the user to installed the requirements.txt file (with pip)&lt;/P&gt;
&lt;PRE&gt;[developer@devbox ~]$ ls
bin  Desktop  Downloads  sbx_iosxe  shutdown.sh
[developer@devbox ~]$ cd sbx_iosxe/
[developer@devbox sbx_iosxe]$ ls
ansible-playbooks  guestshell  learning_labs  LICENSE  other  pull-requests.md  README.md  requirements.txt  sandbox_tests  yang
[developer@devbox sbx_iosxe]$ cat requirements.txt
ansible&amp;gt;=2.4.2.0
paramiko
requests
ncclient
pyang
[developer@devbox sbx_iosxe]$
[developer@devbox sbx_iosxe]$
[developer@devbox sbx_iosxe]$ pip install -r requirements.txt&lt;/PRE&gt;
&lt;P&gt;However, as you noted this does not happen due to the security posture of the sandbox. Can you share the link to the learning lab and i will have our team update the link or add libraries to the devbox template. In the mean time you can use the sandbox i linked in the past comment, which has this pre-installed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have never seen ncclient installed in the Guestshell, as this is meant to be used 'off-box' for netconf automation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 17:23:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/3957428#M4136</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2019-11-12T17:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Lab: "IOS XE on CSR Recommended Code" DevBox missing ncclient</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/3957515#M4137</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; That Sandbox (IOS XE on CSR Recommended Code) was what I was using.&amp;nbsp; &lt;A href="https://devnetsandbox.cisco.com/RM/Diagram/Index/cae403c2-27af-4c7d-b1e1-99b7d42f1504?diagramType=Topology" target="_self"&gt;Link&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Understand how it would be valuable to have the lab user pip install those packages - if they could :).&amp;nbsp; Sounds like the linux VM template does need to be updated to make that devbox fully functional.&amp;nbsp; Probably also worth looking at the other similar XE sandboxes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate the follow up.&amp;nbsp; Can mark this closed now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 19:44:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/3957515#M4137</guid>
      <dc:creator>micdenne</dc:creator>
      <dc:date>2019-11-12T19:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Lab: "IOS XE on CSR Recommended Code" DevBox missing ncclient</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/3957881#M4139</link>
      <description>Thanks for the update - i have opened to ticket with devnet ENG team for this sandbox to have those dependency installed.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Nov 2019 11:11:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/3957881#M4139</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2019-11-13T11:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Lab: "IOS XE on CSR Recommended Code" DevBox missing ncclient</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/4278649#M5714</link>
      <description>&lt;P&gt;I believe this is sandbox (IOS-XE on CSR latest Code) is still missing critical packages. I am unable to use the "requests" package even though it exists in the requirements.text file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On trying to do a pip install I get the error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-01-25 at 3.45.07 pm.png" style="width: 725px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/102613i9DEA79B6EF004115/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-01-25 at 3.45.07 pm.png" alt="Screen Shot 2021-01-25 at 3.45.07 pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As mentioned previously, due to the security posture of the sandboxes this cannot be installed from the internet. Can this issue be kindly looked into.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Olumide&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 07:58:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/4278649#M5714</guid>
      <dc:creator>olumide</dc:creator>
      <dc:date>2021-01-25T07:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lab: "IOS XE on CSR Recommended Code" DevBox missing ncclient</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/4278721#M5715</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/597759"&gt;@olumide&lt;/a&gt;&amp;nbsp;The issue was investigated and looked into in 2019, internet access to the always on sandbox as you noted is denied by security design.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 09:50:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/4278721#M5715</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2021-01-25T09:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Lab: "IOS XE on CSR Recommended Code" DevBox missing ncclient</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/4278969#M5716</link>
      <description>&lt;P&gt;Hi Stuart,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your prompt response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess my question is, how can obtain/install the request module in the aforementioned sandbox as I need to utliise certain methods in the module?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a work around?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 14:24:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/4278969#M5716</guid>
      <dc:creator>olumide</dc:creator>
      <dc:date>2021-01-25T14:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Lab: "IOS XE on CSR Recommended Code" DevBox missing ncclient</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/4279001#M5719</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/597759"&gt;@olumide&lt;/a&gt;&amp;nbsp;i am not aware of work around within the sandbox. The ENG team&lt;SPAN&gt;&amp;nbsp;always looking at ways to open up access, utilising AMP, Umbrella etc. It’s a question of balancing the security posture with the requirements for a given sandbox.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically for this function in my testing environment i run a CSR locally in Vagrant or in AWS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 15:03:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/4279001#M5719</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2021-01-25T15:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lab: "IOS XE on CSR Recommended Code" DevBox missing ncclient</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/4279440#M5720</link>
      <description>&lt;P&gt;Ok fair enough. I use vagrant strictly for Python scripting. I guess I will need to incorporate it with my network emulator - EVE-NG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your assistance Stuart.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 01:48:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/lab-quot-ios-xe-on-csr-recommended-code-quot-devbox-missing/m-p/4279440#M5720</guid>
      <dc:creator>olumide</dc:creator>
      <dc:date>2021-01-26T01:48:09Z</dc:date>
    </item>
  </channel>
</rss>

