Skip to content

Conversation

svivesmdb
Copy link

This script retrieves information from a MongoDB deployment as getMongoData does but not include any sensible data such as the authentication details or sample documents so that it can be shared much more easily with customers.
Additionally a hard limit has been included to avoid the script evaluating too many collections which would cause running out of file descriptors.

section = "data_info";
var dbs = printInfo('List of databases', function(){return db.getMongo().getDBs()}, section);

if (dbs.databases) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation somehow got messed up here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants