com.agentpp.explorer.script.external
Interface Notification


public interface Notification

The Notification provides methods to access notification/trap information when a MIB Explorer script is executed triggered by a received notification, inform or trap.

Version:
1.5.12

Method Summary
 IObjectID getNotificationID()
          Gets the notification OID of the notification or trap the triggered the execution of this script.
 java.lang.String getPeerAddress()
          Gets the address of the peer that send the notification.
 java.lang.String getPeerHostname()
          Gets the hostname of the peer that send the notification.
 java.lang.String getPeerPort()
          Gets the port portion of the notification's peer address.
 java.lang.String getSeverity()
          Gets the severity/priority assigned for the notfification OID of this notification.
 

Method Detail

getNotificationID

IObjectID getNotificationID()
Gets the notification OID of the notification or trap the triggered the execution of this script.

Returns:
an IObjectID instance or null if the notification ID could not be determined (which would mean that the received trap/notification had a wrong encoding).

getPeerAddress

java.lang.String getPeerAddress()
Gets the address of the peer that send the notification.

Returns:
an address string (e.g. "192.168.0.1")

getPeerHostname

java.lang.String getPeerHostname()
Gets the hostname of the peer that send the notification.

Returns:
a hostname or address string (e.g. "www.mibexplorer.com" or "192.168.0.1"). The latter is returned if the hostname could not be resolved.

getPeerPort

java.lang.String getPeerPort()
Gets the port portion of the notification's peer address.

Returns:
a string containing the port of the notification's peer address, for example "162".

getSeverity

java.lang.String getSeverity()
Gets the severity/priority assigned for the notfification OID of this notification. The priority is assigned to an OID subtree in the properties dialog of the trap receiver.

Returns:
"DEBUG", "INFO", "WARN", "ERROR", or "FATAL".

Copyright 2003-2011, Frank Fock, All Rights Reserved. http://www.mibexplorer.com