cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
729
Views
5
Helpful
3
Replies
Highlighted

Turn off console logging in NSO

Is there a way to turn off the console logging that NSO has for commits?

My example is if someone (not me) is using NSO and performs a sync-from on a group of devices, on my terminal I see every single commit of the sync-from for each device. This can make it hard to see the output of the command that I am running (an action with meaningful output for example), as it will get lost in the sync-form commit messages.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Cisco Employee

There are some options in ncs.conf you can try out. They are documented in the ncs.conf man pages. After you update ncs.conf you need to restart NSO.

 

/ncs-config/cli/commit-message (boolean) [true]

CLI prints out a message when a commit is executed

 

/ncs-config/cli/suppress-commit-message-context (string)

This parameter may be given multiple times.

A list of contexts for which no commit message shall be displayed. A good value is [ system ] which will make all system generated commits to go unnoticed in the CLI. A context is either the name of an agent i.e cli, webui, netconf, snmp or any free form text string if the transaction is initated from Maapi

 

 

View solution in original post

3 REPLIES 3
Highlighted
Cisco Employee

There are some options in ncs.conf you can try out. They are documented in the ncs.conf man pages. After you update ncs.conf you need to restart NSO.

 

/ncs-config/cli/commit-message (boolean) [true]

CLI prints out a message when a commit is executed

 

/ncs-config/cli/suppress-commit-message-context (string)

This parameter may be given multiple times.

A list of contexts for which no commit message shall be displayed. A good value is [ system ] which will make all system generated commits to go unnoticed in the CLI. A context is either the name of an agent i.e cli, webui, netconf, snmp or any free form text string if the transaction is initated from Maapi

 

 

View solution in original post

Highlighted

I think this did the trick. Thanks.

Highlighted
Cisco Employee

Yes, in ncs.conf there is a setting /ncs-config/cli/commit-message that controls this.