Remote Operation
Each vlun is shipped with a packaged version of the python code on the machine, and to guarantee compatability, the remote machine should install the python version from the host.
Recommended Installation
From the remote system
Example getting install code from system 192.168.100.167
We recommend installing to a virtual environment (Setting up a virtualenv)
python3 -m venv sanblaze_venv
Activate the virtualun environment
source sanblaze_venv/bin/activate
Install the python package (replace 11.0.1+3 with the version downloaded above)
pip install sanblaze-11.0.1+3-py3-none-any.whl --upgrade
Install requirements
pip install -r requirements.txt
Use the api remotely
(sanblaze_venv) usr:~$ python3 Python 3.9.5 (default, Nov 23 2021, 15:27:38) [GCC 9.3.0] on linux Type “help”, “copyright”, “credits” or “license” for more information. >>> from legacy.sanblaze_apis import XML_API >>> dut = XML_API(tester_IP=’192.168.100.167’, target=100, port=0, raw_return=2) >>> dut.get_logpage(0x1, page_control=1) Command Identify passed on port 0 target 100 in tester 192.168.100.167 Command output is decoded as follows: …
Note
where sanblaze_apis would be use ‘as is’ now it is referenced as ‘legacy.sanblaze_apis’
other packages are similarly named. ‘sanblaze_test_api’ is now ‘sanblaze.sanblaze_test_api’
Troubleshooting
What about the other files that I used to move over?
These files now in exist in a package structure, and by following the install process, you can guarantee that you have all the updates.