CN108985397B - Method and device for inquiring Bond information and computer storage medium - Google Patents

Method and device for inquiring Bond information and computer storage medium Download PDF

Info

Publication number
CN108985397B
CN108985397B CN201810620497.5A CN201810620497A CN108985397B CN 108985397 B CN108985397 B CN 108985397B CN 201810620497 A CN201810620497 A CN 201810620497A CN 108985397 B CN108985397 B CN 108985397B
Authority
CN
China
Prior art keywords
bond
information
network card
server
dimensional code
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201810620497.5A
Other languages
Chinese (zh)
Other versions
CN108985397A (en
Inventor
窦志刚
隋怡心
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Infosec Technologies Co Ltd
Original Assignee
Beijing Infosec Technologies Co Ltd
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 Beijing Infosec Technologies Co Ltd filed Critical Beijing Infosec Technologies Co Ltd
Priority to CN201810620497.5A priority Critical patent/CN108985397B/en
Publication of CN108985397A publication Critical patent/CN108985397A/en
Application granted granted Critical
Publication of CN108985397B publication Critical patent/CN108985397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning

Abstract

The invention discloses a method and a device for inquiring Bond information and a computer storage medium, which are used for solving the technical problem that the current state information of a Bond network card cannot be inquired conveniently and quickly in the prior art. The method comprises the following steps: acquiring Bond information in the server; the Bond information is configuration information of at least two physical network cards bound into one logic network card in the server; generating Bond query information based on the Bond information; the Bond query information is used for indicating the specific components of the logic network card and the use states of the physical network card and the physical network port; and generating a Bond two-dimensional code from the Bond query information through a two-dimensional code generator, displaying the Bond two-dimensional code on a specified display window of the server, and enabling a user to query the Bond query information by scanning the Bond two-dimensional code.

Description

Method and device for inquiring Bond information and computer storage medium
Technical Field
The invention relates to the field of computers, in particular to a method and a device for inquiring Bond information.
Background
With the continuous development of network technology, the number of network users is continuously increased, the user requirements are increased, and the trend of diversified development is presented, so that enterprises and public institutions providing services for users need to continuously improve the bandwidth of a server to meet the access requirements of the users.
In the prior art, in order to meet the access requirement of a user, a plurality of physical network cards on a server are usually bound into one logical network card (this process is called Bond, and the formed logical network card can become a Bond network card), so that the plurality of physical network cards can work by using the same IP, and further, the bandwidth of the server can be increased, and the reliability and the redundancy can be improved.
However, with the change of services, the actual use situation of Bond network cards is also changing, such as: assuming that a Bond network card of a certain server is composed of 6 physical network cards, in one time period, due to the fact that the number of users is increased, 5 physical network cards are actually used, in another time period, the number of users is reduced, only 1 physical network card is actually used, when a user needs to know which physical network cards and network ports are in use or configuration information of the Bond network card is changed, the user can know only by querying through corresponding instructions after logging in the server, so that the user has the problem that operation is not convenient enough when needing to know the current state information of the Bond network card, and the queried contents are related to the related parameters of the Bond network card, and more contents of the parameters, the readability is poor, and the user cannot quickly know the current state of the Bond network card.
Therefore, how to conveniently and quickly query the current state information of the Bond network card becomes a technical problem to be solved urgently.
Disclosure of Invention
The invention provides a method and a device for inquiring Bond information and a computer storage medium, which are used for solving the technical problem that the current state information of a Bond network card cannot be inquired conveniently and quickly in the prior art.
In a first aspect, to solve the above technical problem, an embodiment of the present invention provides a method for querying Bond information, which is applied to a server, and has a technical solution as follows:
acquiring Bond information in the server; the Bond information is configuration information of at least two physical network cards bound into one logic network card in the server;
generating Bond query information based on the Bond information; the Bond query information is used for indicating the specific components of the logic network card and the use states of the physical network card and the physical network port;
and generating a Bond two-dimensional code from the Bond query information through a two-dimensional code generator, displaying the Bond two-dimensional code on a specified display window of the server, and enabling a user to scan the Bond two-dimensional code to query the Bond information of the server by using electronic equipment with a two-dimensional code recognition function.
Through the two-dimensional code generator, the Bond query information corresponding to the Bond information of the logic network card bound by the physical network card in the server is obtained, the Bond two-dimensional code is generated, and the Bond two-dimensional code is displayed on a specified display window of the server, so that a user can quickly and conveniently query the Bond information of the server by scanning the Bond two-dimensional code through electronic equipment with a two-dimensional code identification function. And moreover, the appointed display window of the server only needs to display the Bond two-dimensional code instead of the Bond information, so that the screen size of the appointed display window can be effectively saved, and the cost can be effectively saved due to the fact that the two-dimensional code has low requirements on the screen resolution and size of the appointed display serial port.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the Bond query information includes:
text or picture, or combination of text and picture; wherein the picture is a Bond state diagram generated based on the Bond information; the Bond state diagram is used for representing the components of the logic network card and the use states of the physical network card and the physical network port.
The Bond query information is displayed in a text or picture mode or a combination mode of the text and the picture mode, the readability of the Bond information of the server can be improved, and a user can conveniently and quickly know the state of the logic network card in the server.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, before the obtaining the Bond information in the method server, the method includes:
monitoring whether Bond information in the server changes;
and if the Bond information in the server changes, acquiring the changed Bond information.
By monitoring whether the Bond information changes or not and acquiring the changed Bond information again after the change is determined, the Bond information of the server inquired by a user through scanning the Bond two-dimensional code can be ensured to be the latest information.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the monitoring whether the Bond information in the server changes includes:
monitoring the current Bond information of the server through a Bond monitoring process residing in the server;
and if the current Bond information is different from the Bond information, determining that the Bond information changes.
By monitoring the current Bond information of the server in a process mode (Bond monitoring process), whether the Bond information of the server changes or not can be timely found.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the generating Bond query information based on the Bond information includes:
based on the Bond information, obtaining the use condition of the logic network card; the service condition is used for reflecting the total amount and the service state of the physical network card and the physical network card corresponding to the logic network card;
and generating Bond query information of the logic network card according to the service condition of the logic network card.
In a second aspect, an embodiment of the present invention provides an apparatus for querying Bond information, including:
an obtaining unit, configured to obtain Bond information in the server; the Bond information is configuration information of at least two physical network cards bound into one logic network card in the server;
a generating unit, configured to generate Bond query information based on the Bond information; the Bond query information is used for indicating the specific components of the logic network card and the use states of the physical network card and the physical network port;
and the query unit is used for generating the Bond query information into a Bond two-dimensional code through the two-dimensional code generator, displaying the Bond two-dimensional code on a specified display window of the server, and enabling a user to scan the Bond two-dimensional code to query the Bond information of the server through electronic equipment with a two-dimensional code recognition function.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the Bond query information specifically includes:
text or picture, or combination of text and picture; wherein the picture is a Bond state diagram generated based on the Bond information; the Bond state diagram is used for representing the components of the logic network card and the use states of the physical network card and the physical network port.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the obtaining unit is specifically configured to:
monitoring whether Bond information in the server changes;
and if the Bond information in the server changes, acquiring the changed Bond information.
With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the obtaining unit is further configured to:
monitoring the current Bond information of the server through a Bond monitoring process residing in the server;
and if the current Bond information is different from the Bond information, determining that the Bond information changes.
With reference to the second possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the generating unit is specifically configured to:
based on the Bond information, obtaining the use condition of the logic network card; the service condition is used for reflecting the total amount and the service state of the physical network card and the physical network card corresponding to the logic network card;
and generating Bond query information of the logic network card according to the service condition of the logic network card.
In a third aspect, an embodiment of the present invention further provides an apparatus for querying Bond information, where the apparatus includes:
at least one processor, and
a memory coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, and the at least one processor performs the method according to the first aspect by executing the instructions stored by the memory.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, including:
the computer readable storage medium stores computer instructions which, when executed on a computer, cause the computer to perform the method of the first aspect as described above.
Through the technical solutions in one or more of the above embodiments of the present invention, the embodiments of the present invention have at least the following technical effects:
in the embodiment provided by the invention, the Bond query information corresponding to the Bond information of the logic network card bound by the physical network card in the server is obtained through the two-dimensional code generator to generate the Bond two-dimensional code, and the Bond two-dimensional code is displayed on the appointed display window of the server, so that a user can quickly and conveniently query the Bond query information of the server by scanning the Bond two-dimensional code through the electronic equipment with the two-dimensional code identification function. And moreover, the appointed display window of the server only needs to display the Bond two-dimensional code instead of the Bond information, so that the screen size of the appointed display window can be effectively saved, and the cost can be effectively saved due to the fact that the two-dimensional code has low requirements on the screen resolution and size of the appointed display serial port.
Drawings
Fig. 1 is a flowchart of a method for querying Bond information according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a picture showing Bond status information provided by an embodiment of the present invention;
fig. 3 is a schematic diagram of generating a Bond two-dimensional code according to Bond query information according to an embodiment of the present invention;
fig. 4 is a schematic diagram of the mobile phone scanning the Bond two-dimensional code to query that Bond information is text or a picture according to the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a device for inquiring Bond information according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method and a device for inquiring Bond information and a computer storage medium, which aim to solve the technical problem that the current state information of a Bond network card cannot be inquired conveniently and quickly in the prior art.
In order to solve the technical problems, the general idea of the embodiment of the present application is as follows:
provided is a method for inquiring Bond information, comprising the following steps: acquiring Bond information in a server; the Bond information is configuration information of at least two physical network cards bound into one logic network card in the server; generating Bond query information based on the Bond information; the Bond query information is used for indicating the specific components of the logic network card and the use states of the physical network card and the physical network port; and generating a Bond two-dimensional code from the Bond query information through a two-dimensional code generator, displaying the Bond two-dimensional code on a specified display window of the server, and enabling a user to scan the Bond information of the Bond two-dimensional code query server by using electronic equipment with a two-dimensional code recognition function.
According to the scheme, the Bond query information corresponding to the Bond information of the logic network card bound by the physical network card in the server is obtained through the two-dimensional code generator, the Bond two-dimensional code is generated, and the Bond two-dimensional code is displayed on the appointed display window of the server, so that a user can rapidly and conveniently query the Bond query information of the server by scanning the Bond two-dimensional code through the electronic equipment with the two-dimensional code identification function. And moreover, the appointed display window of the server only needs to display the Bond two-dimensional code instead of the Bond information, so that the screen size of the appointed display window can be effectively saved, and the cost can be effectively saved due to the fact that the two-dimensional code has low requirements on the screen resolution and size of the appointed display serial port.
In order to better understand the technical solutions of the present invention, the following detailed descriptions of the technical solutions of the present invention are provided with the accompanying drawings and the specific embodiments, and it should be understood that the specific features in the embodiments and the examples of the present invention are the detailed descriptions of the technical solutions of the present invention, and are not limitations of the technical solutions of the present invention, and the technical features in the embodiments and the examples of the present invention may be combined with each other without conflict.
Referring to fig. 1, an embodiment of the present invention provides a method for querying Bond information, which is applied to a server and the processing procedure of the method is as follows.
Step 101: acquiring Bond information in a server; the Bond information is configuration information of at least two physical network cards bound into one logic network card in the server.
Specifically, in the method for acquiring the Bond information, a command for querying the logical network card is written into a Bond monitoring process residing in the server, and the Bond information of the logical network card (generally referred to as the Bond network card in the industry) is acquired through the Bond monitoring process.
Before the Bond information in the server is obtained, whether the Bond information in the server changes or not can be monitored through a Bond monitoring process; and if the Bond information in the server changes, acquiring the changed Bond information.
For example, if the Bond monitoring process monitors that a physical network card is newly added to the logical network card, the Bond information is inquired, and then the Bond information is obtained.
Specifically, monitoring whether the Bond information in the server changes is realized by the following method: firstly, monitoring the current Bond information of a server through a Bond monitoring process residing in the server; and if the current Bond information is different from the original Bond information, determining that the Bond information changes.
And when the Bond monitoring process monitors that the configuration information of the logic network card changes, acquiring the Bond information.
For example, the Bond information queried by the Bond monitoring process may be summary information, such as:
Bonding Mode:fault-tolerance
Primary Slave:None
Currently Active Slave:eth0
MII Status:up
MII Polling Interval(ms):100
Up Delay(ms):0
Down Delay(ms):0
Slave Interface:eth0
MII Status:up
Link Failure Count:0
Permanent HW addr:00:0c:29:07:fc:35
Slave Interface:eth1
MII Status:up
Link Failure Count:0
Permanent HW addr:00:0c:29:07:fc:3f
the Bond information may also be detailed information of the logical network card (Bond0) and the physical network card (eth0, eth1), such as:
Bonding Mode:fault-tolerance(active-backup)
Primary Slave:None
Currently Active Slave:eth0
MII Status:up
MII Polling Interval(ms):100
Up Delay(ms):0
Down Delay(ms):0
Slave Interface:eth0
MII Status:up
Speed:1000Mbps
Duplex:full
Link Failure Count:0
Permanent HW addr:00:0c:29:07:fc:35
Slave queue ID:0
Slave Interface:eth1
MII Status:up
Speed:1000Mbps
Duplex:full
Link Failure Count:0
Permanent HW addr:00:0c:29:07:fc:3f
Slave queue ID:0
bond0Link encap:Ethernet HWaddr00:0c:29:07:fc:35
inet addr:172.25.215.200Bcast:172.25.215.255Mask:255.255.255.0
net6addr:fe80::a00:27ff:fed7:f884/64Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500
Metric:1
RX packets:8175errors:0dropped:0overruns:0frame:0
TX packets:117errors:0dropped:0overruns:0carrier:0
collisions:0txqueuelen:0
RX bytes:1417884(1.3MiB)TX bytes:6230(6.0KiB)
eth0Link encap:Ethernet HWaddr00:0c:29:07:fc:35
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500
Metric:1
RX packets:4131errors:0dropped:0overruns:0frame:0
TX packets:22errors:0dropped:0overruns:0carrier:0
collisions:0txqueuelen:1000
RX bytes:711693(695.0KiB)TX bytes:1424(1.3KiB)
eth1Link encap:Ethernet HWaddr00:0c:29:07:fc:35
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500
Metric:1
RX packets:4044errors:0dropped:0overruns:0frame:0
TX packets:95errors:0dropped:0overruns:0carrier:0
collisions:0txqueuelen:1000
RX bytes:706191(689.6KiB)TX bytes:4806(4.6KiB)
the Bond information may also be a combination of the above summary information and the detailed information, or may also be added with other information, such as a network card connection state, and the like, where the Bond information includes components of a logical network card of the server (e.g., which physical network cards are specifically composed, uplink and downlink transmission rates of the logical network card, and the like), usage of each component (e.g., which physical network cards are being used, and corresponding uplink and downlink transmission rates of data, and the like), and what contents of an IP address, and the like, are not limited herein.
After the Bond information is obtained, step 101 may be performed.
Step 102: generating Bond query information based on the Bond information; the Bond query information is used for indicating the specific components of the logic network card and the use states of the physical network card and the physical network port.
The specific implementation of generating the Bond query information based on the Bond information is as follows: firstly, obtaining the use condition of the logic network card based on Bond information; the using condition is used for reflecting the total amount and the using state of the physical network card and the physical network card corresponding to the logic network card; and generating Bond query information of the logic network card according to the use condition of the logic network card.
For example, the use cases where the logical network card can be obtained from the summary information (Bond information) exemplified in step 101 are: the method comprises the steps that the actual MAC of a binding Mode Interface-topology (a Bond Mode is an active backup Mode), the actual MAC of a Slave Interface eth0 (a main network card eth0) is 00:0c:29:07: fc:35, and the actual MAC of a Slave Interface eth1 is 00:0c:29:07: fc:3f, and Bond query information of a logic network card is generated according to the use condition of the logic network card.
Specifically, the query information includes: text or picture, or combination of text and picture; wherein, the picture is a Bond state diagram generated based on the Bond information; the Bond state diagram is used for representing the components of the logic network card and the use states of the physical network card and the physical network port.
For example, assuming that the Bond information is the summary information exemplified in step 101, the Bond query information produced from its contents is: the Bond mode is an active backup mode, the number of Bond ports is 2, and the Bond mode comprises a physical network card eth0 (main) and eth1 (standby), wherein the actual MAC of eth0 is 00:0c:29:07: fc:35, and the actual MAC of eth1 is 00:0c:29:07: fc:3 f. If the Bond information is a picture (Bond state diagram), please refer to fig. 2 for details.
After the Bond query information is obtained, step 103 may be performed.
Step 103: and generating the Bond inquiry information into a Bond two-dimensional code through a two-dimensional code generator, and displaying the Bond two-dimensional code on a specified display window of the server, so that a user can scan the Bond information of the Bond two-dimensional code inquiry server by using electronic equipment with a two-dimensional code recognition function.
For example, assuming that the Bond information is the detailed information exemplified in step 101, the Bond query information produced from its contents is: the Bond mode is an active backup mode, the MAC address of the Bond network card is 00:0c:29:07: fc:35, and the Bond network card is formed by a physical network card Eth0 (main) MAC: 00:0c:29:07: fc:35 and Eth1 (stock C): 00:0c:29:07: fc: 35. Then, generating the Bond two-dimensional code by the two-dimensional code generator according to the Bond query information can be specifically seen in fig. 3.
It should be understood that the two-dimensional code generator may be an independent third-party program, or may be a section of program in the method, and the specific two-dimensional code generator generates the two-dimensional code by calling the third-party program, or exists in the method in the form of a subroutine, which is not limited herein.
The specific details of displaying the Bond two-dimensional code on the designated display window of the server and enabling the user to scan the Bond query information of the Bond two-dimensional code query server by using the electronic device with the two-dimensional code recognition function can be seen in fig. 4, where fig. 4 shows a corresponding query result when the Bond query information is a text or a picture.
By adding a display screen (namely, a designated display window) on the server for displaying the Bond two-dimensional code, the problems of more data and overlong caused by directly displaying the Bond information in the step 101 on the display screen of the designated display window are avoided. In addition, the two-dimensional code has low requirements on the resolution and the size of the display screen, so that the technical effect of quickly and conveniently inquiring Bond information can be realized simply and at low manufacturing cost.
It should be understood that the installation position of the designated display window in the server can be any position which is convenient for the user to view and does not influence the internal hardware structure of the server.
Based on the same inventive concept, an embodiment of the present invention provides an apparatus for querying Bond information, which is applied to a server, and a specific implementation of a method for querying Bond information of the apparatus may refer to the description of the method embodiment, and repeated details are not described again, please refer to fig. 5, where the apparatus includes:
an obtaining unit 501, configured to obtain Bond information in the server; the Bond information is configuration information of at least two physical network cards bound into one logic network card in the server;
a generating unit 502, configured to generate Bond query information based on the Bond information; the Bond query information is used for indicating the specific components of the logic network card and the use states of the physical network card and the physical network port;
the query unit 503 is configured to generate a Bond two-dimensional code from the Bond query information through the two-dimensional code generator, and display the Bond two-dimensional code on a designated display window of the server, so that a user can scan the Bond two-dimensional code to query the Bond information of the server by using an electronic device with a two-dimensional code recognition function.
Optionally, the Bond query information specifically includes:
text or picture, or combination of text and picture; wherein the picture is a Bond state diagram generated based on the Bond information; the Bond state diagram is used for representing the components of the logic network card and the use states of the physical network card and the physical network port.
Optionally, the obtaining unit 501 is specifically configured to:
monitoring whether Bond information in the server changes;
and if the Bond information in the server changes, acquiring the changed Bond information.
Optionally, the obtaining unit 501 is further configured to:
monitoring the current Bond information of the server through a Bond monitoring process residing in the server;
and if the current Bond information is different from the Bond information, determining that the Bond information changes.
Optionally, the generating unit 502 is specifically configured to:
based on the Bond information, obtaining the use condition of the logic network card; the service condition is used for reflecting the total amount and the service state of the physical network card and the physical network card corresponding to the logic network card;
and generating Bond query information of the logic network card according to the service condition of the logic network card.
Based on the same inventive concept, an embodiment of the present invention provides an apparatus for querying Bond information, including: at least one processor, and
a memory coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, and the at least one processor executes the instructions stored by the memory to perform the method of querying Bond information as described above.
Based on the same inventive concept, an embodiment of the present invention further provides a computer-readable storage medium, including:
the computer-readable storage medium stores computer instructions that, when executed on a computer, cause the computer to perform the method of querying Bond information as described above.
In the embodiment provided by the invention, the Bond query information corresponding to the Bond information of the logic network card bound by the physical network card in the server is obtained through the two-dimensional code generator to generate the Bond two-dimensional code, and the Bond two-dimensional code is displayed on the appointed display window of the server, so that a user can quickly and conveniently query the Bond information of the server by scanning the Bond two-dimensional code through the electronic equipment with the two-dimensional code identification function. And moreover, the appointed display window of the server only needs to display the Bond two-dimensional code instead of the Bond information, so that the screen size of the appointed display window can be effectively saved, and the cost can be effectively saved due to the fact that the two-dimensional code has low requirements on the screen resolution and size of the appointed display serial port.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such 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 such modifications and variations.

Claims (12)

1. A method for inquiring Bond information is applied to a server, and is characterized by comprising the following steps:
acquiring Bond information in the server; the Bond information is configuration information of at least two physical network cards bound into one logic network card in the server, and the configuration information comprises one or more information of components of the logic network card of the server, the use condition of each component, an IP address and a mac address;
generating Bond query information based on the Bond information; the Bond query information is used for indicating the specific components of the logic network card and the use states of the physical network card and the physical network port;
and generating a Bond two-dimensional code from the Bond query information through a two-dimensional code generator, displaying the Bond two-dimensional code on a specified display window of the server, and enabling a user to scan the Bond two-dimensional code to query the Bond information of the server by using electronic equipment with a two-dimensional code recognition function.
2. The method of claim 1, wherein the Bond query information comprises:
text or picture, or combination of text and picture; wherein the picture is a Bond state diagram generated based on the Bond information; the Bond state diagram is used for representing the components of the logic network card and the use states of the physical network card and the physical network port.
3. The method according to claim 1 or 2, wherein before obtaining the Bond information in the method server, comprising:
monitoring whether Bond information in the server changes;
and if the Bond information in the server changes, acquiring the changed Bond information.
4. The method of claim 3, wherein monitoring whether Bond information in the server changes comprises:
monitoring the current Bond information of the server through a Bond monitoring process residing in the server;
and if the current Bond information is different from the Bond information, determining that the Bond information changes.
5. The method of claim 3, wherein generating Bond query information based on the Bond information comprises:
based on the Bond information, obtaining the use condition of the logic network card; the using condition is used for reflecting the total amount and the using state of the physical network card and the physical network card corresponding to the logic network card;
and generating Bond query information of the logic network card according to the service condition of the logic network card.
6. An apparatus for inquiring Bond information, which is applied in a server, is characterized in that the apparatus comprises:
an obtaining unit, configured to obtain Bond information in the server; the Bond information is configuration information of at least two physical network cards bound into one logic network card in the server, and the configuration information comprises one or more information of components of the logic network card of the server, the use condition of each component, an IP address and a mac address;
a generating unit, configured to generate Bond query information based on the Bond information; the Bond query information is used for indicating the specific components of the logic network card and the use states of the physical network card and the physical network port;
and the query unit is used for generating the Bond query information into a Bond two-dimensional code through the two-dimensional code generator, displaying the Bond two-dimensional code on a specified display window of the server, and enabling a user to scan the Bond two-dimensional code to query the Bond information of the server through electronic equipment with a two-dimensional code recognition function.
7. The apparatus of claim 6, wherein the query information is specifically:
text or picture, or combination of text and picture; wherein the picture is a Bond state diagram generated based on the Bond information; the Bond state diagram is used for representing the components of the logic network card and the use states of the physical network card and the physical network port.
8. The apparatus according to claim 6 or 7, wherein the obtaining unit is specifically configured to:
monitoring whether Bond information in the server changes;
and if the Bond information in the server changes, acquiring the changed Bond information.
9. The apparatus of claim 8, wherein the obtaining unit is further configured to:
monitoring the current Bond information of the server through a Bond monitoring process residing in the server;
and if the current Bond information is different from the Bond information, determining that the Bond information changes.
10. The apparatus of claim 8, wherein the generating unit is specifically configured to:
based on the Bond information, obtaining the use condition of the logic network card; the using condition is used for reflecting the total amount and the using state of the physical network card and the physical network card corresponding to the logic network card;
and generating Bond query information of the logic network card according to the service condition of the logic network card.
11. An apparatus for querying Bond information, comprising:
at least one processor, and
a memory coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the at least one processor performing the method of any one of claims 1-5 by executing the instructions stored by the memory.
12. A computer-readable storage medium characterized by:
the computer readable storage medium stores computer instructions that, when executed on a computer, cause the computer to perform the method of any of claims 1-5.
CN201810620497.5A 2018-06-15 2018-06-15 Method and device for inquiring Bond information and computer storage medium Active CN108985397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810620497.5A CN108985397B (en) 2018-06-15 2018-06-15 Method and device for inquiring Bond information and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810620497.5A CN108985397B (en) 2018-06-15 2018-06-15 Method and device for inquiring Bond information and computer storage medium

Publications (2)

Publication Number Publication Date
CN108985397A CN108985397A (en) 2018-12-11
CN108985397B true CN108985397B (en) 2022-02-18

Family

ID=64541352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810620497.5A Active CN108985397B (en) 2018-06-15 2018-06-15 Method and device for inquiring Bond information and computer storage medium

Country Status (1)

Country Link
CN (1) CN108985397B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556110B (en) * 2020-04-21 2022-09-06 贵州新致普惠信息技术有限公司 Automatic adaptation method for different physical service networks of private cloud system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556625A (en) * 2004-01-05 2004-12-22 联想(北京)有限公司 Data transmission method of network equipment based on multinetwork card and device
CN102479101A (en) * 2010-11-24 2012-05-30 英业达股份有限公司 Binding method for network interface
CN104463264A (en) * 2014-10-23 2015-03-25 长园共创电力安全技术股份有限公司 Dynamic generation and display system for two-dimensional code and control method of dynamic generation and display system
CN104883264A (en) * 2014-02-27 2015-09-02 中国科学院声学研究所 Method and system of virtualizing network cards on network processing platform
CN105262610A (en) * 2015-09-02 2016-01-20 北京金山安全软件有限公司 Network repairing method, device and terminal
CN106209449A (en) * 2016-07-06 2016-12-07 天脉聚源(北京)传媒科技有限公司 A kind of method and device binding network interface card
CN107632921A (en) * 2017-09-28 2018-01-26 郑州云海信息技术有限公司 A kind of method and system that server info is shown by Quick Response Code

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556625A (en) * 2004-01-05 2004-12-22 联想(北京)有限公司 Data transmission method of network equipment based on multinetwork card and device
CN102479101A (en) * 2010-11-24 2012-05-30 英业达股份有限公司 Binding method for network interface
CN104883264A (en) * 2014-02-27 2015-09-02 中国科学院声学研究所 Method and system of virtualizing network cards on network processing platform
CN104463264A (en) * 2014-10-23 2015-03-25 长园共创电力安全技术股份有限公司 Dynamic generation and display system for two-dimensional code and control method of dynamic generation and display system
CN105262610A (en) * 2015-09-02 2016-01-20 北京金山安全软件有限公司 Network repairing method, device and terminal
CN106209449A (en) * 2016-07-06 2016-12-07 天脉聚源(北京)传媒科技有限公司 A kind of method and device binding network interface card
CN107632921A (en) * 2017-09-28 2018-01-26 郑州云海信息技术有限公司 A kind of method and system that server info is shown by Quick Response Code

Also Published As

Publication number Publication date
CN108985397A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
US10698717B2 (en) Accelerator virtualization method and apparatus, and centralized resource manager
US9531614B1 (en) Network aware distributed business transaction anomaly detection
CN110036599B (en) Programming interface for network health information
CN113141405B (en) Service access method, middleware system, electronic device, and storage medium
US20180242177A1 (en) Monitoring management method and apparatus
CN110708366A (en) Plug-in process management method, related method and related device
CN104793982A (en) Method and device for establishing virtual machine
US9577900B1 (en) Application centric network experience monitoring
CN108985397B (en) Method and device for inquiring Bond information and computer storage medium
CN112887173B (en) Storage network detection method, device, equipment and readable storage medium
CN114780049A (en) Screen projection display method and device, electronic equipment and storage medium
CN106559236B (en) Equipment resource management method and device of service board, main control board and frame type equipment
CN110022323A (en) A kind of method and system of the cross-terminal real-time, interactive based on WebSocket and Redux
WO2017131777A1 (en) Application aware cluster monitoring
CN104079440A (en) Synchronous configuration method of primary equipment and stand-by equipment and SNMP (Simple Network Management Protocol) system
CN111585838B (en) Splitting detection method and device based on VSM system
CN114567481A (en) Data transmission method and device, electronic equipment and storage medium
CN110704219B (en) Hardware fault reporting method and device and computer storage medium
CN111416851A (en) Method for session synchronization among multiple load balancers and load balancer
CN103220187B (en) A kind of detection method of three layer interface states and device
WO2020238057A1 (en) Redis-based mqtt cluster monitoring method, apparatus, and storage medium
CN113259198A (en) Method for monitoring network, forwarding plane device, storage medium and system
CN102769538B (en) Port changing method, related device and system
CN105045629A (en) Diskless workstation equipment startup method and system
CN111416852A (en) Method for session synchronization among multiple load balancers and load balancer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant