Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Cisco Telnet

by mvip (Acolyte)
on Aug 19, 2013 at 11:23 UTC ( #1050015=note: print w/ replies, xml ) Need Help??


in reply to Re: Cisco Telnet
in thread Cisco Telnet

Tnx for the reply ... McA i wast trying with that but not working ... i put 10 seconds for timeout but nothing the script just end stoped ....


Comment on Re^2: Cisco Telnet
Re^3: Cisco Telnet
by McA (Curate) on Aug 19, 2013 at 11:30 UTC

    Hi,

    In Re: Cisco Telnet ~~David~~ is showing you how to wrap the call to login with an eval block to catch an exception. Then you are able to log that issue and proceed in your loop.

    Is that what you meant?

    McA

      well no, and i try that eval procedure and it just gave me the error massage that is saying the router is down and can't connect and the script end. I need something that will tel me that and continue. For example if i have 100 routers and the script start from 1 and as he going on 2,3,4,5 ... (lets say that router 10 is down ) when he comes to router 10 to say i can't connect to this router, and to moves on, and that is router 11, 12, 13 ... not to stop and end. For now iv try eval procedure and with sub routines and iv got nothing ... and i need this because i have to set the same config and settings on almost 300 routers and some of them are down some of them are not that ip end etc.

        Please let me see the code you used the last time.

        McA

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1050015]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (13)
As of 2014-10-25 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (144 votes), past polls