Die Push- bzw. Pull-Methoden ergeben sich aus den NOTIFICATION-TYPE Makros eines MIB-Moduls, da mit diesem festgelegt wird, welche Managementinformation in einem SNMP-Trap enthalten ist.
Für jeden NOTIFICATION-TYPE Makro werden diese Schnittstellen um insgesamt drei Methoden erweitert und zwar:
Die Parameter enthalten jeweils die OID und den Kontext der Quellinstanz sowie den Zeitpunkt des Traps. Folgendes Beispiel des NOTIFICATION-TYPE linkUp erläutert die Vorgangsweise genauer:
... linkUp NOTIFICATION-TYPE OBJECTS { ifIndex } STATUS current DESCRIPTION ``A linkUp trap signifies that the SNMPv2 entity ...'' ::= { snmpTraps 4 } ...
Damit stehen zunächst die Namen der Funktionen fest: linkUp für die Schnittstelle SnmpNotifications einerseits und pull_linkUp sowie try_linkUp für die Schnittstelle PullSnmpNotifications andererseits. Mit der Funktion try_linkUp kann abgefragt werden, ob bei einem Supplier eine solche Ereignismeldung vorliegt. Der Rückgabewert der Methode ist entweder true oder false. Die beiden anderen Methoden liefern keine Werte zurück.
In der optionalen OBJECTS-Klausel werden jene MIB-Variablen aufgelistet, deren Werte zusätzlich mit der Ereignismeldung verschickt werden. Im obigen Beispiel besteht diese Liste nur aus der MIB-Variable ifIndex, also dem Index des entsprechenden Zeileneintrags in der Interfaces-Tabelle. Die OBJECTS-Klausel wird auf eine IDL-Struktur abgebildet. Ihr Name ergibt sich aus dem Deskriptor des NOTIFICATION-TYPE-Makros, der um das Suffix Type ergänzt wird. Die Elemente entsprechen den MIB-Variablen in der OBJECTS-Liste; deren Datentyp wird aus der SYNTAX-Klausel des jeweiligen OBJECT-TYPE-Makros bestimmt. Zusätzlich werden der IDL-Struktur ein weiterer in-Parameter der Methode linkUp sowie jeweils ein weiterer out-Parameter der Methoden pull_linkUp und try_linkUp hinzugefügt. Es sei darauf hingewiesen, daß bei der generischen Event-Kommunikation nur ein Parameter vom Typ any erlaubt ist. Dies war mitunter ein Grund, für SNMP-Traps typisierte Events vorzusehen. Dennoch sind im Modul SNMPMgmt für generische Eventkommunikation die Schnittstellen GenericNotification und PullGenericNotification mit den Methoden snmp_notification bzw. pull_snmp_notification und try_snmp_notification definiert.
Schließlich wird der OBJECT IDENTIFIER des NOTIFICATION-TYPE-Makros als konstante Zeichenkette übernommen.
Für obigen NOTIFICATION TYPE Makro erhält man somit das folgende IDL-Äquivalent :
struct IfIndexType {
ASN1_ObjectIdentifier var_name;
ASN1_ObjectIdentifier var_value;
};
struct LinkUpType {
ASN1_Integer ifIndex;
};
const ASN1_ObjectIdentifier linkUp = ``snmpTraps.4'';
/* DESCRIPTION:
``A linkUp trap signifies that the SNMPv2 entity, ...'' */
interface SnmpNotifications {
void linkUp(
in ASN1_ObjectIdentifier srcParty,
in ASN1_ObjectIdentifier snmpContext,
in SNMPv2TC::TimeStampType eventTime,
in LinkUpType notification_info);
};
interface PullSnmpNotifications {
void pull_linkUp(
out ASN1_ObjectIdentifier srcParty,
out ASN1_ObjectIdentifier snmpContext,
out SNMPv2TC::TimeStampType eventTime,
out LinkUpType notification_info);
boolean try_linkUp(
out ASN1_ObjectIdentifier srcParty,
out ASN1_ObjectIdentifier snmpContext,
out SNMPv2TC::TimeStampType eventTime,
out LinkUpType notification_info);
};
Die IDL-Schnittstellen SnmpNotifications und PullSnmpNotifications werden für jedes Modul nur einmal definiert. Falls mehrere NOTIFICATION-TYPE-Makros in einem MIB-Modul vorhanden sind, so werden diese Schnittstellen um entsprechende Methoden ergänzt.
Abkürzungen
=by 8ex ACID | Atomicity, Consistency, Isolation, Durability |
---|---|
ACSE | Association Control Service Element |
AIX | Advanced Interactive Executive |
API | Application Programming Interface |
ASE | Application Service Element |
ASN.1 | Abstract Syntax Notation Number One |
BOA | Basic Object Adapter |
CASE | Computer Aided Software Engineering |
CCF | Connection Control Function |
CCITT | International Telegraph and Telephone Consultative Committee (jetzt ITU) |
CFA | Common Facilities Architecture |
CI | Component Interface |
CICS | Customer Information Control System |
CIM | Common Information Model |
CIMOM | CIM Object Manager |
CLEC | Competitive Local Exchange Carrier |
CMF | Common Management Facilities |
CMIP | Common Management Information Protocol |
CMIS | Common Management Information Service |
CMISE | Common Management Information Service Element |
CMOT | Common Management Information Protocol over TCP/IP |
CNM | Customer Network Management |
CORBA | Common Object Request Broker Architecture |
CPU | Central Processing Unit |
DCE | Distributed Computing Environment |
DCM | Device Communication Manager |
DCOM | Distributed Common Object Model |
DFN | Deutsches Forschungsnetz |
DII | Dynamic Invocation Interface |
DLL | Dynamic Link Library |
DME | Distributed Management Environment |
DMI | Definition of Management Information |
DMI | Desktop Management Interface |
DMTF | Desktop Management Task Force |
DN | Distinguished Name |
DNS | Domain Name System |
DPE | Distributed Processing Environment |
DPI | Distributed Protocol Interface |
DSI | Dynamic Skeleton Interface |
DSOM | Distributed System Object Model |
DTF | Domain Task Force |
DV | Datenverarbeitung |
EFD | Event Forwarding Discriminator |
EMS | Event Management Services |
ENC | European Networking Center |
ESIOP | Environment-specific Inter-ORB Protocol |
ESPRIT | European Specific Research and Technological Development Programme in the Field of Information Technology |
EUI | End User Interface |
EURESCOM | European Institute for Research and Strategic Studies in Telecommunications |
GDMO | Guidelines for the Definition of Managed Objects |
GEMA | Generic Management Architecture |
GEO | Geosynchronous Earth Orbit |
GIOP | General Inter-ORB Protocol |
GMOC | Generic Managed Object Classes |
GRM | General Relationship Model |
GTM | Generalized Topology Manager |
GUI | Graphical User Interface |
HMMP | Hypermedia Management Protocol |
HMMS | Hypertext Management Scheme |
HP | Hewlett Packard |
HTTP | Hypertext Transfer Protocol |
IAB | Internet Architecture Board |
IBM | International Business Machines Corporation |
ICMP | Internet Control Message Protocol |
IDL | Interface Definition Language |
IETF | Internet Engineering Task Force |
IIMC | ISO-Internet Management Coexistence |
IIOP | Internet Inter-ORB Protocol |
ILEC | Incumbent Local Exchange Carrier |
IN | Intelligent Network |
IOP | Inter-ORB-Protocol |
IOR | Interoperable Object Reference |
IP | Internet Protocol |
IR | Interface Repository |
ISO/IEC | International Organization for Standardization International Electrotechnical Committee |
ISP | Internet Service Provider |
IT | Information Technology |
ITU | International Telecommunications Union |
IV | Informationsverarbeitung |
JDMK | Java Dynamic Management Kit |
JIDM | Joint Inter-Domain Management |
JMAPI | Java Management Application Programming Interface |
JNI | Java Native Interface |
KI | Künstliche Intelligenz |
LAN | Local Area Network |
LCF | Log Control Function |
LEC | Local Exchange Carrier |
LEO | Low Earth Orbit |
M2M | Manager-to-Manager |
MAN | Metropolitan Area Network |
MAScOTTE | Management Services for Object-oriented Distributed Systems |
MASIF | Mobile Agent System Interoperability Facilities Specification |
MbD | Management by Delegation |
MEO | Middle Earth Orbit |
MF | Mediation Function |
MHS | Message Handling Systems |
MI | Management Interface |
MIB | Management Information Base |
MIF | Management Information Format |
MIT | Management Information Tree |
MLM | Mid-level Manager |
MO | Managed Object |
MOC | Managed Object Class |
MOF | Managed Object Format |
MOI | Managed Object Instance |
MTA | Message Transfer Agent |
MVS | Multiple Virtual Storage |
NEF | Network Element Function |
NFS | Network File System |
NIS | Network Information System |
NM | Netzmanagement |
NMF | Network Management Forum |
NRIM | Network Resource Information Model |
NSM | Network Services Monitoring |
OAM | Operation, Adminstration, and Maintenance |
ODM | Object Data Manager |
ODMA | Open Distributed Management Architecture |
ODP | Open Distributed Processing |
OID | Object Identifier |
OMA | Object Management Architecture |
OMF | Object Management Function |
OMG | Object Management Group |
OMNIPoint | Open Management Interoperability Points |
OMT | Object Modeling Technique |
OOA | Object-Oriented Analysis |
OOD | Object-Oriented Design |
ORB | Object Request Broker |
ORS | Object Registration Services |
OS | Operations Systems |
OSA | Object Services Architecture |
OSF | Open Software Foundation |
OSF | Operations Systems Function |
OSI | Open Systems Interconnection |
PDU | Protocol Data Unit |
QAF | Q-Adapter Function |
QoS | Quality of Service |
RDN | Relative Distinguished Name |
RFC | Request For Comments |
RFP | Request For Proposal |
RMON | Remote Network Monitoring |
RM-ODP | Reference Model of Open Distributed Processing |
ROSE | Remote Operations Service Element |
RPC | Remote Procedure Call |
SAP | Service Access Point |
SCF | Service Control Function |
SDF | Service Data Function |
SIA | System Information Agent |
SIG | Special Interest Group |
SIOP | SS.7 Inter-ORB-Protocol |
SM | Systemmanagement |
SMAE | Systems Management Application Entity |
SMAP | Systems Management Application Process |
SMASE | Systems Management Application Service Elements |
SMF | Service Management Function |
SMFs | Systems Management Functions |
SMFAs | Specific Management Functional Areas |
SMI | Structure of Management Information |
SMIT | System Management Information Tool |
SNMP | Simple Network Management Protocol |
SOM | System Object Model |
SP | Service Provider |
SQL | Structured Query Language |
SSF | Service Switching Function |
SSP | Service Switching Point |
SS.7 | Signalling System Number 7 |
StP | Software through Pictures |
SW | Software |
TCP/IP | Transmission Control Protocol / Internet Protocol |
TINA | Telecommunication Information Networking Architecture |
TK | Telekommunikation |
TME | Tivoli Management Environment |
TMN | Telecommunications Management Network |
UML | Unified Modeling Language |
UUID | Universal Unique Identifier |
VNM | Virtual Network Machine |
WAN | Wide Area Network |
WBEM | Web-based Enterprise Management |
WSF | Work Station Function |
WWW | World Wide Web |
XCMF | X/Open Common Management Facilities |
XML | Extensible Markup Language |
XMP | X/Open Management Protocol |
XOM | X/Open OSI-Abstract-Data Manipulation API |
XoJIDM | Joint X/Open-NM Forum Inter-Domain Management |
XoTGSysMan | X/Open Systems Management Working Group |