Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.management.runtime
Interface SNMPAgentRuntimeMBean

All Superinterfaces:
DynamicMBean, MBeanRegistration, NotificationBroadcaster, RuntimeMBean, WebLogicMBean

public interface SNMPAgentRuntimeMBean
extends RuntimeMBean

Runtime information for an SNMP agent that is running in the current WebLogic Server domain.

Since:
9.0.0.0
See Also:
SNMPAgentMBean, SNMPAgentDeploymentMBean

Method Summary
abstract  long getAttributeChangeTrapCount()
          The number of attribute change notifications that this SNMP agent has sent to all trap destinations since the agent's host server was started.
abstract  long getCounterMonitorTrapCount()
          The number of counter monitor notifications that this SNMP agent has sent to all trap destinations since the agent's host server was started.
abstract  int getFailedAuthenticationCount()
          The number of requests that this agent has rejected because of incorrect user credentials.
abstract  int getFailedAuthorizationCount()
          The number of requests that this agent has rejected because an authenticated user does not have sufficient privileges to view the requested information.
abstract  int getFailedEncryptionCount()
          The number of requests that this agent has rejected because of incorrect privacy (encryption) credentials
abstract  long getGaugeMonitorTrapCount()
          The number of gauge monitor notifications that this SNMP agent has sent to all trap destinations since the agent's host server was started.
abstract  long getLogMessageTrapCount()
          The number of log message notifications that this SNMP agent has sent to all trap destinations since the agent's host server was started.
abstract  int getMasterAgentXPort()
          The port that this SNMP agent uses to communicate with subagents.
abstract  long getMonitorTrapCount()
          The total number of all notifications that this SNMP agent has sent to all trap destinations since the agent's host server was started.
abstract  long getServerStartTrapCount()
          The number of serverStart notifications that this SNMP agent has sent to all trap destinations since the agent's host server was started.
abstract  long getServerStopTrapCount()
          The number of serverShutdown notifications that this SNMP agent has sent to all trap destinations since the agent's host server was started.
abstract  String getSNMPAgentName()
          Gets the name of the SNMPAgent MBean configuration that is currently active.
abstract  long getStringMonitorTrapCount()
          The number of string monitor notifications that this SNMP agent has sent to all trap destinations since the agent's host server was started.
abstract  int getUDPListenPort()
          The UDP port on which this SNMP agent is listening for incoming requests from SNMP managers.
abstract  void invalidateLocalizedKeyCache(String username)
          Immediately invalidates the cached security keys for the specified WebLogic Server user.
abstract  boolean isRunning()
          Indicates whether this SNMP agent is running.
abstract  String outputCustomMBeansMIBModule()
          Returns WebLogic Server's MIB module for custom MBeans as a java.lang.String.

 

Methods inherited from interface weblogic.management.runtime.RuntimeMBean
addPropertyChangeListener, removePropertyChangeListener

 

Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParent

 

Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes

 

Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister

 

Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener

 

Method Detail

isRunning

boolean isRunning()

Indicates whether this SNMP agent is running.

Returns:
indicator of whether SNMPAgent is functioning
Since:
10.0.0.0

getAttributeChangeTrapCount

long getAttributeChangeTrapCount()

The number of attribute change notifications that this SNMP agent has sent to all trap destinations since the agent's host server was started.

Returns:
the number of AttributeChange Traps issued
Since:
10.0.0.0

getMonitorTrapCount

long getMonitorTrapCount()

The total number of all notifications that this SNMP agent has sent to all trap destinations since the agent's host server was started.

Returns:
the number of ALL Monitor Traps issued
Since:
10.0.0.0

getCounterMonitorTrapCount

long getCounterMonitorTrapCount()

The number of counter monitor notifications that this SNMP agent has sent to all trap destinations since the agent's host server was started.

Returns:
the number of Counter Monitor Traps issued
Since:
10.0.0.0

getGaugeMonitorTrapCount

long getGaugeMonitorTrapCount()

The number of gauge monitor notifications that this SNMP agent has sent to all trap destinations since the agent's host server was started.

Returns:
the number of Gauge Monitor Traps issued
Since:
10.0.0.0

getStringMonitorTrapCount

long getStringMonitorTrapCount()

The number of string monitor notifications that this SNMP agent has sent to all trap destinations since the agent's host server was started.

Returns:
the number of String Monitor Traps issued
Since:
10.0.0.0

getLogMessageTrapCount

long getLogMessageTrapCount()

The number of log message notifications that this SNMP agent has sent to all trap destinations since the agent's host server was started.

Returns:
the number of Log Message Traps issued
Since:
10.0.0.0

getServerStartTrapCount

long getServerStartTrapCount()

The number of serverStart notifications that this SNMP agent has sent to all trap destinations since the agent's host server was started.

Returns:
the number of Server Start Traps issued
Since:
10.0.0.0

getServerStopTrapCount

long getServerStopTrapCount()

The number of serverShutdown notifications that this SNMP agent has sent to all trap destinations since the agent's host server was started.

Returns:
the number of Server Stop Traps issued
Since:
10.0.0.0

getUDPListenPort

int getUDPListenPort()

The UDP port on which this SNMP agent is listening for incoming requests from SNMP managers.

SNMP agents can also communicate through the host server's TCP listen port (7001 by default) or through a TCP port that is configured by a custom network channel.

Returns:
the UDP listen port on which this agent is available
Since:
10.0.0.0
See Also:
SNMPAgentMBean.getSNMPPort()

getMasterAgentXPort

int getMasterAgentXPort()

The port that this SNMP agent uses to communicate with subagents.

The agent uses subagents to provide access to custom MBeans (MBeans that you create and register) and to other Oracle software components. WebLogic Server SNMP agents do not enable users to register their own subagents.

Since:
10.0.0.0

outputCustomMBeansMIBModule

String outputCustomMBeansMIBModule()
                                   throws ManagementException

Returns WebLogic Server's MIB module for custom MBeans as a java.lang.String. You can save the String to a file and then load the file into a MIB browser.

When you register custom MBeans in the WebLogic Server Runtime MBean Server, WebLogic Server adds entries to a runtime 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 MIB module as a file or other data structure, the OIDs in the module remain constant across server sessions.

Returns:
The MIB definition for the custom MBean entries.
Throws:
ManagementException
Since:
10.0.0.0

getFailedAuthenticationCount

int getFailedAuthenticationCount()

The number of requests that this agent has rejected because of incorrect user credentials.

Returns:
Number of authentication attempt failures
Since:
10.0.0.0

getFailedAuthorizationCount

int getFailedAuthorizationCount()

The number of requests that this agent has rejected because an authenticated user does not have sufficient privileges to view the requested information. You use the WebLogic Server security realm to assign privileges to users.

Returns:
Number of authorization failures
Since:
10.0.0.0

getFailedEncryptionCount

int getFailedEncryptionCount()

The number of requests that this agent has rejected because of incorrect privacy (encryption) credentials

Returns:
Number of encryption failures
Since:
10.0.0.0

invalidateLocalizedKeyCache

void invalidateLocalizedKeyCache(String username)

Immediately invalidates the cached security keys for the specified WebLogic Server user.

An SNMP security key is an encrypted version of an SNMP agent's engine ID and an authentication password or privacy password. WebLogic Server generates one security key for each entry that you create in the SNMP credential map. When a WebLogic Server SNMP agent receives an SNMPv3 request, it compares the key that is in the request with its WebLogic Server keys. If it finds a match, it processes the request. The SNMP agent also encodes these keys in its responses and notifications. (You configure which keys are encoded when you create a trap destination.)

Instead of regenerating the keys for each SNMPv3 communication, WebLogic Server caches the keys. To make sure that the cache contains the latest set of SNMP credentials, WebLogic Server periodically invalidates the cache. After the cache is invalidated, the next time an SNMP agent requests credentials, WebLogic Server regenerates the cache.

Note that making a change to the credential map does not automatically update the cache. Instead, the cache is updated only after it has been invalidated.

Instead of waiting for WebLogic Server to invalidate the cached entry for a key, you can invalidate it immediately.

Parameters:
username - Name of the user
Since:
10.0.0.0
See Also:
SNMPAgentMBean.getLocalizedKeyCacheInvalidationInterval()

getSNMPAgentName

String getSNMPAgentName()

Gets the name of the SNMPAgent MBean configuration that is currently active. Returns null if no SNMPAgent configuration is currently active on this Server.

Since:
10.0.0.0

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09