Skip to Content

SecureCRT Feature - Alt Select

If you are a SecureCRT user, here's a feature that might save you some time. Let's say you have a list of information in your terminal window that you'd like to copy - perhaps the output of "show ip interface brief." However, instead of the whole output, you only want the list of interfaces, not the rest of it. Normally, you would just highly the whole output of information and then either paste it as is or paste it in a notepad window and delete all the stuff you don't want. 

This gives you the following output:

R2#show ip int bri
Interface                  IP-Address      OK? Method Status                Protocol
Serial0/0                  unassigned      YES unset  up                    up      
Serial0/1                  unassigned      YES manual up                    down    
Serial0/2                  unassigned      YES unset  up                    down    
Serial0/3                  unassigned      YES unset  administratively down down    
FastEthernet1/0            10.1.1.2        YES manual up                    up      
FastEthernet2/0            192.168.100.2   YES manual up                    up      
Multilink1                 223.254.254.198 YES manual up                    up     

Well, there is another way. A much cleaner way...

In the same terminal window, simply hold down the Alt key while highlighting the specific area of data that you want. You will get a highlight box that conforms to where the mouse cursor is pointing. Here is a screenshot to demonstrate:

Now when you paste, you get the following ouput:

Interface       
Serial0/0       
Serial0/1       
Serial0/2       
Serial0/3       
FastEthernet1/0 
FastEthernet2/0 
Multilink1  

This comes in handy when building scripts, creating reports, or manipulating data on devices with many interfaces, like a fully populated 6509 or Nexus 7k. Note: On a Macbook Pro keyboard, to get Alt you have to hold down the function key (fn) then press the Option key.

Hopefully this tip helps you out. Feel free to share your own handy tips in the comments below.

Your rating: None Average: 5 (8 votes)

Comments

SecureCRT Chat

I like the chat feature which allows you to issue the same command to multiple sessions.

Putty as well :o)

You can also achieve the same in Putty. You need to hold down the Alt key on PCs and highlight only what you want to copy.

correct also any other

correct also any other terminal session...

Very nice tip, thanks Adam.

Very nice tip, thanks Adam.

Regarding MTPutty

please check MTPutty it has following features and more
-Multiple Putty Sessions at one place
-Alt feature to select the selected information
-and same command to multiple sessions via script feature.
-its free
http://ttyplus.com/multi-tabbed-putty/
Regards
gary

Thanks

Thanks a lot, i was looking for same thing for quite a while now but had a chance to search it.

Thanks very much Adam

in Konsole, use the

in Konsole, use the combination Ctrl+Alt+Left Mouse Button



Dr. Radut | blog