You are on page 1of 3

Installing pycurl

sudo apt-get install libcurl4-gnutls-dev librtmp-dev


pip install pycurl

sudo python2.7 setup.py install

resttest.py http://localhost:8000 test.yaml

rm -rf mamba/
rm -rf PyNOS/
sudo pip uninstall mamba
sudo pip install ansible ipaddress jinja2 lxml ncclient pyyaml requests sqlalchemy
tornado
git clone http://git.brocade.com:8080/PyNOS pynos
git clone http://git.brocade.com:8080/mamba
cd mamba/
bin/database.py
bin/init-pool.py
bin/generate-token --username=shobanats
bin/server &
ps -ef | grep server
kill -9 14177
bin/server &

GET http://localhost:8000/api/person/1

Replacing a file

rename 's/search/replace/;' mamba.db ma.db

stack@ubuntu-vm-122:~/pyresttest/pyresttest$ python resttest.py


http://localhost:8000 miniapp-test.yaml
{"failures": 0, "aggregates": [["total_time", "mean", 0.008186871287128713],
["total_time", "median", 0.008214], ["speed_download", "median", 53080.0]],
"group": "Default", "results": {"total_time": [0.010092, 0.009573, 0.009508,
0.008396, 0.009998, 0.00599700000000003, 0.006434, 0.008684, 0.008818,
0.0091, 0.006368, 0.009392, 0.009349, 0.010528, 0.007141, 0.015083, 0.009444,
0.009537, 0.008864, 0.010804, 0.008225, 0.007925, 0.0096, 0.008671, 0.011398,
0.016182, 0.009028, 0.008437, 0.009361, 0.008258, 0.005477, 0.010706,
0.007672, 0.007048, 0.00676, 0.008605, 0.007799, 0.011785, 0.008982, 0.005948,
0.010796, 0.006283, 0.004918, 0.005705, 0.006037, 0.009102, 0.007019,
0.008214, 0.006345, 0.006122, 0.006172, 0.007335, 0.006634, 0.00586, 0.007805,
0.006234, 0.005619, 0.007988, 0.007916, 0.005506, 0.005318, 0.006353,
0.006572, 0.006356, 0.004884, 0.005894, 0.005598, 0.009057, 0.005462,
0.011949, 0.010289, 0.008334, 0.005598, 0.008999, 0.006387, 0.006208,
0.010928, 0.010595, 0.005798, 0.007831, 0.007546, 0.007827, 0.009896,
0.009873, 0.007207, 0.009465, 0.009751, 0.010915, 0.008562, 0.008186,
0.009265, 0.009189, 0.008937, 0.008878, 0.008115, 0.008943, 0.007996,
0.007797, 0.006143, 0.007149, 0.008237], "size_download": [436.0, 436.0, 436.0,
436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0,
436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0,
436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0,
436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0,
436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0,
436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0,
436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0,
436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0, 436.0,
436.0, 436.0]}, "name": "Basic get"}
{"failures": 0, "aggregates": [["redirect_time", "mean", 0.0], ["speed_download",
"median", 19191.0], ["speed_upload", "median", 0.0]], "group": "Default", "results":
{}, "name": "Get single person"}

You might also like