Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Script

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
Green

Re: Script

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

122
Views
0
Helpful
1
Replies