View Single Post
  #1  
Old 06-12-2014, 02:18 PM
acampo acampo is offline
Registered User
 
Join Date: Jun 2014
Posts: 1
Question Scripts for Cisco IAD 243x

Howdy,

Got from a peer few scripts samplers to use with SecureCRT.
So far I'd been unable to make them work in my console(Win7).

Any suggestions as to how I can install them and make them work?

Here is one sample:

name: fdn.txt

&&&&&&&&&&&&&&&&&&&&&&&(separator)

# $language = "JScript"
# $interface = "1.0"

function main() {
str="fdn";
str +="\015";
crt.Screen.Send( str );
for (x=0 ; x<500000 ; ){x++};
str="zone";
str +="\015";
crt.Screen.Send( str );
}

&&&&&&&&&&&&&&&&&&&&&&&&&&&

BTW, got few more from same source, but these have a file extension (.key); as far as win7 these are viewed as registry keys.

I can't use them also.

Example:

show_run.key

On Notepad++, this file looks like this:

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

N VK_BACK "\010"
N VK_PRIOR SB_PAGE_UP
N VK_NEXT SB_PAGE_DOWN
N VK_END SB_END
N VK_LEFT VT_CURSOR_LEFT
N VK_UP VT_CURSOR_UP
N VK_RIGHT VT_CURSOR_RIGHT
N VK_DOWN VT_CURSOR_DOWN
N VK_DELETE "\177"
N VK_F1 RUN("C:\Documents and Settings\n9944364\Desktop\scripts\cisco.txt")("")
N VK_F2 RUN("C:\Documents and Settings\n9944364\Desktop\scripts\nvxcpe.txt")("")
N VK_F3 VT_PF3
N VK_F4 VT_PF4
N VK_F9 "show run"
N VK_F10 "show sip reg stat"
N VK_F12 "term len 0! show controller t1 ! Show isdn stat ! Show Memory ! Show proc cpu hist ! Show memory stat ! Show version ! Show run !"
E VK_PRIOR SB_PAGE_UP
E VK_NEXT SB_PAGE_DOWN
E VK_END SB_END
E VK_LEFT VT_CURSOR_LEFT
E VK_UP VT_CURSOR_UP
E VK_RIGHT VT_CURSOR_RIGHT
E VK_DOWN VT_CURSOR_DOWN
E VK_DELETE "\177"
C VK_BACK "\177"
C VK_TAB MENU_TAB_NEXT
C VK_PAUSE TN_BREAK
C VK_SPACE "\000"
C VK_PRIOR SB_LINE_UP
C VK_NEXT SB_LINE_DOWN
C VK_2 "\000"
C VK_6 "\036"
C VK_F4 MENU_TAB_CLOSE
C 0xBF "\037"
C 0xDC "\034"
C VK_SLASH "\037"
C VK_BACKSLASH "\034"
CE VK_PRIOR SB_LINE_UP
CE VK_NEXT SB_LINE_DOWN
S VK_BACK "\010"
S VK_DELETE "\177"
SE VK_DELETE "\177"
CS VK_TAB MENU_TAB_PREV
CS VK_2 "\000"
CS VK_6 "\036"
CS 0xBD "\037"
CS 0xBF "\037"
CS VK_QUESTION "\037"
CS VK_AT "\000"
CS VK_ASCIICIRCUM "\036"
CS VK_UNDERSCORE "\037"
A VK_RETURN MENU_TOGGLE_FULL_SCREEN
A VK_0 MENU_TAB_10
A VK_1 MENU_TAB_1
A VK_2 MENU_TAB_2
A VK_3 MENU_TAB_3
A VK_4 MENU_TAB_4
A VK_5 MENU_TAB_5
A VK_6 MENU_TAB_6
A VK_7 MENU_TAB_7
A VK_8 MENU_TAB_8
A VK_9 MENU_TAB_9

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&


Any guide/help will be appreciated.

Thanks!

Webmaster@NetTrendSolutions.com
Reply With Quote