Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-2899

Include example of how to run upgradeCheck

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • v1.3.2
    • None
    • manual

    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

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 49 weeks, 1 day ago