[DOCS-2899] Include example of how to run upgradeCheck Created: 11/Mar/14  Updated: 12/Mar/14  Resolved: 12/Mar/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.2

Type: Improvement Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: sprint-slipstream
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 9 years, 49 weeks, 1 day ago

 Description   

Because the output of the upgradeCheck() helper can be potentially very long, it makes sense to pipe output to a file rather than in the shell directly.

We should include something like the following example:

To connect to the admin database on localhost and use secondary:

# ./mongo --eval "db.getMongo().setSlaveOk();
                db.upgradeCheckAllDbs()" localhost/admin | tee /tmp/upgradecheck.txt

To connect to the myDb database and check the myColl collection on localhost of a primary, standalone or mongos:

# ./mongo --eval "db.upgradeCheck({collection:'myColl')" 
                 localhost/myDb | tee /tmp/upgradecheck.txt



 Comments   
Comment by Githook User [ 12/Mar/14 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-2650 DOCS-2899 upgradeCheck and log messages
Branch: master
https://github.com/mongodb/docs/commit/2ba557df948af7936c83ad859208ef9eb8b6db4d

Generated at Thu Feb 08 07:44:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.