CN107453959B - Network card management method and device - Google Patents
Network card management method and device Download PDFInfo
- Publication number
- CN107453959B CN107453959B CN201710865530.6A CN201710865530A CN107453959B CN 107453959 B CN107453959 B CN 107453959B CN 201710865530 A CN201710865530 A CN 201710865530A CN 107453959 B CN107453959 B CN 107453959B
- Authority
- CN
- China
- Prior art keywords
- network card
- state information
- information
- terminal
- virtual machine
- 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
Links
- 238000007726 management method Methods 0.000 title claims abstract description 28
- 238000000034 method Methods 0.000 claims abstract description 15
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring 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 management method and a device of a network card. The method comprises the following steps: acquiring first state information of a network card, wherein the first state information comprises any one or a combination of the following: the running information of the network card comprises the information of the network card opening or the network card closing; and sending the first state information to a terminal so that the terminal operates the network card according to the first state information. The network card is operated according to the first state information of the network card, so that the cloud computing efficiency is improved.
Description
Technical Field
The present invention relates to computer technology, and is especially network card managing method and device.
Background
With the development of communication technology, cloud computing based on virtualization technology is being widely used to improve the utilization rate of network resources.
In the prior art, cloud computing is a model for providing virtualized resources based on the internet. That is to say, the interaction of virtualized resources in cloud computing needs to be performed by relying on a network card.
However, in a scenario that cloud computing cannot normally operate, in the prior art, it cannot be determined whether a network card causes the cloud computing to not normally operate, so that the working efficiency of the cloud computing is low.
Disclosure of Invention
In order to solve the above technical problems, the present invention provides a network card management method and device thereof, which are used to solve the problem of low data acquisition efficiency.
In order to achieve the purpose of the invention, the invention provides a network card management method, which comprises the following steps:
acquiring first state information of a network card, wherein the first state information comprises any one or a combination of the following: the running information of the network card comprises the information of the network card opening or the network card closing;
and sending the first state information to a terminal so that the terminal operates the network card according to the first state information.
Further, before the obtaining of the state information of the network card, the method further includes:
acquiring second state information of a network card detector, wherein the network card detector is used for executing the acquisition of the state information of the network card and sending the state information to a terminal;
and sending the second state information to a terminal so that the terminal operates the network card detector according to the second state information.
Further, after the sending the first state information to the terminal, the method further includes:
determining that the network card is in a closed state according to the first state information;
and starting the network card according to the condition that the network card is in a closed state.
Further, the acquiring the first state information of the network card includes:
and periodically executing the first state information of the network card.
Further, before the obtaining the first state information of the network card, the method further includes:
and setting a time interval for executing the acquisition of the first state information of the network card.
On the other hand, the invention also provides a management device of the network card, which comprises the following components:
the obtaining module is configured to obtain first state information of the network card, where the first state information includes any one of or a combination of the following: the running information of the network card comprises the information of the network card opening or the network card closing;
and the sending module is used for sending the first state information to a terminal so that the terminal operates the network card according to the first state information.
Further, the obtaining module is further configured to obtain second state information of a network card detector, where the network card detector is configured to execute the obtaining of the state information of the network card, and send the state information to a terminal;
the sending module is further configured to send the second state information to a terminal, so that the terminal operates the network card detector according to the second state information.
Further, the method also comprises the following steps: starting the module;
the starting module is used for determining that the network card is in a closed state according to the first state information; and starting the network card according to the condition that the network card is in a closed state.
Further, the obtaining module is configured to periodically execute the obtaining of the first state information of the network card.
Further, the obtaining module is further configured to set a time interval for executing the obtaining of the first state information of the network card.
According to the network card management method provided by the invention, the first state information of the network card is acquired, and the first state information comprises any one or combination of the following: the running information of the network card comprises the information of the network card opening or the network card closing; and sending the first state information to a terminal so that the terminal operates the network card according to the first state information. The network card is operated according to the first state information of the network card, so that the cloud computing efficiency is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a schematic flow chart of an embodiment of a network card management method according to the present invention;
FIG. 2 is a schematic structural diagram of an embodiment of a network card management device according to the present invention;
fig. 3 is a schematic structural diagram of a second embodiment of the network card management device of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The network card management method provided by the embodiment of the invention can be particularly applied to the situation that the cloud computing cannot normally run. The management method of the network card provided in this embodiment may be executed by a management device of the network card, and the management device of the network card may be integrated in a cloud computing platform or separately configured, where the management device of the network card may be implemented in a software and/or hardware manner. The following describes in detail the method and apparatus for managing a network card according to the present embodiment.
Fig. 1 is a schematic flow chart of an embodiment of a network card management method according to the present invention; as shown in fig. 1, the execution main body of this embodiment may be a management device of a network card, and the management method of a network card provided by the present invention includes:
In this embodiment, the first status information includes any one or a combination of the following: the operation information of the network card comprises the connection information of the network card and a power supply, and the operation information comprises the information of the network card opening or the network card closing. That is, the network card is turned on or turned off, which is a logic state that can be turned on and off by software operation.
The present embodiment includes at least the following two applicable scenarios:
in a first applicable scenario, cloud computing cannot run normally, for example, when a virtual machine in the cloud computing uses an SR-IOV network and a Macvtap network.
And a second applicable scene, periodically executing and acquiring the first state information of the network card.
And 102, sending the first state information to a terminal so that the terminal operates the network card according to the first state information.
Specifically, the terminal operates the network card according to the first state information, for example, the first state information is information for closing the network card, and the corresponding operation may be prompting to open the network card; or, the first state information is information that the network card is not connected to the power supply, and the corresponding operation may be to prompt the terminal to establish connection between the network card and the power supply, so as to establish connection between the network card and the power supply.
For example, in a virtualization environment, when a virtual machine uses an SR-IOV and Macvtap network, if the running state of a network card is not started, the virtual machine is not successfully started. In this embodiment, the first state information may be sent to the management interface of the terminal to prompt the user to start the network card, that is, the management interface of the terminal may display the first state information of the network card, where the first state information may include any one of or a combination of the following: the operation information of the network card and the connection information of the network card and the power supply, so that a user displays the information through a terminal to execute corresponding operation. Furthermore, the information can be displayed on a terminal alarm interface.
In this embodiment, by acquiring first state information of the network card, the first state information includes any one or a combination of the following: the running information of the network card comprises the information of the network card opening or the network card closing; and sending the first state information to a terminal so that the terminal operates the network card according to the first state information. The network card is operated according to the first state information of the network card, so that the cloud computing efficiency is improved.
Further, on the basis of the above embodiment, before the obtaining the status information of the network card, the method further includes:
acquiring second state information of a network card detector, wherein the network card detector is used for executing the acquisition of the state information of the network card and sending the state information to a terminal;
and sending the second state information to a terminal so that the terminal operates the network card detector according to the second state information.
It should be noted that the network card detector may be an actual physical device, and may be implemented by a software program.
For example, in this embodiment, the network card detector, that is, the running state of the program NicStatusDetection is detected every 60 minutes by default, if the running of the network card detector is in a problem, the management interface updates the second state information in real time, and also prompts the user to restart the network card detector on the management interface, and if the restart fails, the management interface displays feedback information after the failure to prompt the user to further operate the virtualization system to repair the network card detector.
Preferably, on the basis of the above embodiment, after the sending the first status information to the terminal, the method further includes:
determining that the network card is in a closed state according to the first state information;
and starting the network card according to the condition that the network card is in a closed state.
Further, on the basis of the foregoing embodiment, the acquiring the first state information of the network card includes:
and periodically executing the first state information of the network card.
Preferably, on the basis of the above embodiment, before the acquiring the first state information of the network card, the method further includes:
and setting a time interval for executing the acquisition of the first state information of the network card.
Fig. 2 is a schematic structural diagram of an embodiment of a network card management device according to the present invention. As shown in fig. 2, the device for managing a network card according to the present invention includes: an acquisition module 21, and a sending module 22.
The obtaining module 21 is configured to obtain first state information of the network card, where the first state information includes any one of or a combination of the following: the running information of the network card comprises the information of the network card opening or the network card closing;
a sending module 22, configured to send the first state information to a terminal, so that the terminal operates the network card according to the first state information.
In this embodiment, by acquiring first state information of the network card, the first state information includes any one or a combination of the following: the running information of the network card comprises the information of the network card opening or the network card closing; and sending the first state information to a terminal so that the terminal operates the network card according to the first state information. The network card is operated according to the first state information of the network card, so that the cloud computing efficiency is improved.
Further, on the basis of the above embodiment, the obtaining module 21 is further configured to obtain second state information of a network card detector, where the network card detector is configured to execute the obtaining of the state information of the network card, and send the state information to a terminal;
the sending module 22 is further configured to send the second state information to a terminal, so that the terminal operates the network card detector according to the second state information.
Fig. 3 is a schematic structural diagram of a second embodiment of the network card management device of the present invention. As shown in fig. 3, on the basis of the above embodiment, the network card management device provided in the present invention further includes: the module 23 is started;
the starting module 23 is configured to determine that the network card is in a closed state according to the first state information; and starting the network card according to the condition that the network card is in a closed state.
Preferably, on the basis of the foregoing embodiment, the obtaining module 21 is configured to periodically execute the obtaining of the first state information of the network card.
Further, on the basis of the above embodiment, the obtaining module 21 is further configured to set a time interval for executing the obtaining of the first state information of the network card.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A management method of a network card is characterized by comprising the following steps:
in an SR-IOV network or a Macvtap network, when cloud computing cannot normally run, first state information of a network card of a virtual machine is acquired, wherein the first state information includes any one or a combination of the following: the running information of the network card comprises the information of starting the network card or stopping the network card, wherein the first state information is used for determining whether the virtual machine is not started successfully due to the network card;
and sending the first state information to a terminal so that the terminal operates the network card according to the first state information.
2. The method according to claim 1, wherein before acquiring the first state information of the network card of the virtual machine, the method further comprises:
acquiring second state information of a network card detector, wherein the network card detector is used for executing the acquisition of first state information of a network card of a virtual machine, and sending the first state information to a terminal;
and sending the second state information to a terminal so that the terminal operates the network card detector according to the second state information.
3. The method according to claim 1 or 2, wherein after sending the first status information to the terminal, further comprising:
determining that the network card is in a closed state according to the first state information;
and starting the network card according to the condition that the network card is in a closed state.
4. The method of claim 3, wherein the obtaining the first state information of the network card of the virtual machine comprises:
and periodically executing the first state information of the network card of the virtual machine.
5. The method according to claim 4, wherein before the obtaining the first state information of the network card of the virtual machine, further comprising:
and setting a time interval for executing the acquisition of the first state information of the network card of the virtual machine.
6. A management apparatus for a network card, comprising:
the acquisition module is used for acquiring first state information of a network card of a virtual machine in an SR-IOV network or a Macvtap network when cloud computing cannot normally run, wherein the first state information comprises any one or a combination of the following: the running information of the network card comprises the information of starting the network card or stopping the network card, wherein the first state information is used for determining whether the virtual machine is not started successfully due to the network card;
and the sending module is used for sending the first state information to a terminal so that the terminal operates the network card according to the first state information.
7. The device according to claim 6, wherein the obtaining module is further configured to obtain second status information of a network card detector, where the network card detector is configured to execute obtaining of first status information of the network card, and send the first status information to a terminal;
the sending module is further configured to send the second state information to a terminal, so that the terminal operates the network card detector according to the second state information.
8. The apparatus of claim 6 or 7, further comprising: starting the module;
the starting module is used for determining that the network card is in a closed state according to the first state information; and starting the network card according to the condition that the network card is in a closed state.
9. The apparatus of claim 8, wherein the obtaining module is configured to periodically execute the obtaining of the first status information of the network card of the virtual machine.
10. The apparatus of claim 9, wherein the obtaining module is further configured to set a time interval for executing the obtaining of the first status information of the network card of the virtual machine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710865530.6A CN107453959B (en) | 2017-09-22 | 2017-09-22 | Network card management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710865530.6A CN107453959B (en) | 2017-09-22 | 2017-09-22 | Network card management method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107453959A CN107453959A (en) | 2017-12-08 |
CN107453959B true CN107453959B (en) | 2021-04-30 |
Family
ID=60497039
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710865530.6A Active CN107453959B (en) | 2017-09-22 | 2017-09-22 | Network card management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107453959B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109104332A (en) * | 2018-08-01 | 2018-12-28 | 郑州云海信息技术有限公司 | A kind of network card status detection method and device |
CN114117562B (en) * | 2021-10-27 | 2024-01-12 | 苏州浪潮智能科技有限公司 | Intelligent network card management method and device, electronic equipment and computer storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103023699A (en) * | 2012-11-30 | 2013-04-03 | 北京奇虎科技有限公司 | Network repair method and system |
CN103297271A (en) * | 2013-05-25 | 2013-09-11 | 成都网丁科技有限公司 | Network diagnosis system supportive of account validity verification |
CN104468279A (en) * | 2014-12-22 | 2015-03-25 | 上海斐讯数据通信技术有限公司 | Routing protocol interaction testing method and tool |
CN106169965A (en) * | 2016-09-28 | 2016-11-30 | 北京金山安全软件有限公司 | Network repairing method, device and terminal |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102053698B (en) * | 2009-11-06 | 2013-02-13 | 联想(北京)有限公司 | Computer and network card control method |
CN101964714B (en) * | 2010-10-28 | 2013-01-30 | 南京大学 | Method and system for awakening remote equipment |
CN102523209B (en) * | 2011-12-06 | 2015-07-08 | 北京航空航天大学 | Dynamic adjustment method and device of safety inspection virtual machines |
CN103607308B (en) * | 2013-11-29 | 2016-09-21 | 杭州东信北邮信息技术有限公司 | Virtual machine multi-network management system under cloud computing environment and method |
CN103731514B (en) * | 2013-12-29 | 2017-01-18 | 国云科技股份有限公司 | Virtual network management method |
US9348646B1 (en) * | 2014-09-22 | 2016-05-24 | Amazon Technologies, Inc. | Reboot-initiated virtual machine instance migration |
CN106789361A (en) * | 2017-02-16 | 2017-05-31 | 郑州云海信息技术有限公司 | Event-handling method and device under a kind of cloud computing environment |
-
2017
- 2017-09-22 CN CN201710865530.6A patent/CN107453959B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103023699A (en) * | 2012-11-30 | 2013-04-03 | 北京奇虎科技有限公司 | Network repair method and system |
CN103297271A (en) * | 2013-05-25 | 2013-09-11 | 成都网丁科技有限公司 | Network diagnosis system supportive of account validity verification |
CN104468279A (en) * | 2014-12-22 | 2015-03-25 | 上海斐讯数据通信技术有限公司 | Routing protocol interaction testing method and tool |
CN106169965A (en) * | 2016-09-28 | 2016-11-30 | 北京金山安全软件有限公司 | Network repairing method, device and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107453959A (en) | 2017-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107493344B (en) | Method and system for Web access to Docker container | |
CN107678946B (en) | Model-based airborne embedded software test environment construction method | |
WO2016037479A1 (en) | Method, device and system for optimizing virtualized network function (vnf) | |
RU2009132388A (en) | AGREEMENT OF DOWNLOAD BETWEEN MULTIPLE DEVICES ABLE TO DOWNLOAD | |
US20160020962A1 (en) | Management of Virtual CPES | |
CN103514007B (en) | A kind of method of the thermal starting of the mobile terminal based on android system | |
CN104753996A (en) | Remote hosting system, method and device for mobile terminal | |
CN107453959B (en) | Network card management method and device | |
CN108563472B (en) | Service plug-in loading method and device based on multi-open application | |
CN109683964A (en) | Bios software debugging control program, system and server | |
CN105068899A (en) | Automatic reboot stability test method for Vmware system | |
CN112835639B (en) | Hook realization method, device, equipment, medium and product | |
CN103440146A (en) | BIOS updating method based on cloud storage | |
US10394619B2 (en) | Signature-based service manager with dependency checking | |
CN111506393A (en) | ARM-based virtualization device and use method thereof | |
CN106919423B (en) | Firmware upgrading method and device | |
CN113326098B (en) | Cloud management platform supporting KVM virtualization and container virtualization | |
CN109947576A (en) | A kind of method of virtual machine internal broker program management | |
CN111858037B (en) | Service arrangement method, device and equipment of physical machine and storage medium | |
CN115145381A (en) | Method, system, storage medium and equipment for remotely resetting BMC chip | |
US20200344305A1 (en) | Commissioning a virtualised network function | |
CN104484209A (en) | Method for automatically accessing mirror image of Windows virtual machine | |
CN113918179A (en) | Method and system for automatically installing OS (operating system) by cooperation of host and intelligent network card under Linux | |
CN116339761B (en) | Method, system, storage medium and equipment for automatically constructing mirror image template | |
CN109271188A (en) | A kind of CPLD upgrade method and relevant apparatus |
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 |