MongoDB/March 2017: Difference between revisions
From charlesreid1
(Created page with "Covering some notes on MongoDB for the UGR wifi project. MongoDB goals: * Get it set up and working locally with a test database script ** Add records ** Drop records ** Quer...") |
No edit summary |
||
| Line 5: | Line 5: | ||
** Add records | ** Add records | ||
** Drop records | ** Drop records | ||
** Query records | ** Query records - for all records within a date range, for all records matching a mac address, for all clients on a certain network, for all macs matching a certain prefix pattern | ||
* Get | * Get MongoDB working over stunnel | ||
* Get | * Get MongoDB set up in a docker container with a persistent data storage volume | ||
Use the already-finished instructions here: | |||
* http://charlesreid1.com/wiki/Scapy/Wifi_Database | |||
Also use the PyMODM library: | |||
* https://pymodm.readthedocs.io/en/latest/getting-started.html#installation | |||
=Installing== | |||
==Mac== | |||
On a Mac, to test things out: | |||
<pre> | |||
brew install mongodb | |||
pip install pymodm | |||
</pre> | |||
==Ubuntu== | |||
On Ubuntu, the eventual server platform: | |||
<pre> | |||
apt-get install mongodb | |||
pip install pymodm | |||
</pre> | |||
Revision as of 07:07, 30 March 2017
Covering some notes on MongoDB for the UGR wifi project.
MongoDB goals:
- Get it set up and working locally with a test database script
- Add records
- Drop records
- Query records - for all records within a date range, for all records matching a mac address, for all clients on a certain network, for all macs matching a certain prefix pattern
- Get MongoDB working over stunnel
- Get MongoDB set up in a docker container with a persistent data storage volume
Use the already-finished instructions here:
Also use the PyMODM library:
Installing=
Mac
On a Mac, to test things out:
brew install mongodb pip install pymodm
Ubuntu
On Ubuntu, the eventual server platform:
apt-get install mongodb pip install pymodm