[SERVER-5829] equivalent of "show variables" from mysql in mongo Created: 11/May/12  Updated: 28/Apr/17  Resolved: 28/Apr/17

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Trivial - P5
Reporter: Mark Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

any


Participants:

 Description   

MySQL has "show variables" which shows all the final variables used. Mongo doesn't seem to have the equivalent in one command (but it has some).

For example, Mongo doesn't have a way to show which directory it is using if you don't pass the option in the config or command line. You can always compile mongodb to use different default directories, so there is no way to know for sure what the variable is if you rely on the default value being the same.

My need would be to able to which variables, db directory for example, are remotely without having to ssh to the box and look at log files.

So, a definitive command which shows all the final variables used would be awesome.



 Comments   
Comment by Andrew Morrow (Inactive) [ 28/Apr/17 ]

We believe the originally provided workaround gives sufficient information, in combination with the documented defaults, to understand how the server is configured. We are closing this as "Works as Designed", but please feel free to re-open the ticket if you have further questions.

Comment by Eliot Horowitz (Inactive) [ 14/May/12 ]

the combination of
db.adminCommand(

{ getParameter : "*" }

)
db.adminCommand( "getCmdLineOpts" )
get most of the things you want.
A nicer API for everything would be nice.

Generated at Thu Feb 08 03:10:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.