cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
327
Views
0
Helpful
1
Replies

Script

amansoi_5
Level 1
Level 1

Sir,

Can we get a script wherein we can check the ISDN line of any site ?

That is the router has been configured with ISDN as backup & leased line as primary media . We just want to check the ISDN line .

In normal procedure we login into router and remove backup & check ISDN by entering isdn test call followed by other end ISDN (PRI ) number ..

We have got about 1000 sites wherein this practice becomes very tedious..

So to avoid this we are looking for a script where in enable password of router along with other necessary config is entered in the script for testing ISDN .

rgds,

aman

1 Reply 1

scottmac
Level 10
Level 10

Find someone that knows Perl.

There is a module called :Net::Telnet, and another module called Net::Telnet::Cisco. These are libraries of routines you can call for easier scripting.

Another possibility might be to use "expect"; expect is a fairly sophisticated query/response scripting system, available for free and runs on *nix or Windows.

There are some other scripts apps for Windows ... but their names escape me at the moment.

Scripting on the *nix side could also be a shell script (sh, bash, ksh, zsh ...), Python, Ruby, Tcl ...

The preferred language for this would probably be Perl (free: www.activestate.com for Windows, included in most *nix/BSD distributions).

If you can't find a programmer, then 'expect' would probably be your best bet (http://sourceforge.net/projects/expect) - it's also well docuemented, up to, and including, O'Reilly books.

Good Luck

Scott

Review Cisco Networking products for a $25 gift card