Solved

Web Based Network Management (SNMP)

Posted on 2003-11-07
10
264 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
[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
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Is it possible to "sandbox" html content within a JSP? 4 117
Signatures in Outlook coming up too small 4 68
Font install problem 9 57
ejb on wildfly 5 65
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
The goal of this blog is to: > note what has impeded us from reaching effective life on-call > provide 3 steps to mastering life on-call > highlight what will be achieved with effective life on-call
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

710 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