![]() ![]() ![]() ![]() |
Before you begin
When you register custom MBeans in the WebLogic Server Runtime MBean Server, WebLogic Server adds entries to a runtime management information base (MIB) module that it maintains for custom MBeans. For each custom MBean type, WebLogic Server adds a table to the MIB module. For each instance of the custom MBean, it adds a table row. While WebLogic Server does not persist the module as a file or other data structure, the OIDs in the MIB module remain constant across server sessions.
WebLogic Server SNMP agents cannot periodically poll values of custom MBeans and generate notifications if a value crosses a threshold. Instead, SNMP managers must send requests to WebLogic Server SNMP agents.
outputCustomMBeansMIBModule
operation in the server's
SNMPAgentRuntimeMBean
.
For example, if you use the WebLogic Scripting
Tool (WLST) to connect to a server named
myserver, the following WLST commands invoke the
outputCustomMBeansMIBModule
operation:
serverRuntime() cd('SNMPAgentRuntime/myserver') MODULE=cmo.outputCustomMBeansMIBModule() FILE = open("myfile.txt","w") FILE.writelines(MODULE) FILE.close()
For information on WebLogic Scripting tool, see
WebLogic Scripting Tool
. For information on the
outputCustomMBeansMIBModule
operation, see
SNMPAgentRuntimeMBean
.
The
outputCustomMBeansMIBModule
operation prints the generated MIB entries to
standard out.
![]() |