Via SSH (text mode only), I cannot use Lynx and Elinks to access the cable modem's Web pages with statistics like my previous modems due to missing parts and datas.
Does anyone have a script to get from Web pages (after logging in) and output the results every seconds or more? I'd like to have logs into a file from the cable modem's statistics and logs. A Perl scripter couldn't get the login.html part to work due to 401 error.
Oh, I am an idiot! I'm sorry not to provide that information: Ambit U10C018 cable modem. I also e-mailed Ambit to see if they had anything to help as well.
You are a thoughtful and polite poster. You deserve no less. ...and it doesn't hurt that you live in the right time zone. :-)
Can you tell us exactly what happens when you try connecting to the replacement cable modem through your browser? What are the next events that happen after trying: ?
for screen captures of what I saw in my text Web browsers via SSH after logging into the cable modem successfully.
Yes, Windows stuff. It uses HTML, ASP, and JS from what I saw via Wireshark's elements list. :( I tried that telnet 192.168.100.1 80 and get command trick to see what the cable modem was running as a Web server, but that disconnected me:
$ telnet 192.168.100.1 80 Trying 192.168.100.1... Connected to 192.168.100.1. Escape character is '^]'. get Connection closed by foreign host.
Perhaps your Linux OS doesn't appear to be "Windows-ish" enough.
I take it then that you have yet to "see" your cable modem's Downstream page. Much less know your Downstream Receive Power Level and your Downstream SNR. Sigh!
So, you said in a previous post that "other house members" also use your Internet access. I wonder if one of them runs a Windows system, and, if you'd be able to try a modem login through their system(s).
Another alternative is to ask your service provider if they have any other /non-Ambit/ modems available?
Actually, I have no problem with GUI Web browsers from MS and non-MS OS'. The problem is that I can't view cable modem's logged in Web pages with text Web browsers if I am SSHing from outside of home. I also want to be able to have a script to record to a text file as a log like with the previous cable modem. So if my cable modem connection disconnect again, at least I can have before and after the quick disconnections to see what's going on. The Perl script developer, Bill, and I are having a hard time to log in to get to that. Here is what Bill scripted:
formatting link
...
AFAIK, only Ambit at this time. I tried to ask for Motorola brand that someone told me to get, but they didn't have it. Oh well, it's free and I don't get charged for the exchange. :(
I also got an e-mail reply from Ambit, and said to ask my cable modem provider. Pfffbt, that is not going to help since they won't know and didn't make these Web pages. :P
I know I can access any of these after I log in successfully. I CAN see the statistics. I just can't go from login.html Web page and go to these. I have to manually go to these Web pages to log in and view statistics correctly: http://192.168.100.1/CmInfo.asphttp://192.168.100.1/CmStatus.asphttp://192.168.100.1/CmDnstream.asphttp://192.168.100.1/CmUpstream.asphttp://192.168.100.1/CmUpBurst.asphttp://192.168.100.1/CmOpConfig.asphttp://192.168.100.1/CmEventLog.asp I am still struggling to get the login to work. Heh, I noticed these Web pages were from FrontPage. YUCK.
Damn, I wished there was a way to memorize the logins in my text browsers. Cable modem doesn't even have cookies. :(
OK, I got something out of a bash script after someone told me about http://user:user@192.168.100.1/ trick. Lynx didn't work nicely so I had to use eLinks:
At first, I ran it without sleep command and cable modem stopped responding to my http requests after about 30 minutes. I tried every 60 seconds/one minute, and that lasted longer (about seven hours). This is similiar to my old Terayon TJ715X modem. Why do cable modems block that? Ugh.
I also noticed I have extra processes from my script: $ ps aux |grep ambitloop ant 12415 0.0 0.0 4104 976 pts/7 S+ 21:47 0:00 screen ambitloop ant 12416 0.0 0.1 4236 1088 ? Ss 21:47 0:00 SCREEN ambitloop ant 12417 0.0 0.1 4368 1432 pts/2 Ss+ 21:47 0:00 /bin/sh /home/ant/bin/ambitloop ant 12472 0.0 0.0 4372 992 pts/2 S+ 21:48 0:00 /bin/sh /home/ant/bin/ambitloop ant 12568 0.0 0.0 4372 908 pts/2 S+ 21:49 0:00 /bin/sh /home/ant/bin/ambitloop ant 12600 0.0 0.0 3116 736 pts/1 S+ 21:49 0:00 grep
--color ambitloop
I am not a programmer/developer so I might be doing this wrong. :( Does anyone know how I can not keep getting extra processes?
Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.