logging stats from a router

Posted on 2004-03-31
Last Modified: 2011-09-20
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?
Question by:johnlcox
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 27

Expert Comment

ID: 10727234
Just took a quick look at spec sheet - didn't see SNMP.  That would be the way to do it.

Author Comment

ID: 10731557
So you don't think there is any possible way to do it?
LVL 27

Accepted Solution

pseudocyber earned 250 total points
ID: 10731656
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.  :)

Author Comment

ID: 10732617
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.
LVL 27

Expert Comment

ID: 10732735
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 -

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Cisco RV042 router is a popular small network interfacing device that is often used as an internet gateway. Network administrators need to get at the management interface to make settings, change passwords, etc. This access is generally done usi…
Getting hacked is no longer a matter or "if you get hacked" — the 2016 cyber threat landscape is now titled "when you get hacked." When it happens — will you be proactive, or reactive?
After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question