Solved

Web Based Network Management (SNMP)

Posted on 2003-11-07
10
260 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Note: This is the second blog post in a series on email clearinghouses (https://www.xmatters.com/alert-management/blog-email-has-failed-us?utm_campaign=70138000000ydLoAAI&utm_source=exex&utm_medium=article&utm_content=blog-post).   Every month t…
We need a new way to communicate time sensitive or critical info.   The best part of my role at xMatters is visiting our clients all over the world to learn about how they operate their businesses, share insights that xMatters has gleaned across…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

939 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

4 Experts available now in Live!

Get 1:1 Help Now