CN114117562B - Intelligent network card management method and device, electronic equipment and computer storage medium - Google Patents

Intelligent network card management method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN114117562B
CN114117562B CN202111257053.8A CN202111257053A CN114117562B CN 114117562 B CN114117562 B CN 114117562B CN 202111257053 A CN202111257053 A CN 202111257053A CN 114117562 B CN114117562 B CN 114117562B
Authority
CN
China
Prior art keywords
network card
intelligent network
shutdown
server
receiving
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
CN202111257053.8A
Other languages
Chinese (zh)
Other versions
CN114117562A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111257053.8A priority Critical patent/CN114117562B/en
Publication of CN114117562A publication Critical patent/CN114117562A/en
Application granted granted Critical
Publication of CN114117562B publication Critical patent/CN114117562B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/85Protecting input, output or interconnection devices interconnection devices, e.g. bus-connected or in-line devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/81Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer by operating on the power supply, e.g. enabling or disabling power-on, sleep or resume operations
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Power Sources (AREA)

Abstract

The invention relates to a management method and device of an intelligent network card, electronic equipment and a computer storage medium, wherein the method comprises the following steps: receiving a shutdown signal for shutting down the server host; sending a shutdown notification to the intelligent network card so that the intelligent network card enters a shutdown process of the intelligent network card after receiving the shutdown notification; inquiring whether the shutdown flow of the intelligent network card is finished; if the power supply is finished, the power supply to the intelligent network card is disconnected, and abnormal shutdown of the intelligent network card caused by direct power failure in the shutdown process of the server is avoided.

Description

Intelligent network card management method and device, electronic equipment and computer storage medium
Technical Field
The present invention relates to the field of server technologies, and in particular, to a method and apparatus for managing an intelligent network card, an electronic device, and a computer storage medium.
Background
The network card is an important component in the server system, is mainly used for data transmission between servers or between a server and a client, and is a component which is not necessarily required to be reduced by the server. With the development of network technology, storage technology and chip design, intelligent network cards have been developed. The intelligent network card (Smart Network Interface Controller) is a high-performance network access card with a network processor as a core, has larger and more intelligent functions than a general network card, is a small server system and assists a CPU to process unfamiliar network related transactions.
Because the intelligent network card is used as PCIE equipment and is not independently powered, the intelligent network card is normally powered off directly when the server performs shutdown operation, if the intelligent network card service processing is not completed, the intelligent network card is not normally powered off, if the intelligent network card is powered on again, the intelligent network card is easy to enter an emergency mode for restoration, and the intelligent network card is slower to start.
Disclosure of Invention
In order to solve the technical problems, the invention provides a management method, a device, electronic equipment and a computer storage medium for an intelligent network card, which avoid abnormal starting of the intelligent network card caused by directly powering off the intelligent network card when a server is powered off, and concretely comprises the following steps:
in a first aspect, a method for managing an intelligent network card is provided, and the method is applied to a server connected with the intelligent network card, and includes:
receiving a shutdown signal for shutting down the server host;
sending a shutdown notification to an intelligent network card, so that the intelligent network card enters an intelligent network card shutdown process after receiving the shutdown notification;
inquiring whether the shutdown process of the intelligent network card is finished;
and if the power supply is finished, the power supply to the intelligent network card is disconnected.
In a preferred embodiment, the querying whether the shutdown procedure of the intelligent network card is finished includes:
inquiring whether the intelligent network card currently has a task being executed or not;
and if the executing task exists, after the intelligent network card completes the executing task, inquiring whether the closing flow of the intelligent network card system is ended.
In a preferred embodiment, after receiving the shutdown signal for shutting down the server host, the method further comprises:
starting the closing flow of the host operating system;
and if the closing flow of the host operating system is finished, sending a shutdown notification to the intelligent network card.
In a preferred embodiment, before receiving the shutdown signal for shutting down the server host, the method further comprises:
receiving a starting signal for starting the server host;
sending a power-on signal to the intelligent network card so as to start the intelligent network card;
and initializing and configuring the intelligent network card after receiving a starting completion signal sent by the intelligent network card.
In a preferred embodiment, after receiving the power-on signal for powering on the server host, the method further comprises:
and configuring an intelligent network card shutdown process in the starting process of the basic input/output system of the server host, so that after the closing process of the host operating system is finished, sending a shutdown notification to the intelligent network card, and powering off the intelligent network card after the intelligent network card is inquired that the shutdown process is finished.
In a second aspect, a method for managing an intelligent network card is provided, and the method is applied to an intelligent network card connected with a server, and includes:
after receiving a shutdown notification sent by a server, starting an intelligent network card shutdown flow;
receiving an inquiry instruction which is sent by the server and used for inquiring whether the shutdown process of the intelligent network card is finished;
and sending a query result corresponding to the query instruction to the server so that the server determines whether to disconnect the power supply to the intelligent network card according to the query result.
In a preferred embodiment, after receiving the shutdown notification sent by the server, the starting the shutdown procedure of the intelligent network card includes:
after the shutdown notification is received, determining whether a task is currently executed;
if the task is executed, opening the intelligent network card system to close the flow after the task is completed.
In a third aspect, there is provided a management apparatus for an intelligent network card, applied to a server to which the intelligent network card is connected, the apparatus comprising:
the first receiving module is used for receiving a shutdown signal for shutting down the server host;
the first sending module is used for sending a shutdown notification to the intelligent network card so that the intelligent network card enters a shutdown flow of the intelligent network card after receiving the shutdown notification;
the inquiring module is used for inquiring whether the shutdown flow of the intelligent network card is ended;
and the power supply module is used for disconnecting the power supply to the intelligent network card if the power supply is ended.
In a fourth aspect, there is provided an electronic device comprising:
one or more processors; and
a memory associated with the one or more processors, the memory for storing program instructions that, when read for execution by the one or more processors, perform the method as described above.
In a fifth aspect, a computer storage medium is provided, wherein a computer program is stored thereon, wherein the program, when executed by a processor, implements a method as described above.
The invention firstly transmits a shutdown notice to the intelligent network card by the server in the power-off process of the intelligent network card, and the server powers off the intelligent network card after the intelligent network card completes the own shutdown process of the intelligent network card, thereby completing the power-off process of a server system, and not directly powering down the intelligent network card in the power-off process of a host of the server, if the intelligent network card has an executing task, abnormal shutdown is not caused, and the overlong starting time caused by the abnormal shutdown of the intelligent network card entering an emergency mode is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an implementation environment of a management method of an intelligent network card in an embodiment of the present invention;
FIG. 2 is a flowchart of a method for managing an intelligent network card applied to a server according to an embodiment of the present invention;
FIG. 3 is a flowchart of the power on and power off of the server system according to the present invention;
FIG. 4 is a flowchart of a method for managing an intelligent network card applied to the intelligent network card according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a management device for an intelligent network card in a server according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a management device for an intelligent network card in an intelligent network card according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the detailed description is presented by way of example only and is not intended to limit the scope of the invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "or/and" as used herein includes any and all combinations of one or more of the associated listed items.
As mentioned in the background art, the intelligent network card is used as PCIE equipment, no independent power is usually supplied to the intelligent network card by the server, if the server receives a shutdown signal to perform shutdown, the intelligent network card is usually powered down directly, which may cause abnormal shutdown when there is a task being executed in the intelligent network card, if the server is started again, the intelligent network card is also started again, at this time, the intelligent network card easily enters an emergency mode to repair, thereby causing the intelligent network card to be started slowly and reducing the performance of the intelligent network card. In the management method of the intelligent network card, after the server receives the shutdown signal, the server does not directly power off the intelligent network card, then sends a shutdown notification to the intelligent network card, the intelligent network card enters the shutdown flow of the intelligent network card after receiving the shutdown notification, and the server powers off the intelligent network card after inquiring that the shutdown flow of the intelligent network card is finished, so that abnormal shutdown of the intelligent network card is not caused, and therefore, when the intelligent network card is restarted, the intelligent network card does not need to enter an emergency repair mode, and the performance of the intelligent network card is prevented from being reduced.
As shown in fig. 1, in the implementation environment of the method for managing an intelligent network card in the present invention, a server host 101 is connected with an intelligent network card 102 through connection lines such as I2C, PCIE, POWER and a network cable, after receiving a start-up signal, the server host 101 enters a start-up process, and then supplies POWER to the intelligent network card through a POWER line, at this time, the intelligent network card is powered on, starting, and after the intelligent network card is started, the server host performs initialization configuration on the intelligent network card through PCIE. After receiving the shutdown signal for closing the host, the server enters an intelligent network card shutdown process, in the intelligent network card shutdown process, a BMC (Baseboard Management Controller ) in the server sends a shutdown notification to the BMC of the intelligent network card through a network cable, or the server sends the shutdown notification to the intelligent network card through I2C, the intelligent network card starts a shutdown process, then the BMC of the server inquires whether the intelligent network card shutdown process is completed, and if so, the intelligent network card is powered off through a POWER line.
The following describes a method, an apparatus, an electronic device, and a computer storage medium for managing an intelligent network card according to the present invention with reference to the specific drawings.
As shown in fig. 2, the present invention provides a method for managing an intelligent network card, which is applied to a server connected with the intelligent network card, and the method includes:
s201, receiving a shutdown signal for shutting down the server host.
In this step, the user or other electronic devices input a shutdown signal to the server through the bios of the server host, and specifically, the shutdown signal may be a shutdown signal in a shutdown instruction or a shutdown signal in a restart instruction.
S202, sending a shutdown notification to the intelligent network card so that the intelligent network card enters a shutdown flow of the intelligent network card after receiving the shutdown notification.
In this step, an intelligent network card shutdown process is set in the server, and the intelligent network card shutdown process is that after the server receives the shutdown signal, the server sends a shutdown notification to the intelligent network card first, and does not directly power off the intelligent network card, and the intelligent network card enters the own shutdown process after receiving the shutdown notification.
S203, inquiring whether the shutdown flow of the intelligent network card is ended.
S204, if the intelligent network card is finished, the power supply to the intelligent network card is disconnected.
In this step, in the shutdown process of the intelligent network card, the server needs to inquire whether the intelligent network card has completed the shutdown process of the intelligent network card, that is, in the present invention, delay detection logic is added when the server shuts down, and only when the intelligent network card has completed the shutdown process of the intelligent network card, the server determines that the intelligent network card has been shutdown, and can POWER off the intelligent network card by disconnecting the POWER line, thereby completing the POWER off process of the intelligent network card. Specifically, the BMC of the server host can send a query instruction to the BMC of the intelligent network card through the network cable to query whether the shutdown process of the intelligent network card is finished.
In the invention, in the power-off process of the host computer of the server, the server firstly sends a power-off notice to the intelligent network card, and after the intelligent network card finishes the power-off process of the intelligent network card, the server powers off the intelligent network card, thereby completing the power-off process of the server system, and not directly powering off the intelligent network card in the power-off process of the host computer of the server, thereby avoiding abnormal power-off of the intelligent network card, and therefore, when the intelligent network card is started again, the intelligent network card does not need to enter an emergency repair mode, the overlong starting time of the intelligent network card is avoided, and in addition, the performance reduction of the intelligent network card is avoided.
In a preferred embodiment, querying whether the shutdown procedure of the intelligent network card is finished includes:
inquiring whether the intelligent network card has a task currently being executed or not;
if the executing task exists, after the intelligent network card completes the executing task, inquiring whether the closing flow of the intelligent network card system is finished.
In this embodiment, for the intelligent network card, after receiving the shutdown notification, there may be a task currently being executed, and then the shutdown process of the intelligent network card needs to complete the shutdown process of the intelligent network card after completing the task currently being executed, and after the shutdown process of the intelligent network card is completed, the intelligent network card completes the whole shutdown process.
Further, in this embodiment, the query whether the server finishes the shutdown process of the intelligent network card may be completed by the information interaction between the BMC of the server and the BMC of the intelligent network card through the network cable, or may be completed by the information interaction between the server and the intelligent network card through the I2C.
In a preferred embodiment, after receiving the shutdown signal for shutting down the server host, the method further comprises:
starting the closing flow of the host operating system;
and if the closing flow of the host operating system is finished, sending a shutdown notification to the intelligent network card.
In this embodiment, the shutdown process of the server system includes two aspects, namely, the shutdown of the host system is triggered on one hand, after a shutdown signal is received, the host operating system of the server is triggered to enter a shutdown process of the host system, and on the other hand, the shutdown of the intelligent network card is triggered after the shutdown process of the host system is finished, that is, after the host operating system is shut down, the shutdown notification is triggered to be sent to the intelligent network card, and when the intelligent network card is shut down, the server system completes the shutdown process, so that the power supply to the intelligent network card is disconnected.
In this embodiment, before receiving the shutdown signal for shutting down the server host, the method further includes:
receiving a starting signal for starting a server host;
sending a power-on signal to the intelligent network card so as to start the intelligent network card;
and initializing and configuring the intelligent network card after receiving a starting completion signal sent by the intelligent network card.
In this embodiment, the server further includes a startup process before shutdown, the server receives a startup signal for starting up the server host, the server starts up the startup process, and then sends a power-on signal to the intelligent network card to start up the intelligent network card, after the intelligent network card is started up, the server performs initialization configuration on the intelligent network card, and specifically, the basic input/output system of the server host performs initialization configuration on the intelligent network card.
In a preferred embodiment, after receiving the power-on signal for powering on the server host, the method further comprises:
and configuring an intelligent network card shutdown process in the starting process of the basic input/output system of the server host, so that after the closing process of the host operating system is finished, sending a shutdown notification to the intelligent network card, and powering off the intelligent network card after the intelligent network card is inquired that the shutdown process is finished.
In this embodiment, after receiving the startup signal, the server triggers the basic input/output system of the host to start, and configures an intelligent network card shutdown process in the starting process of the basic input/output system, where the intelligent network card shutdown process is: after the shutdown flow of the host operating system is finished, a shutdown notice is sent to the intelligent network card, whether the shutdown flow of the intelligent network card is finished is inquired, and after the shutdown flow of the intelligent network card is finished, the intelligent network card is powered off.
According to the invention, the configuration of the shutdown process of the intelligent network card is realized in the starting process of the basic input/output system, so that the host and the intelligent network card can be shut down according to the steps when the subsequent server host is shut down, the aim of orderly shutting down the server system is fulfilled, and abnormal shutdown of the intelligent network card is avoided.
As shown in fig. 3, the process of starting up and shutting down the server system in the present invention is as follows:
s301, a server receives an opening signal, and a basic input/output system of a host is opened;
s302: the intelligent network card is electrified and started;
s303: after the start of the intelligent network card is completed, the basic input/output system performs the initialization configuration of the intelligent network card;
s304: the basic input/output system configures the shutdown process of the intelligent network card in the starting process;
s305: the basic input and output system is started, enters the system and runs the service;
s306: the server receives a shutdown signal;
s307: the server starts the closing flow of the host operating system;
s308: the server sends a shutdown notification to the intelligent network card;
s309: the intelligent network card enters an intelligent network card shutdown process;
s310: the server inquires whether the intelligent network card has a task currently being executed;
s311, if the executing task exists, inquiring whether the closing flow of the intelligent network card system is finished after the executing task is completed by the intelligent network card;
s312, if not, the server inquires whether the closing flow of the intelligent network card system is finished;
s313: the closing flow of the intelligent network card system is ended;
s314: and the server is powered off and the network card is powered off.
As shown in fig. 4, the present invention further provides a method for managing an intelligent network card, which is applied to an intelligent network card connected with a server, and the method includes:
s401, after receiving a shutdown notification sent by a server, starting an intelligent network card shutdown flow;
s402, receiving a query instruction sent by a server for querying whether the shutdown process of the intelligent network card is finished;
s403, sending the query result corresponding to the query instruction to the server, so that the server determines whether to disconnect the power supply to the intelligent network card according to the query result.
In this embodiment, after the server enters the shutdown state, the server does not immediately disconnect power to the intelligent network card, but sends a shutdown notification to the intelligent network card, so that the intelligent network card enters the shutdown process of the intelligent network card, and the shutdown process of the intelligent network card includes two aspects, namely, continuing the task currently being executed by the intelligent network card, and entering the shutdown process of the intelligent network card after completing the task currently being executed, so that the server inquires whether the shutdown process of the intelligent network card is finished after sending the shutdown notification, and determines whether to power off the intelligent network card according to the inquiry result, specifically, if the inquiry result is that the shutdown process of the intelligent network card is finished, the server powers off the intelligent network card, and if the inquiry result is that the shutdown process of the intelligent network card is not finished, the server cannot power off the intelligent network card.
In the invention, the server sends the shutdown notification to the intelligent network card in the shutdown process, and does not directly power off the intelligent network card, and the server sends the power-off instruction to the intelligent network card after inquiring that the shutdown flow of the intelligent network card is finished, thereby completing the shutdown process of the server system, and avoiding abnormal shutdown of the intelligent network card.
In a preferred embodiment, after receiving the shutdown notification sent by the server, the starting the shutdown procedure of the intelligent network card includes:
after receiving the shutdown notification, determining whether a task is currently being executed;
if the task is being executed, opening the closing flow of the intelligent network card system after the task is completed.
In this embodiment, the startup process of the intelligent network card includes two aspects, namely, after a shutdown notification is received, determining whether there is a task currently being executed, and after the task is completed, starting the shutdown process of the intelligent network card system, thereby ensuring that the task currently being executed by the intelligent network card enters the shutdown process of the system after the task is completed, avoiding not only data transmission errors caused by uncompleted power failure of the task which is not being executed, but also abnormal shutdown of the intelligent network card caused by uncompleted task, and avoiding shutdown abnormality caused by shutdown abnormality of the intelligent network card system.
In this embodiment, the server powers off the intelligent network card only when the shutdown of the intelligent network card system is completed.
As shown in fig. 5, the present invention further provides a management device of an intelligent network card, applied to a server connected with the intelligent network card, where the device includes:
a first receiving module 501, configured to receive a shutdown signal for shutting down a server host;
the first sending module 502 is configured to send a shutdown notification to the intelligent network card, so that the intelligent network card enters a shutdown procedure of the intelligent network card after receiving the shutdown notification;
a query module 503, configured to query whether the shutdown process of the intelligent network card is finished;
and the power supply module 504 is configured to disconnect power to the intelligent network card if the power supply is ended.
In a preferred embodiment, the query module 503 includes a first query unit, configured to query whether the intelligent network card has a task currently being executed;
and the second inquiring unit is used for inquiring whether the closing flow of the intelligent network card system is finished after the intelligent network card finishes the executing task if the executing task exists.
In a preferred embodiment, the system further comprises a first opening module, configured to open a closing flow of the host operating system;
the sending module is further configured to send a shutdown notification to the intelligent network card if the shutdown procedure of the host operating system is ended.
In a preferred embodiment, the first receiving module 501 is further configured to receive a power-on signal for powering on the host;
the first sending module 502 is further configured to send a power-on signal to the intelligent network card to enable the intelligent network card to be started;
the initialization module is also used for initializing and configuring the intelligent network card after receiving a starting completion signal sent by the intelligent network card.
In a preferred embodiment, the device further includes a configuration module, configured to configure a shutdown process of the intelligent network card during a startup process of the basic input/output system of the server host, so that after the shutdown process of the host operating system is finished, a shutdown notification is sent to the intelligent network card, and after the shutdown process is queried, the intelligent network card is powered off.
The technical effects that can be achieved in this embodiment are described with reference to a management method of an intelligent network card applied to a server, and are not described herein.
As shown in fig. 6, the present invention further provides a management device of an intelligent network card, which is applied to an intelligent network card connected with a server, and the device includes:
the second starting module 601 is configured to start a shutdown process of the intelligent network card after receiving a shutdown notification sent by the server;
the second receiving module 602 is configured to receive a query instruction sent by the server for querying whether the shutdown process of the intelligent network card is ended;
and the second sending module 603 is configured to send a query result corresponding to the query instruction to the server, so that the server determines whether to disconnect the power supply to the intelligent network card according to the query result.
In a preferred embodiment, the second opening module 601 further includes a determining unit, configured to determine whether there is a task currently being executed after receiving the shutdown notification;
and the opening unit is used for opening the closing flow of the intelligent network card system after the task is completed if the task is in progress.
The technical effects that can be achieved in this embodiment are described with reference to a method for managing an intelligent network card applied to the intelligent network card, which is not described herein.
The invention also provides an electronic device, which is characterized by comprising:
one or more processors; and a memory associated with the one or more processors, the memory being configured to store program instructions that, when read and executed by the one or more processors, perform a method for managing an intelligent network card as described above for application to a server, where the technical effects that can be achieved are described above and are not repeated herein.
The invention also provides an electronic device, which is characterized by comprising:
one or more processors; and a memory associated with the one or more processors, the memory being configured to store program instructions that, when read and executed by the one or more processors, perform a method for managing an intelligent network card as described above for the intelligent network card, where the technical effects that can be achieved are described above and are not repeated herein.
The invention also provides a computer storage medium for executing the management method of the intelligent network card applied to the server.
The invention also provides a computer storage medium for executing the intelligent network card management method applied to the intelligent network card.
Fig. 7 illustrates an architecture of an electronic device, which may include a processor 710, a video display adapter 711, a disk drive 712, an input/output interface 713, a network interface 714, and a memory 720, among others. The processor 710, the video display adapter 711, the disk drive 712, the input/output interface 713, the network interface 714, and the memory 720 may be communicatively connected via a communication bus 730.
The processor 710 may be implemented by a general-purpose CPU (Central Processing Unit ), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc., for executing related programs to implement the technical scheme provided by the present invention.
The Memory 720 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage device, dynamic storage device, or the like. The memory 720 may store an operating system 721 for controlling the operation of the computer system, and a Basic Input Output System (BIOS) for controlling the low-level operation of the computer system. In addition, a web browser 723, a data storage management system 724, a device identification information processing system 725, and the like may also be stored. The device identification information processing system 725 may be an application program that specifically implements the operations of the foregoing steps in the embodiments of the present invention. In general, when the technical solution provided by the present invention is implemented by software or firmware, relevant program codes are stored in the memory 720 and invoked by the processor 710 for execution.
The input/output interface 713 is used to connect with an input/output module to enable information input and output. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
The network interface 714 is used to connect communication modules (not shown) to enable communication interactions of the device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 730 includes a path to transfer information between various components of the device (e.g., processor 710, video display adapter 711, disk drive 712, input/output interface 713, network interface 714, and memory 720).
It should be noted that although the above devices illustrate only the processor 710, the video display adapter 711, the disk drive 712, the input/output interface 713, the network interface 714, the memory 720, the bus 730, etc., the device may include other components necessary to achieve proper operation in an implementation. Furthermore, it will be appreciated by those skilled in the art that the apparatus may include only the components necessary to implement the present invention, and not all of the components shown in the drawings.
Embodiments of the present invention include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via a communication device, or from memory, or from ROM. The above-described functions defined in the method of the embodiment of the present invention are performed when the computer program is executed by a processor.
It should be noted that, the computer readable medium of the embodiments of the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in embodiments of the present invention, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (Radio Frequency), and the like, or any suitable combination thereof.
The computer readable medium may be contained in the server; or may exist alone without being assembled into the server. The computer readable medium carries one or more programs which, when executed by the server, cause the server to: acquiring a frame rate of an application on the terminal in response to detecting that a peripheral mode of the terminal is not activated; when the frame rate meets the screen-extinguishing condition, judging whether a user is acquiring screen information of the terminal; and controlling the screen to enter an immediate dimming mode in response to the judgment result that the user does not acquire the screen information of the terminal.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for a system or system embodiment, since it is substantially similar to a method embodiment, the description is relatively simple, with reference to the description of the method embodiment being made in part. The systems and system embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The above detailed description of the method, the device, the electronic device and the computer storage medium for managing the intelligent network card of the intelligent network card applies specific examples to illustrate the principle and the implementation of the invention, and the above description of the examples is only used for helping to understand the method and the core idea of the invention; also, it is within the scope of the present invention to be modified by those of ordinary skill in the art in light of the present teachings. In view of the foregoing, this description should not be construed as limiting the invention.

Claims (8)

1. A method for managing an intelligent network card, the method being applied to a server to which the intelligent network card is connected, the method comprising:
receiving a shutdown signal for shutting down the server host;
sending a shutdown notification to an intelligent network card, so that the intelligent network card enters an intelligent network card shutdown process after receiving the shutdown notification;
inquiring whether the shutdown process of the intelligent network card is finished;
if the intelligent network card is finished, the power supply to the intelligent network card is disconnected;
the inquiring whether the shutdown process of the intelligent network card is finished comprises the following steps:
inquiring whether the intelligent network card currently has a task being executed or not;
and if the executing task exists, after the intelligent network card completes the executing task, inquiring whether the closing flow of the intelligent network card system is ended.
2. The method of claim 1, further comprising, after said receiving a shutdown signal for shutting down the server host:
starting the closing flow of the host operating system;
and if the closing flow of the host operating system is finished, sending a shutdown notification to the intelligent network card.
3. The method of claim 1, further comprising, prior to said receiving a shutdown signal for shutting down a server host:
receiving a starting signal for starting the server host;
sending a power-on signal to the intelligent network card so as to start the intelligent network card;
and initializing and configuring the intelligent network card after receiving a starting completion signal sent by the intelligent network card.
4. The method of claim 1, further comprising, after receiving a power-on signal for powering on the server host:
and configuring an intelligent network card shutdown process in the starting process of the basic input/output system of the server host, so that after the closing process of the host operating system is finished, sending a shutdown notification to the intelligent network card, and powering off the intelligent network card after the intelligent network card is inquired that the shutdown process is finished.
5. A method for managing an intelligent network card, the method being applied to an intelligent network card connected to a server, the method comprising:
after receiving a shutdown notification sent by a server, starting an intelligent network card shutdown flow;
receiving an inquiry instruction which is sent by the server and used for inquiring whether the shutdown process of the intelligent network card is finished;
sending a query result corresponding to the query instruction to the server, so that the server determines whether to disconnect the power supply to the intelligent network card according to the query result;
after receiving the shutdown notification sent by the server, the starting the shutdown process of the intelligent network card comprises the following steps:
after the shutdown notification is received, determining whether a task is currently executed;
if the task is executed, opening the intelligent network card system to close the flow after the task is completed.
6. A management device of an intelligent network card, applied to a server connected with the intelligent network card, the device comprising:
the first receiving module is used for receiving a shutdown signal for shutting down the server host;
the first sending module is used for sending a shutdown notification to the intelligent network card so that the intelligent network card enters a shutdown flow of the intelligent network card after receiving the shutdown notification;
the inquiring module is used for inquiring whether the shutdown flow of the intelligent network card is ended; the inquiring module is also used for inquiring whether the intelligent network card currently has a task being executed or not; if the executing task exists, inquiring whether the closing flow of the intelligent network card system is finished after the intelligent network card completes the executing task;
and the power supply module is used for disconnecting the power supply to the intelligent network card if the power supply is ended.
7. An electronic device, comprising:
one or more processors; and
a memory associated with the one or more processors, the memory for storing program instructions that, when read for execution by the one or more processors, perform the method of any of claims 1-4.
8. A computer storage medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1-4.
CN202111257053.8A 2021-10-27 2021-10-27 Intelligent network card management method and device, electronic equipment and computer storage medium Active CN114117562B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111257053.8A CN114117562B (en) 2021-10-27 2021-10-27 Intelligent network card management method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111257053.8A CN114117562B (en) 2021-10-27 2021-10-27 Intelligent network card management method and device, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN114117562A CN114117562A (en) 2022-03-01
CN114117562B true CN114117562B (en) 2024-01-12

Family

ID=80377169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111257053.8A Active CN114117562B (en) 2021-10-27 2021-10-27 Intelligent network card management method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN114117562B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11836504B2 (en) * 2022-04-04 2023-12-05 Dell Products L.P. Synchronized shutdown of host operating system and data processing unit operating system

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6675198B1 (en) * 1999-05-26 2004-01-06 Takaoka Electric Mfg. Co., Ltd. Network and network terminal
JP2004171511A (en) * 2002-10-30 2004-06-17 Fuji Electric Fa Components & Systems Co Ltd Management/control method for uninterruptible power supply system
CN202661999U (en) * 2012-04-19 2013-01-09 深圳富泰宏精密工业有限公司 Portable electronic device
CN103686292A (en) * 2013-12-27 2014-03-26 乐视致新电子科技(天津)有限公司 Startup and shutdown method and device for intelligent electronic device
CN104660418A (en) * 2013-11-20 2015-05-27 鸿富锦精密工业(深圳)有限公司 Network awakening control system and method
CN105045599A (en) * 2015-08-12 2015-11-11 创维光电科技(深圳)有限公司 Television and computer integrated machine and method for realizing remote startup and shutdown control of same
CN107453959A (en) * 2017-09-22 2017-12-08 郑州云海信息技术有限公司 The management method and its device of a kind of network interface card
CN108319469A (en) * 2018-02-28 2018-07-24 郑州云海信息技术有限公司 A kind of machine open/close control method and device of each node of Cabinet-type server
CN109617768A (en) * 2018-10-15 2019-04-12 深圳市欧瑞博科技有限公司 Information processing method, device, intelligence control system, intelligent gateway and server
CN111176414A (en) * 2019-12-13 2020-05-19 苏州浪潮智能科技有限公司 Power supply method and device for server network card and readable medium
CN111823238A (en) * 2020-06-10 2020-10-27 杭州凯尔达机器人科技股份有限公司 Robot time sequence control method, power supply time sequence management unit and control system
CN112015255A (en) * 2020-07-08 2020-12-01 深圳市智微智能科技股份有限公司 Method and system for fast shutdown without input equipment
CN112162498A (en) * 2020-09-27 2021-01-01 重庆市海普软件产业有限公司 Intelligent switch protection system and method based on Internet of things
CN112269464A (en) * 2020-10-20 2021-01-26 苏州浪潮智能科技有限公司 Optimized power supply management method and system
CN112596444A (en) * 2020-12-21 2021-04-02 苏州科达科技股份有限公司 Electronic equipment shutdown control method and system
CN112684876A (en) * 2020-12-24 2021-04-20 苏州浪潮智能科技有限公司 Server power-off delay storage system, method and medium
CN113377004A (en) * 2021-06-28 2021-09-10 广州极飞科技股份有限公司 Power-off method of aircraft, control method, application method and flight system of aircraft

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6675198B1 (en) * 1999-05-26 2004-01-06 Takaoka Electric Mfg. Co., Ltd. Network and network terminal
JP2004171511A (en) * 2002-10-30 2004-06-17 Fuji Electric Fa Components & Systems Co Ltd Management/control method for uninterruptible power supply system
CN202661999U (en) * 2012-04-19 2013-01-09 深圳富泰宏精密工业有限公司 Portable electronic device
CN104660418A (en) * 2013-11-20 2015-05-27 鸿富锦精密工业(深圳)有限公司 Network awakening control system and method
CN103686292A (en) * 2013-12-27 2014-03-26 乐视致新电子科技(天津)有限公司 Startup and shutdown method and device for intelligent electronic device
CN105045599A (en) * 2015-08-12 2015-11-11 创维光电科技(深圳)有限公司 Television and computer integrated machine and method for realizing remote startup and shutdown control of same
CN107453959A (en) * 2017-09-22 2017-12-08 郑州云海信息技术有限公司 The management method and its device of a kind of network interface card
CN108319469A (en) * 2018-02-28 2018-07-24 郑州云海信息技术有限公司 A kind of machine open/close control method and device of each node of Cabinet-type server
CN109617768A (en) * 2018-10-15 2019-04-12 深圳市欧瑞博科技有限公司 Information processing method, device, intelligence control system, intelligent gateway and server
CN111176414A (en) * 2019-12-13 2020-05-19 苏州浪潮智能科技有限公司 Power supply method and device for server network card and readable medium
CN111823238A (en) * 2020-06-10 2020-10-27 杭州凯尔达机器人科技股份有限公司 Robot time sequence control method, power supply time sequence management unit and control system
CN112015255A (en) * 2020-07-08 2020-12-01 深圳市智微智能科技股份有限公司 Method and system for fast shutdown without input equipment
CN112162498A (en) * 2020-09-27 2021-01-01 重庆市海普软件产业有限公司 Intelligent switch protection system and method based on Internet of things
CN112269464A (en) * 2020-10-20 2021-01-26 苏州浪潮智能科技有限公司 Optimized power supply management method and system
CN112596444A (en) * 2020-12-21 2021-04-02 苏州科达科技股份有限公司 Electronic equipment shutdown control method and system
CN112684876A (en) * 2020-12-24 2021-04-20 苏州浪潮智能科技有限公司 Server power-off delay storage system, method and medium
CN113377004A (en) * 2021-06-28 2021-09-10 广州极飞科技股份有限公司 Power-off method of aircraft, control method, application method and flight system of aircraft

Also Published As

Publication number Publication date
CN114117562A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
US9563442B2 (en) Baseboard management controller and method of loading firmware
CN106201563B (en) Configuration method and device of starting parameters and method and device for starting mainboard
US8824346B2 (en) Remote wakeup of application processor of mobile device
US10061596B2 (en) Systems and methods for loading firmware modules
CN103221919A (en) Method of provisioning firmware in an operating system (OS) absent services environment
US7822964B2 (en) Booting apparatus for booting a computer and method therefor and computer with a booting apparatus
CN102081568B (en) Multi-motherboard server system
CN104185836A (en) Method and system for verifying proper operation of computing device after system change
US8397053B2 (en) Multi-motherboard server system
US10067771B2 (en) Systems and methods for configuring bootable network target for boot in a single reboot
US20180173664A1 (en) Systems and methods for configuration of hot-inserted device prior to operating system control of device
CN114117562B (en) Intelligent network card management method and device, electronic equipment and computer storage medium
CN103902329A (en) Electronic device capable of updating basic input and output system and updating method thereof
WO2022199335A1 (en) Method, apparatus and device for controlling firmware upgrade of server component, and storage medium
US10115375B2 (en) Systems and methods for enabling a systems management interface with an alternate frame buffer
CN108984216B (en) Method and device for automatically entering and configuring BIOS
CN113608970A (en) Core board, server, failure recovery method, device and storage medium
TW202131170A (en) Firmware corruption recovery
CN116701285A (en) Remote access control apparatus, remote access control method, remote access control device, and computer readable medium
US20080059981A1 (en) Driving of a multifunction device
CN115291951A (en) UEFI (unified extensible firmware interface) starting method and device, electronic equipment and storage medium
KR101583557B1 (en) Power control pci card of computer and power contol method thereof
CN105068835B (en) Mobile terminal and debugging information display method thereof
US10599523B2 (en) Systems and methods for enhanced ROM access resiliency
CN113453376A (en) Network configuration method, related device, equipment and storage medium

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