[SERVER-22734] Add Enterprise designation to mongo --version Created: 18/Feb/16  Updated: 11/Aug/17  Resolved: 01/Aug/16

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 3.0.9, 3.2.1
Fix Version/s: 3.3.11

Type: Improvement Priority: Major - P3
Reporter: Danny Hatcher (Inactive) Assignee: Matt Cotter
Resolution: Done Votes: 12
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-30607 MongoS logs build info twice at startup Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.2
Sprint: Platforms 17 (07/15/16), Platforms 18 (08/05/16)
Participants:
Case:
Linked BF Score: 0

 Description   

Currently when running the --version flag with the mongo shell, it does not display whether or not the shell is Enterprise.

mongo --version

returns

MongoDB shell version: 3.2.1

Can we identify Enterprise in this output?



 Comments   
Comment by Githook User [ 01/Aug/16 ]

Author:

{u'username': u'Machyne', u'name': u'Matt Cotter', u'email': u'matt.cotter@mongodb.com'}

Message: SERVER-22734 unify --version output, thus adding enterprise designations
Branch: master
https://github.com/mongodb/mongo/commit/4c8cae0a1eaf70dbb5db6b39926eeda5da0fed3e

Comment by Githook User [ 15/Jul/16 ]

Author:

{u'username': u'monkey101', u'name': u'Dan Pasette', u'email': u'dan@mongodb.com'}

Message: Revert "SERVER-22734 add Enterprise to version in enterprise shell builds"

This reverts commit 472ac6b5bcb50e8869d03ecb044ce8ed3d779954.
Branch: master
https://github.com/mongodb/mongo/commit/1e438829940d85195818a4579f875f47dc460293

Comment by Githook User [ 14/Jul/16 ]

Author:

{u'username': u'Machyne', u'name': u'Matt Cotter', u'email': u'matt.cotter@mongodb.com'}

Message: SERVER-22734 add Enterprise to version in enterprise shell builds
Branch: master
https://github.com/mongodb/mongo/commit/472ac6b5bcb50e8869d03ecb044ce8ed3d779954

Comment by Matt Cotter [ 08/Jul/16 ]

How does this look?

$ ./mongo --version
MongoDB shell version: Enterprise 3.3.8-397-gafc7df4
 
$ ./mongo
MongoDB shell version: Enterprise 3.3.8-397-gafc7df4
connecting to: 127.0.0.1:27017/test
MongoDB server version: 3.3.8-393-g7c67f3a
WARNING: shell and server versions do not match
Server has startup warnings: 
2016-07-08T15:17:29.826-0400 I CONTROL  [initandlisten] 
2016-07-08T15:17:29.826-0400 I CONTROL  [initandlisten] ** NOTE: This is a development version (3.3.8-393-g7c67f3a) of MongoDB.
2016-07-08T15:17:29.826-0400 I CONTROL  [initandlisten] **       Not recommended for production.
2016-07-08T15:17:29.826-0400 I CONTROL  [initandlisten] 
2016-07-08T15:17:29.826-0400 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2016-07-08T15:17:29.826-0400 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2016-07-08T15:17:29.826-0400 I CONTROL  [initandlisten] 
MongoDB Enterprise > version()
Enterprise 3.3.8-397-gafc7df4

Generated at Thu Feb 08 04:01:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.