How to check if Mongodb enterprise is used

How to check if mongodb enterprise version is used? Is there a flag or property that I can request. mongod --version returns only the version.

+5
source share
4 answers

From the mongo support team if mongod -h | grep 'snmp-subagent' execution mongod -h | grep 'snmp-subagent' mongod -h | grep 'snmp-subagent' does not produce any results, most likely this is a community version (not an enterprise).

+4
source

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

There are at least three ways to find out if you are using Enterprise, I will leave this to you to determine the easiest for your case:

1) In recent versions of Ops Manager / Cloud Manager, the token is placed after the version number as "-ent". For example, 2.6.11 will display as "2.6.11-ent."

2) In the 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 

Please note that "modules: enterprise" is displayed only for Enterprise versions.

3) If you have only a binary file, you can check the version with the -version flag on the command line. For instance:

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

Please note that "modules: enterprise" is displayed only for Enterprise versions.

+6
source

In MongoDB version 3.6, you can get information if corporate modules were built or not through the mongo shell, and the output

 db.serverBuildInfo().modules 

In Enterprise, it will indicate:

 [ "enterprise" ] 

An empty array must be shown in the Community.

+1
source

MongoDB Enterprise Edition comes with advanced security features such as Kerberos or LDAP, as an alternative to password or certificate authentication, and they provide a support and training contract.

If you find any of these in your MongoDB, you are using Enterprise Edition.

If you use db.version() , it will simply return the version of the mongod or mongos instance.

0
source

Source: https://habr.com/ru/post/1233822/


All Articles