Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 980 Bytes

quickstart_with_simulator.md

File metadata and controls

46 lines (36 loc) · 980 Bytes

Prepare

Python3

Create venv, install requirements and start app

$ cd ~
$ mkdir venv
$ cd venv
$ virtualenv -p python3 san_exporter

$ cd ~
$ git clone [email protected]:vCloud-DFTBA/san_exporter.git
$ cd ~/san_exporter

$ source ~/venv/san_exporter/bin/activate

$ pip install -r requirements.txt

Setup the 3parclient for simulator 3PAR storage

$ cd ~
$ git clone https://github.com/hpe-storage/python-3parclient.git
$ cd ~/venv
$ virtualenv -p python3 3parclient
$ source ~/venv/3parclient/bin/activate
$ cd ~/python-3parclient
$ pip install -r requirements.txt
$ pip install Flask
$ python test/HPE3ParMockServer_flask.py -port 5001 -user hpe3par_admin -password hpe3par_password -debug

Start app on the same machine

$ cd ~/san_exporter
$ source ~/venv/san_exporter/bin/activate
$ cp examples/3par_config.yml config.yml
$ python3 manage.py

# Check result

curl http://localhost:8888/3par_8440