User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 456,467 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,768 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1366 | Replies: 7
Reply
Join Date: Sep 2007
Posts: 15
Reputation: xyte is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
xyte xyte is offline Offline
Newbie Poster

Router Information

  #1  
Sep 14th, 2007
In ASP.NET using C# or VB.NET 2005, how do you get the information from a router. Like say the routing table, router configuration, interface card infos?
Last edited by xyte : Sep 14th, 2007 at 2:34 am. Reason: Just added a phrase
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2006
Location: Bellevue, WA
Posts: 1,548
Reputation: Infarction has a spectacular aura about Infarction has a spectacular aura about Infarction has a spectacular aura about 
Rep Power: 8
Solved Threads: 51
Sponsor
Infarction's Avatar
Infarction Infarction is offline Offline
Battle Programmer

Re: Router Information

  #2  
Sep 14th, 2007
That's going to depend on the router, and - I'm guessing - would be difficult at best with those languages. If a router had a web-based interface, you could scrape the data, but that'll be a small portion of routers (might serve though). More likely you may have to automate a telnet/<remote access of choice> session to gather the data, and scrape that.
Reply With Quote  
Join Date: Sep 2007
Posts: 15
Reputation: xyte is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
xyte xyte is offline Offline
Newbie Poster

Re: Router Information

  #3  
Sep 14th, 2007
Originally Posted by Infarction View Post
That's going to depend on the router, and - I'm guessing - would be difficult at best with those languages. If a router had a web-based interface, you could scrape the data, but that'll be a small portion of routers (might serve though). More likely you may have to automate a telnet/<remote access of choice> session to gather the data, and scrape that.


I saw a working web-based application from one of the company's I visited last month. The company's developer managed to design a working web-based application using ASP.NET and VB.NET. I tried to asked him but he doesn't want to share his secrets. I guess I have to do it the hard way. I tried searching the web and till now no luck.

My aim is to create a web-based application that can get router information wheither CISCO or any other brand of router, and at the same time monitor who changed the setup or configuration of the routers. Taking into consideration the date it was changed and who was the user who logged and changed the router's setup and configuration. The application should also return a summary on what was changed and what was modified or what was deleted.
Reply With Quote  
Join Date: Apr 2005
Location: Dundee, Scotland
Posts: 12,883
Reputation: jbennet is just really nice jbennet is just really nice jbennet is just really nice jbennet is just really nice 
Rep Power: 32
Solved Threads: 304
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: Router Information

  #4  
Sep 14th, 2007
Originally Posted by Infarction View Post
That's going to depend on the router, and - I'm guessing - would be difficult at best with those languages. If a router had a web-based interface, you could scrape the data, but that'll be a small portion of routers (might serve though). More likely you may have to automate a telnet/<remote access of choice> session to gather the data, and scrape that.


If it was a decent router e.g cisco i guess you could use SNMP to do it?
TRY MY SUGGESTIONS AT YOUR OWN RISK

Master of puppets Im pulling your strings, blinded by me, you cant see a thing. Master! Master!
Reply With Quote  
Join Date: Sep 2007
Posts: 15
Reputation: xyte is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
xyte xyte is offline Offline
Newbie Poster

Re: Router Information

  #5  
Sep 14th, 2007
Originally Posted by jbennet View Post
If it was a decent router e.g cisco i guess you could use SNMP to do it?


VS.NET has a UDP.client class but I never tried it. Do you have a sample code that I can play with. How do you use SNMP (UDP port 162), and how do you authenticate to any kind of router so that you can gain access to that router?
Reply With Quote  
Join Date: Apr 2005
Location: Dundee, Scotland
Posts: 12,883
Reputation: jbennet is just really nice jbennet is just really nice jbennet is just really nice jbennet is just really nice 
Rep Power: 32
Solved Threads: 304
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: Router Information

  #6  
Sep 14th, 2007
I dont know but here is from wikipedia

SNMP exposes management data in the form of variables on the managed systems, which describe the system configuration. These variables can then be queried (and sometimes set) by managing applications.

This seems to be what you are after but no, sorry I have no experience in this area
TRY MY SUGGESTIONS AT YOUR OWN RISK

Master of puppets Im pulling your strings, blinded by me, you cant see a thing. Master! Master!
Reply With Quote  
Join Date: Sep 2007
Posts: 15
Reputation: xyte is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
xyte xyte is offline Offline
Newbie Poster

Re: Router Information

  #7  
Sep 14th, 2007
Originally Posted by jbennet View Post
I dont know but here is from wikipedia



This seems to be what you are after but no, sorry I have no experience in this area



Thanks for the help. I'll try to research on SNMP. If by chance you find a link can you post it thru this Thread?

Thanks....
Reply With Quote  
Join Date: Apr 2005
Location: Dundee, Scotland
Posts: 12,883
Reputation: jbennet is just really nice jbennet is just really nice jbennet is just really nice jbennet is just really nice 
Rep Power: 32
Solved Threads: 304
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: Router Information

  #8  
Sep 14th, 2007
TRY MY SUGGESTIONS AT YOUR OWN RISK

Master of puppets Im pulling your strings, blinded by me, you cant see a thing. Master! Master!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 2:21 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC