Infoblox Exchange Cybersecurity Roadshow 2020 – Join us!
North America | Europe | Middle East/Africa | Asia-Pacific

Automation Scripts


Best way to install additional Python modules on NetMRI appliance?

Posts: 9
6171     0

I would like to install some additional Python modules for use in NetMRI scripts.  It doesn't look like pip is installed in the sandbox by default.  What is the best way to install new modules to have them work from scripts and not interfere with any system processes?  Thanks for any info.

Re: Best way to install additional Python modules on NetMRI appliance?

Posts: 408
6172     0

SSH into the NetMRI appliance type in “sandbox login”


Then run the following

I used the following script to install it and then we were able to install other modules via “pip install”


So now in the UI Python scripts you can use the new installed module.


NOTE:  I have not tested if the “sandbox” gets upgraded, if it resets these modules or not.



[root@sandbox ~]# wget 
--2017-12-21 08:14:20-- 
Connecting to||:443... connected. 
HTTP request sent, awaiting response... 200 OK 
Length: 1595408 (1.5M) [text/x-python] 
Saving to: `' 
100%[===========================================================================================>] 1,595,408    212K/s   in 11s     
2017-12-21 08:14:32 (145 KB/s) - `' saved [1595408/1595408] 
[root@sandbox ~]# python3 
Collecting pip 
 Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB) 
   100% |████████████████████████████████| 1.3MB 105kB/s 
Collecting wheel 
 Downloading wheel-0.30.0-py2.py3-none-any.whl (49kB) 
   100% |████████████████████████████████| 51kB 113kB/s 
Installing collected packages: pip, wheel 
Successfully installed pip-9.0.1 wheel-0.30.0 
[root@sandbox ~]# pip install whateveryou want

Follow me on LinkedIn:

Re: Best way to install additional Python modules on NetMRI appliance?

[ Edited ]
Posts: 57
6172     0

If there is no internet connection on the sandbox you can use the following workaround to upload script or modules to sandbox:


Upload the script or module to the sandbox environment by using SCP to send the file into the administrator shell's /Backup/Sandbox directory (below is an example):
scp admin@


In the administrative shell, the /Backup/Sandbox directory maps to the /mnt/host/data/userdata directory inside the sandbox. After the file has been successfully uploaded to the sandbox, login to the sandbox via the administrative shell.
sandbox login


Once inside the sandbox, use the standard installation procedure to install script or modules located at
/mnt/host/data/userdata. As an example:


#cd /mnt/host/data/userdata
#pip install package_name



The above information will also be added to Admin Guide in Future Releases of NetMRI

Showing results for 
Search instead for 
Do you mean 

Recommended for You