[SERVER-9204] Provide more status information in shell prompt Created: 01/Apr/13  Updated: 01/Apr/13  Resolved: 01/Apr/13

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

Type: Improvement Priority: Major - P3
Reporter: Roy Smith Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

The shell prompt shows you the replica set name and server state:

songza:SECONDARY>

It would be useful if it also showed you the replica role. For example, we use "production" and "reporting" roles. Ad-hoc expensive queries we want to make sure only get done against the reporting member. Adding the role to the prompt would help recognize that you've connected to the proper host:

songza:SECONDARY/reporting>



 Comments   
Comment by Scott Hernandez (Inactive) [ 01/Apr/13 ]

Feel free to write your own prompt to do that.

Comment by Roy Smith [ 01/Apr/13 ]

Ugh, after posting this, I realized it made no sense. The roles I was speaking of are locally applied tags.

Comment by Scott Hernandez (Inactive) [ 01/Apr/13 ]

Where would this "role" come from?

You can customize the prompt any way you like by just writing a little JS: http://docs.mongodb.org/manual/faq/mongo/#how-can-i-customize-the-mongo-shell-prompt

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