Solved

logging stats from a router

Posted on 2004-03-31
5
229 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
  • 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 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.  :)
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

Don't miss ATEN at NAB Show April 24-27!

Visit ATEN at NAB Show to learn how our "Seamlessly Entertaining" solutions deliver fast, precise video streaming without delays for the broadcasting and media environment. ATEN will showcase its 16x16 Modular Matrix Switch (VM1600) and KVM Over IP Solution (KE6900 series).

Question has a verified solution.

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

Suggested Solutions

While it is possible to put two routes in place with the secondary having a higher metric, this may not always work. In the event of a failure that does not bring down the physical interface on the router the primary route is not removed. There is a…
In this tutorial I will show you with short command examples how to obtain a packet footprint of all traffic flowing thru your Juniper device running ScreenOS. I do not know the exact firmware requirement, but I think the fprofile command is availab…
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…

685 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