Users

All Posts (4)

avatar

adeems

Disabled

SSH syntax highlighting: support regular expressions

avatar
avatar
avatar
avatar
avatar
adeems
Disabled

interesting. good to know.

Have you noticed the command outputs to be slower then without regex syntax highlighting?

When you do a show run, are the pauses between pressing space bar noticeable while securecrt chew through the outputs?

There is no noticeable impact to the output of show run, even if you set the terminal length to 0, it outputs just as fast with regex syntax highlighting. If there were thousands of lines per second being outputted then I could see the reasoning behind not performing syntax highlighting because of a performance impact.

SSH syntax highlighting: support regular expressions

avatar
avatar
avatar
avatar
avatar
adeems
Disabled

Yes, SecureCRT has support regular expressions to match syntax highlighting for years. Specifically to your example, I have in a keyword file the following two strings to match mac addresses.

"(?:[a-f0-9]{2}[:-]){5}[a-f0-9]{2}",00408000,00000001

"[a-f0-9]{4}\.[a-f0-9]{4}\.[a-f0-9]{4}",00408000,00000001

I have attached my old keyword file with all of the various regular expressions to do the syntax highlighting. I think you can load the keyword file in a demo of SecureCRT for testing.

SSH syntax highlighting: support regular expressions

avatar
avatar
avatar
avatar
avatar
adeems
Disabled

Just FYI, I wouldn't be very hopeful for this feature.

I asked this same thing of SecureCRT before we purchased RDM.

Their rationale is that in order to support regular expressions in the outputs, the program (RDM) must first parse the entire output so it can run the expressions against, then present it to the user. This is incredibly resource intensive to try and do real-time.

It would almost certainly slow down command outputs to the point you would notice and think the interface is 'slow' or 'unresponsive'.

I am not sure when you switched to RDM, but I have seen secureCRT support syntax highlighting for years. In fact it was originally released back in 2009 on SecureCRT 6.5.

SSH syntax highlighting: support regular expressions

avatar
avatar
avatar
avatar
avatar
adeems
Disabled

Syntax highlighting would be an awesome feature. We currently have a Cisco keyword file that was built around SecureCRT and uses regular expressions.

It would be nice to have similar functionality with regular expressions to easily match dynamic output, such as IP Addresses, MAC addresses and interfaces.

1 - 4 of 4 items