Newb to Perl has asked for the wisdom of the Perl Monks concerning the following question:
This works fine on the inner routers within the network, since there is a manageable amount of data. On the routers that border the network, this command times out since there is too much data to process. I'm trying to find a way to run this command for a certain time period. For example:@data = $tnet->cmd('show ip cache flow');
I've been unsucessful in implementing this with the sleep command, probably due to my inexperience with Perl. Any help or suggestions are appreciated.until (5 seconds pass) { @data = $tnet->cmd('show ip cache flow'); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to break while reading data from a Cisco router?
by bruceb3 (Pilgrim) on Sep 16, 2007 at 04:01 UTC | |
|
Re: How to break while reading data from a Cisco router?
by laceytech (Pilgrim) on Sep 16, 2007 at 04:44 UTC | |
by Newb to Perl (Initiate) on Sep 17, 2007 at 00:16 UTC |