WO2012167657A1 - 一种实现事件转发的方法及通用信息模型cim服务器 - Google Patents

一种实现事件转发的方法及通用信息模型cim服务器 Download PDF

Info

Publication number
WO2012167657A1
WO2012167657A1 PCT/CN2012/073524 CN2012073524W WO2012167657A1 WO 2012167657 A1 WO2012167657 A1 WO 2012167657A1 CN 2012073524 W CN2012073524 W CN 2012073524W WO 2012167657 A1 WO2012167657 A1 WO 2012167657A1
Authority
WO
WIPO (PCT)
Prior art keywords
receiving end
event
internal
wbem
target attribute
Prior art date
Application number
PCT/CN2012/073524
Other languages
English (en)
French (fr)
Inventor
刘生俊
张楚雄
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2012167657A1 publication Critical patent/WO2012167657A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • the present invention relates to the field of information management IT (Information Technology) system management technology, and in particular, to a method for implementing event forwarding and a general information model CIM server.
  • information management IT Information Technology
  • system management implemented by a management system that is independent of the managed computer system or IT system; a managed computer system or IT system Known as the managed system, the devices of the managed computer system or IT system are called Managed Element (ME), and the management requirements of different levels will determine the specific managed network element, which can be a PC. , or the graphics card, CPU, etc. of the PC, can also be a complex system, such as an internal corporate network, or a converged messaging system.
  • MME Management Element
  • the management system is composed of a management application and a managed network element (ME, Managed E lement).
  • the management application manages the managed system by obtaining management information from the ME, receiving event information, and issuing operation instructions to the ME.
  • the DMTF (Di s t r icited Management Task Force) defines a set of specifications and frameworks to standardize the interface between the management system and various MEs.
  • the management system defined by the DMTF is also called the Common Informatization Model (CIM) system, including the CIM client, the C server, the CIM adapter module, and each managed network element.
  • CIM Common Informatization Model
  • the CIM client obtains model and instance data of each ME, subscribes, and receives events from the CIM server through a standard interface; c.
  • the server serves as the core of the entire management system, and manages each managed
  • the model and instance data related to the network element are received, and the subscription and forwarding events are received.
  • the CIM adaptation module is integrated into the CIM server by means of a plug-in, and the instance data and events of the ME are obtained through interaction with the ME, and reported to the CIM server;
  • CIM The adaptation module can be regarded as a management component of the entire management system. It can process the acquired events and then report them to the c server, or directly report the CIM server without any processing.
  • the managed network element will The information model is provided to the CIM server via the MOF (Managed Obcept Format) format definition defined in the CIM Infras gagture specification (DMIF Infras compture Spec if icat ion).
  • MOF Managed Obcept Format
  • the ciM adaptation module forwards any event reported by the ME or the c server to the event generated by the CIM server according to the subscription relationship, and forwards the event to the external client of the c server, that is, the ciM, which subscribes to the reported event. Client.
  • the CIM server since the c server forwards various events to the c clients outside the c server for processing only through the standard interface, the CIM server needs to be forwarded to the c IM client according to the protocol supported by the standard interface adopted by the CIM client. The event of the end is converted by the protocol, which causes a large amount of processing by the c server.
  • a fault may generate multiple alarm events, and if they are distributed to the CIM client for processing, It may be difficult to locate the problem quickly, which is not conducive to processing the events reported by the managed network element, and affecting the user experience of the managed network element that generates the event problem.
  • Embodiments of the present invention provide a method for implementing event forwarding and a general information model CIM server. It is possible to forward various events within the CIM server, so that the internal module that is the receiving end of the event in the CIM server processes the event, and does not need to perform protocol conversion according to the received CIM client and then sends the event to the CIM client. Therefore, it is beneficial to improve the efficiency of the management system in handling events.
  • the CI MOM defines a receiving end of the event according to the target attribute identifier as the receiving end; the CIMOM receives a request to create an instance indicating the filter, and receives the filtering condition of the event by using the instance of the indication filter and The CIMOM receives an event subscription request, and the event subscription request is used to establish an association between the filtering condition and the receiving end, so as to determine the event according to the stored filtering condition after the event received by the CIMOM. It needs to be sent to the receiving end, and an event is sent to the receiving end by the target attribute identifier of the receiving end.
  • the method further includes: an internal enterprise-based network management WBEM listening interface receives a request for the target attribute identifier of the application receiving end, where the request for the target attribute identifier of the receiving end carries the internal module of the CIM server The internal WBEM listening interface allocates the target attribute identifier as the receiving end to the receiving end.
  • the method further includes: the WBEM listening interface receiving a request for acquiring an internal WBEM listening interface, where the request for acquiring the internal WBEM listening interface is The receiving end is an identifier of an internal module of the CIM server; the WBEM listening interface provides the receiving end of the CIM server as the receiving end of the event according to the identifier of the internal module of the CIM server in the request for obtaining the internal WBEM listening interface.
  • the internal WBEM listening interface so that the CIMOM sends an event to the receiving end through the internal WBEM listening interface; or the receiving end of the WBEM listening interface according to the request for acquiring an internal WBEM listening interface is
  • the identifier of the internal module of the CIM server provides the internal WBEM listening interface and the internal forwarding processing interface for the receiving end of the event, so that the CIMOM sends an event to the internal forwarding processing interface and the internal WBEM listening interface to the CIMOM The receiving end.
  • the determining, according to the related information of the stored filtering condition, that the reported event needs to be sent to the receiving end is specifically: the CIMOM determines that the received event matches the stored Filtering conditions, and acquiring related information of the receiving end according to the stored related information of the filtering condition; the method further includes: obtaining, by the CIMOM, the related information of the acquired receiving end according to the obtained related information of the receiving end The target attribute identifier of the receiving end.
  • the request for the target attribute identifier of the application receiving end further carries the object reference information of the receiving end; the method further includes: the internal WBEM listening interface, the target attribute identifier of the receiving end, and the object reference of the receiving end The information corresponds to the storage.
  • the method further includes: sending, by the CIMOM, the acquired target attribute identifier of the receiving end and the event to the internal WBEM listening interface; or the CIMOM to acquire the receiving end and the receiving end
  • the target attribute identifier and the event are sent to the internal WBEM listening interface through an internal forwarding processing interface.
  • the internal WBEM listening interface acquires the object reference information of the receiving end according to the target attribute identifier of the receiving end.
  • the sending the event to the receiving end by using the target attribute identifier of the receiving end is: the internal WBEM listening interface listening to the event by using a target attribute identifier of the receiving end, and sending the event Giving the object a reference to the receiving end corresponding to the information.
  • the method further includes: the receiving end processing the received event, modifying the path attribute value of the received event to the object path of the receiving end, and reporting the modified event.
  • FIG. 8 is a schematic structural diagram of a CIM server according to an embodiment of the present invention.
  • the forwarding processing interface is an internal forwarding processing interface, that is, the "IntemalldicationDeliveryHandler" interface in Figure 1.
  • the event is sent by the InternallndicationDeliveryHandler interface to the internal WBEM listening interface corresponding to the target attribute of the receiving end, and the internal WBEM listening interface sends an event to the receiving end according to the target attribute identifier of the receiving end.
  • the internal module in the CIM server can be defined as the receiving end of the event, so that the internal modules in the CIM server can process the event. Since the internal module in the CIM server is the receiving end of the event, the CIM server does not need to forward the event to the CI M client-supported protocol according to the existing method of forwarding the event to the CI M client other than the CIM server. The conversion is performed and the converted event is sent to the corresponding client. Therefore, the CIM server reduces the amount of protocol conversion for event forwarding and improves efficiency.
  • the internal module of the CIM server as the event receiving end may be an upper management network element of the managed network element (assumed to be a short message center) corresponding to the event sending end (such as the adapting module a in FIG. 1) ( Assume that the SMS subsystem) corresponds to the adaptation module (such as the adaptation module b in Figure 1). Therefore, if the event is forwarded in the CIM server, the event reported by the adaptation module a can be forwarded to the adaptation module b for processing, so that the adaptation module corresponding to the upper management network element can be used to check the status of the lower management network element. It is monitored and processed by the events reported by its corresponding adaptation module, which makes it easier to manage the computer management system.
  • the "AlarmingManagedElement" attribute of the alarm event needs to be modified.
  • ME2Provider handles the alarm of ME1.
  • the event's "AlarmingManagedElement” attribute is assigned the value ' ⁇ 2' to facilitate the ME3Provider subscription.
  • FIG. 4 the processing flow of the internalWBEMListener after receiving the addListener (this, 0, null):port will be referred to FIG. 4, because the flow shown in FIG. 4 and the WBEMListener in the prior art add a designated port number to the CIM client.
  • the embodiments of the present invention are not described in detail herein.
  • Step 303 The ME2Provider sends an instance request (createlnstance (instance of CIM_ListenerDestinationIntemal)) to the CIMOM to request to define the CIM adaptation module of the short message subsystem as the receiving end of the event. That is, ME2Provideri will ask the CIM server to send the event to the ME2Provider.
  • the request for creating a CIM-ListerDestinationlnternal instance refers to an existing CIM client requesting the CIM client as a request of the event receiving end, and expanding the request for creating an instance sent by the existing CIM client to indicate that the ME2Provider is a CIM.
  • the internal module in the server acts as the receiving end of the event.
  • the request is as follows:
  • Step 304 The ME2Provider sends an instance of the createlnstance (instance of CIM-IndicationFilter) to the CIMOM, and sends the received event condition to the CIMOM through the CIM-IndicationFilter instance.
  • Step 305 The ME2Provider sends an event subscription request to the CIMOM, that is, a request to create a CIM_IndicationSubscription instance (createlnstance (instance of CIM-IndicationSubscription).
  • the CIM-IndicationSub scrip tio instance establishes a correspondence between the ListenerDestinationInstance instance and the IndicationFilter instance. Specifically, this step is consistent with the process in which the existing CIM client requests to create a subscription indication instance, and the present invention will not be described in detail herein.
  • Step 306 The adaptation module ME3Provider of the merging message system performs the process of steps 301-305, and requests the CIM server to use the ME3Provider as the receiving end of the event reported by the ME2Provider.
  • the fused message system requests to subscribe to the event reported by the ME2Provider.
  • Steps 307-309 the adaptation module of the short message center (the ME 1 Provider reports the alarm to the CIMOM)
  • the event ( deliveryE vent (indication) ) is forwarded by the CIMOM to the SMS subsystem Provider via the Internal WBEMListener.
  • Step 311 After modifying the alarm event, the ME2Provider reports the modified event to the CIMOM. Specifically, the ME2Provider applies the AlertingManagedElement value of the alarm event in step 307 to the AlertingMETrace group, and changes the value of the AlertingManagedElement attribute to the object path of the SMS subsystem instance, and then reports the modified alarm event to the CIMOM.
  • the above table indicates the change of the AlertingManagedElement and AlertingMETrace attribute values after the alarm event reported by the SMS center through the SMS module is processed and modified by the SMS subsystem.
  • Step 312 The ME3Provider receives, processes, and reports the indication. For the specific process, refer to the description of steps 308-312, and the present invention will not be described in detail herein.
  • event forwarding between different processing modules corresponding to different levels in the CIM server is adopted, thereby improving the efficiency of receiving events of the CIM internal module and reducing the development work of the receiving event module.
  • FIG. 7 is a schematic structural diagram of a CIM server according to an embodiment of the present invention, including: a receiving unit 701, an indication filter instance creating unit 702, an event subscribing unit 703, and a receiving end 704. specific,
  • the receiving unit 701 is configured to receive a request for the receiving end of the event, where the request for the event receiving end carries the target attribute identifier as the receiving end, and the receiving end is an identifier of the internal module in the CIM server; Determining an event as a target attribute identifier of the receiving end;
  • the WBEM listening interface 706 is configured to receive a request for acquiring an internal WBEM listening interface, where the request for acquiring the internal WBEM listening interface carries the identifier of the internal module of the CIM server, and is configured to obtain an internal WBEM listening interface according to the The receiving end is the identifier of the internal module of the CIM server, and the internal WBEM listening interface 706-1 is provided for the receiving end of the event, so as to send an event to the receiving end through the internal WBEM listening interface.
  • the server further includes an internal forwarding processing interface, where the WBEM listening interface is configured to provide the receiving end of the event to the receiving end of the CIM server according to the identifier of the internal module of the CIM server in the request for acquiring the internal WBEM listening interface.
  • the WBEM listening interface 706-1 is further configured to store the target attribute identifier of the receiving end and the object reference information of the receiving end. .
  • the event subscribing unit 703 sends an event to the receiving end 704 by using the target attribute identifier of the receiving end.
  • the event subscribing unit 703 receives the target attribute identifier of the receiving end by using the internal WBEM listening interface 706-1 to receive the The event is sent by the internal WBEM listening interface 706-1 to the receiving end 704 corresponding to the object reference information.
  • the receiving end 704 is further configured to process the received event, modify the path attribute value of the received event to the object path of the receiving end, and report the modified event.
  • the CIM server of the foregoing embodiment of the present invention may be an entity of a computer management system, and may specifically be a computer.
  • the above method can be implemented as a processor in a computer.
  • the functional modules of the above CIM server may be functional modules running in the processor.
  • each unit included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be implemented;
  • the names are also for convenience of distinction from each other and are not intended to limit the scope of protection of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明提供了一种实现事件转发的方法及装置,应用于通用信息模型CIM服务器中,包括CIM对像管理器CIMOM根据事件的接收端的请求定义以所述端口号为目标属性的事件接收端;所述CIMOM接收携带过滤条件的请求,并存储所述过滤条件;以便于所述CIMOM收到事件后,根据所述存储的过滤条件的相关信息确定所述事件需要发送到所述接收端,并通过所述端口号将事件发送到所述接收端。本发明通过在CIM服务器的内部模块之间的事件转发,从而提高CIM服务器转发事件的效率。

Description

一种实现事件转发的方法及通用信息模型 CIM服务器
本申请要求于 2011 年 07 月 27 日提交中国专利局、 申请号为 201110211997. 1 , 发明名称为 "一种实现事件转发的方法及通用信息模型 CIM服务器" 的中国专利申请的优先权, 其全部内容通过引用结合在本申 请中。
技术领域 本发明涉及信息技术 IT ( Informat ion Technology, ) 系统管理技术领 域, 尤其涉及一种实现事件转发的方法及通用信息模型 CIM服务器。
背景技术 对计算机系统或 IT ( Informat ion Technology, 信息技术) 系统的所 实施的管理称为系统管理, 由独立于被管理的计算机系统或 IT系统的管理 系统实现; 被管理的计算机系统或 IT系统称为被管系统, 被管理的计算机 系统或 IT系统的各设备称为被管网元(ME, Managed Element ) , 不同层级 的管理需求将决定具体的被管网元, 可以是一台 PC机, 或者是 PC机的显卡、 CPU等, 也可以是一个复杂的系统, 例如企业内部网络, 或融合消息系统。
管理系统由管理应用和被管理网元 ( ME, Managed E lement )组成, 管 理应用通过从 ME上获取管理信息、 接收事件信息, 以及向 ME下发操作指令 来实现对被管系统的管理。 DMTF ( Di s t r ibuted Management Task Force ) 定义了一套规范和框架来标准化管理系统与各种 ME之间的接口。 DMTF定义 的管理系统也称通用信息模型 (Common Informat ion Model , 简称 CIM ) 系 统, 包括 CIM客户端, C 服务器, CIM适配模块以及各被管理网元。
其中, CIM客户端通过标准接口从 CIM服务器获取各 ME的模型和实例数 据、 订阅和接收事件等; c 服务器作为整个管理系统的核心, 管理各被管 理网元相关的模型和实例数据, 接收订阅并转发事件等; CIM适配模块, 以 插件方式集成在 CIM服务器中, 通过与 ME交互获取 ME的实例数据和事件, 并上报给 CIM服务器; CIM适配模块可以看做是整个管理系统的一种管理 部件, 可以对获取到的事件进行处理, 然后上报到 c 服务器, 也可以不做 任何处理, 直接上报的 CIM 服务器; 被管理网元将其信息模型通过 CIM Infras tructure规范 ( DMTF规范文档 DSP0004 CIM Infras tructure Spec if icat ion )中定义的 MOF (Managed Ob ject Format)格式描述提供给 CIM 服务器。
在现有的规范定义中, ciM适配模块将 ME上报的任何事件或 c 服务器 对于在 CIM服务器产生的事件都根据订阅关系将事件转发到订阅上述上报 的事件的位于 c 服务器外部客户端即 ciM客户端。 然而, 由于 c 服务器将 各种事件转发给 c 服务器外部的各 c 客户端进行处理只能通过标准的接 口进行, 因此 CIM服务器需要根据 CIM客户端通过的标准接口支持的协议将 转发给 c IM客户端的事件进行协议的转换, 从而造成 c 服务器大量的处理。 此外, 对于某些事件, 如由对应于多个层次的被管理系统中的被管网元产 生的告警事件, 一个故障可能产生多个告警事件, 如果都分散的上报到 CIM 客户端进行处理, 有可能导致问题难以迅速定位, 从而不利于对被管理网 元上报的事件进行处理, 影响产生事件问题的被管网元的用户的体验。 发明内容
本发明的实施例提供了一种实现事件转发的方法及通用信息模型 CIM 服务器。 , 能够实现在 CIM服务器内部对各种事件进行转发, 以便于 CIM服 务器内作为事件的接收端的内部模块对事件进行处理, 而无需再根据接收 的 CIM客户端对事件进行协议转换后发送到 CIM客户端,从而有利于提高管 理系统对事件的处理效率。
本发明的一方面提供了一种实现事件内部转发的方法, 应用于通用信 息模型 CIM服务器中, CIM对象管理器 CIMOM接收定义事件的接收端的请 求, 所述定义事件接收端的请求中携带作为所述接收端的目标属性标识, 以及所述接收端为 CI M服务器中的内部模块的标识; CI MOM根据所述作为 所述接收端的目标属性标识定义事件的接收端; 所述 CIMOM接收创建指示 过滤器的实例的请求, 并通过所述指示过滤器的实例接收事件的过滤条件 并存储; 所述 CIMOM接收事件订阅请求, 所述事件订阅请求用于为所述过 滤条件及接收端建立关联, 以便于所述 CIMOM收到的事件后, 根据所述存 储的过滤条件确定所述事件需要发送到所述接收端, 通过所述接收端的目 标属性标识将事件发送到所述接收端。
可选的, 该方法进一步包括: 内部基于企业的网络管理 WBEM监听接 口接收申请接收端的目标属性标识的请求, 所述申请接收端的目标属性标 识的请求中携带所述接收端为 CIM服务器的内部模块的标识; 所述内部 WBEM监听接口为所述接收端分配作为所述接收端的目标属性标识。
可选的, 所述内部 WBEM监听接口接收申请接收端的目标属性标识的 请求之前, 该方法进一步包括: 所述 WBEM监听接口接收获取内部 WBEM 监听接口的请求, 所述获取内部 WBEM监听接口的请求中携带所述接收端 为 CIM服务器的内部模块的标识; 所述 WBEM监听接口根据所述获取内部 WBEM监听接口的请求中所述接收端为 CIM服务器的内部模块的标识为所 述事件的接收端提供所述内部 WBEM监听接口, 以便于所述 CIMOM将事件 通过所述内部 WBEM监听接口发送给所述接收端; 或所述 WBEM监听接口 根据所述获取内部 WBEM监听接口的请求中所述接收端为 CIM服务器的内 部模块的标识为所述事件的接收端提供所述内部 WBEM监听接口以及内部 转发处理接口, 以便于所述 CIMOM将事件通过所述内部转发处理接口以及 所述内部 WBEM监听接口发送给所述接收端。
可选的 , 所述根据所述存储的过滤条件的相关信息确定所述上报的事 件需要发送到所述接收端具体为: 所述 CIMOM确定收到的事件匹配存储的 过滤条件, 并根据所述存储的所述过滤条件的相关信息获取接收端的相关 信息; 所述方法进一步包括: 所述 CIMOM根据获取的所述接收端的相关信 息获取所述获取的接收端的相关信息对应的所述接收端的目标属性标识。
可选的, 所述申请接收端的目标属性标识的请求中还携带接收端的对 象引用信息; 所述方法进一步包括: 所述内部 WBEM监听接口将所述接收 端的目标属性标识以及所述接收端的对象引用信息对应存储。
可选的, 所述方法进一步包括: 所述 CIMOM将获取到的所述接收端的 目标属性标识以及所述事件发送给所述内部 WBEM监听接口; 或所述 CIMOM将获取到的以及所述接收端的目标属性标识以及所述事件通过内 部转发处理接口发送给所述内部 WBEM监听接口; 所述内部 WBEM监听接 口根据所述接收端的目标属性标识获取所述接收端的对象引用信息。
可选的, 所述通过所述接收端的目标属性标识将事件发送到所述接收 端具体为: 所述内部 WBEM监听接口通过所述接收端的目标属性标识监听 所述事件, 并将所述事件发送给所述对象引用信息对应的接收端。
可选的, 该方法进一步包括: 所述接收端处理接收到的事件, 将所述 接收到的事件的路径属性值修改为所述接收端的对象路径, 并上报修改后 的事件。
可选的, 所述 CIMOM根据所述作为所述接收端的目标属性标识定义事 件 的 接 收 端 具 体 为 : 所 述 CIMOM 为 所 述接 收 端 创 建 CIMJJstenerDestination Internal 实 例 , 并 为 所 述 CIMJJstenerDestinationlntemal实例的目标属性赋予所述为所述接收端分 配的目标属性标识。
本发明另一方面还提供了一种通用信息模型 CIM服务器, 包括:接收单 元、 指示过滤器实例创建单元、 事件订阅单元以及接收端; 所述接收单元 用于接收定义事件的接收端的请求, 所述定义事件接收端的请求中携带作 为所述接收端的目标属性标识,以及所述接收端为 CIM服务器中的内部模块 的标识; CIMOM根据所述作为所述接收端的目标属性标识定义事件的接收 端; 所述指示过滤器实例创建单元用于接收创建指示过滤器的实例的请求 , 并通过所述指示过滤器的实例接收事件的过滤条件并存储; 所述事件订阅 单元用于接收事件订阅请求, 所述事件订阅请求用于为所述过滤条件及接 收端建立关联, 以便于所述 CIMOM收到的事件后, 根据所述存储的过滤条 件确定所述事件需要发送到所述接收端, 通过所述接收端的目标属性标识 将事件发送到所述接收端; 所述接收端属于 CIM服务器的内部模块,用于接 收所述事件订阅单元发送的事件。
可选的, 所述服务器进一步包括: 内部基于企业的网络管理 WBEM监 听接口; 所述内部 WBEM监听接口用于接收申请接收端的目标属性标识的 请求, 并为所述接收端分配作为所述接收端的目标属性标识, 所述申请接 收端的目标属性标识的请求中携带所述接收端为 CIM服务器的内部模块的 标识。
可选的, 所述服务器进一步包括 WBEM监听接口; 所述 WBEM监听接 口用于接收获取内部 WBEM监听接口的请求, 所述获取内部 WBEM监听接 口的请求中携带所述接收端为 CIM服务器的内部模块的标识;以及用于根据 所述获取内部 WBEM监听接口的请求中所述接收端为 CIM服务器的内部模 块的标识为所述事件的接收端提供所述内部 WBEM监听接口, 以便于将事 件通过所述内部 WBEM监听接口发送给所述接收端; 或所述服务器进一步 包括内部转发处理接口, 所述 WBEM监听接口用于根据所述获取内部 WBEM监听接口的请求中所述接收端为 CIM服务器的内部模块的标识为所 述事件的接收端提供所述内部 WBEM监听接口以及内部转发处理接口, 以 便于所述 CIMOM将事件通过所述内部转发处理接口以及所述内部 WBEM 监听接口发送给所述接收端。
可选的 , 所述事件订阅单元根据所述存储的过滤条件确定所述事 件需要发送到所述接收端包括: 所述事件订阅单元确定所述接收单元收到 的事件匹配存储的过滤条件, 并据所述存储的所述过滤条件的相关信息获 取接收端的相关信息; 所述事件订阅单元进一步用于获取的所述接收端的 相关信息获取所述获取的接收端的相关信息对应的所述接收端的目标属性 标识。
可选的, 所述申请接收端的目标属性标识的请求中还携带接收端的对 象引用信息; 所述内部 WBEM监听接口进一步用于将所述接收端的目标属 性标识以及所述接收端的对象引用信息对应存储。
可选的, 所述事件订阅单元进一步用于将获取到的所述接收端的目标 属性标识以及所述事件发送给所述内部 WBEM监听接口; 或, 当所述服务 器包括内部转发处理接口时, 所述事件订阅单元进一步用于将获取到的所 述接收端的目标属性标识以及所述事件通过内部转发处理接口发送给所述 内部 WBEM监听接口; 所述内部 WBEM监听接口进一步用于根据所述接收 端的目标属性标识获取所述接收端的对象引用信息。
可选的, 所述事件订阅单元通过所述接收端的目标属性标识将事件发 送到所述接收端具体为: 通过所述内部 WBEM监听接口监听所述接收端的 目标属性标识接收所述事件, 并由所述内部 WBEM监听接口将所述事件发 送给所述对象引用信息对应的接收端。
可选的, 所述接收端还用于处理接收到的事件, 将所述接收到的事件 的路径属性值修改为所述接收端的对象路径, 并上报修改后的事件。
可选的, 所述接收单元根据所述作为所述接收端的目标属性标识定义 事件的接收端具体为 : 所述接收单元为 所述接收端创建
CIMJJstenerDestination Internal 实 例 , 并 为 所 述
CIMJJstenerDestinationlntemal实例的目标属性赋予所述为所述接收端分 配的目标属性标识。
由上述本发明的实施例提供的技术方案可以看出,通过将 CIM服务器的 内部模块定义为事件的接收端接收事件,从而不需要 CIM服务器将转发给内 部模块的事件进行协议转换,从而有利于 CIM服务器转发事件的效率,进行 有利于提高管理系统对事件的处理效率。 附图说明 为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中 所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳 动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明的实施例提供的 CIM服务器的结构示意图;
图 2为本发明的实施例提供的实现事件转发的方法流程图;
图 3为本发明的实施例提供的融合通信系统告警事件内部转发的流程 图;
图 4为本发明的实施例提供的为实现在 CIM服务器内部对事件转发对 CIM服务器扩展的接口的示意图;
图 5为本发明的实施例提供的 CIM服务器中内部基于企业的网络管理 (Web Based Enterprise Management, 简称 WBEM)监听接口为事件接收端分 配端口号的方法的流程示意图;
图 6为本发明的实施例提供的 CIM服务器实现事件内部转发的对事件的 修改的示意图;
图 7为本发明的实施例提供的 CIM服务器的结构示意图;
图 8为本发明的实施例提供的 CIM服务器进一步的结构示意图。
具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。
为实现本发明, 本发明实施例在现有的规范中新增一子类 (internal class )以实现对 CIM服务器接收的事件在 CIM服务器内部进行转发。 在具体 的实现上, 需要对现有的 CIM服务器结构进行改进。 参见图 1 , 本发明实施 例提供的 CIM服务器对其转发处理接口 IndicationDeliveryHandler 103支持 的协议进行扩展, 增加支持将上报的事件转给 CIM服务器内部模块的 Internal协议标识, 即在转发处理接口 IndicationDeliveryHandler 103中增加内 部转发处理(InternallndicationDeliveryHandler )接口。 并。 以及增加 WBEM 监听接口 , 并使 WBEM监听接口能够识别携带 Internal协议标识的注册 CIM 服务器的内部模块作为事件的接收端的请求, 并根据该 Internal协议标识为 接收端提供将事件转发给 CIM服务器的内部模块的接口, 即内部 WBEM监 听接口, 并由其提供的内部 WBEM监听接口为作为事件的接收端的 CIM服 务器的内部模块的分配作为所述接收端的目标属性标识, 如端口号。 以便 于由 InternallndicationDeliveryHandler接口接收 CIMOM发送的需要转发给 CIM服务器内部模块的事件, 并将该事件发送给内部 WBEM监听接口, 通 过 WBEM监听接口的内部 WBEM监听接口指定的所述接收端的目标属性标 识(如端口号)将通用信息模型对象管理器接收到的上报事件转发给 CIM 服务器内部的接收端(如适配模块 b )。当然, InternallndicationDeliveryHandler 接口和内部 WBEM监听接口还可以合设为一个接口, 当合设为一个接口时, 由内部 WBEM监听接口接收 CIMOM发送的需要转发给 CIM服务器内部模 块的事件, 并通过内部 WBEM监听接口指定的所述接收端的目标属性标识 (如端口号)将通用信息模型对象管理器接收到的上报事件转发给 CIM服务 器内部的接收端 (如适配模块 b )
具体的,本发明实施例为实现在 CIM服务器内部对事件转发对 CIM服务 器扩展的接口请参见图 4 , 在转发处理接口 IndicationDeliveryHandler扩展内 部转发处理接口 InternallndicationDeliveryHandler,使其在转发处理接口接收 到需要转发到 CIM服务器内部模块的事件时将该事件提供给内部转发处理 接口处理。 对 WBEM监听接口进行扩展以增加内部 WBEM监听接口。 使内 部 WBEM监听接口接收申请将 CIM服务器的内部模块作为接收端的请求, 并为 CIM服务器的内部模块作为的接收端分配目标属性标识(如端口号) , 以及存储接收端的引用信息及端口号, 并接收内部转发处理接口发送过来 的事件, 并根据存储的接收端的引用信息及端口号将事件发送给接收端。
此外,本发明实施例还增加了 CIM服务器的处理能力,使其作为事件的 接收端的 CIM服务器的内部模块(如适配模块等 )具有处理接收到的事件的 能力。 具体处理接收到的事件的能力包括的内容可参考现有的接收事件的 CIM客户端处理事件的能力(比如统计各种接收到的事件,对各种告警事件 进行分析和处理等)并可进行后续的扩展, 本发明实施例在此不在详述。
图 2为本发明的实施例提供的实现事件转发的方法流程图, 应用于通用 信息模型 CIM服务器中, 包括如下步骤:
步骤 201、 CIM对象管理器 CIMOM接收定义事件的接收端的请求,所述 定义事件接收端的请求中携带作为所述接收端的目标属性标识, 以及所述 接收端为 CIM服务器中的内部模块的标识; CIMOM根据所述作为所述接收 端的目标属性标识定义事件的接收端;
具体的, CIMOM收到定义事件的接收端的请求后, 根据所述定义事件 的接收端的请求中携带的接收端为 CIM服务器中的内部模块的标识 (如 Internal )创建 CIM内部监听 CIM ListenerDestinationlntemal实例, 并为所 述 CIMJJstenerDestinationlntemal实例的目标属性赋予所述为所述接收端 分配的所述接收端的目标属性标识, 如端口号等。
在本发明实施例中, 实例 instance与 CIM系统管理中的实例的含义相 同, 均指可以处理事件、 模型的对象。 在 CIMJJstenerDestinationlntemal 实例 中 , Internal表示该实例支持的协议或该实例的属性。 CIMJJstenerDestinationlntemal实例用于标识监听或处理事件的 CIM服务 器的内部模块,其目标属性被赋予为所述接收端(即 CIM服务哭的内部模块 ) 分配的端口号。通常,一个用于接收和处理事件的 CIM服务器的内部模块对 应于一个 CIMJJstenerDestinationlntemal实例。
步骤 202、 所述 CIMOM接收创建指示过滤器的实例的请求, 并通过所 述指示过滤器的实例接收事件的过滤条件并存储;
具体的 , CIMOM接收创建 CIM— IndicationFilter实例的请求 , 该请求中 包括 Filter的相关信息, 如需要接收的事件的特性(包括事件上报者的信息 和 /或事件类型等 ) ,所述 CIMOM存储所述 Filter的相关信息(即过滤条件)。 具体可以为根据接收到的创建 CIM— IndicationFilter实例的请求创建 CIM— IndicationFilter实例, 该 CIM— IndicationFilter实例用于匹配事件是否符 合过滤条件。
步骤 203、 所述 CIMOM接收事件订阅请求, 所述事件订阅请求用于为 所述过滤条件及接收端建立关联, 以便于 CIMOM收到的事件后, 根据所述 存储的过滤条件确定所述事件需要发送到所述接收端 , 通过所述接收端的 目标属性标识将事件发送到所述接收端。
具体的, 发送步骤 201和 202中两个请求的发送端将接收到的 ListenerDestinationlnternal实例的对象路径信息以及 CIM— IndicationFilter 实 例 的 对 象 路 径 信 息 通 过 createlnstance (instance of CIMJndicationSubscription) 发 送 给 CIMOM , CIMOM 创 建 CIM_lndicationSubscription实 ^列 , 以建立所述 ListenerDestinationlnternal 实例的对象路径信息及 CIM— IndicationFilter实例的对象路径信息的关联信 息。 也可以理解为通过 CIMOM创建的 CIMJndicationSubscription实例将 ListenerDestinationlnternal实例的对象路径信息及 CIM— IndicationFilter实 例的对象路径信息对应存储。 CIMOM收到事件后, CIMOM确定收到的事件满足存储的过滤条件, 并根据对应存储的所述过滤条件如 CIM— IndicationFilter实例的对象路径信 息对应的所述接收端如 ListenerDestinationlntemal实例的对象路径信息确 定 转发 处 理接 口 为 内 部 转发 处 理接 口 , 即 图 一 中 的 的 "IntemallndicationDeliveryHandler" 接 口 。 由 InternallndicationDeliveryHandler接口将事件发送到与接收端目标属性对应 的内部 WBEM监听接口, 并由内部 WBEM监听接口根据接收端的目标属性 标识将事件发送到所述接收端。
本发明实施例可以通过 IntemallndicationDeliveryHandler接口和 IntemalWBEMListener接口接收通用信息模型对象管理器 CIMOM转发的事 件。 具体的 , InternallndicationDeliveryHandler接口和 IntemalWBEMListener 接口合设为一个接口。 当 CIMOM收到事件后, CIMOM确定收到的事件满 足存储的过滤条件,并根据对应存储的所述过滤条件如 CIM— IndicationFilter 实例的对象路径信息对应的所述接收端如 ListenerDestination I nternal实例 的对象路径信息内部 WBEM监听接口, 并由内部 WBEM监听接口根据接收 端的目标属性标识将事件发送到所述接收端。
由上述方法可以知,通过对 CIM服务器的功能进行扩展,使其能够识别 其协议标识为内部 (即 internal ) 的请求, 并针对此类请求进行处理。 从而 可以定义 CIM服务器中的内部模块作为事件的接收端,以便于 CIM服务器中 的内部模块可以对事件进行处理。由于是 CIM服务器中的内部模块作为事件 的接收端, 因此, CIM服务器不需要按现有的把事件转发给 CIM服务器之外 的 CI M客户端的方法将转发的事件按 CI M客户端支持的协议进行转换,并将 转换后的事件发送给相应的客户端。从而减轻 CIM服务器对事件转发的协议 转换量, 提高效率。
此外, 对于需进行内部转发的事件可以是计算机被管系统各被管网元, 如融合通讯系统的各被管网元, 如短信中心, 短信子系统, 融合通讯系统, 通过其对应的适配模块上报的告警事件, 也可以是 CIM对象管理期 CIMOM 产生的各种事件, 如 CIMOM所管理的实例的增加、修改、删除、 方法调用, 以及类的创建、 修改、 删除都可以产生相应的生命周期事件。
在本发明实施例中,作为事件接收端的 CIM服务器的内部模块可以是事 件发送端 (如图 1中的适配模块 a )对应的被管网元(假设为短信中心) 的 上层管理网元(假设为短信子系统)对应的适配模块(如图 1中的适配模块 b ) 。 因此, 如果实现了事件在 CIM服务器的内部进行转发, 则可将适配模 块 a上报的事件转发到适配模块 b处理, 从而方便上层管理网元对应的适配 模块对下层管理网元的状态 (通过其对应的适配模块上报的事件)进行监 控和处理, 更为方便的对计算机管理系统进行管理。
图 3为针对融合通讯系统作为被管对象进行的事件转发的流程图。 该融 合通讯系统对应于三个层次的被管网元, 分别为短信中心 (ME1 ) , 短信 子系统 (ME2 ) , 融合通讯系统 (ME3 ) , 各被管网元对应的适配模块 ( provider )分另' J为 ME1 Provider, ME2 Provider, ME3Provider. ME1 ό 告 警事件在 ΜΕ2 Provider处理, ME2Provider需要订阅 ME1的事件, 为 ME2Provider创建的 CIMJndicationFilter实例的 query属性可如下赋值:
" Select * from CIM_Alertlndication where AlertingManagedElement= 'ΜΕ1, ",
其中' ME1 '表示 ME1的对象路径 ( CIM Object Path , 参见 DMTF规范文 本 DSP0004 CIM Infrastructure Specification ) 。
同样, ME3层需要订阅 ME2的事件, 相应的为 ME2Provider创建的 CIMJndicationFilter实例的 query属性可如下赋值:
" Select * from CIM_Alertlndication where AlertingManagedElement= 'ME2' "
综上, 为了使上层能够订阅本层处理后的告警事件, 需要修改告警事 件的" AlertingManagedElement"属性。比如 ME2Provider处理 ME1的告警事 件后, 将该事件的" AlertingManagedElement"属性赋值为' ΜΕ2' , 以方便 ME3Provider订阅。
同 时, 为 了 记录告警事件在不同层次的处理过程, 在 CIM_Alertlndication子类中增加属性, 如图 6所示。 在本发明实施例中, 在 AltertingMETrace string[]中记录短信子系统的路径地址。
具体的, 请参考图 3所示实施例提供的消息子系统及融合通信系统接收 告警事件的流程示意图。
步骤 301、 短信子系统的 CIM适配模块 ( ME2Provider ) 首先通过 WBEMListenerFactory(WBEM监听接口)获取内部 WBEM监听接口。
具体的, WBEMlistenerfactory接收 ME2获取内部 WBEM监听接口 ( getListener("Intemal"):WBEMListener, 其中: WBEMListener表示返回一个 WBEMListener实例)请求, 其中 "Internal" 表示接收端为 CIM服务器的内 部模块的标识 (也即进行转发的方式为在 CIM服务器内部进行转发) 。 WBEMlistenerfactory返回 IntemalWBEMListener接口, 以便 ME2Provider可 以将自己注册为事件的接收端, 从而导致 CIMOM可以将事件通过内部 WBEM监听接口发送给接收端。
步骤 302、 ME2Provider向内部 WBEM监听接口( internalWBEMListener ) 申请端口号 (即接收端的目标属性标识) , 以将自己注册为该端口号对应 的事件接收端, 即 addListener (this, 0, null):port (: Port表示该请求返回端口 号)的请求, 请求 internalWBEMListener模块为 ME2Provider分配端口号。 其 中 , addListener (this, 0, null):port请求中 的参数 " 0,, 表明 由 internal WBEMListener接口为 ME2Provider分配端口号。 然而, addListener (this, 0, null):port中的 0还可以由具体的端口号代替, 如果 addlinstener中携带 的是具体的端口号, 则指请求将该具体的端口号作为 ME2Provider接收事件 的端口号。 通常, 该请求的格式采用现有的请求格式。 因此, 本发明实施 例在此不再进一步的详述。 intemalWBEMListener在收到 addListener (this, 0, null):port请求后, 为 ME2Provider分配端口号, internalWBEMListener接口 通过该端口号监听需要转发给 ME2Provider的端口号 , 即作为 ME2Provider 接收 CIM服务器转发的事件的端口号。
此夕卜, addListener (this, 0, null):port (: Port表示该请求返回端口号) 的 请求中还携带接收端的对象引用信息, 内部 WBEM监听接口并将 internalWBEMListener接口分配的端口号与 ME2Provider的对象引用信息作 为 <key,value>映射存者。
具体的 , internalWBEMListener在收到 addListener (this, 0, null):port會求 后的处理流程请参考图 4 , 由于图 4所示流程与现有技术中 WBEMListener为 CIM客户端增加指定端口号的流程相同, 本发明实施例在此不在详细描述。
步骤 303、 ME2Provider向 CIMOM发送创建内部转发目的地的实例请求 ( createlnstance (instance of CIM_ListenerDestinationIntemal) ) , 以请求将短 信子系统的 CIM适配模块定义为事件的接收端。 即, ME2Provideri會求 CIM 月良务器将事件发送给 ME2Provider。所述创建 CIM— ListenerDestinationlnternal 实例的请求参考现有的 CIM客户端请求将 CIM客户端作为事件接收端的请 求, 并对现有的 CIM客户端发送的创建实例的请求进行扩展, 以表明是 ME2Provider是 CIM服务器中的内部模块作为事件的接收端。
具体的, 所述请求如下:
[Description ("CIM_ListenerDestinationIntemaH¾述事件内部转发的接 收端,,)]
class CIM— ListenerDestinationlnternal: CIM_ListenerDestination {
[Required, Override ( "Destination" ),
Description ( "字符串 Destination内容没有具体定义, 但需要唯一对应一个内部的 Indication Listener" )]
string Destination;〃指定端口号,具体可为步骤 202中的 pPort〃
[Override ( "Protocol"),
Description ( "Protocol描述事件的递送方式。 ") ValueMap { T, "2", "3", "4", "5", "6", }, Values { "Other", "CIM-XML", "SM CLP", "WS-Management",
"WSDM", "Internal", "DMTF Reserved" }] uintl6 Protocol = 6;
};
在 ValueMap中新增一个值 "6" , 在 Values中相应的增力口 "Internal" , 表明当 Protocol取值为 6时, 将事件转发至 CIM服务器的内部模块, 而不是发 送到 CIM服务器以外装置如 CIM客户端进行处理。
步骤 304、 ME2Provider向 CIMOM发送创建指示过滤器的实例 ( createlnstance (instance of CIM— IndicationFilter) )请求, 以短信子系统的 CIM适配模块将接收的事件条件通过 CIM— IndicationFilter实例发送给 CIMOM。
具体的, ME2Provider可以对 CIM— IndicationFilter实例的 query属性进行 赋 值 , 如 下 : " Select * from CIM_AlertIndication where AlertingManagedElement= '短信中心,"。 其中, '短信中心, 表示 '短信 中心的对象路径 (CIM Object Path, 参见 DMTF规范文本 DSP0004 CIM Infrastructure Specification ) 。
步骤 305、 ME2Provider向 CIMOM发送事件订阅请求, 即创建订阅指示 CIM— IndicationSubscription 实 例 ( createlnstance (instance of CIM— IndicationSubscription)的请求。 该 CIM— IndicationSub scrip tio实例在 ListenerDestinationlnternal实例以及 IndicationFilter实例之间建立对应关系。 具体的,此步骤与现有的 CIM客户端请求创建订阅指示实例的过程一致,本 发明在此不再详述。
步骤 306、 融合消息系统的适配模块 ME3Provider执行步骤 301-305的过 程 , 请求 CIM服务器将 ME3Provider作为 ME2Provider上报的事件的接收端。 在本实施例中 , 融合消息系统请求订阅 ME2Provider上报的事件。
步骤 307-309、 短信中心的适配模块( ME 1 Provider向 CIMOM上报告警 事件( deliveryE vent (indication) ) , 并由 CIMOM经 Internal WBEMListener转 发给短信子系统 Provider。
具体的, CIMOM利用存储的 IndicationFilter实例 , 确定 ME 1 Provider上 报的事件匹配某 IndicationFilter实例, 并根据存储的 IndicationFilter实例与 ListenerDestinationlntemal^j"应关系 , 获取 IistenerDestinationlnternal实例 , 根据此实例的协议标识将事件发送给 InternallndicationDeliveryHandler接口 (如果 InternallndicationDeliveryHandler接口与 InternalWBEMListener接口分 设 )转发, 或根据此实例的协议标识将事件发送给 InternalWBEMListener接 口 (如果 InternallndicationDeliveryHandler接口与 Internal WBEMListener接口 合设)转发。 InternalWBEMListener通过 ListenerDestinationlnternal所携带端 口号信息根据 ME2Provider的对象引用将信息发送到 ME2Provider。
步骤 310、 ME2Provider收到 InternalWBEMListener通过所述端口号发送 的 MElProvider上报的告警事件后, 对该告警事件进行处理。 如果 ME2Provider能够处理该告警事件, 则直接关闭该事件。 如果 ME2Provider 不能够处理该告警事件, 执行步骤 311。
步骤 311、 ME2Provider对该告警事件进行修改后, 将修改后的事件上 报到 CIMOM。 具体的 , ME2Provider将步骤 307中告警事件的 AlertingManagedElement 值 力口 入 AlertingMETrace 数 组 中 , 并 将 AlertingManagedElement属性值修改为短信子系统实例的对象路径, 再将修 改后的告警事件上报 CIMOM。
同 时, 为 了 记录告警事件在不同层次的处理过程, 在 CIM Alertlndication子类中增加属性, 如下表所示:
Figure imgf000017_0001
Figure imgf000018_0001
上表表示短信中心经短信中心的适配模块上报的告警事件经短信子系 统的处理并修改后, AlertingManagedElement和 AlertingMETrace属性值 的变化。
步骤 312、 ME3Provider接收、 处理和上报 Indication 具体的过程请参 考步骤 308-312的描述, 本发明在此不再详述。
采用本实施例的技术方案,通过在 CIM服务器内部对应的不同层次的处 理模块之间的事件转发,从而提高 CIM内部模块接收事件效率并减少了接收 事件模块的开发工作。
图 7为本发明实施例提供的 CIM服务器的结构示意图, 包括: 接收单元 701、 指示过滤器实例创建单元 702, 事件订阅单元 703以及接收端 704。 具 体的,
接收单元 701用于接收定义事件的接收端的请求, 所述定义事件接收端 的请求中携带作为所述接收端的目标属性标识,以及所述接收端为 CIM服务 器中的内部模块的标识; CIMOM根据所述作为所述接收端的目标属性标识 定义事件的接收端;
指示过滤器实例创建单元 702用于接收创建指示过滤器的实例的请求, 并通过所述指示过滤器的实例接收事件的过滤条件并存储;
事件订阅单元 703用于接收事件订阅请求, 所述事件订阅请求用于为所 述过滤条件及接收端建立关联, 以便于所述 CIMOM收到的事件后, 根据所 述存储的过滤条件确定所述事件需要发送到所述接收端, 通过所述接收端 的目标属性标识将事件发送到所述接收端;
接收端属于 CIM服务器的内部模块, 用于接收所述事件订阅单元 703事 件。
图 8为本发明的实施例提供的 CIM服务器进一步的结构示意图。 在图 8 中, 接收单元 701、 指示过滤器实例创建单元 702, 事件订阅单元 703以及接 收端 704具有图 7的功能模块同样的功能。此外该 CIM服务器进一步的包括内 部转发处理接口 705以及 WBEM监听管理及 706以及 WBEM监听管理 706提 供的内部 WBEM监听接口 706。 如图解所示, 接收单元 701、 指示过滤器实 例创建单元 702以及事件订阅单元 703既可以是 CIM服务器中的独立功能单 元, 也可以是 CIM服务器中的 CIMOM的组成单元, 本发明在此不作限定。 另夕卜, 图 8中的内部转发处理接口 705既可以是一个独立与内部 WBEM监听 接口 706的接口, 也可以合设于内部 WBEM监听接口中, 本发明实施例在此 同样不做具体的限定。
具体的, 内部 WBEM监听接口 706-1用于接收申请接收端的目标属性标 识的请求, 并为所述接收端分配作为所述接收端的目标属性标识, 所述申 请接收端的目标属性标识的请求中携带所述接收端为 CIM服务器的内部模 块的标识。
WBEM监听接口 706用于接收获取内部 WBEM监听接口的请求,所述获 取内部 WBEM监听接口的请求中携带所述接收端为 CIM服务器的内部模块 的标识; 以及用于根据所述获取内部 WBEM监听接口的请求中所述接收端 为 CIM服务器的内部模块的标识为所述事件的接收端提供所述内部 WBEM 监听接口 706-1 , 以便于将事件通过所述内部 WBEM监听接口发送给所述接 收端; 或所述服务器进一步包括内部转发处理接口, 所述 WBEM监听接口 用于根据所述获取内部 WBEM监听接口的请求中所述接收端为 CIM服务器 的内部模块的标识为所述事件的接收端提供所述内部 WBEM监听接口 706- 1以及内部转发处理接口 705 , 以便于所述 CIMOM将事件通过所述内部 转发处理接口以及所述内部 WBEM监听接口发送给所述接收端。
进一步的, 事件订阅单元 703根据所述存储的过滤条件确定所述事件需 要发送到接收端 704包括: 所述事件订阅单元 703确定所述接收单元收到的 事件匹配存储的过滤条件, 并据所述存储的所述过滤条件的相关信息获取 接收端的相关信息; 所述事件订阅单元 703进一步用于获取的所述接收端的 相关信息获取所述获取的接收端的相关信息对应的所述接收端的目标属性 标识。
进一步的, 当申请接收端的目标属性标识的请求中还携带接收端的对 象引用信息时, 部 WBEM监听接口 706-1进一步用于将所述接收端的目标属 性标识以及所述接收端的对象引用信息对应存储。
进一步的, 事件订阅单元 703 进一步用于将获取到的所述接收端的目 标属性标识以及所述事件发送给所述内部 WBEM监听接口 706-1 ; 或, 当所 述服务器包括内部转发处理接口 705时, 事件订阅单元 703进一步用于将获 取到的所述接收端的目标属性标识以及所述事件通过内部转发处理接口 705发送给所述内部 WBEM监听接口 706-1; 内部 WBEM监听接口 706-1进一 步用于根据所述接收端的目标属性标识获取所述接收端的对象引用信息。
进一步的, 事件订阅单元 703通过所述接收端的目标属性标识将事件发 送到所述接收端 704具体为: 事件订阅单元 703通过内部 WBEM监听接口 706-1监听所述接收端的目标属性标识接收所述事件, 并由内部 WBEM监听 接口 706-1将所述事件发送给所述对象引用信息对应的接收端 704。
进一步的, 接收端 704还用于处理接收到的事件, 将所述接收到的事件 的路径属性值修改为所述接收端的对象路径, 并上报修改后的事件。
进一步的, 接收单元 701根据所述作为所述接收端的目标属性标识定义 事件的接收端 704具体为: 接收单元 701为所述接收端 704创建 CIMJJstenerDestination Internal 实 例 , 并 为 所 述 CIMJJstenerDestinationlntemal实例的目标属性赋予所述为所述接收端分 配的目标属性标识。
此外, 本发明上述实施例的 CIM服务器可以为计算机管理系统的实体, 具体的可以为计算机。 而执行上述方法的可以为计算机中的处理器。 上述 CIM服务器的功能模块可以为运行于处理器中的功能模块。 采用本实施例的技术方案,通过在 CIM服务器内部对应的不同层次的处 理模块之间的事件转发,从而提高 CIM内部模块接收事件效率,并有助于对 上报事件进行处理, 提高产生事件问题的被管网元的用户体验。 此外, 通 过在 CIM服务器内部对各种事件进行转发和处理,使得 CIM服务器不需要将 转发的各事件根据不同的 CIM客户端进行不同的协议转换,从而提高 CIM服 务器转发事件的工作效率。
需要注意的是, 在上述模块实施例中, 所包括的各个单元只是按照功 能逻辑进行划分的, 但并不局限于上述的划分, 只要能够实现相应的功能 即可; 另外, 各功能单元的具体名称也只是为了便于相互区分, 并不用于 限制本发明的保护范围。
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并 不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本 发明的保护范围应该以权利要求的保护范围为准。

Claims

权利要求
1.一种实现事件转发的方法, 其特征在于, 应用于通用信息模型 CIM服 务器中, 包括
CIM对象管理器 CIMOM接收定义事件的接收端的请求, 所述定义事件 接收端的请求中携带作为所述接收端的目标属性标识, 以及所述接收端为 CIM服务器中的内部模块的标识; CIMOM根据所述作为所述接收端的目标 属性标识定义事件的接收端;
所述 CIMOM接收创建指示过滤器的实例的请求, 并通过所述指示过滤 器的实例接收事件的过滤条件并存储;
所述 CIMOM接收事件订阅请求, 所述事件订阅请求用于为所述过滤条 件及接收端建立关联, 以便于所述 CIMOM收到的事件后, 根据所述存储的 过滤条件确定所述事件需要发送到所述接收端 , 通过所述接收端的目标属 性标识将事件发送到所述接收端。
2. 如权利要求 1所述的方法, 其特征在于, 该方法进一步包括: 内部基于企业的网络管理 WBEM监听接口接收申请接收端的目标属性 标识的请求, 所述申请接收端的目标属性标识的请求中携带所述接收端为 CIM服务器的内部模块的标识;
所述内部 WBEM监听接口为所述接收端分配作为所述接收端的目标属 性标识。
3.如权利要求 2所述的方法, 其特征在于, 所述内部 WBEM监听接口接 收申请接收端的目标属性标识的请求之前, 该方法进一步包括:
所述 WBEM监听接口接收获取内部 WBEM监听接口的请求,所述获 取内部 WBEM监听接口的请求中携带所述接收端为 CIM服务器的内部模块 的标识;
所述 WBEM监听接口根据所述获取内部 WBEM监听接口的请求中所述 接收端为 CIM服务器的内部模块的标识为所述事件的接收端提供所述内部 WBEM监听接口,以便于所述 CIMOM将事件通过所述内部 WBEM监听接口 发送给所述接收端; 或所述 WBEM监听接口根据所述获取内部 WBEM监听 接口的请求中所述接收端为 CIM服务器的内部模块的标识为所述事件的接 收端提供所述内部 WBEM监听接口以及内部转发处理接口, 以便于所述 CIMOM将事件通过所述内部转发处理接口以及所述内部 WBEM监听接口 发送给所述接收端。
4. 如权利要求 3所述的方法, 其特征在于, 所述根据所述存储的过滤 条件的相关信息确定所述上报的事件需要发送到所述接收端具体为: 所述 CIMOM确定收到的事件匹配存储的过滤条件, 并根据所述存储的所述过滤 条件的相关信息获取接收端的相关信息;
所述方法进一步包括: 所述 CIMOM根据获取的所述接收端的相关信息获取 所述获取的接收端的相关信息对应的所述接收端的目标属性标识。
5. 如权利要求 4所述的方法, 其特征在于, 所述申请接收端的目标属 性标识的请求中还携带接收端的对象引用信息; 所述方法进一步包括: 所述内部 WBEM监听接口将所述接收端的目标属性标识以及所述接收 端的对象引用信息对应存储。
6. 如权利要求 5所述的方法, 其特征在于, 所述方法进一步包括: 所述 CIMOM将获取到的所述接收端的目标属性标识以及所述事件发 送给所述内部 WBEM监听接口; 或所述 CIMOM将获取到的以及所述接收端 的目标属性标识以及所述事件通过内部转发处理接口发送给所述内部
WBEM监听接口;
所述内部 WBEM监听接口根据所述接收端的目标属性标识获取所述接 收端的对象引用信息。
7. 如权利要求 6所述的方法, 其特征在于, 所述通过所述接收端的目 标属性标识将事件发送到所述接收端具体为:
通过所述内部 WBEM监听接口监听所述接收端的目标属性标识接收所 述事件, 并由所述内部 WBEM监听接口将所述事件发送给所述对象引用信 息对应的接收端。
8、 如权利要求 1-6任一所述的方法, 其特征在于, 该方法进一步包括: 所述接收端处理接收到的事件, 将所述接收到的事件的路径属性值修改为 所述接收端的对象路径, 并上报修改后的事件。
9、 如权利要求 1 -8任一所述的方法, 其特征在于, 所述 CIMOM根据所 述作为所述接收端的目标属性标识定义事件的接收端具体为: 所述 CIMOM 为所述接收端创建 CIMJJstenerDestinationlntemal实例, 并为所述
CIMJJstenerDestinationlntemal实例的目标属性赋予所述为所述接收端分 配的目标属性标识。
10、 一种通用信息模型 CIM服务器, 其特征在于, 包括: 接收单元、 指 示过滤器实例创建单元以及事件订阅单元以及接收端;
所述接收单元用于接收定义事件的接收端的请求, 所述定义事件接收 端的请求中携带作为所述接收端的目标属性标识, 以及所述接收端为 CIM 服务器中的内部模块的标识; CIMOM根据所述作为所述接收端的目标属性 标识定义事件的接收端;
所述指示过滤器实例创建单元用于接收创建指示过滤器的实例的请 求, 并通过所述指示过滤器的实例接收事件的过滤条件并存储;
所述事件订阅单元用于接收事件订阅请求, 所述事件订阅请求用于为 所述过滤条件及接收端建立关联, 以便于所述接收单元收到的事件后, 所 述事件订阅单元根据所述存储的过滤条件确定所述事件需要发送到所述接 收端, 通过所述接收端的目标属性标识将事件发送到所述接收端;
所述接收端属于 CIM服务器的内部模块,用于接收所述事件订阅单元发 送的事件。
11、 如权利要求 10所述的服务器, 其特征在于, 所述服务器进一步包 括: 内部基于企业的网络管理 WBEM监听接口; 所述内部 WBEM监听接口用于接收申请接收端的目标属性标识的请 求, 并为所述接收端分配作为所述接收端的目标属性标识, 所述申请接收 端的目标属性标识的请求中携带所述接收端为 CIM服务器的内部模块的标 识。
12、 如权利要求 11所述的服务器, 其特征在于, 所述服务器进一步包 括 WBEM监听接口;
所述 WBEM监听接口用于接收获取内部 WBEM监听接口的请求, 所述 获取内部 WBEM监听接口的请求中携带所述接收端为 CIM服务器的内部模 块的标识;
以及用于根据所述获取内部 WBEM监听接口的请求中所述接收端为 CIM服务器的内部模块的标识为所述事件的接收端提供所述内部 WBEM监 听接口, 以便于将事件通过所述内部 WBEM监听接口发送给所述接收端; 或所述服务器进一步包括内部转发处理接口, 所述 WBEM监听接口用于根 据所述获取内部 WBEM监听接口的请求中所述接收端为 CIM服务器的内部 模块的标识为所述事件的接收端提供所述内部 WBEM监听接口以及内部转 发处理接口, 以便于所述 CIMOM将事件通过所述内部转发处理接口以及所 述内部 WBEM监听接口发送给所述接收端。
13、 如权利要求 12任一所述的服务器, 其特征在于, 所述事件订阅单 元根据所述存储的过滤条件确定所述事件需要发送到所述接收端包括: 所 述事件订阅单元确定所述接收单元收到的事件匹配存储的过滤条件, 并据 所述存储的所述过滤条件的相关信息获取接收端的相关信息;
所述事件订阅单元进一步用于获取的所述接收端的相关信息获取所述 获取的接收端的相关信息对应的所述接收端的目标属性标识。
14、 如权利要求 13所述的服务器, 其特征在于, 所述申请接收端的目 标属性标识的请求中还携带接收端的对象引用信息;
所述内部 WBEM监听接口进一步用于将所述接收端的目标属性标识 以及所述接收端的对象引用信息对应存储。
15、 如权利要求 14所述的服务器, 其特征在于,
所述事件订阅单元进一步用于将获取到的所述接收端的目标属性标识 以及所述事件发送给所述内部 WBEM监听接口; 或, 当所述服务器包括内 部转发处理接口时, 所述事件订阅单元进一步用于将获取到的所述接收端 的目标属性标识以及所述事件通过内部转发处理接口发送给所述内部 WBEM监听接口;
所述内部 WBEM监听接口进一步用于根据所述接收端的目标属性标识 获取所述接收端的对象引用信息。
16、 如权利要求 15所述的服务器, 其特征在于, 所述事件订阅单元通 过所述接收端的目标属性标识将事件发送到所述接收端具体为:
所述事件订阅单元通过所述内部 WBEM监听接口监听所述接收端的目 标属性标识接收所述事件, 并由所述内部 WBEM监听接口将所述事件发送 给所述对象引用信息对应的接收端。
17、 如权利要求 10-16任一所述的服务器, 其特征在于, 所述接收端还 用于处理接收到的事件, 将所述接收到的事件的路径属性值修改为所述接 收端的对象路径, 并上报修改后的事件。
18、 如权利要求 10-17任一所述的服务器, 其特征在于, 所述接收单元根据所述作为所述接收端的目标属性标识定义事件的接 收 端 具 体 为 : 所 述 接 收 单 元 为 所 述 接 收 端 创 建 CIMJJstenerDestination Internal 实 例 , 并 为 所 述 CIM_ListenerDestinationlnternal 实例的目标属性赋予所述为所述接收端 分配的目标属性标识。
PCT/CN2012/073524 2011-07-27 2012-04-05 一种实现事件转发的方法及通用信息模型cim服务器 WO2012167657A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110211997.1A CN102904739B (zh) 2011-07-27 2011-07-27 一种实现事件转发的方法及通用信息模型cim服务器
CN201110211997.1 2011-07-27

Publications (1)

Publication Number Publication Date
WO2012167657A1 true WO2012167657A1 (zh) 2012-12-13

Family

ID=47295453

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/073524 WO2012167657A1 (zh) 2011-07-27 2012-04-05 一种实现事件转发的方法及通用信息模型cim服务器

Country Status (2)

Country Link
CN (1) CN102904739B (zh)
WO (1) WO2012167657A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527294A (zh) * 2020-12-18 2021-03-19 吉林亿联银行股份有限公司 一种vue的双向绑定方法及相关装置

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948294B (zh) * 2017-11-29 2020-09-01 广东电网有限责任公司电力科学研究院 一种基于iec61970标准的cis服务保持方法及cis服务器
CN112417402B (zh) * 2020-11-27 2024-04-12 亿企赢网络科技有限公司 权限控制方法、权限控制装置、权限控制设备及存储介质
CN115794444B (zh) * 2023-02-02 2023-05-16 广州钛动科技股份有限公司 事件通信方法、装置、计算机设备和计算机可读存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050193109A1 (en) * 1998-02-06 2005-09-01 Microsoft Corporation Object manager for common information model
CN1921413A (zh) * 2005-08-25 2007-02-28 国际商业机器公司 用于管理多主机环境下的公共信息模型的方法和系统
CN101594376A (zh) * 2008-05-26 2009-12-02 国际商业机器公司 向cimom注册cim提供器的方法和相应的装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050193109A1 (en) * 1998-02-06 2005-09-01 Microsoft Corporation Object manager for common information model
CN1921413A (zh) * 2005-08-25 2007-02-28 国际商业机器公司 用于管理多主机环境下的公共信息模型的方法和系统
CN101594376A (zh) * 2008-05-26 2009-12-02 国际商业机器公司 向cimom注册cim提供器的方法和相应的装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527294A (zh) * 2020-12-18 2021-03-19 吉林亿联银行股份有限公司 一种vue的双向绑定方法及相关装置

Also Published As

Publication number Publication date
CN102904739A (zh) 2013-01-30
CN102904739B (zh) 2016-05-25

Similar Documents

Publication Publication Date Title
US20210329493A1 (en) Method and system for group communication, group server, and group member device
US11936724B2 (en) Configuring service mesh networking resources for dynamically discovered peers or network functions
US11411897B2 (en) Communication method and communication apparatus for message queue telemetry transport
WO2021017301A1 (zh) 基于Kubernetes集群的管理方法、装置及计算机可读存储介质
US10110671B2 (en) Method, system, and device for managing server hardware resources in a cloud scheduling environment
JP6563936B2 (ja) クラウドに基づく仮想オーケストレーターのための方法、システム、およびコンピュータ読取可能な媒体
WO2018059222A1 (zh) 一种文件切片上传方法、装置及云存储系统
WO2019062994A1 (zh) 网络切片的管理方法、设备及系统
WO2015100611A1 (zh) 一种网络功能虚拟化nfv故障管理装置、设备及方法
US11929873B1 (en) OPC UA-based centralized user configuration method and system for time-sensitive network
WO2011144030A1 (zh) 云服务消费方法、云服务消息包、云服务中介及云系统
WO2019001312A1 (zh) 实现告警关联的方法、装置以及计算机可读存储介质
WO2017185251A1 (zh) Vnfm的确定方法和网络功能虚拟化编排器
WO2018090191A1 (zh) 网络功能的管理方法、管理单元及系统
WO2014056345A1 (zh) 监控任务的管理方法及装置
CN114095430A (zh) 一种访问报文的处理方法、系统及工作节点
WO2012167657A1 (zh) 一种实现事件转发的方法及通用信息模型cim服务器
CN109166352B (zh) 云停车场管理系统
CN114205866A (zh) 确定性信息上报、下发方法、装置、存储介质及电子设备
WO2021017907A1 (zh) 一种优化的微服务间通信的方法及装置
CN116996585A (zh) 组播通信方法、装置、系统、计算机设备和存储介质
CN107404410B (zh) 一种云环境下构建虚拟网络功能平台的方法及装置
WO2017215381A1 (zh) 虚拟扩展端口的指示方法和装置、存储介质
WO2012167660A1 (zh) 一种获取cim资源的方法和装置
WO2021057844A1 (zh) 一种创建pm任务的方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12796219

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12796219

Country of ref document: EP

Kind code of ref document: A1