Solved

Mbeans with Jboss and SNMP adaptor how?

Posted on 2003-11-16
10
442 Views
Last Modified: 2011-10-03
Hi all,

 I am in developing a NMS(Network Mgmt Sys). I need a small help..

 I want to develop the application using JMX architecture and I donno how to proceed.

 Is there any supported server JMX MBean concept at present (Jboss?),
 SNMP Adaptor is supported in it or not..?
 From where can I start developing the application ?

 NMS -> A Web - based application for management of several (100's) of switches & routers of an organization. this application must be fast and web based.

 Please gimme some suggestions ..

 Thanking you all..experts
with regard
lam.
0
Comment
Question by:lamdor
  • 6
  • 4
10 Comments
 
LVL 9

Expert Comment

by:vzilka
ID: 9777049
I know a bit about NMS, and I can't really see why you need JMX. You ahve agents that collect the information. They probably work with SNMP.

If you need to monitor a J2EE application server, than JMX is a good option.
ALl major servers currently support JMX to some extent (WLS, WAS, Oracle, JBoss). It means you can query the server for information (including performance information) and perform some actions.
However, the name of the beans, and the way to access them, is different between each server. This should change in J2EE 1.4, with the introduction of JSR 77 that defines the names of components inside the J2EE server.

About SNMP, almost all servers have some SNMP support, but I wouldn't use it ;-)
0
 
LVL 1

Author Comment

by:lamdor
ID: 9841174
Hi,

 The specification for JMX says that we can manage a network by using JMX. That means we can manage all network elements like switches, routers, gateways etc. So at present I donno from where to start implementing these things usering JMX. I know how to do this by using normal java beans.

 Can you gimme some information regarding JMX with SNMP?.

 Is my understanding of JMX is right?.

 Thanking you,

regards
eve of chirs!
lam
0
 
LVL 9

Expert Comment

by:vzilka
ID: 9844832
JMX is a specification for building MBeans which can be later deployed in an MBean server.
You can build your own MBeans for each network item, or you can build MBeans that encapsulate information found in SNMP agents.
Check out this product (I don't know it, but it looks promising)
http://www.koshna.com/products/KSX/index.asp
0
 
LVL 1

Author Comment

by:lamdor
ID: 9854659
thanks a lot.

 But I jave decided not to use Mbean time being since there is not much help and not fully implemented and I don't have enought time too..

 So, I am using following architecture.

[                    ]          [                ]                      [      ]
[ SNMP Beans  ] <---> [ Servlets/ ]   < ===== >[ DB ]
[                    ]           [ Threads  ]                    [      ]

 a deamon thread will be running and by using normal SNMP beans it will connect to several elements and gather the data and then inserts into database.

 [      ]              [                  ]                     +++++++++
 [ DB ] <====>[tomcat with ] <=======>+ Browser +
 [      ]              [ Struts         ]                     +++++++++

When ever administrator requests for managing elements I collects data from database and display it for management. instead of querying the elements with SNMP Beans I use asynchronus way..

 But I donno this architecture holds good or not..
 
Can anybody tell me is the above works okay?

thanks
lam.
0
 
LVL 9

Expert Comment

by:vzilka
ID: 9857923
For the second stage it is great.
For the first - I wouldn't recommend it. Tomcat wouldn't be too good for waking up periodically and gathering information on all the beans. Since you are using pull technology (to my understanding) that means you are constantly querying the SNMP beans, you would probably have to write down your own service that will do that.

If the SNMP has a way of sending information themselves to the server, then the first drawing will work.
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 1

Author Comment

by:lamdor
ID: 9872060
thanks for your reply,

 The first architecture what I told, I have changed it to a service with many threads.. The service will be running as server at back end(User has to start the service). Then the service will open individual thread to each element and gather informaion and stores in database.

 the second architecture is same i.e(that is) when user click for an opetaion to view the statics the data is collected from database and diaplyed the graphs for performance of the elements (jfreeChart) I am using.

 Is it holds good..?I am in confusion about my architecture becoz I have no experience on NMS based systems and I don't have anybody to help me here..

thanks.
regards
lam.
0
 
LVL 9

Expert Comment

by:vzilka
ID: 9872673
You can contact me by mail.
The architecture stands, and is infact very popular for NMS systems.

The design for the service is quite complex actually, as it has to be highly available.

0
 
LVL 9

Expert Comment

by:vzilka
ID: 9893849
lamdor, is everything working?
0
 
LVL 1

Author Comment

by:lamdor
ID: 10050288
Hi vzilka,

 I am sorry for my late response I was on vacation and had very sleepy holidays..^^

 Thanks for your reply.

 Yeh!.I have followed the architecture as we discussed and wrote the service in Java using JDMK tool kit it is prosently gathering information from agents and able to insert into the database. But I have make some performance improvements since there may be some thousends of elements in a network so, if my program has to gather the information from all of them it will get heck some where I hope.

 Please gimme some more information about that..

Thanks..

With Regards
lam.
0
 
LVL 9

Accepted Solution

by:
vzilka earned 125 total points
ID: 10050544
Some of the new things I am doing now is using the Selector class in java.nio. It will allow you to scale better when you recieve info from many clients.
Also, check Doug Lea concurrency utils. This library will help you to build worker threads easily, so that each thread can handle an info message from one of your clients.
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack 7.0.0.23 or Above. The following steps a…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

759 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

24 Experts available now in Live!

Get 1:1 Help Now