It would be nice to flag if the shell version if different than server (major version) something functionally equivalent to:
> if( dbv.slice(0,3)!=shv.slice(0,3)) print ("mismatched versions"); mismatched versions > db.version() 2.4.5 > version() 2.5.4
We already print the shell version and that can easily be mistaken by someone for server version.
Just printing server version would help just by itself...
MongoDB shell version: 2.5.4 connecting to: test MongoDB server version: 2.4.5
- links to