Information query method and device

By establishing the corresponding relationship between the OID information between the electronic equipment and the comprehensive management platform, the problem of low efficiency of the SNMP protocol when obtaining routing information and device table items is solved, and the compatibility of OID information and the improvement of data transmission efficiency.

CN119363546APending Publication Date: 2025-01-24VISIONVERA INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411387192.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

The existing SNMP protocol is inefficient when acquiring routing information and device table entries, and the high workload of private MIBs of each electronic device leads to low performance. The operation and maintenance platform needs to be compatible with OIDs of different devices, which reduces data transmission efficiency.

Method used

Through the corresponding relationship conversion between the integrated management platform and the OID information of the electronic device, the OID information of the integrated management platform is converted into the private OID information of the electronic device. The electronic device then obtains the query results through the private OID information, and encapsulates the results and returns them to the integrated management platform.

Benefits of technology

The problem of low performance of the private MIB workload of various electronic equipment has caused low performance, realizing the compatibility of OID information, improving the efficiency of data transmission, so that the comprehensive management platform can quickly manage different electronic equipment without changing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119363546A_ABST
    Figure CN119363546A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an information query method and device, applied to electronic equipment, and the method comprises the following steps: obtaining first object identifier (OID) information corresponding to first query information sent by a comprehensive management platform, and obtaining second OID information corresponding to the first OID information according to a first corresponding relation of the OID information, the first query information is obtained by packaging first OID information in a simple network management protocol SNMP client and a first management information base MIB by the integrated management platform; determining a query result corresponding to the second OID information, and packaging the first OID information and the query result to obtain first feedback information; and sending the first feedback information to the integrated management platform, so that the integrated management platform analyzes the first feedback information through the SNMP client to obtain the query result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission, and in particular to an information query method and device. Background Art

[0002] The Simple Network Management Protocol (SNMP) is a standard protocol defined by the Internet Engineering Task Force (IETF) to achieve remote management of electronic devices. Its advantage lies in device monitoring, but it is not suitable for large-scale applications. For example, it is slow to obtain routing information and various table items of devices (such as large amounts of data). Currently, all electronic devices use private management information bases (MIBs) in large quantities. Network operation and maintenance personnel must request the MIBs of electronic devices separately, which takes a lot of time to organize the object identifiers (OIDs) they need. The operation and maintenance platform also needs to do compatibility processing, which reduces the efficiency of data transmission. Summary of the invention

[0003] In view of the above problems, embodiments of the present invention are proposed to provide an information query method and device that overcome the above problems or at least partially solve the above problems.

[0004] In order to solve the above problem, an embodiment of the present invention discloses an information query method, which is applied to an electronic device. The method includes:

[0005] Obtaining first object identifier OID information corresponding to first query information sent by the integrated management platform, and obtaining second OID information corresponding to the first OID information according to a first correspondence relationship of the OID information, wherein the first query information is obtained by the integrated management platform through a simple network management protocol SNMP client and encapsulation of the first OID information in a first management information base MIB;

[0006] Determine a query result corresponding to the second OID information, and encapsulate the first OID information and the query result to obtain first feedback information;

[0007] The first feedback information is sent to the integrated management platform, so that the integrated management platform obtains the query result after parsing the first feedback information through the SNMP client.

[0008] Optionally, the obtaining of first object identifier OID information corresponding to the first query information sent by the integrated management platform includes:

[0009] Receiving first query information sent by the integrated management platform;

[0010] The first query information is parsed to obtain the first OID information.

[0011] Optionally, before obtaining the first object identifier OID information corresponding to the first query information sent by the integrated management platform, the method further includes:

[0012] When both the electronic device and the integrated management platform are connected to a visual network, obtaining a first visual network number of the integrated management platform;

[0013] The basic information of the electronic device is packaged to obtain first packaged information, and the first packaged information is sent to the integrated management platform through the first visual network number, so that the integrated management platform determines the status of the electronic device according to the first packaged information, and when it is determined that the status of the electronic device is online, the first query information is sent to the electronic device.

[0014] Optionally, after acquiring the second OID information corresponding to the first OID information according to the first correspondence relationship of the OID information, the method further includes:

[0015] Sending the second OID information to the target network interface;

[0016] After determining the query result corresponding to the second OID information, the method further includes:

[0017] Sending the query result to the target network interface;

[0018] The encapsulating the first OID information and the query result to obtain the first feedback information includes:

[0019] When the target network interface detects the query result corresponding to the second OID information, the first OID information and the query result are encapsulated to obtain first feedback information.

[0020] The embodiment of the present invention further discloses an information query device, which is applied to an electronic device, including:

[0021] An SNMP agent module is used to obtain first object identifier OID information corresponding to first query information sent by the integrated management platform, and obtain second OID information corresponding to the first OID information according to a first correspondence relationship of the OID information, wherein the first query information is obtained by the integrated management platform through a simple network management protocol SNMP client and encapsulation of the first OID information in a first management information base MIB;

[0022] An SNMP server, used to determine a query result corresponding to the second OID information;

[0023] The SNMP agent module is further used to encapsulate the first OID information and the query result to obtain first feedback information;

[0024] The visual network agent module is used to send the first feedback information to the integrated management platform, so that the integrated management platform obtains the query result after parsing the first feedback information through the SNMP client.

[0025] Optionally, before the SNMP agent module obtains the first object identifier OID information corresponding to the first query information sent by the integrated management platform, the visual network agent module is also used to receive the first query information sent by the integrated management platform;

[0026] When the SNMP agent module obtains the first object identifier OID information corresponding to the first query information sent by the integrated management platform, it is specifically used to:

[0027] The first query information is parsed to obtain the first OID information.

[0028] Optionally, before the SNMP agent module obtains the first object identifier OID information corresponding to the first query information sent by the integrated management platform, the visual network agent module is further used to obtain the first visual network number of the integrated management platform when both the electronic device and the integrated management platform are connected to the visual network;

[0029] The SNMP agent module is further used to encapsulate the basic information of the electronic device to obtain first encapsulation information;

[0030] The visual network agent module is also used to send the first packaging information to the integrated management platform via the first visual network number, so that the integrated management platform determines the status of the electronic device based on the first packaging information, and when it is determined that the status of the electronic device is online, the first query information is sent to the electronic device.

[0031] Optionally, after acquiring the second OID information corresponding to the first OID information according to the first corresponding relationship of the OID information, the SNMP agent module is further configured to:

[0032] Sending the second OID information to the target network interface;

[0033] After determining the query result corresponding to the second OID information, the SNMP server is further configured to:

[0034] Sending the query result to the target network interface;

[0035] Wherein, when the SNMP agent module encapsulates the first OID information and the query result to obtain the first feedback information, it is specifically used to:

[0036] When the target network interface detects the query result corresponding to the second OID information, the first OID information and the query result are encapsulated to obtain first feedback information.

[0037] An embodiment of the present invention further discloses an electronic device, comprising the information query device as described in any one of the above items.

[0038] An embodiment of the present invention further discloses a computer-readable storage medium, wherein a computer program stored in the storage medium enables a processor to execute the information query method as described in any one of the above items.

[0039] The embodiments of the present invention include the following advantages:

[0040] Through the first correspondence between the integrated management platform and the OID information of the electronic device, the electronic device converts the first OID information obtained from the integrated management platform into second OID information private to the electronic device. The electronic device then obtains the query result corresponding to the first query information through the private second OID information, and then encapsulates the query result with the first OID information and returns it to the integrated management platform. At the electronic device end, its own private OID is converted with the OID of the integrated management platform, which solves the problem of low performance caused by the large workload of the private MIB of each electronic device. The integrated management platform can quickly manage different electronic devices without changes, thereby improving data transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0042] Figure 1 is a flowchart of steps of an information query method embodiment of the present invention;

[0043] Figure 2 It is a schematic diagram of the visual networking connection between the integrated management platform of the present invention and the electronic equipment;

[0044] Figure 3 It is a structural block diagram of an information query device embodiment of the present invention. DETAILED DESCRIPTION

[0045] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.

[0046] The terms "first", "second", etc. in the specification and claims of the present invention are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0047] The fault determination method for a solar base station provided by an embodiment of the present invention is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios.

[0048] Specifically, an embodiment of the present invention provides an information query method that can be applied to electronic devices, such as Figure 1 As shown, the following steps may be specifically included:

[0049] Step 101, obtain the first object identifier OID information corresponding to the first query information sent by the integrated management platform, and obtain the second OID information corresponding to the first OID information based on the first correspondence of the OID information. The first query information is obtained by the integrated management platform through the simple network management protocol SNMP client and the first OID information encapsulation in the first management information base MIB.

[0050] Specifically, the integrated management platform, as an operation and maintenance platform, is the display end of SNMP protocol collection. Users can view the information of electronic equipment (such as switches, routers, terminals, etc.) on the integrated management platform.

[0051] like Figure 2 As shown, the integrated management platform 21 includes but is not limited to the SNMP client 22 and the first MIB 23. The electronic device 24 includes but is not limited to the SNMP agent module 25, the SNMP server 26, the second MIB 27, and the visual network agent module 28. The electronic device 24 is connected to the integrated management platform 21 via the visual network.

[0052] The integrated management platform 21 encapsulates the first OID information through the SNMP client 22 and the first MIB 23, obtains the first query information, and sends the first query information to the electronic device 24. The electronic device 24 obtains the first query information in the integrated management platform 21 through the SNMP agent module 25. Since the first query information includes the first OID information, the electronic device 24 can obtain the first OID information corresponding to the integrated management platform 21 through the SNMP agent module 25.

[0053] In order to ensure that the information uploaded by the electronic device can be parsed by the integrated management platform, the OID information of the electronic devices of each manufacturer can be mapped to the OID information of the integrated management platform to form the first corresponding information of the first OID information. Thus, the SNMP agent module 25 of the electronic device 24 can obtain the second OID information corresponding to the first OID information according to the first corresponding relationship of the OID information, and the second OID information is the private OID information corresponding to the first OID information in the electronic device 24.

[0054] The visual networking agent module may be specifically a V2V-Agent. In the fields of computer science and artificial intelligence, a V2V-Agent generally refers to an agent that acts as an autonomous computing entity in a virtual-to-virtual (V2V) migration or communication process. The following is a detailed explanation of the above concept:

[0055] Agent in V2V migration: V2V migration refers to the process of migrating virtual machines in a virtualized environment from one virtualization platform to another. In this process, the agent may act as the executor of the migration task, responsible for perceiving the environment (such as the status of the source virtualization platform and the target virtualization platform), making decisions (such as selecting a migration strategy and optimizing the migration process), and taking actions (such as executing migration commands and verifying migration results).

[0056] Agent in V2V communication: In a distributed radio resource management (RRM) scheme, a V2V link may select resource blocks (RBs) and transmission power based on local observations, and each V2V link can be considered as an agent. As an agent, each V2V link can autonomously make decisions based on environmental conditions (such as spectrum, transmission power, etc.), such as selecting subbands and controlling transmission power, to achieve its goals.

[0057] In summary, V2V-Agent plays an important role in V2V migration or communication. As an autonomous computing entity, it can realize the functions of perception, decision-making and action to optimize the migration process or communication performance.

[0058] Step 102: determine the query result corresponding to the second OID information, and encapsulate the first OID information and the query result to obtain first feedback information.

[0059] Specifically, Figure 2 As shown, the electronic device 24 determines the query result corresponding to the second OID information (eg, usage information of the central processing unit) through the SNMP server 26.

[0060] After the electronic device 24 determines the query result corresponding to the second OID information through the SNMP server 26, the SNMP agent module 25 of the electronic device 24 encapsulates the first OID information corresponding to the second OID information and the query result according to the query result corresponding to the second OID information and the first corresponding relationship to obtain first feedback information, which includes the first OID information and the query result.

[0061] Step 103: Send the first feedback information to the integrated management platform, so that the integrated management platform obtains the query result after parsing the first feedback information through the SNMP client.

[0062] Specifically, Figure 2 As shown, the electronic device 24 sends the first feedback information to the integrated management platform 21 through the visual network agent module 28. After receiving the first feedback information, the integrated management platform 21 parses the first feedback information through the SNMP client 22 to obtain the query result corresponding to the first query information. Thus, the electronic device 21 updates the content to be queried according to the query result (such as: updating the usage information of the central processing unit), and the integrated management platform 21 can display the updated content.

[0063] In the above embodiment of the present invention, the electronic device converts the first OID information of the integrated management platform obtained into the second OID information private to the electronic device through the first corresponding relationship between the integrated management platform and the OID information of the electronic device. The electronic device then obtains the query result corresponding to the first query information through the private second OID information, and then encapsulates the query result with the first OID information and returns it to the integrated management platform. The electronic device converts its own private OID with the OID of the integrated management platform on the electronic device side, which solves the problem of low performance caused by the large workload of the private MIB of each electronic device. The integrated management platform can quickly manage different electronic devices without changes, thereby improving data transmission efficiency.

[0064] As an optional specific embodiment, the step 101 obtains the first object identifier OID information corresponding to the first query information sent by the integrated management platform, specifically including steps 1011 and 1012:

[0065] Step 1011, receiving first query information sent by the integrated management platform;

[0066] Step 1012: parse the first query information and obtain the first OID information.

[0067] Specifically, the integrated management platform encapsulates the first OID information through the SNMP client and the first MIB, obtains the first query information, and sends the first query information to the electronic device. The electronic device receives the first query information through the visual network agent module. The visual network agent module sends the first query information to the SNMP agent module. The SNMP agent module parses the first query information to obtain the first OID information.

[0068] Furthermore, before obtaining the first object identifier OID information corresponding to the first query information sent by the integrated management platform in step 101, the method further includes:

[0069] When both the electronic device and the integrated management platform are connected to a visual network, obtaining a first visual network number of the integrated management platform;

[0070] The basic information of the electronic device is packaged to obtain first packaged information, and the first packaged information is sent to the integrated management platform through the first visual network number, so that the integrated management platform determines the status of the electronic device according to the first packaged information, and when it is determined that the status of the electronic device is online, the first query information is sent to the electronic device.

[0071] Specifically, before the visual network agent module of the electronic device receives the first query information, the electronic device needs to be connected to the visual network, and the integrated management platform also needs to be connected to the visual network. In addition, the electronic device needs to be registered and managed on the integrated management platform, that is, the electronic device needs to establish an association relationship with the integrated management platform.

[0072] When both the electronic device and the integrated management platform are connected to the visual network, the integrated management platform obtains its own visual network number (i.e., the first visual network number) and sends the first visual network number to the electronic device. After the electronic device is connected to the visual network, the visual network agent module obtains the first visual network number of the integrated management platform through the heartbeat mechanism.

[0073] After obtaining the first visual network number of the integrated management platform, the visual network agent module sends the first visual network number to the SNMP agent module, and the basic information of the electronic device is encapsulated by the SNMP agent module to obtain the first encapsulation information.

[0074] Among them, the basic information of the electronic device includes but is not limited to: the second visual network number of the electronic device, the port number of the sub-device of the electronic device, the device model of the electronic device, the serial number (Serial Number, SN) of the electronic device and other information.

[0075] After obtaining the first encapsulation information, the SNMP agent module sends the first encapsulation information to the visual network agent module, and the visual network agent module sends the first encapsulation information to the integrated management platform corresponding to the first visual network number through the first visual network number. After receiving the first encapsulation information, the integrated management platform parses the first encapsulation information through the SNMP client to obtain the basic information of the electronic device, and the basic information can be used to determine whether the electronic device is online or offline. If the electronic device is online, the integrated management platform can send the first query information to the electronic device, and the electronic device starts to execute step 101.

[0076] As another optional specific embodiment, after the step 101 acquires the second OID information corresponding to the first OID information according to the first corresponding relationship of the OID information, the method further includes:

[0077] Sending the second OID information to the target network interface;

[0078] Wherein, after the step 102 determines the query result corresponding to the second OID information, the method further includes:

[0079] Sending the query result to the target network interface;

[0080] The step 102 encapsulates the first OID information and the query result to obtain first feedback information, which specifically includes:

[0081] When the target network interface detects the query result corresponding to the second OID information, the first OID information and the query result are encapsulated to obtain first feedback information

[0082] Specifically, the visual network agent module of the electronic device receives the first query information sent by the integrated management platform, and sends the first query information to the SNMP agent module.

[0083] The SNMP agent module parses the first query information to obtain the first OID information, obtains the second OID information corresponding to the first OID information according to the first corresponding relationship of the OID information, and sends the second OID information to the target network interface.

[0084] The SNMP service end of the electronic device monitors the target network interface, and when it is detected that the target network interface has the second OID information, determines the query result corresponding to the second OID information, and sends the query result to the target network interface.

[0085] The visual networking agent module of the electronic device monitors the target network interface, and if a query result is monitored at the target network interface, the query result is sent to the SNMP module.

[0086] After receiving the query result, the SNMP agent module parses the query result, and then obtains the first OID information corresponding to the second OID information through the first corresponding relationship, and optimizes and encapsulates the first OID information and the query result to obtain the first feedback information, and sends the first feedback information to the visual network agent module. For example: the original OID information of the electronic device (i.e., the second OID information) is: 1.3.6.1.4.1.5651.6.3.1.13.2.1.5, and the encapsulated OID information (i.e., the first OID information in the first feedback information) is: 1.3.6.1.4.1.5420.6.3.1.4.2.1.1.

[0087] After receiving the first feedback information, the visual network agent module sends the first feedback information to the integrated management platform. The integrated management platform can obtain the query result corresponding to the first query information by parsing the first feedback information through the SNMP client.

[0088] Through the above method, the integrated management platform can query the information of each network interface, and update the network topology based on the query results of each network interface.

[0089] In addition, if an electronic device has many ports, the amount of information data such as port status, port receiving rate, and port sending rate is large. The OID information of a port through the visual network can carry multiple information such as port status, port rate, and sending rate, which can reduce a large amount of protocol encapsulation header information to improve information transmission efficiency.

[0090] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0091] In summary, in the above embodiment of the present invention, the electronic device converts the first OID information of the integrated management platform obtained into the second OID information private to the electronic device through the first corresponding relationship between the integrated management platform and the OID information of the electronic device, and then obtains the query result corresponding to the first query information through the private second OID information of the electronic device, and then returns the query result to the integrated management platform after packaging the query result with the first OID information, and converts its own private OID with the OID of the integrated management platform on the electronic device side, thereby achieving the compatibility of the OID information of the electronic device, solving the problem of low performance caused by the large workload of the private MIB of each electronic device, and the integrated management platform can quickly manage different electronic devices without change, thereby improving the data transmission efficiency. In addition, the OID information of the electronic devices of each manufacturer is mapped and corresponded with the OID information of the integrated management platform to form the first corresponding information of the first OID information, so as to ensure that the information uploaded by the electronic device can be parsed by the integrated management platform. In addition, the SNMP protocol encapsulation is optimized, and one OID information is used to carry multiple pieces of information, thereby reducing the amount of transmitted data, reducing the use of network bandwidth, and improving network transmission performance.

[0092] The above describes the information query method provided by the embodiment of the present invention. The following describes the information query device provided by the embodiment of the present invention in conjunction with the accompanying drawings.

[0093] like Figure 3 As shown, the embodiment of the present invention further provides an information query device 300, which can be applied to an electronic device and specifically may include:

[0094] The SNMP agent module 301 is used to obtain the first object identifier OID information corresponding to the first query information sent by the integrated management platform, and obtain the second OID information corresponding to the first OID information according to the first corresponding relationship of the OID information, wherein the first query information is obtained by the integrated management platform through the simple network management protocol SNMP client and the first OID information encapsulation in the first management information base MIB;

[0095] The SNMP server 302 is used to determine the query result corresponding to the second OID information;

[0096] The SNMP agent module 301 is further used to encapsulate the first OID information and the query result to obtain first feedback information;

[0097] The visual network agent module 303 is used to send the first feedback information to the integrated management platform, so that the integrated management platform obtains the query result after parsing the first feedback information through the SNMP client.

[0098] In the above embodiment of the present invention, the electronic device converts the first OID information of the integrated management platform obtained into the second OID information private to the electronic device through the first corresponding relationship between the integrated management platform and the OID information of the electronic device. The electronic device then obtains the query result corresponding to the first query information through the private second OID information, and then encapsulates the query result with the first OID information and returns it to the integrated management platform. The electronic device converts its own private OID with the OID of the integrated management platform on the electronic device side, which solves the problem of low performance caused by the large workload of the private MIB of each electronic device. The integrated management platform can quickly manage different electronic devices without changes, thereby improving data transmission efficiency.

[0099] Optionally, before the SNMP agent module 301 obtains the first object identifier OID information corresponding to the first query information sent by the integrated management platform, the visual network agent module 303 is further used to receive the first query information sent by the integrated management platform;

[0100] When the SNMP agent module 301 obtains the first object identifier OID information corresponding to the first query information sent by the integrated management platform, it is specifically used to:

[0101] The first query information is parsed to obtain the first OID information.

[0102] Optionally, before the SNMP agent module 301 obtains the first object identifier OID information corresponding to the first query information sent by the integrated management platform, the visual network agent module 303 is further used to obtain the first visual network number of the integrated management platform when both the electronic device and the integrated management platform are connected to the visual network;

[0103] The SNMP agent module 301 is further used to encapsulate the basic information of the electronic device to obtain first encapsulation information;

[0104] The visual network agent module 303 is also used to send the first packaging information to the integrated management platform via the first visual network number, so that the integrated management platform determines the status of the electronic device based on the first packaging information, and when determining that the status of the electronic device is online, sends the first query information to the electronic device.

[0105] Optionally, after acquiring the second OID information corresponding to the first OID information according to the first corresponding relationship of the OID information, the SNMP agent module 301 is further configured to:

[0106] Sending the second OID information to the target network interface;

[0107] After determining the query result corresponding to the second OID information, the SNMP server 302 is further used to:

[0108] Sending the query result to the target network interface;

[0109] Wherein, when the SNMP agent module 301 encapsulates the first OID information and the query result to obtain the first feedback information, it is specifically used to:

[0110] When the target network interface detects the query result corresponding to the second OID information, the first OID information and the query result are encapsulated to obtain first feedback information.

[0111] In summary, in the above embodiment of the present invention, the electronic device converts the first OID information of the integrated management platform obtained into the second OID information private to the electronic device through the first corresponding relationship between the integrated management platform and the OID information of the electronic device, and then obtains the query result corresponding to the first query information through the private second OID information of the electronic device, and then returns the query result to the integrated management platform after packaging the query result with the first OID information, and converts its own private OID with the OID of the integrated management platform on the electronic device side, thereby achieving the compatibility of the OID information of the electronic device, solving the problem of low performance caused by the large workload of the private MIB of each electronic device, and the integrated management platform can quickly manage different electronic devices without change, thereby improving the data transmission efficiency. In addition, the OID information of the electronic devices of each manufacturer is mapped and corresponded with the OID information of the integrated management platform to form the first corresponding information of the first OID information, so as to ensure that the information uploaded by the electronic device can be parsed by the integrated management platform. In addition, the SNMP protocol encapsulation is optimized, and one OID information is used to carry multiple pieces of information, thereby reducing the amount of transmitted data, reducing the use of network bandwidth, and improving network transmission performance.

[0112] It should be noted here that the above-mentioned information query device provided by the embodiment of the present invention can implement all the method steps implemented by the above-mentioned information query method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.

[0113] It should be noted that the division of units in the embodiments of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present invention may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0114] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0115] An embodiment of the present invention further provides an electronic device, which includes the information query device as described in any of the above embodiments.

[0116] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program that enables a processor to execute any step of the above-mentioned information query method.

[0117] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.

[0118] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0119] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer executable instructions. These computer executable instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0120] These processor executable instructions may also be stored in a processor readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the processor readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0121] These processor-executable instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0122] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. An information query method, characterized in that: Applied to electronic equipment, the method comprises: Obtaining first object identifier OID information corresponding to first query information sent by the integrated management platform, and obtaining second OID information corresponding to the first OID information according to a first correspondence relationship of the OID information, wherein the first query information is obtained by the integrated management platform through a simple network management protocol SNMP client and encapsulation of the first OID information in a first management information base MIB; Determine a query result corresponding to the second OID information, and encapsulate the first OID information and the query result to obtain first feedback information; The first feedback information is sent to the integrated management platform, so that the integrated management platform obtains the query result after parsing the first feedback information through the SNMP client.

2. The method according to claim 1, characterized in that The obtaining of first object identifier OID information corresponding to the first query information sent by the integrated management platform includes: Receiving first query information sent by the integrated management platform; The first query information is parsed to obtain the first OID information.

3. The method according to claim 1, characterized in that Before obtaining the first object identifier OID information corresponding to the first query information sent by the integrated management platform, the method further includes: When both the electronic device and the integrated management platform are connected to a visual network, obtaining a first visual network number of the integrated management platform; The basic information of the electronic device is packaged to obtain first packaged information, and the first packaged information is sent to the integrated management platform through the first visual network number, so that the integrated management platform determines the status of the electronic device according to the first packaged information, and when it is determined that the status of the electronic device is online, the first query information is sent to the electronic device.

4. The method according to claim 1, characterized in that: After acquiring the second OID information corresponding to the first OID information according to the first corresponding relationship of the OID information, the method further includes: Sending the second OID information to the target network interface; After determining the query result corresponding to the second OID information, the method further includes: Sending the query result to the target network interface; The encapsulating the first OID information and the query result to obtain the first feedback information includes: When the target network interface detects the query result corresponding to the second OID information, the first OID information and the query result are encapsulated to obtain first feedback information.

5. An information query device, characterized in that: Used in electronic equipment, including: An SNMP agent module is used to obtain first object identifier OID information corresponding to first query information sent by the integrated management platform, and obtain second OID information corresponding to the first OID information according to a first correspondence relationship of the OID information, wherein the first query information is obtained by the integrated management platform through a simple network management protocol SNMP client and encapsulation of the first OID information in a first management information base MIB; An SNMP server, used to determine a query result corresponding to the second OID information; The SNMP agent module is further used to encapsulate the first OID information and the query result to obtain first feedback information; The visual network agent module is used to send the first feedback information to the integrated management platform, so that the integrated management platform obtains the query result after parsing the first feedback information through the SNMP client.

6. The device according to claim 5, characterized in that Before the SNMP agent module obtains the first object identifier OID information corresponding to the first query information sent by the integrated management platform, the visual network agent module is also used to receive the first query information sent by the integrated management platform; When the SNMP agent module obtains the first object identifier OID information corresponding to the first query information sent by the integrated management platform, it is specifically used to: The first query information is parsed to obtain the first OID information.

7. The device according to claim 5, characterized in that Before the SNMP agent module obtains the first object identifier OID information corresponding to the first query information sent by the integrated management platform, the visual network agent module is also used to obtain the first visual network number of the integrated management platform when both the electronic device and the integrated management platform are connected to the visual network; The SNMP agent module is further used to encapsulate the basic information of the electronic device to obtain first encapsulation information; The visual network agent module is also used to send the first packaging information to the integrated management platform via the first visual network number, so that the integrated management platform determines the status of the electronic device based on the first packaging information, and when it is determined that the status of the electronic device is online, the first query information is sent to the electronic device.

8. The device according to claim 5, characterized in that After acquiring the second OID information corresponding to the first OID information according to the first corresponding relationship of the OID information, the SNMP agent module is further used to: Sending the second OID information to the target network interface; After determining the query result corresponding to the second OID information, the SNMP server is further configured to: Sending the query result to the target network interface; Wherein, when the SNMP agent module encapsulates the first OID information and the query result to obtain the first feedback information, it is specifically used to: When the target network interface detects the query result corresponding to the second OID information, the first OID information and the query result are encapsulated to obtain first feedback information.

9. An electronic device, characterized in that: The invention comprises the information query device as described in any one of claims 5 to 8.

10. A computer-readable storage medium, characterized in that: The computer program stored therein enables the processor to execute the information query method as described in any one of claims 1 to 4.