View Single Post
  #2  
Old 03-05-2020, 02:57 PM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 1,015
Quote:
Originally Posted by automate View Post
I frequently check the running configuration for ports by typing:

show run int interface

Following this I look at interface statistics for the same port by typing:

show int interface

How can I create a script that will take the last show run int command and repeat as a show int command for the same port?
I probably wouldn't go the route of scripting.

Instead, I'd configure SecureCRT to enable the Copy on Select Global Option, and create buttons to send commands based on what's in the clipboard.

Here's how I'd create my buttons:

Here's how I'd enable SecureCRT to automatically copy to the clipboard whatever I select:

With such a configuration in place, I'd simply click the first button to show the interfaces...

...then I'd double-click the interface I was interested in (the easy way to select the word underneath the mouse cursor is to double-click it).

Because "Vlan1" now selected, it's also copied to the clipboard.
Knowing that what's in the clipboard is what I want to include in the next two commands (e.g. the \v portion), I'd then click my other two buttons in succession...

Low cost. High value. Time $aving$.

--Jake
Attached Images
File Type: png Forum14098_ButtonSetup.png (90.3 KB, 259 views)
File Type: png SCRT_GlobalOptions_Mouse_CopyOnSelect.png (31.6 KB, 259 views)
File Type: png Forum14098_ClickButton1.png (44.4 KB, 262 views)
File Type: png Forum14098_Select+CopyViaDoubleClick.png (43.9 KB, 265 views)
File Type: png Forum14098_ClickButton2.png (59.7 KB, 269 views)
File Type: png Forum14098_ClickButton3.png (74.6 KB, 268 views)
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support

Last edited by jdev; 03-06-2020 at 08:59 AM.
Reply With Quote