Saved Bookmarks
| 1. |
Solve : In a bind, any ideas?? |
|
Answer» HELLO, I'm in a bind. I have to leave in a couple of weeks, and I need to quickly set up a sort of connection monitor on my parents' computer for their internet. Their router is stuck in a separate room, so they can't tell what speed they are connected from Windows XP. I need to make an icon on their desktop that they can click on to quickly and easily view what speed their internet is connected at. A batch or script that simply WRITES 'Connected at full speed.' or 'Connected at half speed.' to a command prompt window would be more than sufficient. To find out what speed their internet is connected at, I typically have to type the following sequence of commands: start->run-> telnet 192.168.0.1 send: mypassword send: 24 (menu navigating) send: 1 (menu navigating) After doing this, the following shows up on telnet: CHAN Link Type TXPkt RXPkt Error CLU ALU Up Time B1 PeoplePC 64Kbps 1341306 1771895 0 71% 11% 2:16:10 B2 PeoplePC 64Kbps 1168961 1591175 0 81% 11% 2:16:08 If B2 has 'PeoplePC' next to it, that means the internet is connected at full speed (128k). If the internet is -NOT- connected at full speed, the screen looks like this, with a -- in place of B2 and 0Kbps next to it: CHAN Link Type TXPkt RXPkt Error CLU ALU Up Time B1 PeoplePC 64Kbps 1341367 1771968 0 0% 11% 2:19:38 -- Idle 0Kbps 1169041 1591256 0 0% 0% 0:00:00 To summarize, I need an icon they can click on which runs a script that will telnet into the router, navigate the menus, and then send a message back to the user via command prompt or some other method based upon what the router outputs above. Does ANYONE have any suggestions on what I could use to do this, something that doesn't require a large learning curve preferably? Thanks.I have a few ideas as to how to do this, but first: In Command Prompt, what shows up for telnet /? (redirect it to a TEXT fille by adding >> telnet.txt) Because it might be possible to send the information automatically, and then use findstr to see what shows up.Hi, this is what shows up from telnet /?: -a Attempt automatic logon. Same as -l option except uses the currently logged on user's name. -e Escape character to enter telnet client prompt. -f File name for client side logging -l Specifies the user name to log in with on the remote system. Requires that the remote system support the TELNET ENVIRON option. -t Specifies terminal type. Supported term types are vt100, vt52, ansi and vtnt only. host Specifies the hostname or IP address of the remote computer to connect to. port Specifies a port number or service name. There doesn't APPEAR to be any options for sending commands to the telnet session or way to tell if a certain text is shown. |
|