?
Solved

logging stats from a router

Posted on 2004-03-31
5
Medium Priority
?
233 Views
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?
0
Comment
Question by:johnlcox
[X]
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
5 Comments
 
LVL 27

Expert Comment

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

Author Comment

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

Accepted Solution

by:
pseudocyber earned 500 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.  :)
0
 
LVL 2

Author Comment

by:johnlcox
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.
0
 
LVL 27

Expert Comment

by:pseudocyber
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 - http://solarwinds.net/Orion/index.htm
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
I recently attended Cisco Live! in Las Vegas, a conference that boasted over 28,000 techies in attendance, and a week of hands-on learning hosted by a solid partner with which Concerto goes to market.  Every year, Cisco displays cutting-edge technol…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), 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 (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), 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

752 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