Is there a script or a way to export all cable modem statistics/datas to a text file?

Hi!

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.

Thank you in advance. :)

Reply to
Ant
Loading thread data ...

Which model? Perhaps it has SNMP capability? Can't tell, however, without model info.

Reply to
VAXman-

On 10/06/2008 05:38 PM, VAXman- @SendSpamHere.ORG sent:

The old cable modem was a Terayon TJ715x.

I believe the replacement is an Ambit U10C018 Data Cable Modem.

Reply to
1PW

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.

Reply to
Ant

Thanks 1PW. You rock. :)

Reply to
Ant

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: ?

Reply to
1PW

See that PDF manual. It starts on page 33 with screen shots.

Reply to
Ant

On 10/07/2008 08:04 AM, Ant sent:

Snip, snip...

Hi Phil:

If you are getting to the login page, what happens if you try to login:

User name: user Password: user

If you are not getting to this point, what does happen?

Eerily, that page 33 has a login screen that has an /evil/ Windows look to it... Be afraid Phil! Be very afraid! :-O

Pete

Reply to
1PW

formatting link
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.

:(

Reply to
Ant

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?

Reply to
1PW

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

Reply to
Ant

Does anyone know if there a way to remove the login page/prompt?

Reply to
Ant

I fiddled around with my text Web browsers:

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. :(

Reply to
Ant

On 10/09/2008 02:33 AM, Ant sent:

The next one is an important one.

The next one is an important one too.

I thought you were running Linux.

Mozilla's Firefox can store passwords.

Reply to
1PW

I am talking about text Web browsers. :) Remember, I SSH in terminals.

Reply to
Ant

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:

$ more ambitloop date date >> /home/ant/download/cablemodemresults.txt echo >> /home/ant/download/cablemodemresults.txt ping -c 1 192.168.100.1 >> /home/ant/download/cablemodemresults.txt echo >> /home/ant/download/cablemodemresults.txt elinks http://user:user@192.168.100.1/CmInfo.asp >> /home/ant/download/cablemodemresults.txt elinks http://user:user@192.168.100.1/CmStatus.asp >> /home/ant/download/cablemodemresults.txt elinks http://user:user@192.168.100.1/CmDnstream.asp >> /home/ant/download/cablemodemresults.txt elinks http://user:user@192.168.100.1/CmUpstream.asp >> /home/ant/download/cablemodemresults.txt elinks http://user:user@192.168.100.1/CmUpBurst.asp >> /home/ant/download/cablemodemresults.txt elinks http://user:user@192.168.100.1/CmOpConfig.asp >> /home/ant/download/cablemodemresults.txt elinks http://user:user@192.168.100.1/CmEventLog.asp >> /home/ant/download/cablemodemresults.txt echo >> /home/ant/download/cablemodemresults.txt echo -- >> /home/ant/download/cablemodemresults.txt echo >> /home/ant/download/cablemodemresults.txt sleep 60 /home/ant/bin/ambitloop

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?

Reply to
Ant

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.