Look into implementing something like Dijkstra shortest path. It seems to already be implemented in http://search.cpan.org/~dburdick/Boost-Graph-1.2/Graph.pm#dijkstra_shortest_path
Alright, I'm so close to getting this finished now. I've tweaked the errmode setting so it doesn't close the connection and hang the router.
Only problem is that my @nat scalar never contains any data. Why?
# ----------------------------------------------------------------------------
#...
Here is the entire listing of the routers commands.
If you think the router forum would have people that know how to deal with this ZyXEL issue, that'd be great. I've already posted this question on the dslreports.com ZyZEL and programming forum, but never got anyone that knew anything.
Thanks for the ideas dmazzini. Unfortunately, my ZyXEL router does not have a terminal length command nor splits pages up with --More--.
This is what I see when I issue the command thats multiple pages:
P334W> ip nat iface enif1 st
Iface enif1 Internet Network Address Translation:
Table...
Thanks for the idea dmazzini, but the autopage command by default matches '/(?m:\s*--More--)/' (via more_prompt). My router doesn't show anything when it wants user input.
I've tried setting the prompt to just \n, but it didn't work.
1) There is already a telnet library specifically for Cisco: http://search.cpan.org/dist/Net-Telnet-Cisco/Cisco.pm. It seems when cisco has multiple pages, it displays some text like -more-, which of course can be easily matched. My router displays no prompts.
2) I'm not sure how the Open2...
I've got a ZyXEL P334W router and am trying to write a Perl telnet script to retrieve some information. The problem I'm running into is that when I issue the ip nat iface enif1 st command, the router displays it in several pages. It wants a space or Enter press to display the other pages. Since...
I'm trying to get SNMP installed on a friends SP2 computer. It stops to ask for http.mi_ (it has stopped on ftp.mi_ inetserv.mi_, ipforwd.mi_, and other files when I've tried before). On the computer, there is the I386 folder with SP2 slipstreamed into it. I have tried feeding the Setup the SP2...
I need help/resources to accomplish the following task, which I haven’t the slightest idea how to do.
Design an ALU (3 bit) for and XYZ MPU device using ABEL or schematic capture that meets the following specifications:
1. the ALU has two 3-bit input busses for Operand Data AI: (AI0 ->AI2) and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.