Solved

logging stats from a router

Posted on 2004-03-31
5
222 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Hello , This is a short article on how would you go about enabling traceoptions on a Juniper router . Traceoptions are similar to Cisco debug commands but these traceoptions are implemented in Juniper networks router . The following demonstr…
Problem Description:   Couple of months ago we upgraded the ADSL line at our branch office from Home to Business line. The purpose of transforming the service to have static public IP’s. We were in need for public IP’s to publish our web resour…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now