Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if Mongodb enterprise is in use

Tags:

mongodb

How to check if mongodb's enterprise version is in use? Is there a flag or property I can query. mongod --version only returns the version.

like image 795
xoail Avatar asked Oct 15 '15 23:10

xoail


People also ask

How do I know if MongoDB is enterprise?

MongoDB Enterprise Edition comes with advance security features such as Kerberos or LDAP as an alternative to password-based or certificate-based authentication and they provide Support and training contract. If you find anyone of these in your MongoDB then you are using Enterprise Edition.

How do I check my MongoDB status?

To check the status of your MongoDB cluster, log in to the master or primary database server host using SSH, start the MongoDB command-line client using your administrative credentials, and run the following command within it: rs. status();

What is MongoDB Enterprise server?

The Enterprise Server is the commercial edition of MongoDB, which includes additional capabilities such as in-memory storage engine for high throughput and low latency, advanced security features like LDAP and Kerberos access controls, and encryption for data at rest.

What is the difference between MongoDB community and enterprise?

Core server features for developers are generally the same, but a MongoDB Enterprise subscription includes additional operational and management features, a commercial license (warranty & indemnification), as well as access to proactive support and on-demand training.


4 Answers

I recently asked this question on MongoDB JIRA. Here's reply:

There are at least three ways to discover if you're running Enterprise, I'll leave it to you to determine the easiest for your case:

1) In recent versions of Ops Manager / Cloud Manager a marker is placed after the version number as "-ent". For example, 2.6.11 would be shown as "2.6.11-ent".

2) In a Mongo shell you can check the connected server by running db.serverBuildInfo().gitVersion. Example output on 2.6.9:

>db.serverBuildInfo().gitVersion
df313bc75aa94d192330cb92756fc486ea604e64 modules: enterprise

Note the "modules: enterprise" is only shown for Enterprise versions.

3) If you have just the binary, you can check the version with the --version flag on the command-line. For example:

mongod --version
db version v2.6.9
git version: df313bc75aa94d192330cb92756fc486ea604e64 modules: enterprise
OpenSSL version: OpenSSL 1.0.1m-fips 19 Mar 2015

Note the "modules: enterprise" is only shown for Enterprise versions.

like image 134
Howard Lee Avatar answered Oct 10 '22 06:10

Howard Lee


In MongoDB version 3.6 you can get the information if the enterprise modules have been built or not via mongo shell and the output of

db.serverBuildInfo().modules

On Enterprise it will state:

[ "enterprise" ]

On Community an empty array should be shown.

like image 41
TeTeT Avatar answered Oct 10 '22 06:10

TeTeT


From mongo support team, if executing mongod -h | grep 'snmp-subagent' does not yield any results, it is likely to be community version (not enterprise).

like image 6
xoail Avatar answered Oct 10 '22 08:10

xoail


We can get this info from mongod --version, version:4.0.0 above for enterprise the modules will be (Enterprise), else it will be null

Enterprise version

enter image description here

Community version

enter image description here

like image 2
joel Raja Avatar answered Oct 10 '22 06:10

joel Raja