WO2016173309A1 - 一种基于管理信息模型获取业务错误信息的方法及装置 - Google Patents

一种基于管理信息模型获取业务错误信息的方法及装置 Download PDF

Info

Publication number
WO2016173309A1
WO2016173309A1 PCT/CN2016/073205 CN2016073205W WO2016173309A1 WO 2016173309 A1 WO2016173309 A1 WO 2016173309A1 CN 2016073205 W CN2016073205 W CN 2016073205W WO 2016173309 A1 WO2016173309 A1 WO 2016173309A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration
business
service
error
code
Prior art date
Application number
PCT/CN2016/073205
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 WO2016173309A1 publication Critical patent/WO2016173309A1/zh

Links

Images

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
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network

Definitions

  • the present invention relates to the field of communication device configuration technologies, and in particular, to a method and apparatus for acquiring service error information based on a management information model.
  • the management information model (MIM)-based configuration channel enables the service configuration on the communication device to be uniformly managed in the form of an object model: an independent service configuration corresponds to an object in the database, and the configuration component corresponds to the object attribute.
  • the configuration delivered by different terminals (including the CLI command line interface, SNMP simple network management protocol, WEB Internet, etc.) is unified into the information model channel in the form of object operation.
  • the channel implements verification, storage, submission, and return of the object configuration.
  • Basic configuration functions such as roll and power-on recovery.
  • the object model is abstracted from the communication service and is only related to the service configuration logic. It does not need to change with the peripheral terminal. Therefore, the service only needs to provide a set of processing procedures for processing objects, and does not need to care about the differences between the terminals.
  • the MIM channel After receiving the object operation configuration delivered by the terminal, the MIM channel checks according to the object model rule. If the current configuration does not meet the rule, the configuration process is terminated and the terminal is configured with an error. It should be noted here that the terminal delivery configuration is stored in the database managed by the MIM channel, so one business object A corresponds to one table a in the database, and the object A attribute corresponds to one field of the table a.
  • Object model rules (that is, table rules) are divided into four categories: the first category: rules based on the object itself, such as the maximum number of entries configurable in the table; the second category: rules based on object properties, such as the effective range of attribute values The third category: rules based on the relationship between object attributes; the fourth category: rules based on the relationship between objects, such as the dependency between object A and object B.
  • the MIM channel checks the validity of the configuration according to the above four types of table rules defined by the service. In the channel view, the ever-changing business configuration is a common one in the database. MIM has no way of knowing that Table A maintains the configuration of the communication device login authorized user, and Table B is the communication device MAC (Media Access Control or Medium Access Control).
  • Table C is the configuration of the SNMP protocol alarm sending address, and so on.
  • MIM Media Access Control
  • the MIM channel since the MIM channel does not understand the service, checking the generated return code will inevitably be more inclined to the meaning of the code implementation layer.
  • the object A depends on the object B.
  • the terminal When the MIM finds that the resource B required by A is not present, the terminal returns a return code that depends on the error.
  • the dependency is incorrect: the related physical interface does not exist on the board; in some cases, the SSH (Secure Shell Secure Shell Protocol) service is not open. Since the channel is not in contact with the business, there is no way to return such a "friendly" return code to the user.
  • SSH Secure Shell Secure Shell Protocol
  • the management information model channel can only identify the object model that the service abstracts according to its own configuration semantics, and cannot identify the specific service, and the user can only identify the specific service and cannot identify the object model, so that the management information model channel and the user cannot be normal. Communication, causing The user cannot know which configuration has gone wrong.
  • the embodiment of the invention provides a method and a device for acquiring service error information based on a management information model, and finds an error prompt code of a service configuration error part through a management information model channel, and obtains a mapping relationship between an error prompt code and a return code statement.
  • the corresponding return code statement prompts the user, thereby improving the ease of use of the communication device and better facing the user.
  • An embodiment of the present invention provides a method for obtaining service error information based on a management information model, including:
  • the error prompt code includes at least: an object identifier a number and channel error value, the return code statement being set to indicate error information of the service;
  • the first return code statement is prompted to the user.
  • the mapping relationship between the error prompt code and the return code statement of the pre-configured service includes: a first mapping relationship between the error prompt code of the service and a return code, and the return code and the return code a second mapping relationship between the statements, the first error prompt code is parsed according to a mapping relationship between the error prompt code and the return code statement of the pre-configured service, and the corresponding first return code statement is obtained, including :
  • mapping relationship between the error prompt code and the return code statement of the service includes:
  • the error prompt code of the business object attribute configuration is mapped to the return code statement, and the error prompt code configured by the business object attribute includes: an object identification number, an attribute identification number, and a channel error value;
  • the mapping between the error prompt code of the relationship between the business object attributes and the return code statement, and the error prompt code configured by the relationship between the attributes of the business object includes: an object identification number, a first attribute identification number, and a second attribute identification Number and channel error values;
  • the mapping between the error prompt code of the relationship between the business objects and the return code statement, and the error prompt code configured by the relationship between the business objects includes: a first object identifier number, an operation type of the first object, and a second object identifier Number and channel error value; wherein the service includes multiple business objects, the business object is an independent business configuration, and the business object attribute is a service configuration component.
  • the embodiment of the invention further provides a method for obtaining service error information based on a management information model, including:
  • the service configuration check is performed on the service, and the first error prompt code is searched according to the result of the check failure when the check fails, and the first error prompt code includes at least: an object identifier number and a channel. Wrong value
  • the performing service configuration check on the service includes:
  • the business object is an independent service configuration, and the business object attribute is a service configuration component.
  • the object model rule includes at least: a configuration standard of the business object, a configuration standard of the business object attribute, a configuration standard of the relationship between the business object attributes, and a configuration standard of the relationship between the business objects, according to the pre-configured object model rule.
  • the service configuration check is performed on the service, and the first error prompt code is found according to the check failure result when the check fails, including:
  • An embodiment of the present invention further provides an apparatus for acquiring service error information based on a management information model, including:
  • a first sending module configured to send a service configuration request message for a service to a management information model channel
  • the first receiving module is configured to receive a response failure message that is sent by the management information model channel and that carries the first error prompt code;
  • the parsing module is configured to parse the first error prompt code according to a mapping relationship between the error prompt code and the return code statement of the pre-configured service, to obtain a corresponding first return code statement, where the error prompt code is at least
  • the method includes: an object identification number and a channel error value, where the return code statement is set to indicate error information of the service;
  • the prompting module is configured to prompt the first return code statement to the user.
  • the mapping relationship between the error prompt code and the return code statement of the pre-configured service in the parsing module includes: a first mapping relationship between the error prompt code of the service and a return code, and the return code And the second mapping relationship between the return code statement, the parsing module includes:
  • the first parsing unit is configured to parse the first error prompt code according to the first mapping relationship to obtain a corresponding first return code
  • the second parsing unit is configured to parse the first return code according to the second mapping relationship to obtain a corresponding first return code statement.
  • mapping relationship between the error prompt code and the return code statement of the service in the parsing module includes:
  • the error prompt code of the business object attribute configuration is mapped to the return code statement, and the error prompt code configured by the business object attribute includes: an object identification number, an attribute identification number, and a channel error value;
  • the mapping between the error prompt code of the relationship between the business object attributes and the return code statement, and the error prompt code configured by the relationship between the attributes of the business object includes: an object identification number, a first attribute identification number, and a second attribute identification Number and channel error values;
  • the mapping between the error prompt code of the relationship between the business objects and the return code statement, and the error prompt code configured by the relationship between the business objects includes: a first object identifier number, an operation type of the first object, and a second object identifier Number and channel error value; wherein the service includes multiple business objects, the business object is an independent business configuration, and the business object attribute is a service configuration component.
  • An embodiment of the present invention further provides an apparatus for acquiring service error information based on a management information model, including:
  • a second receiving module configured to receive a service configuration request message sent by a sender for a service
  • the processing module is configured to perform a service configuration check on the service according to the pre-configured object model rule, and find a first error prompt code according to the result of the check failure when the check fails, where the first error prompt code includes at least: an object Identification number and channel error value;
  • the second sending module is configured to send a response failure message carrying the first error prompt code to the sender.
  • the service configuration check for the service in the processing module includes:
  • the business object is an independent service configuration, and the business object attribute is a service configuration component.
  • the object model rule in the processing module at least includes: a configuration standard of a business object, a business object attribute
  • the configuration standard, the configuration standard of the relationship between the business object attributes, and the configuration standard of the relationship between the business objects, the processing module includes:
  • a first processing unit configured to compare a configuration of the business object in the service with a configuration standard of the business object in the object model rule, and when the configuration of the business object does not meet the configuration standard of the business object, record The first error prompt code;
  • a second processing unit configured to compare a configuration of a business object attribute in the business with a configuration standard of a business object attribute in the object model rule, when the configuration of the business object attribute does not satisfy the configuration of the business object attribute Record the first error prompt code when standard;
  • a third processing unit configured to compare a configuration of a relationship between the business object attributes in the business with a configuration criterion of a relationship between the business object attributes in the object model rule, and when the configuration of the relationship between the business object attributes is not satisfied Recording the first error prompt code when describing the configuration criteria of the relationship between the attributes of the business object;
  • a fourth processing unit configured to compare a configuration of a relationship between the business objects in the business with a configuration criterion of a relationship between the business objects in the object model rule, when the configuration of the relationship between the business objects does not satisfy the business object
  • the configuration criterion of the relationship is set, the first error prompt code is recorded.
  • An embodiment of the present invention is a method for obtaining service error information based on a management information model, and finds a business object configuration in which an error occurs in a service configuration through a management information model channel, and obtains an error prompt code of a service object configuration, according to a pre-configured error prompt.
  • the mapping relationship between the code and the return code statement obtains the corresponding return code statement, and prompts the return code statement to the user, thereby improving the ease of use of the communication device and better facing the user.
  • FIG. 1 is a first schematic diagram of a method for obtaining service error information based on a management information model according to an embodiment of the present invention
  • FIG. 2 is a second schematic diagram of a method for obtaining service error information based on a management information model according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram showing a format of a mapping rule for an error prompt code and a return code according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram 3 of a method for obtaining service error information based on a management information model according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a management information model channel and a sending end processing service according to an embodiment of the present invention
  • FIG. 6 is a block diagram 1 of an apparatus for acquiring service error information based on a management information model according to an embodiment of the present invention
  • FIG. 7 is a block diagram of a parsing module in an apparatus for acquiring service error information based on a management information model according to an embodiment of the present invention
  • FIG. 8 is a block diagram 2 of an apparatus for acquiring service error information based on a management information model according to an embodiment of the present invention
  • FIG. 9 is a block diagram showing a processing module in an apparatus for acquiring service error information based on a management information model according to an embodiment of the present invention.
  • an embodiment of the present invention provides a method for obtaining service error information based on a management information model, including:
  • Step S100 Send a service configuration request message for a service to a management information model channel
  • Step S200 Receive a response failure message that carries the first error prompt code returned by the management information model channel.
  • step S300 the first error prompt code is parsed according to the mapping relationship between the error prompt code and the return code statement of the service, and the corresponding first return code statement is obtained, where the error prompt code includes at least: An object identification number and a channel error value, the return code statement being set to indicate error information of the service;
  • Step S400 prompting the first return code statement to the user.
  • the service configures the mapping relationship between the error prompt code and the return code statement obtained by the management information model channel check on the mapping XML document. For example, when configuring a management information model channel, the number of corresponding database table entries has reached the upper limit when the configuration is created.
  • the service configures the mapping rule for this error condition: A table is fully configured, and the return code statement is mapped: the number of authorized users who can log in to the route The maximum has been reached; the B table is fully configured and mapped to the return code statement: the number of MAC entries on the device has exceeded.
  • mapping document when the configuration management information model channel discovery configuration does not satisfy the object model rule defined by the service, the specific error prompt code is collected and returned to the terminal, and the terminal maps the error prompt code to the return code according to the mapping rule in the XML.
  • the statement prompts the user. This method hands over the right of the interface to the service that is familiar with the configuration semantics.
  • the management information model channel checks the object configuration to obtain the error prompt code, and then returns the return code statement. Putting the mapping rules in the terminal can take into account the differences in the return code statements of different terminals.
  • the terminal here is the sender.
  • the service configuration request message for a certain service is sent to the management information model channel, and then the response failure message returned by the management information model channel is received, where the response failure message includes the configuration of the service object that is found by the management information model channel is not satisfied.
  • the first error prompt code when the object model rules.
  • the terminal After receiving the first error prompt code, the terminal obtains a corresponding first return code statement according to the mapping relationship between the error prompt code and the return code statement, and the first return code statement is set to indicate a specific configuration error, and the user according to the first return code
  • the statement can know which configuration of the link in the service configuration has an error, so that corresponding measures can be taken to further improve the ease of use of the communication device and better serve the user.
  • the mapping relationship between the error prompt code and the return code statement of the pre-configured service includes: a first mapping relationship between the error prompt code of the service and a return code, and the return a second mapping relationship between the code and the return code statement, as shown in FIG. 2, step S300 includes:
  • Step S301 Parse the first error prompt code according to the first mapping relationship to obtain a corresponding first return code.
  • Step S302 Parse the first return code according to the second mapping relationship to obtain a corresponding first return code statement.
  • the management information model channel After obtaining the first error prompt code returned by the management information model channel, first obtaining a first return code corresponding to the first error prompt code according to the first mapping relationship between the error prompt code and the return code, and then returning according to the The second mapping relationship between the code and the return code statement obtains a first return code statement corresponding to the first return code, and the first return code statement can be recognized by the user.
  • the management information model channel checks a certain configuration and finds that the number of corresponding database table entries has reached the upper limit, according to the mapping rule of the service configuration, the process of obtaining the corresponding return code statement is: A table full allocation, mapping to return code 11452, according to the return code mapping to the return code statement: the number of routes logged in authorized users has reached the maximum.
  • mapping relationship between the error prompt code and the return code statement of the service in step S300 includes:
  • the error prompt code of the business object attribute configuration is mapped to the return code statement, and the error prompt code configured by the business object attribute includes: an object identification number, an attribute identification number, and a channel error value;
  • the mapping between the error prompt code of the relationship between the business object attributes and the return code statement, and the error prompt code configured by the relationship between the attributes of the business object includes: an object identification number, a first attribute identification number, and a second attribute identification Number and channel error values;
  • the mapping between the error prompt code of the relationship between the business objects and the return code statement, and the error prompt code configured by the relationship between the business objects includes: a first object identifier number, an operation type of the first object, and a second object identifier Number and channel error value; wherein the service includes multiple business objects, the business object is an independent business configuration, and the business object attribute is a service configuration component.
  • mapping rule of the error prompt code and the return code of the business object defined by the service is: (the first three fields constitute an error prompt code, and the last field is a return code)
  • the ID is the identity identification number
  • the corresponding return code is obtained according to the error prompt code composed of the object identification number, the operation type, and the channel error value, and then the mapping relationship between the return code and the return code statement is used to obtain the corresponding Return code statement.
  • mapping format of the error prompt code and return code of the business object attribute configuration of the service definition is: (the first three fields constitute the error prompt code, and the last field is the return code)
  • mapping rule of the error prompt code and the return code of the business object attribute relationship configuration is: (the first four fields constitute the error prompt code, and the last field is the return code)
  • mapping format of the error prompt code and return code of the business-defined business object relationship configuration is: (the first four fields constitute the error prompt code, and the last field is the return code)
  • ⁇ objidA A object ID
  • actionA A type of operation of the object
  • objidB B object ID
  • mimerrcode channel error value
  • usererrcode return code
  • the terminal maps the error prompt code of the management information model channel lookup to the return code according to the mapping rule, and then maps the return code to the return code statement. Since the error information of each class is different, the mapping rule format is also divided into four categories for convenience of implementation and improvement of mapping efficiency. As shown in FIG. 3, a format diagram is defined for the mapping rule of the error prompt code and the return code.
  • An embodiment of the present invention further provides a method for obtaining service error information based on a management information model, as shown in FIG. 4, including:
  • Step S500 Receive a service configuration request message sent by a sender for a service.
  • Step S600 Perform a service configuration check on the service according to the pre-configured object model rule, and find a first error prompt code according to the result of the check failure when the check fails, where the first error prompt code includes at least: an object identifier. Number and channel error values;
  • Step S700 Send a response failure message carrying the first error prompt code to the sender.
  • the management information model channel receives the service configuration request information sent by the terminal for a certain service, and then checks the service configuration according to the object model rule.
  • the object model rules are business configurations. During the inspection, it is necessary to check the configuration of the business object; check the configuration of the business object attributes; check the configuration of the relationship between the business object attributes; and check the configuration of the relationship between the business objects. When an inspection is completed and the inspection is successful, the next inspection is performed until all inspections are completed. When an error occurs during the check, the corresponding error prompt code is immediately found, and the error prompt code is fed back to the terminal, and the terminal uses the mapping relationship between the error prompt code and the return code statement to find the corresponding return code statement prompting the user. Let the user know what kind of error occurred in the business configuration.
  • performing service configuration check on the service in step S600 includes:
  • the business object is an independent service configuration, and the business object attribute is a service configuration component.
  • the content that can be checked includes whether to create a duplicate object configuration, or whether to modify an object configuration that does not exist.
  • the management information model channel needs to record which object is doing what kind of operation, so the error message to the terminal includes: error ID of the object ID number, operation type and channel error value. .
  • the management information model channel needs to record which attribute of which object has an error, so the check error information to the terminal needs to include: an error message composed of the object ID number, the attribute ID number, and the channel error value. code.
  • the contents that can be checked include whether the relationship between the attributes is satisfied and the value between the attributes is large.
  • the management information model channel needs to record which error between which two attributes of the object, so the check error information to the terminal needs to include: object ID, first attribute ID, second attribute ID And an error prompt code consisting of channel error values.
  • the content that can be checked includes whether the mutual exclusion relationship between the objects is satisfied.
  • the management information model channel needs to record which object A is performing which type of operation and which object B, and therefore the error message to the terminal needs to include: A object ID, A The error prompt code consisting of the object's operation type, B object ID, and channel error value.
  • the object model rule in step S600 includes at least: a configuration standard of the business object, a configuration standard of the business object attribute, a configuration standard of the relationship between the business object attributes, and a configuration standard of the relationship between the business objects, step S600. include:
  • the configuration of the business object is compared with the configuration standard of the business object in the object model rule.
  • the configuration of the business object does not meet the configuration standard of the business object, the configuration of the business object exists. Problem; when the configuration of the business object meets the configuration criteria of the business object, it indicates that the configuration of the business object is no problem.
  • the configuration of the business object attribute in the business is compared with the configuration standard of the business object attribute in the object model rule.
  • the configuration of the business object attribute does not satisfy the configuration standard of the business object attribute, the service is indicated.
  • There is a problem with the configuration of the object attributes when the configuration of the business object attributes meets the configuration criteria of the business object attributes, it indicates that the configuration of the business object attributes is no problem.
  • the configuration of the relationship between the attributes of the business object is checked, the configuration of the relationship between the attributes of the business object in the business is compared with the configuration standard of the relationship between the attributes of the business object in the object model rule, and the relationship between the attributes of the business object does not satisfy the service.
  • the configuration criteria of the relationship between the object attributes are different, it indicates that there is a problem in the configuration of the relationship between the attributes of the business object; when the configuration of the relationship between the attributes of the business object satisfies the configuration standard of the relationship between the attributes of the business object, it indicates that the configuration of the relationship between the attributes of the business object has no problem.
  • the configuration of the relationship between the business objects in the business is compared with the configuration standard of the relationship between the business objects in the object model rules, and the relationship between the business objects does not satisfy the relationship between the business objects.
  • the standard is configured, it indicates that there is a problem in the configuration of the relationship between the business objects.
  • the relationship between the business objects is configured to meet the configuration criteria of the relationship between the business objects, it indicates that there is no problem in the configuration of the relationship between the business objects.
  • the corresponding first error prompt code should be immediately queried, and the first error prompt code is returned to the terminal, and the terminal searches for the corresponding first according to the first error prompt code. Return code statement, prompt to the user.
  • the sending end sends a configuration request message to the management information model channel for the A service, and the management information model channel performs service configuration check on the A service according to the configuration request message. After the service configuration check succeeds, the service object configuration is stored. At the same time, the service configuration message is sent to the A service. After the A service takes effect, the A service sends an A service configuration success message to the terminal through the management information model channel. The user is informed of the successful configuration of the A service.
  • the sending end sends a configuration request message to the management information model channel for the B service, and the management information model channel performs service configuration check on the B service according to the configuration request message.
  • the management information model channel searches for the error prompt code, and then sends a response failure message carrying the error prompt code to the terminal.
  • the terminal finds a corresponding return code statement according to the received error prompt code according to the mapping relationship between the error prompt code and the return code statement, and then prompts the return code statement to user.
  • An embodiment of the present invention further provides an apparatus for acquiring service error information based on a management information model, as shown in FIG. 6, including:
  • the first sending module 10 is configured to send a service configuration request message for a service to the management information model channel;
  • the first receiving module 20 is configured to receive a response failure message that is sent by the management information model channel and that carries the first error prompt code.
  • the parsing module 30 is configured to parse the first error prompt code according to a mapping relationship between the error prompt code and the return code statement of the pre-configured service to obtain a corresponding first return code statement, where the error prompt code At least including: an object identification number and a channel error value, the return code statement being set to indicate error information of the service;
  • the prompting module 40 is configured to prompt the first return code statement to the user.
  • the mapping relationship between the error prompt code and the return code statement of the pre-configured service in the parsing module 30 includes: a first between the error prompt code of the service and a return code. a mapping relationship and a second mapping relationship between the return code and the return code statement. As shown in FIG. 7, the parsing module 30 includes:
  • the first parsing unit 31 is configured to parse the first error prompt code according to the first mapping relationship to obtain a corresponding first return code
  • the second parsing unit 32 is configured to parse the first return code according to the second mapping relationship to obtain a corresponding first return code statement.
  • mapping relationship between the error prompt code and the return code statement of the service in the parsing module 30 includes:
  • the error prompt code of the business object attribute configuration is mapped to the return code statement, and the error prompt code configured by the business object attribute includes: an object identification number, an attribute identification number, and a channel error value;
  • the mapping between the error prompt code of the relationship between the business object attributes and the return code statement, and the error prompt code configured by the relationship between the attributes of the business object includes: an object identification number, a first attribute identification number, and a second attribute identification Number and channel error values;
  • the mapping between the error prompt code of the relationship between the business objects and the return code statement, and the error prompt code configured by the relationship between the business objects includes: a first object identifier number, an operation type of the first object, and a second object identifier Number and channel error value; wherein the service includes multiple business objects, the business object is an independent business configuration, and the business object attribute is a service configuration component.
  • An embodiment of the present invention further provides an apparatus for acquiring service error information based on a management information model, as shown in FIG. 8, including:
  • the second receiving module 50 is configured to receive a service configuration request message for a service sent by the sender
  • the processing module 60 is configured to perform a service configuration check on the service according to the pre-configured object model rule, and find a first error prompt code according to the result of the check failure when the check fails.
  • the first error prompt code includes at least: Object identification number and channel error value;
  • the second sending module 70 is configured to send a response failure message carrying the first error prompt code to the sender.
  • performing service configuration check on the service in the processing module 60 includes:
  • the business object is an independent service configuration, and the business object attribute is a service configuration component.
  • the object model rules in the processing module 60 at least include: a configuration standard of a business object, a configuration standard of a business object attribute, a configuration standard of a relationship between business object attributes, and a configuration standard of a relationship between business objects.
  • the processing module 60 includes:
  • the first processing unit 61 is configured to compare the configuration of the business object in the service with the configuration standard of the business object in the object model rule, and record when the configuration of the business object does not meet the configuration standard of the business object
  • the second processing unit 62 is configured to compare the configuration of the business object attribute in the business with the configuration standard of the business object attribute in the object model rule, when the configuration of the business object attribute does not satisfy the business object attribute When configuring the standard, record the first error prompt code; or
  • the third processing unit 63 is configured to compare the configuration of the relationship between the business object attributes in the business with the configuration standard of the relationship between the business object attributes in the object model rule, and when the configuration of the relationship between the business object attributes is not satisfied Recording the first error prompt code when the configuration criteria of the relationship between the business object attributes are recorded; or
  • the fourth processing unit 64 is configured to compare the configuration of the relationship between the business objects in the service with the configuration standard of the relationship between the business objects in the object model rule, when the configuration of the relationship between the business objects does not satisfy the service When the configuration standard of the relationship between objects is recorded, the first error prompt code is recorded.
  • An embodiment of the present invention is a method for obtaining service error information based on a management information model, and finds a business object configuration in which an error occurs in a service configuration through a management information model channel, and obtains an error prompt code of a service object configuration, according to a pre-configured error prompt.
  • the mapping relationship between the code and the return code statement obtains the corresponding return code statement, and prompts the return code statement to the user, thereby improving the ease of use of the communication device and better facing the user.
  • the device for obtaining service error information based on the management information model provided by the embodiment of the present invention is a device applying the foregoing method, and all embodiments of the foregoing method are applicable to the device, and both can achieve the same or similar benefits. effect.
  • a method and apparatus for obtaining service error information based on a management information model provided by an embodiment of the present invention have the following beneficial effects: finding a business object configuration in which an error occurs in a service configuration through a management information model channel, and acquiring a service
  • the error prompt code of the object configuration according to the mapping relationship between the pre-configured error prompt code and the return code statement, obtain the corresponding return code statement, and prompt the return code statement to the user, thereby improving the ease of use of the communication device, and better facing user.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

本发明提供了一种基于管理信息模型获取业务错误信息的方法及装置,其中方法包括:发送针对一业务的业务配置请求消息到管理信息模型通道;接收管理信息模型通道返回的携带第一错误提示码的应答失败消息;根据预先配置的业务的错误提示码和返回码语句的映射关系,对第一错误提示码进行解析得到相应的第一返回码语句,其中错误提示码至少包括:对象身份标识号码和通道错误值,返回码语句设置为指示所述业务发生的错误信息;将第一返回码语句提示给用户。通过管理信息模型通道查找出业务配置错误部分的错误提示码,根据错误提示码与返回码语句的映射关系,获得相应的返回码语句提示给用户,从而提高通讯设备的易用性,更好的面向用户。

Description

一种基于管理信息模型获取业务错误信息的方法及装置 技术领域
本发明涉及通讯设备配置技术领域,尤其涉及一种基于管理信息模型获取业务错误信息的方法及装置。
背景技术
基于管理信息模型(MIM)的配置通道使得通信设备上业务配置以对象模型的形式统一管理起来:一个独立的业务配置对应数据库中一个对象,配置分量对应对象属性。不同终端(包括CLI命令行界面、SNMP简单网络管理协议、WEB互联网等)下发的配置统一以对象操作的形式传入信息模型通道,通道实现对对象配置的校验、存库、提交、回滚、上电恢复等基本的配置功能。对象模型是从通讯业务抽象出来的,只和业务配置逻辑相关,不需要随外围终端的不同而变化,所以业务只需提供一套处理对象配置的流程,无需关心各个终端之间的差异。
收到终端下发的对象操作配置,MIM通道按照对象模型规则进行检查,一旦检查出当前配置不满足规则时,则终止配置流程,并告诉终端配置出错。在这里要说明一下,终端下发配置是存储在MIM通道所管理的数据库中的,所以一个业务对象A对应数据库中的一张表a,对象A属性对应表a的一个字段。对象模型规则(也就是表规则)分成四类:第一类:基于对象本身的规则,比如对表中可配置的最大条目数;第二类:基于对象属性的规则,比如属性值的有效范围;第三类:基于对象属性间关系的规则;第四类:基于对象间关系的规则,比如对象A和对象B之间的依赖关系。MIM通道就是依据业务定义的以上四类表规则对配置进行合法性检查。在通道看来,千变万化的业务配置就是数据库中普通的一张张表,MIM无从知道表A维护的是通讯设备登入授权用户的配置,表B是通讯设备上MAC(Media Access Control或者Medium Access Control媒体访问控制)条目的配置,表C是SNMP协议告警发送地址的配置等等。当这些表满配时,MIM只会给终端返回这样的统一错误:表中配置条目已达到最大。用户看到这样的回复时,肯定一头雾水。终端操作了那么多业务配置,不知道是哪个配置触犯了“对象法规”而报错。即使MIM写明是表A条目数已达到最大,用户肯定也无法知晓哪个配置出现了差错。
同时,由于MIM通道不了解业务,检查产生的返回码会不可避免更倾向于代码实现层的含义。比如对象A依赖于对象B,创建A的条目时MIM发现A所需的资源B没有,则会给终端返回依赖错误的返回码。但从业务角度看,依赖错误有的情况下是:相关的物理接口在单板上不存在;有的情况下是:SSH(Secure Shell安全外壳协议)服务未打开。由于通道接触不到业务,所以没有办法给用户返回这么“友好”的返回码。由上可知,管理信息模型通道只可以识别业务根据自己的配置语义抽象出来的对象模型,无法识别具体业务,而用户只可以识别具体业务,无法识别对象模型,使得管理信息模型通道和用户无法正常沟通,造成 用户无法知晓哪个配置出现了差错。
发明内容
本发明实施例提供了一种基于管理信息模型获取业务错误信息的方法及装置,通过管理信息模型通道查找出业务配置错误部分的错误提示码,根据错误提示码与返回码语句的映射关系,获得相应的返回码语句提示给用户,从而提高通讯设备的易用性,更好的面向用户。
本发明实施例提供一种基于管理信息模型获取业务错误信息的方法,包括:
发送针对一业务的业务配置请求消息到管理信息模型通道;
接收所述管理信息模型通道返回的携带第一错误提示码的应答失败消息;
根据预先配置的所述业务的错误提示码和返回码语句的映射关系,对所述第一错误提示码进行解析得到相应的第一返回码语句,其中所述错误提示码至少包括:对象身份标识号码和通道错误值,所述返回码语句设置为指示所述业务发生的错误信息;
将所述第一返回码语句提示给用户。
其中,所述预先配置的所述业务的错误提示码和返回码语句的映射关系包括:所述业务的错误提示码与返回码之间的第一映射关系和所述返回码与所述返回码语句之间的第二映射关系,所述根据预先配置的所述业务的错误提示码和返回码语句的映射关系,对所述第一错误提示码进行解析得到相应的第一返回码语句,包括:
根据所述第一映射关系,对所述第一错误提示码进行解析得到相应的第一返回码;
根据所述第二映射关系,对所述第一返回码进行解析得到相应的第一返回码语句。
其中,所述业务的错误提示码和返回码语句的映射关系包括:
业务对象配置的错误提示码与所述返回码语句的映射,所述业务对象配置的错误提示码包括:对象身份标识号码、操作类型和通道错误值;
业务对象属性配置的错误提示码与所述返回码语句的映射,所述业务对象属性配置的错误提示码包括:对象身份标识号码、属性身份标识号码和通道错误值;
业务对象属性间关系配置的错误提示码与所述返回码语句的映射,所述业务对象属性间关系配置的错误提示码包括:对象身份标识号码、第一属性身份标识号码、第二属性身份标识号码和通道错误值;以及
业务对象间关系配置的错误提示码与所述返回码语句的映射,所述业务对象间关系配置的错误提示码包括:第一对象身份标识号码、第一对象的操作类型、第二对象身份标识号码和通道错误值;其中所述业务中包括多个业务对象,所述业务对象为一个独立的业务配置,业务对象属性为业务配置分量。
本发明实施例还提供一种基于管理信息模型获取业务错误信息的方法,包括:
接收发送方发送的针对一业务的业务配置请求消息;
按照预先配置的对象模型规则,对所述业务进行业务配置检查,并在检查失败时根据检查失败结果查找出第一错误提示码,所述第一错误提示码至少包括:对象身份标识号码和通道错误值;
向所述发送方发送携带所述第一错误提示码的应答失败消息。
其中,所述对所述业务进行业务配置检查包括:
对业务对象的配置进行检查;对业务对象属性的配置进行检查;对业务对象属性间关系的配置进行检查;以及对业务对象间关系的配置进行检查,其中所述业务中包含多个业务对象,所述业务对象为一个独立的业务配置,业务对象属性为业务配置分量。
其中,所述对象模型规则至少包括:业务对象的配置标准、业务对象属性的配置标准、业务对象属性间关系的配置标准以及业务对象间关系的配置标准,所述按照预先配置的对象模型规则,对所述业务进行业务配置检查,并在检查失败时根据检查失败结果查找出第一错误提示码,包括:
将所述业务中业务对象的配置与所述对象模型规则中业务对象的配置标准进行比较,当所述业务对象的配置不满足所述业务对象的配置标准时,记录下所述第一错误提示码;或者
将所述业务中业务对象属性的配置与所述对象模型规则中业务对象属性的配置标准进行比较,当所述业务对象属性的配置不满足所述业务对象属性的配置标准时,记录下所述第一错误提示码;或者
将所述业务中业务对象属性间关系的配置与所述对象模型规则中业务对象属性间关系的配置标准进行比较,当所述业务对象属性间关系的配置不满足所述业务对象属性间关系的配置标准时,记录下所述第一错误提示码;或者
将所述业务中业务对象间关系的配置与所述对象模型规则中业务对象间关系的配置标准进行比较,当所述业务对象间关系的配置不满足所述业务对象间关系的配置标准时,记录下所述第一错误提示码。
本发明实施例还提供一种基于管理信息模型获取业务错误信息的装置,包括:
第一发送模块,设置为发送针对一业务的业务配置请求消息到管理信息模型通道;
第一接收模块,设置为接收所述管理信息模型通道返回的携带第一错误提示码的应答失败消息;
解析模块,设置为根据预先配置的所述业务的错误提示码和返回码语句的映射关系,对所述第一错误提示码进行解析得到相应的第一返回码语句,其中所述错误提示码至少包括:对象身份标识号码和通道错误值,所述返回码语句设置为指示所述业务发生的错误信息;
提示模块,设置为将所述第一返回码语句提示给用户。
其中,所述解析模块中所述预先配置的所述业务的错误提示码和返回码语句的映射关系包括:所述业务的错误提示码与返回码之间的第一映射关系和所述返回码与所述返回码语句之间的第二映射关系,所述解析模块包括:
第一解析单元,设置为根据所述第一映射关系,对所述第一错误提示码进行解析得到相应的第一返回码;
第二解析单元,设置为根据所述第二映射关系,对所述第一返回码进行解析得到相应的第一返回码语句。
其中,所述解析模块中所述业务的错误提示码和返回码语句的映射关系包括:
业务对象配置的错误提示码与所述返回码语句的映射,所述业务对象配置的错误提示码包括:对象身份标识号码、操作类型和通道错误值;
业务对象属性配置的错误提示码与所述返回码语句的映射,所述业务对象属性配置的错误提示码包括:对象身份标识号码、属性身份标识号码和通道错误值;
业务对象属性间关系配置的错误提示码与所述返回码语句的映射,所述业务对象属性间关系配置的错误提示码包括:对象身份标识号码、第一属性身份标识号码、第二属性身份标识号码和通道错误值;以及
业务对象间关系配置的错误提示码与所述返回码语句的映射,所述业务对象间关系配置的错误提示码包括:第一对象身份标识号码、第一对象的操作类型、第二对象身份标识号码和通道错误值;其中所述业务中包括多个业务对象,所述业务对象为一个独立的业务配置,业务对象属性为业务配置分量。
本发明实施例还提供一种基于管理信息模型获取业务错误信息的装置,包括:
第二接收模块,设置为接收发送方发送的针对一业务的业务配置请求消息;
处理模块,设置为按照预先配置的对象模型规则,对所述业务进行业务配置检查,并在检查失败时根据检查失败结果查找出第一错误提示码,所述第一错误提示码至少包括:对象身份标识号码和通道错误值;
第二发送模块,设置为向所述发送方发送携带所述第一错误提示码的应答失败消息。
其中,所述处理模块中对所述业务进行业务配置检查包括:
对业务对象的配置进行检查;对业务对象属性的配置进行检查;对业务对象属性间关系的配置进行检查;以及对业务对象间关系的配置进行检查,其中所述业务中包含多个业务对象,所述业务对象为一个独立的业务配置,业务对象属性为业务配置分量。
其中,所述处理模块中的对象模型规则至少包括:业务对象的配置标准、业务对象属性 的配置标准、业务对象属性间关系的配置标准以及业务对象间关系的配置标准,所述处理模块包括:
第一处理单元,设置为将所述业务中业务对象的配置与所述对象模型规则中业务对象的配置标准进行比较,当所述业务对象的配置不满足所述业务对象的配置标准时,记录下所述第一错误提示码;或者
第二处理单元,设置为将所述业务中业务对象属性的配置与所述对象模型规则中业务对象属性的配置标准进行比较,当所述业务对象属性的配置不满足所述业务对象属性的配置标准时,记录下所述第一错误提示码;或者
第三处理单元,设置为将所述业务中业务对象属性间关系的配置与所述对象模型规则中业务对象属性间关系的配置标准进行比较,当所述业务对象属性间关系的配置不满足所述业务对象属性间关系的配置标准时,记录下所述第一错误提示码;或者
第四处理单元,设置为将所述业务中业务对象间关系的配置与所述对象模型规则中业务对象间关系的配置标准进行比较,当所述业务对象间关系的配置不满足所述业务对象间关系的配置标准时,记录下所述第一错误提示码。
本发明实施例的上述技术方案至少具有如下有益效果:
本发明实施例一种基于管理信息模型获取业务错误信息的方法,通过管理信息模型通道查找出业务配置中出现错误的业务对象配置,并获取业务对象配置的错误提示码,根据预先配置的错误提示码与返回码语句的映射关系,获得相应的返回码语句,将返回码语句提示给用户,从而提高通讯设备的易用性,更好的面向用户。
附图说明
图1表示本发明实施例基于管理信息模型获取业务错误信息的方法步骤示意图一;
图2表示本发明实施例基于管理信息模型获取业务错误信息的方法步骤示意图二;
图3表示本发明实施例错误提示码与返回码的映射规则定义格式示意图;
图4表示本发明实施例基于管理信息模型获取业务错误信息的方法步骤示意图三;
图5表示本发明实施例管理信息模型通道和发送端处理业务的流程图;
图6表示本发明实施例基于管理信息模型获取业务错误信息的装置框图一;
图7表示本发明实施例基于管理信息模型获取业务错误信息的装置中解析模块框图;
图8表示本发明实施例基于管理信息模型获取业务错误信息的装置框图二;
图9表示本发明实施例基于管理信息模型获取业务错误信息的装置中处理模块框图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图及具体实施例对本发明进行详细描述。
如图1所示,本发明实施例提供一种基于管理信息模型获取业务错误信息的方法,包括:
步骤S100、发送针对一业务的业务配置请求消息到管理信息模型通道;
步骤S200、接收所述管理信息模型通道返回的携带第一错误提示码的应答失败消息;
步骤S300、根据预先配置的所述业务的错误提示码和返回码语句的映射关系,对所述第一错误提示码进行解析得到相应的第一返回码语句,其中所述错误提示码至少包括:对象身份标识号码和通道错误值,所述返回码语句设置为指示所述业务发生的错误信息;
步骤S400、将所述第一返回码语句提示给用户。
首先业务在映射XML文档上配置管理信息模型通道检查得到的错误提示码与返回码语句的映射关系。比如配置管理信息模型通道在创建某个配置时发现相应数据库表条目个数已达到上限,业务就这种错误情况配置映射规则:A表满配,映射到返回码语句:路由可登入授权用户数已达到最大;B表满配,映射到返回码语句:设备上MAC条目数已超限。有了这个映射文档,配置管理信息模型通道发现配置不满足业务定义的对象模型规则时,将具体的错误提示码搜集出来返回给终端,终端根据XML中的映射规则将错误提示码映射成返回码语句提示给用户。此方法将界面的话语权交给了熟悉配置语义的业务,管理信息模型通道对对象配置进行检查获得错误提示码,然后引出返回码语句。将映射规则放在终端使用,可以兼顾到不同终端返回码语句的差异性。这里的终端即为发送端。
具体的,向管理信息模型通道发送针对某一业务的业务配置请求消息,然后接收管理信息模型通道返回的应答失败消息,其中应答失败消息中包含了管理信息模型通道查找到的业务对象配置不满足对象模型规则时的第一错误提示码。终端接收到第一错误提示码后,根据错误提示码与返回码语句的映射关系,得到相应的第一返回码语句,第一返回码语句设置为指示具体的配置错误,用户根据第一返回码语句可以获知在业务配置中具体是哪一个环节的配置出现了错误,从而可以采取相应的措施,更进一步地提高了通讯设备的易用性,更好的面向用户。
在本发明上述实施例中,所述预先配置的所述业务的错误提示码和返回码语句的映射关系包括:所述业务的错误提示码与返回码之间的第一映射关系和所述返回码与所述返回码语句之间的第二映射关系,如图2所示,步骤S300包括:
步骤S301、根据所述第一映射关系,对所述第一错误提示码进行解析得到相应的第一返回码;
步骤S302、根据所述第二映射关系,对所述第一返回码进行解析得到相应的第一返回码语句。
具体的,获得管理信息模型通道返回的第一错误提示码后,首先根据错误提示码与返回码之间的第一映射关系,得到与第一错误提示码对应的第一返回码,然后根据返回码与返回码语句之间的第二映射关系,得到与第一返回码对应的第一返回码语句,第一返回码语句可以被用户识别。举例如下:比如管理信息模型通道在检查某个配置时发现相应数据库表条目个数已达到上限,根据业务配置的映射规则,得到相应返回码语句的过程为:A表满配,映射到返回码11452,根据返回码映射到返回码语句:路由可登入授权用户数已达到最大。
在本发明上述实施例中,步骤S300中所述业务的错误提示码和返回码语句的映射关系包括:
业务对象配置的错误提示码与所述返回码语句的映射,所述业务对象配置的错误提示码包括:对象身份标识号码、操作类型和通道错误值;
业务对象属性配置的错误提示码与所述返回码语句的映射,所述业务对象属性配置的错误提示码包括:对象身份标识号码、属性身份标识号码和通道错误值;
业务对象属性间关系配置的错误提示码与所述返回码语句的映射,所述业务对象属性间关系配置的错误提示码包括:对象身份标识号码、第一属性身份标识号码、第二属性身份标识号码和通道错误值;以及
业务对象间关系配置的错误提示码与所述返回码语句的映射,所述业务对象间关系配置的错误提示码包括:第一对象身份标识号码、第一对象的操作类型、第二对象身份标识号码和通道错误值;其中所述业务中包括多个业务对象,所述业务对象为一个独立的业务配置,业务对象属性为业务配置分量。
具体的,业务定义的业务对象配置的错误提示码与返回码的映射规则格式为:(前三个字段组成错误提示码,最后一个字段为返回码)
<objid="对象ID号"action="操作类型"mimerrcode="通道错误值"usererrcode="返回码"/>
举例:
<objid="3087"action="1"mimerrcode="36"usererrcode="111303"/>
需要说明的是,ID即为身份标识号码,根据对象身份标识号码、操作类型和通道错误值组成的错误提示码获取相应的返回码,再利用返回码与返回码语句的映射关系来得到相应的返回码语句。
业务定义的业务对象属性配置的错误提示码与返回码的映射规则格式为:(前三个字段组成错误提示码,最后一个字段为返回码)
<objid="对象ID号"attrid="属性ID号"mimerrcode="通道错误值"usererrcode="返回码"/>
举例:
<objid="11076"attrid="1"mimerrcode="6"usererrcode="8569"/>
根据对象身份标识号码、属性身份标识号码和通道错误值组成的错误提示码获取相应的返回码,再利用返回码与返回码语句的映射关系来得到相应的返回码语句。
业务定义的业务对象属性间关系配置的错误提示码与返回码的映射规则格式为:(前四个字段组成错误提示码,最后一个字段为返回码)
<objid="对象ID"attrA="a属性ID"attrB="b属性ID"mimerrcode="通道错误值"usererrcode="返回码"/>
举例:
<objid="7568"attrA="48"attrB="7"mimerrcode="23"usererrcode="110648"/>
根据对象身份标识号码、第一属性身份标识号码、第二属性身份标识号码和通道错误值组成的错误提示码获取相应的返回码,再利用返回码与返回码语句的映射关系来得到相应的返回码语句。
业务定义的业务对象间关系配置的错误提示码与返回码的映射规则格式为:(前四个字段组成错误提示码,最后一个字段为返回码)
<objidA="A对象ID"actionA="A对象的操作类型"objidB="B对象ID"mimerrcode="通道错误值"usererrcode="返回码"/>
样例:
<objidA="13377"actionA="4"objidB="13378"mimerrcode="23"usererrcode="51618"/>
根据第一对象身份标识号码、第一对象的操作类型、第二对象身份标识号码和通道错误值组成的错误提示码获取相应的返回码,再利用返回码与返回码语句的映射关系来得到相应的返回码语句。
终端根据映射规则将管理信息模型通道查找的错误提示码映射到返回码,再将返回码映射到返回码语句。由于每一类的错误信息都不一样,为了实现方便以及提高映射效率,将映射规则格式也分成四类。如图3所示,为错误提示码与返回码的映射规则定义格式示意图。
本发明实施例还提供一种基于管理信息模型获取业务错误信息的方法,如图4所示,包括:
步骤S500、接收发送方发送的针对一业务的业务配置请求消息;
步骤S600、按照预先配置的对象模型规则,对所述业务进行业务配置检查,并在检查失败时根据检查失败结果查找出第一错误提示码,所述第一错误提示码至少包括:对象身份标识号码和通道错误值;
步骤S700、向所述发送方发送携带所述第一错误提示码的应答失败消息。
具体的,管理信息模型通道接收终端发送的针对某一业务的业务配置请求信息,然后根据对象模型规则对业务配置进行检查。这里的对象模型规则是业务配置的。在检查时,需要对业务对象的配置进行检查;对业务对象属性的配置进行检查;对业务对象属性间关系的配置进行检查;以及对业务对象间关系的配置进行检查。当一项检查完成且检查成功后再进行下一项的检查,直至全部检查完成。当检查过程中出现一个错误时,立即找出相应的错误提示码,将错误提示码反馈给终端,终端利用错误提示码与返回码语句的映射关系,查找出相应的返回码语句提示给用户,使用户获知业务配置发生了哪一类的错误。
在本发明上述实施例中,步骤S600中对所述业务进行业务配置检查包括:
对业务对象的配置进行检查;对业务对象属性的配置进行检查;对业务对象属性间关系的配置进行检查;以及对业务对象间关系的配置进行检查,其中所述业务中包含多个业务对象,所述业务对象为一个独立的业务配置,业务对象属性为业务配置分量。
具体的,对对象本身的配置进行检查时,可以检查的内容包括:是否创建重复对象配置、是否修改一个不存在的对象配置。此类检查出错时,管理信息模型通道需要将哪个对象在进行什么操作时发生何种错误记录下来,所以给终端的检查错误信息包含:对象ID号、操作类型和通道错误值组成的错误提示码。
在对对象属性的配置进行检查时,可以检查的内容包括:是否配置非法的IP地址、标签是否重复。此类检查出错时,管理信息模型通道需要将哪个对象的哪个属性发生了何种错误记录下来,所以给终端的检查错误信息需要包含:对象ID号、属性ID号和通道错误值组成的错误提示码。
在对对象属性间关系的配置进行检查时,可以检查的内容包括:是否满足属性间依赖关系、属性间值大小关系。此类检查出错时,管理信息模型通道需要将哪个对象的哪两个属性之间发生何种错误记录下来,所以给终端的检查错误信息需要包含:对象ID、第一属性ID、第二属性ID和通道错误值组成的错误提示码。
在对对象间关系的配置进行检查时,可以检查的内容包括:是否满足对象间依赖互斥关系。此类检查出错时,管理信息模型通道需要将哪个对象A在进行哪一类操作时和哪个对象B之间发生何种错误记录下来,所以给终端的检查错误信息需要包含:A对象ID、A对象的操作类型、B对象ID和通道错误值组成的错误提示码。
在本发明上述实施例中,步骤S600中的对象模型规则至少包括:业务对象的配置标准、业务对象属性的配置标准、业务对象属性间关系的配置标准以及业务对象间关系的配置标准,步骤S600包括:
将所述业务中业务对象的配置与所述对象模型规则中业务对象的配置标准进行比较,当所述业务对象的配置不满足所述业务对象的配置标准时,记录下所述第一错误提示码;或者
将所述业务中业务对象属性的配置与所述对象模型规则中业务对象属性的配置标准进行比较,当所述业务对象属性的配置不满足所述业务对象属性的配置标准时,记录下所述第一 错误提示码;或者
将所述业务中业务对象属性间关系的配置与所述对象模型规则中业务对象属性间关系的配置标准进行比较,当所述业务对象属性间关系的配置不满足所述业务对象属性间关系的配置标准时,记录下所述第一错误提示码;或者
将所述业务中业务对象间关系的配置与所述对象模型规则中业务对象间关系的配置标准进行比较,当所述业务对象间关系的配置不满足所述业务对象间关系的配置标准时,记录下所述第一错误提示码。
具体的,在对业务对象的配置进行检查时,将业务对象的配置与对象模型规则中业务对象的配置标准进行比较,当业务对象的配置不满足业务对象的配置标准时,表明业务对象的配置存在问题;当业务对象的配置满足业务对象的配置标准时,表明业务对象的配置无问题。
在对业务对象属性的配置进行检查时,将业务中业务对象属性的配置与对象模型规则中业务对象属性的配置标准进行比较,当业务对象属性的配置不满足业务对象属性的配置标准时,表明业务对象属性的配置存在问题;当业务对象属性的配置满足业务对象属性的配置标准时,表明业务对象属性的配置无问题。
在对业务对象属性间关系的配置进行检查时,将业务中业务对象属性间关系的配置与对象模型规则中业务对象属性间关系的配置标准进行比较,当业务对象属性间关系的配置不满足业务对象属性间关系的配置标准时,表明业务对象属性间关系的配置存在问题;当业务对象属性间关系的配置满足业务对象属性间关系的配置标准时,表明业务对象属性间关系的配置无问题。
在对业务对象间关系的配置进行检查时,将业务中业务对象间关系的配置与对象模型规则中业务对象间关系的配置标准进行比较,当业务对象间关系的配置不满足业务对象间关系的配置标准时,表明业务对象间关系的配置存在问题;当业务对象间关系的配置满足业务对象间关系的配置标准时,表明业务对象间关系的配置无问题。
在上述的四类检查过程中,任一项出现问题,都要立即查询出相应的第一错误提示码,将第一错误提示码返回给终端,终端根据第一错误提示码查找对应的第一返回码语句,提示给用户。
如图5所示,发送端针对A业务向管理信息模型通道发送配置请求消息,管理信息模型通道根据配置请求消息对A业务进行业务配置检查,当业务配置检查成功后,将业务对象配置进行存储,同时将业务配置消息发送给A业务。配置在A业务生效后,A业务通过管理信息模型通道向终端发送A业务配置成功消息。用户获知A业务配置成功的消息。
发送端针对B业务向管理信息模型通道发送配置请求消息,管理信息模型通道根据配置请求消息对B业务进行业务配置检查。当业务配置检查失败后,管理信息模型通道搜索错误提示码,然后向终端发送携带错误提示码的应答失败消息。终端根据接收的错误提示码,依据错误提示码与返回码语句的映射关系查找出相应的返回码语句,然后将返回码语句提示给 用户。
本发明实施例还提供一种基于管理信息模型获取业务错误信息的装置,如图6所示,包括:
第一发送模块10,设置为发送针对一业务的业务配置请求消息到管理信息模型通道;
第一接收模块20,设置为接收所述管理信息模型通道返回的携带第一错误提示码的应答失败消息;
解析模块30,设置为根据预先配置的所述业务的错误提示码和返回码语句的映射关系,对所述第一错误提示码进行解析得到相应的第一返回码语句,其中所述错误提示码至少包括:对象身份标识号码和通道错误值,所述返回码语句设置为指示所述业务发生的错误信息;
提示模块40,设置为将所述第一返回码语句提示给用户。
在本发明上述实施例中,所述解析模块30中所述预先配置的所述业务的错误提示码和返回码语句的映射关系包括:所述业务的错误提示码与返回码之间的第一映射关系和所述返回码与所述返回码语句之间的第二映射关系,如图7所示,所述解析模块30包括:
第一解析单元31,设置为根据所述第一映射关系,对所述第一错误提示码进行解析得到相应的第一返回码;
第二解析单元32,设置为根据所述第二映射关系,对所述第一返回码进行解析得到相应的第一返回码语句。
在本发明上述实施例中,所述解析模块30中所述业务的错误提示码和返回码语句的映射关系包括:
业务对象配置的错误提示码与所述返回码语句的映射,所述业务对象配置的错误提示码包括:对象身份标识号码、操作类型和通道错误值;
业务对象属性配置的错误提示码与所述返回码语句的映射,所述业务对象属性配置的错误提示码包括:对象身份标识号码、属性身份标识号码和通道错误值;
业务对象属性间关系配置的错误提示码与所述返回码语句的映射,所述业务对象属性间关系配置的错误提示码包括:对象身份标识号码、第一属性身份标识号码、第二属性身份标识号码和通道错误值;以及
业务对象间关系配置的错误提示码与所述返回码语句的映射,所述业务对象间关系配置的错误提示码包括:第一对象身份标识号码、第一对象的操作类型、第二对象身份标识号码和通道错误值;其中所述业务中包括多个业务对象,所述业务对象为一个独立的业务配置,业务对象属性为业务配置分量。
本发明实施例还提供一种基于管理信息模型获取业务错误信息的装置,如图8所示,包括:
第二接收模块50,设置为接收发送方发送的针对一业务的业务配置请求消息;
处理模块60,设置为按照预先配置的对象模型规则,对所述业务进行业务配置检查,并在检查失败时根据检查失败结果查找出第一错误提示码,所述第一错误提示码至少包括:对象身份标识号码和通道错误值;
第二发送模块70,设置为向所述发送方发送携带所述第一错误提示码的应答失败消息。
在本发明上述实施例中,所述处理模块60中对所述业务进行业务配置检查包括:
对业务对象的配置进行检查;对业务对象属性的配置进行检查;对业务对象属性间关系的配置进行检查;以及对业务对象间关系的配置进行检查,其中所述业务中包含多个业务对象,所述业务对象为一个独立的业务配置,业务对象属性为业务配置分量。
在本发明上述实施例中,所述处理模块60中的对象模型规则至少包括:业务对象的配置标准、业务对象属性的配置标准、业务对象属性间关系的配置标准以及业务对象间关系的配置标准,如图9所示,所述处理模块60包括:
第一处理单元61,设置为将所述业务中业务对象的配置与所述对象模型规则中业务对象的配置标准进行比较,当所述业务对象的配置不满足所述业务对象的配置标准时,记录下所述第一错误提示码;或者
第二处理单元62,设置为将所述业务中业务对象属性的配置与所述对象模型规则中业务对象属性的配置标准进行比较,当所述业务对象属性的配置不满足所述业务对象属性的配置标准时,记录下所述第一错误提示码;或者
第三处理单元63,设置为将所述业务中业务对象属性间关系的配置与所述对象模型规则中业务对象属性间关系的配置标准进行比较,当所述业务对象属性间关系的配置不满足所述业务对象属性间关系的配置标准时,记录下所述第一错误提示码;或者
第四处理单元64,设置为将所述业务中业务对象间关系的配置与所述对象模型规则中业务对象间关系的配置标准进行比较,当所述业务对象间关系的配置不满足所述业务对象间关系的配置标准时,记录下所述第一错误提示码。
本发明实施例一种基于管理信息模型获取业务错误信息的方法,通过管理信息模型通道查找出业务配置中出现错误的业务对象配置,并获取业务对象配置的错误提示码,根据预先配置的错误提示码与返回码语句的映射关系,获得相应的返回码语句,将返回码语句提示给用户,从而提高通讯设备的易用性,更好的面向用户。
需要说明的是,本发明实施例提供的基于管理信息模型获取业务错误信息的装置是应用上述方法的装置,则上述方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。
以上所述的是本发明的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本发明所述的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本发明的保 护范围内。
工业实用性
如上所述,本发明实施例提供的一种基于管理信息模型获取业务错误信息的方法及装置,具有以下有益效果:通过管理信息模型通道查找出业务配置中出现错误的业务对象配置,并获取业务对象配置的错误提示码,根据预先配置的错误提示码与返回码语句的映射关系,获得相应的返回码语句,将返回码语句提示给用户,从而提高通讯设备的易用性,更好的面向用户。

Claims (12)

  1. 一种基于管理信息模型获取业务错误信息的方法,所述方法包括:
    发送针对一业务的业务配置请求消息到管理信息模型通道;
    接收所述管理信息模型通道返回的携带第一错误提示码的应答失败消息;
    根据预先配置的所述业务的错误提示码和返回码语句的映射关系,对所述第一错误提示码进行解析得到相应的第一返回码语句,其中所述错误提示码至少包括:对象身份标识号码和通道错误值,所述返回码语句设置为指示所述业务发生的错误信息;
    将所述第一返回码语句提示给用户。
  2. 如权利要求1所述的基于管理信息模型获取业务错误信息的方法,其中,所述预先配置的所述业务的错误提示码和返回码语句的映射关系包括:所述业务的错误提示码与返回码之间的第一映射关系和所述返回码与所述返回码语句之间的第二映射关系,所述根据预先配置的所述业务的错误提示码和返回码语句的映射关系,对所述第一错误提示码进行解析得到相应的第一返回码语句,包括:
    根据所述第一映射关系,对所述第一错误提示码进行解析得到相应的第一返回码;
    根据所述第二映射关系,对所述第一返回码进行解析得到相应的第一返回码语句。
  3. 如权利要求1所述的基于管理信息模型获取业务错误信息的方法,其中,所述业务的错误提示码和返回码语句的映射关系包括:
    业务对象配置的错误提示码与所述返回码语句的映射,所述业务对象配置的错误提示码包括:对象身份标识号码、操作类型和通道错误值;
    业务对象属性配置的错误提示码与所述返回码语句的映射,所述业务对象属性配置的错误提示码包括:对象身份标识号码、属性身份标识号码和通道错误值;
    业务对象属性间关系配置的错误提示码与所述返回码语句的映射,所述业务对象属性间关系配置的错误提示码包括:对象身份标识号码、第一属性身份标识号码、第二属性身份标识号码和通道错误值;以及
    业务对象间关系配置的错误提示码与所述返回码语句的映射,所述业务对象间关系配置的错误提示码包括:第一对象身份标识号码、第一对象的操作类型、第二对象身份标识号码和通道错误值;其中所述业务中包括多个业务对象,所述业务对象为一个独立的业务配置,业务对象属性为业务配置分量。
  4. 一种基于管理信息模型获取业务错误信息的方法,所述方法包括:
    接收发送方发送的针对一业务的业务配置请求消息;
    按照预先配置的对象模型规则,对所述业务进行业务配置检查,并在检查失败时根据检查失败结果查找出第一错误提示码,所述第一错误提示码至少包括:对象身份标识 号码和通道错误值;
    向所述发送方发送携带所述第一错误提示码的应答失败消息。
  5. 如权利要求4所述的基于管理信息模型获取业务错误信息的方法,其中,所述对所述业务进行业务配置检查,包括:
    对业务对象的配置进行检查;对业务对象属性的配置进行检查;对业务对象属性间关系的配置进行检查;以及对业务对象间关系的配置进行检查,其中所述业务中包含多个业务对象,所述业务对象为一个独立的业务配置,业务对象属性为业务配置分量。
  6. 如权利要求5所述的基于管理信息模型获取业务错误信息的方法,其中,所述对象模型规则至少包括:业务对象的配置标准、业务对象属性的配置标准、业务对象属性间关系的配置标准以及业务对象间关系的配置标准,所述按照预先配置的对象模型规则,对所述业务进行业务配置检查,并在检查失败时根据检查失败结果查找出第一错误提示码,包括:
    将所述业务中业务对象的配置与所述对象模型规则中业务对象的配置标准进行比较,当所述业务对象的配置不满足所述业务对象的配置标准时,记录下所述第一错误提示码;或者
    将所述业务中业务对象属性的配置与所述对象模型规则中业务对象属性的配置标准进行比较,当所述业务对象属性的配置不满足所述业务对象属性的配置标准时,记录下所述第一错误提示码;或者
    将所述业务中业务对象属性间关系的配置与所述对象模型规则中业务对象属性间关系的配置标准进行比较,当所述业务对象属性间关系的配置不满足所述业务对象属性间关系的配置标准时,记录下所述第一错误提示码;或者
    将所述业务中业务对象间关系的配置与所述对象模型规则中业务对象间关系的配置标准进行比较,当所述业务对象间关系的配置不满足所述业务对象间关系的配置标准时,记录下所述第一错误提示码。
  7. 一种基于管理信息模型获取业务错误信息的装置,所述装置包括:
    第一发送模块,设置为发送针对一业务的业务配置请求消息到管理信息模型通道;
    第一接收模块,设置为接收所述管理信息模型通道返回的携带第一错误提示码的应答失败消息;
    解析模块,设置为根据预先配置的所述业务的错误提示码和返回码语句的映射关系,对所述第一错误提示码进行解析得到相应的第一返回码语句,其中所述错误提示码至少包括:对象身份标识号码和通道错误值,所述返回码语句设置为指示所述业务发生的错误信息;
    提示模块,设置为将所述第一返回码语句提示给用户。
  8. 如权利要求7所述的基于管理信息模型获取业务错误信息的装置,其中,所述解析模块中所述预先配置的所述业务的错误提示码和返回码语句的映射关系包括:所述业务的错误提示码与返回码之间的第一映射关系和所述返回码与所述返回码语句之间的第二映射关系,所述解析模块包括:
    第一解析单元,设置为根据所述第一映射关系,对所述第一错误提示码进行解析得到相应的第一返回码;
    第二解析单元,设置为根据所述第二映射关系,对所述第一返回码进行解析得到相应的第一返回码语句。
  9. 如权利要求7所述的基于管理信息模型获取业务错误信息的装置,其中,所述解析模块中所述业务的错误提示码和返回码语句的映射关系包括:
    业务对象配置的错误提示码与所述返回码语句的映射,所述业务对象配置的错误提示码包括:对象身份标识号码、操作类型和通道错误值;
    业务对象属性配置的错误提示码与所述返回码语句的映射,所述业务对象属性配置的错误提示码包括:对象身份标识号码、属性身份标识号码和通道错误值;
    业务对象属性间关系配置的错误提示码与所述返回码语句的映射,所述业务对象属性间关系配置的错误提示码包括:对象身份标识号码、第一属性身份标识号码、第二属性身份标识号码和通道错误值;以及
    业务对象间关系配置的错误提示码与所述返回码语句的映射,所述业务对象间关系配置的错误提示码包括:第一对象身份标识号码、第一对象的操作类型、第二对象身份标识号码和通道错误值;其中所述业务中包括多个业务对象,所述业务对象为一个独立的业务配置,业务对象属性为业务配置分量。
  10. 一种基于管理信息模型获取业务错误信息的装置,所述装置包括:
    第二接收模块,设置为接收发送方发送的针对一业务的业务配置请求消息;
    处理模块,设置为按照预先配置的对象模型规则,对所述业务进行业务配置检查,并在检查失败时根据检查失败结果查找出第一错误提示码,所述第一错误提示码至少包括:对象身份标识号码和通道错误值;
    第二发送模块,设置为向所述发送方发送携带所述第一错误提示码的应答失败消息。
  11. 如权利要求10所述的基于管理信息模型获取业务错误信息的装置,其中,所述处理模块中对所述业务进行业务配置检查包括:
    对业务对象的配置进行检查;对业务对象属性的配置进行检查;对业务对象属性间关系的配置进行检查;以及对业务对象间关系的配置进行检查,其中所述业务中包含多个业务对象,所述业务对象为一个独立的业务配置,业务对象属性为业务配置分量。
  12. 如权利要求11所述的基于管理信息模型获取业务错误信息的装置,其中,所述处理模块中的对象模型规则至少包括:业务对象的配置标准、业务对象属性的配置标准、业务对象属性间关系的配置标准以及业务对象间关系的配置标准,所述处理模块包括:
    第一处理单元,设置为将所述业务中业务对象的配置与所述对象模型规则中业务对象的配置标准进行比较,当所述业务对象的配置不满足所述业务对象的配置标准时,记录下所述第一错误提示码;或者
    第二处理单元,设置为将所述业务中业务对象属性的配置与所述对象模型规则中业务对象属性的配置标准进行比较,当所述业务对象属性的配置不满足所述业务对象属性的配置标准时,记录下所述第一错误提示码;或者
    第三处理单元,设置为将所述业务中业务对象属性间关系的配置与所述对象模型规则中业务对象属性间关系的配置标准进行比较,当所述业务对象属性间关系的配置不满足所述业务对象属性间关系的配置标准时,记录下所述第一错误提示码;或者
    第四处理单元,设置为将所述业务中业务对象间关系的配置与所述对象模型规则中业务对象间关系的配置标准进行比较,当所述业务对象间关系的配置不满足所述业务对象间关系的配置标准时,记录下所述第一错误提示码。
PCT/CN2016/073205 2015-04-30 2016-02-02 一种基于管理信息模型获取业务错误信息的方法及装置 WO2016173309A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510217127.3A CN106209398A (zh) 2015-04-30 2015-04-30 一种基于管理信息模型获取业务错误信息的方法及装置
CN201510217127.3 2015-04-30

Publications (1)

Publication Number Publication Date
WO2016173309A1 true WO2016173309A1 (zh) 2016-11-03

Family

ID=57198070

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/073205 WO2016173309A1 (zh) 2015-04-30 2016-02-02 一种基于管理信息模型获取业务错误信息的方法及装置

Country Status (2)

Country Link
CN (1) CN106209398A (zh)
WO (1) WO2016173309A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988524A (zh) * 2021-03-12 2021-06-18 长鑫存储技术有限公司 业务流向的预警方法、装置、存储介质及计算机设备
CN113760346A (zh) * 2020-08-25 2021-12-07 北京沃东天骏信息技术有限公司 信息管理方法和装置
CN115904792A (zh) * 2023-01-06 2023-04-04 恒丰银行股份有限公司 一种自适应自解释的错误码处理方法、系统、终端及存储器

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632053B (zh) * 2017-03-16 2022-09-27 中兴通讯股份有限公司 业务信息的处理方法及装置
CN109376023B (zh) * 2018-10-12 2022-09-23 上海盛付通电子支付服务有限公司 用于生成调用信息、发布返回码组的方法和设备
CN110086827B (zh) * 2019-05-14 2021-11-02 重庆商勤科技有限公司 一种sql注入校验方法、服务器以及系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047601A (zh) * 2006-04-10 2007-10-03 华为技术有限公司 基于vpls的双归属网络的实现方法及系统
JP2008053913A (ja) * 2006-08-23 2008-03-06 Nippon Telegr & Teleph Corp <Ntt> ネットワーク装置管理システムおよび管理方法、ならびにそのためのプログラム
CN101710862A (zh) * 2009-11-17 2010-05-19 中兴通讯股份有限公司 一种网管操作错误信息的处理方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5940264A (ja) * 1982-08-31 1984-03-05 Matsushita Electric Works Ltd 電流検出回路
CN101692720A (zh) * 2009-10-10 2010-04-07 宇龙计算机通信科技(深圳)有限公司 一种移动终端自动回复信息的方法、系统及终端
CN104363072B (zh) * 2014-10-29 2019-08-13 中国建设银行股份有限公司 一种错误信息传递转义方法、装置和系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047601A (zh) * 2006-04-10 2007-10-03 华为技术有限公司 基于vpls的双归属网络的实现方法及系统
JP2008053913A (ja) * 2006-08-23 2008-03-06 Nippon Telegr & Teleph Corp <Ntt> ネットワーク装置管理システムおよび管理方法、ならびにそのためのプログラム
CN101710862A (zh) * 2009-11-17 2010-05-19 中兴通讯股份有限公司 一种网管操作错误信息的处理方法及装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113760346A (zh) * 2020-08-25 2021-12-07 北京沃东天骏信息技术有限公司 信息管理方法和装置
CN112988524A (zh) * 2021-03-12 2021-06-18 长鑫存储技术有限公司 业务流向的预警方法、装置、存储介质及计算机设备
CN115904792A (zh) * 2023-01-06 2023-04-04 恒丰银行股份有限公司 一种自适应自解释的错误码处理方法、系统、终端及存储器

Also Published As

Publication number Publication date
CN106209398A (zh) 2016-12-07

Similar Documents

Publication Publication Date Title
WO2016173309A1 (zh) 一种基于管理信息模型获取业务错误信息的方法及装置
US10630706B2 (en) Modeling behavior in a network
WO2017097123A1 (zh) 访问请求转换的方法和装置
CN109361550B (zh) 网络设备配置管理的方法、装置及设备
US7376717B2 (en) Method and apparatus for automatically configuring a computer for different local area networks
CN110311929B (zh) 一种访问控制方法、装置及电子设备和存储介质
US20120297059A1 (en) Automated creation of monitoring configuration templates for cloud server images
CN110661670A (zh) 一种网络设备配置管理方法及装置
US11374978B2 (en) Methods and systems for establishment of security policy between SDN application and SDN controller
US10447703B2 (en) VNF package operation method and apparatus
JP2004040433A (ja) ネットワーク構築システムおよび構築方法
WO2016127436A1 (zh) 数据上载的方法、装置及系统
CN109246078B (zh) 一种数据交互方法及服务器
US9479490B2 (en) Methods and systems for single sign-on while protecting user privacy
WO2016062103A1 (zh) Gpon系统中业务自动分类的方法、装置及系统
US9178869B2 (en) Locating network resources for an entity based on its digital certificate
US8943072B2 (en) Determining OEM of rebranded device
US10771507B2 (en) Secure communication method of IMS system based on key file
CN107872336B (zh) 挂载点标识方法和系统以及标识管理设备
CN110858132B (zh) 一种打印设备的配置安全检测方法及装置
US10120986B2 (en) Controlling execution of a software application on an execution platform in a local network
CN104396216A (zh) 用于识别网络流量特征以关联和管理一个或多个后续流的方法及其装置
CN113014664B (zh) 网关适配方法、装置、电子设备和存储介质
WO2021164236A1 (zh) 报文的处理方法及装置
WO2016202025A1 (zh) 陷阱Trap报文处理方法及装置

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: 16785740

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: 16785740

Country of ref document: EP

Kind code of ref document: A1