cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1959
Views
0
Helpful
3
Replies

Unable to get external packages installed in NX devbox using "pip install ncclient" or a docker pull

srustogi
Cisco Employee
Cisco Employee

I want to develop ncclient based python scripts in nexus devbox but i am unable to install any packages. How should one test netconf scripts with the devbox. I tried using guestshell directly on the virtual nexus switch and the same result (error) occurs. I can access the switch as well as devbox fine but they are not really useful if I can't install additional libraries like ncclient.

 

Please help.

 

Thx

 

Sudhir

3 Replies 3

Hello @srustogi by design the DevNet sandboxes have limited or no internet access - this is for security posture this is the reason you will see a failure in access external resources in this case.

 

Hope this helps.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

I understand the security posture but then why are common libraries such as ncclient not already part of the devbox. How is someone to test programmability then?

Hello @srustogi i do not know from the top of my head which libraries are installed on this devbox in this sandbox. Having a devbox in a Sandbox is useful for labs and demos, however, a big part of our devnet learning material is helping users become comfortable with running automation exercises on their own systems - as such we do not recommend running code from the devbox (unless stated a learning lab). Also, the devbox's are not permitted to allow sudo/admin access privs (again security reasons).

 

Typically I run all code from my local machine (Macbook) to the IP of the sandboxes.

 

Hope this helps.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io