# General parameters

Execution command:

```
python pandora_mongodb -u <uri> -s <server> -d <databases> -a <alldatabases> -p <prefix> -c <collectionstats> [ -g <group> ] [ --data_dir <data dir> ] [ --as_agent_plugin 1]
```

If the execution is successful we will see an integer, which will be the database number we have.

[![4.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/scaled-1680-/4.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/4.png)

If we want to run it as an agent plugin, we will do it using the optional parameter "as\_agent\_plugin" with a "1" which will return an xml with the data of our server:

[![5.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/scaled-1680-/5.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-08/5.png)

This will only work if you put a single database with the -d parameter, it will not work with -a which is the parameter for all databases.