Showing results for 
Search instead for 
Did you mean: 
Create Post

NCM Config Details - Line Numbers Improvements

NCM Config Details - Line Numbers Improvements

Changes are required to the "Config Details" page so that all accounts that can view configurations can determine whether line numbers are displayed or not.

NCM allows you to view the configuration of a device.  The configuration is shown in the "Config Details" page.  The configuration is shown with line numbers to the left of each line.  There is an "Edit" button in the top right hand corner of the "Config Details" page.  If the account has the "Allow Account to Customize Views" privilege you are able to select the 'Edit' button on the "Config Details" page.  This then allows the user to un-tick or deselect the "Line Numbers" item.  If an account does have this privilege, they are presented with an angry error message stating that you are trying to access a "Restricted page" and that you need "Allow Account to Customize Views" privilege to access the page.

An interesting point about the thing about the "Line Numbers" item is that this appears to be user specific.  If one account changes this item it will only affect that account.  Other accounts will not be affected.

Some changes should be made to the "Config Details" page so that the "Line Numbers" item is improved:

- All accounts who have the authority to view configurations should be able to select whether they wish to see line numbers

- A global system option should be available to determine whether the default view of a configuration should include the line numbers

Please vote for this idea if you think it is worthy.

Level 17

I'll vote for this one twice. ... ... and thanks for figuring this out. As I am trying to find a way to remove the line numbers to allow a copy of config for my tech's with Read Only Access to NCM.

How do you copy and paste a config without having to remove the line numbers manually after your paste?

Level 10

I do hope that SolarWinds is considering improving the ability for users to determine if line number are included in the NCM config. I thank those people who have take the time out to vote for this suggestion and hope that it will be included in a future release.

So now to cahunt's query. There are probably a lot of different options out there to remove the configuration line numbers.

One option is to use the 'Replace' function of the text editor Notepad++ ( You can copy the config with the line numbers from the web page and paste it into a new text file in the Notepad++. When I do this there are a number of other characters that are around the line number that you will most likely want to remove. For me there is one pair of carriage return and line feed characters before the line number. After the line number there is a space, a tab and then two pairs of a carriage return and line feed character before the configuration line.

To use the Replace function in Notepad++ to remove the line numbers, use a 'Search Mode' of 'Regular expression' to remove the line numbers as well as the other characters that are around the line number. In my case this works for me:

          Find what: \r\n\d\d\d\d\d \t\r\n\r\n

          Replace with: (nothing)

          Search Mode: Regular Expression
Select the 'Replace All' button and all of the line numbers, except possibly the first line number at the top of the configuration, will be removed. If your configuration has six digits replace '\d\d\d\d\d' with '\d\d\d\d\d\d'.

For reference the string in the 'Find what' field translates to: carriage return and line feed (\r\n), five decimal digits (\d\d\d\d\d), a space ( ), tab character (\t), carriage return and line feed (\r\n), carriage return and line feed (\r\n).

Hopefully this will work for anyone out there who wants to remove the line numbers without having to resort to lots of manual changes to the config file.


... Simon

Level 17

Oh yeah, SimonEvans I have a few work a rounds. But I imagine things in a perfect world and just expect others will fall in line

Level 9

I hadn't realized that I could turn off the line numbers. That's handy. However, my biggest issue, even with the line numbers turned off, is that I'd like to be able to select, copy, and paste from that config detail window into a text document and right now I get extra CRLF's. I do this regularly as I'm building scripts for future changes. It would be handy if there was some way to display the configuration detail AND let me happily/easily copy and paste out of that window. Thanks.

Community Manager
Community Manager
Status changed to: Open for Voting