cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
155
Views
0
Helpful
6
Replies
Highlighted
Beginner

Change cli style per user

I know you can set the cli style to either juniper or cisco-xr in the ncs.conf for all users. Is the ability to do this per user an option? Was thinking something under the following 'user <user> session' and an added option of 'cli-style'. Then instead of being global it would be set on a per-user login to the cli.

6 REPLIES 6
Highlighted

Re: Change cli style per user

Do the users share the same shell?
If not, wouldn’t it just a matter of using an alias in the shell of users’ choice?

Best regards
Highlighted
Cisco Employee

Re: Change cli style per user

I believe you are referring of using the "ncs_cli" command. However, that is like a "console" and should not be used in production by non-admin users as it skips NACM rules.

 

Highlighted
Cisco Employee

Re: Change cli style per user

Sounds like an interesting new feature request. There are different settings that you can set for a user CLI session but I do not see an option for the CLI-style.

admin@ncs% set user admin session
Possible completions:
autowizard - Automatically query user for mandatory elems
complete-on-space - Enable/disable completion on space
devtools - Enable/disable development tools
display-level - Max depth to show when displaying configuration
history - History size
idle-timeout - CLI idle-timeout in seconds
ignore-leading-space - Ignore leading whitespace
paginate - Paginate output from CLI commands
prompt1 - Prompt for operational mode
prompt2 - Prompt for configure mode
show-defaults - Show default values when showing the configuration
admin@ncs%
Highlighted
Cisco Employee

Re: Change cli style per user

thanks for sharing, was not aware of this option:

admin@ncs(config)# user admin session ignore-leading-space

which will help on my labs that have an auto-formatted white space before each command on DevNet learning labs that is unavoidable :) and causing heartaches for students. 

Highlighted
Beginner

Re: Change cli style per user

This was my thought as well. It would be nice in a mixed environment to let the user decide on cli type instead of setting it globally in the ncs.conf.

Highlighted
Cisco Employee

Re: Change cli style per user

yes, talk to your Cisco contact to ask a feature request.