Ravish Mody

Simple Network Management Protocol (SNMP) is a type of an application layer protocol which governs the exchange of management information between network devices. Now in webLogic server SNMP agents can be configured to collect data  from the webLogic server management system and communicate the results over the SNMP protocol. In this example we will see “How to Configure SNMP Agent in WebLogic Server?”

This could be a very useful tool for the administrators to keep a watch of what exactly is going on with the servers and take an actions accordingly. As weblogic server supports SNMP protocol like SNMPv1, SNMPv2 and SNMPv3 from weblogic server version 10 MP-3 we can do lot of things with it.


Some Advantages of Weblogic  SNMP Agents

  • Send notifications when any servers starts or has been shuts down.
  • Monitor any specific log messages or error message and send notifications when weblogic server generates them.
  • You can even use JMX monitors to poll weblogic server MBeans periodically and send notifications when the MBean attributes change in what ever way you want.
  • And lot more can be done with it.

Steps to Configure SNMP agent

1.  Start your WebLogic Server and Login to the Admin Console.

2.  Create a SNMP agent from the following console path

Domain Structure -> expand “Diagnostics” -> “SNMP”


Creating SNMP Agent


Giving SNMP Name


Selecting SNMP Agent


Configuring SNMP Agent


Targeting SNMP Agent

3. Once you target the SNMP agent on the running server then you will get the following output on the prompt which makes sure that our configuration is taken properly.


Output After SNMP is Targeted

4.  Now we will configure an Attribute changes on our SNMP agent to keep an eye on the changes done at an applications deployment order.


Selecting SNMP Agent


Creating Attribute Changes


Giving Attribute Changes Name


Selecting MBean Attribute - DeploymentOrder


Selecting Attribute Changes


Configuring Attribute Changes


Targeting Attribute Changes

5. After configuring Attribute changes now we will configure Trap destinations on our SNMP agent to send the notifications.


Selecting SNMP Agent


Configuring Trap Destination


Configuring Trap Destination

6.  Now open a new command prompt/shell and run the following command after running setDomainEnv.cmd / setDomainEnv.sh

java weblogic.diagnostics.snmp.cmdline.Manager SnmpTrapMonitor -p 165

Where -p is having the post given to the Trap Destination

7.  SNMP side configuration has been completed, now its time to test if everything is working fine as it should be. So from the Deployment  page go the application which you have chosen in the step 4 and from the configuration tab change the deployment order as shown below.

Console Path:

Deployment –> (YOUR APPLICATION) –> Configuration tab –> change Deployment Order


Deployment Page

8.  You can now notice that if you change the deployment order parameter you get the following output, which would indicate the the order has been change as shown in the below snap-shot.


Trap Result

You can monitor lot more by using the same steps and also configure log filtering, monitor particular string and many more things. Hence this way you can get alerts and keep knowing what is going on in your production environment.


Ravish Mody

If you enjoyed this post, please considerleaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.