Skip to content

Instantly share code, notes, and snippets.

@shahabedinh
Last active May 28, 2020 18:45
Show Gist options
  • Select an option

  • Save shahabedinh/012a6a8c3487f831c746f9013b5de78d to your computer and use it in GitHub Desktop.

Select an option

Save shahabedinh/012a6a8c3487f831c746f9013b5de78d to your computer and use it in GitHub Desktop.

Revisions

  1. shahabedinh revised this gist May 28, 2020. 1 changed file with 9 additions and 4 deletions.
    13 changes: 9 additions & 4 deletions check_users_in_OpsManager.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,12 @@
    ## To check all users in the Ops Manager
    ## To query all users in the Ops Manager

    - Connect the Mongo Ops Manager AppDB using Mongo Shell
    - Run
    - use mmsdbconfig
    - db.config.users.find() or db.config.users.find().pretty()

    - `use mmsdbconfig`
    - `db.config.users.find()` or `db.config.users.find().pretty()`

    ## To query specific user in the Ops Manager
    - Connect the Mongo Ops Manager AppDB using Mongo Shell
    - Run
    - `use mmsdbconfig`
    - ` db.config.users.findOne({un : "shahab****"})`
  2. shahabedinh created this gist May 28, 2020.
    7 changes: 7 additions & 0 deletions check_users_in_OpsManager.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    ## To check all users in the Ops Manager

    - Connect the Mongo Ops Manager AppDB using Mongo Shell
    - Run
    - use mmsdbconfig
    - db.config.users.find() or db.config.users.find().pretty()