logging stats from a router

We have a Netgear FS526T router.  It displays basic stats on all the ports, however I would like to write a program that will keep a log of the stats on a daily basis.  Without keeping daily logs there is no way to compare the data transfer from day to day.  I was hoping to write a program in Java and to have it parse the statistics page and create a new log file on the computer running the program.  

The problem that I foresee is that the router uses a browser login to see the statistics.  I was hoping to be able to have the java program call up the login script like "cgi_login?passwd=password", and the passwd field is the name of the field in the login form.  The login form doesn't have an action though, so I don't know how i can call the processing script to actually login from my java program.  the form is declared as "<form name=login method=POST>".  I'm assumming it probably uses some sort of cgi script that is perhaps built into the login page.

Does anyone have any suggestions on how I could login without actually typing into the login form and clicking the submit button?  Any ideas on how I can get it to process the variables in my uri?
Who is Participating?
pseudocyberConnect With a Mentor Commented:
Well, given enough $$$ anything is possible ... ;)

I've seen a really cool interface engine program - I think it was called Microscript.  It could emulate a user at a keyboard typing in information, wait, type in more, etc.  Then when the screen came up, it would "scrape" the info off the screen and put it in some other program.  You could get this thing up and running and turn it loose on a machine and it would look like someone sitting there entering info, reading it, and manually putting it in another program.  It was AWESOME.  And it cost about $50K.

BUT, to do what you're talking about, there are two methods which exist - one is SNMP which can get CPU util, port utilization, memory, some errors, etc.  Then the other is Remote Monitoring - RMON.  Both of these were developed to allow an API to get the exactly the same thing you want to do.  Unfortunately, they're USUALLY only supported on "professional" gear - like Cisco, Nortel, 3Com, Foundry, Extreme, etc.  I've seen some on some mid level gear like Asante and the "high end" SOHO MANAGED equipment.

So, it looks like your switch isn't "high end" enough - briefly looking through Netgear's site, it looks like their layer 3 switches include SNMP and RMON but their layer 2's don't.

It would be a heck of a lot easier to get a professional switch - you could pick up a Baystack 450 off Ebay for about $350 or an older Cisco Catalyst.

Sorry.  :)
Just took a quick look at spec sheet - didn't see SNMP.  That would be the way to do it.
johnlcoxAuthor Commented:
So you don't think there is any possible way to do it?
johnlcoxAuthor Commented:
Maybe i'll just write a program that can create the logs after I have manually logged in.  We just bought these switches, so I don't think we can buy some different ones this soon.  Since the only problem preventing me from automated logging is the login process, I think i can just make a program that I can click a button for it to create a log after I have manually logged into the switch through a browser.
Ok.  Too bad, because there's cool programs that already do what you're trying to do - but the network gear has to support SNMP and RMON.

An example is Solar Winds Orion - http://solarwinds.net/Orion/index.htm
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.