Solved

Web Based Network Management (SNMP)

Posted on 2003-11-07
10
259 Views
Last Modified: 2013-12-03
Hi all,

 I want to develop a system using JSP & struts frame work to manage our network. The network includes several elements like switches, routers, Modems etc.

 I want a good concept of developing this system using SNMP with Java. At present I got two solutions with me.

 1) Using JMAPI (Java Management Extension API).
 2) Advant Sets API.

 But when ever user click or any element which are shown in browser my Web server reads all the data from SNMP (get, Getnext) then it redirects the output to the user. But this process is very slow...

 I want to make some thing which does this operation asynchronously..Any Good Ideas for above problem..

 Please let me know if u need more information..

 thanking..

regards
lam.
0
Comment
Question by:lamdor
  • 5
  • 3
10 Comments
 
LVL 14

Expert Comment

by:kennethxu
ID: 9703194
You can run a dedicated thread to read the snmp data, construct a collection object and store it in web application scope, in certain interval.

JSP page will just look into the oject and display it.

Let me know if you have further enquires.
0
 
LVL 1

Author Comment

by:lamdor
ID: 9705164
Hi,

 Thanks,

 Actually I want to collect the data from a thread which always runs in specific intervals and stores the data in database (Oracle). When ever user request for the status then the data will be fetched from the database instead of querying the SNMP again and again.

 The above procedure is normally followed for making the task asynchronusly and fast. But I want any other solution which makes it more faster and stable like live data. This also can be achived using applets but is it good to use Applets in this case or not?..

At present i want to follow as below. Using EJB with Orion server. All EJB instances for each element will be refreshed when ever data is inserted/updated in the database. But how can I refresh the EJB's when the trigger (Insert/Update) fires on a table. How to achive this..?

 Can anybody help me in this regards.

 thank you,

with regards
lam.

 
0
 
LVL 14

Accepted Solution

by:
kennethxu earned 250 total points
ID: 9705861
Why do you have to save data in database? there is extra overhead to store/retrieve data in db. As I said, you can simple store data as application scope vars.

I don't think applet can make things any better.

Using EJB to keep the state is also a good idea. when you use EJB, it is strongly recommend to use CMP and don't make any changes to database bypassing EJB. There is no way you can refresh EJB when data is directly changed in database. So you snmp data collection thread should be updating data to EJB instead of database.

Let me know.
0
 
LVL 1

Author Comment

by:lamdor
ID: 9711971
Hi thanQ,

 Actually I also need to store the data in database for future reference and statistcs. So, Thats the reason I want to store the data in database from the thread and then db to ejb next.

 So there is no way we can refresh the beans(EJB Content Management Beans) from the database...But if that the case how can I make the operation sync with database-EJB.

 any other idea..How about MDB (Message Driven Beans) with SQL J..
 

 ThanQ for ur help..

0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 14

Expert Comment

by:kennethxu
ID: 9715460
>> how can I make the operation sync with database-EJB.
instead of let the thread write to database directly, let it call EJB to create/update new data. so EJB will be aware of any data change and always insync.
0
 
LVL 1

Author Comment

by:lamdor
ID: 9761606
Hi,
 
 Thanks for ur help..

 Actually the thing is I am thinking some what the concept of MBean with EJB for managing the applcation.

 but presently there is no full support for SNMP adaptor..how could I do..?

ThanQ.

0
 
LVL 14

Expert Comment

by:kennethxu
ID: 9768383
I think when you want to save to database, you should be using Entity Bean, that's the only data persistent EJB.
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 10147907
I don't think this Q should be deleted. asker was looking for general implementation advice, and advice was given. Asker then abandoned the Q.
Computer101, please have a look at asker's other Q history, thanks.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
A safe way to clean winsxs folder from your windows server 2008 R2 editions
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

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

19 Experts available now in Live!

Get 1:1 Help Now