CN110908947A - Hot plug method and device for frame type equipment line card, main control board and frame type equipment - Google Patents

Hot plug method and device for frame type equipment line card, main control board and frame type equipment Download PDF

Info

Publication number
CN110908947A
CN110908947A CN201911171230.3A CN201911171230A CN110908947A CN 110908947 A CN110908947 A CN 110908947A CN 201911171230 A CN201911171230 A CN 201911171230A CN 110908947 A CN110908947 A CN 110908947A
Authority
CN
China
Prior art keywords
line card
abnormal
hot plug
control board
main control
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.)
Pending
Application number
CN201911171230.3A
Other languages
Chinese (zh)
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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201911171230.3A priority Critical patent/CN110908947A/en
Publication of CN110908947A publication Critical patent/CN110908947A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4081Live connection to bus, e.g. hot-plugging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means

Abstract

The application provides a hot plug method and device for a line card of a frame type device, a main control board and the frame type device, wherein the method is applied to the main control board of the frame type device, and comprises the following steps: when the abnormality of the line card is detected, resetting and powering off a power management chip of the line card; and carrying out power-on and reset operations on the power management chip to complete the hot plug of the line card. When the main control board detects that the line card is abnormal, the power management chip of the abnormal line card is reset and powered off, the abnormal line card is simulated to be pulled out, then the power supply and power off reset operations are carried out, and the abnormal line card is simulated to be inserted, so that the hot plug operation of the abnormal line card is completed, the abnormal line card is restarted, and the abnormal problem is solved. Therefore, hot plugging of the abnormal line card is automatically completed on the software layer, maintenance personnel do not need to operate on site, the abnormal condition of the line card can be remotely and timely processed, the maintenance efficiency is improved, and the maintenance cost is effectively reduced.

Description

Hot plug method and device for frame type equipment line card, main control board and frame type equipment
Technical Field
The application relates to the technical field of frame type equipment, in particular to a hot plugging method and device for a line card of frame type equipment, a main control board and the frame type equipment.
Background
The hot plug function is to allow the user to take out and replace the damaged disk, power supply or line card and other parts without shutting down the system or cutting off the power supply, thereby improving the timely recovery capability, expansibility, flexibility and the like of the system to disasters. Hot plugging was first introduced in the server area and was proposed to improve server utility. The technology is widely applied to frame type equipment such as switches and firewall equipment, under the condition that normal operation of other line cards is guaranteed, the problem line card is withdrawn or replaced by utilizing a hot plugging technology, the problem operation of a system is guaranteed, and meanwhile, other line card services in the same frame are guaranteed not to be influenced.
In the related technology, when the line card of the frame type equipment is abnormal, maintenance personnel is required to perform line card plugging and unplugging work on site, so that the automation degree and the maintenance efficiency of the product are greatly reduced.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides a hot plugging method and device for a line card of a frame type equipment, a main control board and the frame type equipment.
According to a first aspect of the embodiments of the present application, a hot plug method for a line card of a frame device is provided, which is applied to a main control board of the frame device, and the method includes:
when the abnormality of the line card is detected, resetting and powering off a power management chip of the line card;
and carrying out power-on and reset operations on the power management chip to complete the hot plug of the line card.
In an exemplary embodiment, before resetting and powering down the power management chip of the line card, the method further comprises:
and starting an interrupt service to interrupt the operation of other services of the current main control board and other non-abnormal line cards, and storing the current states of an interrupt point, the main control board and other normal line cards. In one exemplary embodiment, the step of detecting the anomaly of the line card includes:
sending a detection request to each line card of the frame type equipment;
and if the response of the line card is not received, determining that the line card is abnormal.
In an exemplary embodiment, the detection request carries slot information of a line card receiving the detection request, so that when a response of the line card is not received, an abnormal line card is determined according to the slot information of the line card which does not respond.
In one exemplary embodiment, the method comprises:
when more than one abnormal line card is detected, determining the sequence of power-on and power-off operation of a power management chip of the line card according to the priority of the line card.
In an exemplary embodiment, the step of performing power-on and reset operations on the power management chip further includes:
acquiring state information of the line card;
and when the state information is in the out-of-position state, sending an alarm signal.
In one exemplary embodiment, the method further comprises:
and when the state information is in-place state, performing initialization configuration on the line card.
According to a second aspect of the embodiments of the present application, there is provided a hot plug device for a frame device line card, the device including:
the power-off module is used for resetting and powering off a power management chip of the line card when the abnormality of the line card is detected;
and the power-on module is used for carrying out power-on and reset operations on the power management chip so as to complete hot plug of the line card.
According to a third aspect of the embodiments of the present application, there is provided a main control board, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the hot plug method for a frame device line card described in any of the above embodiments when executing the program.
According to a fourth aspect of the embodiments of the present application, there is provided a frame device, including a main control board and at least one line card, where the main control board is in communication connection with the line card, and the main control board is configured to implement the steps of the hot plug method for the line card of the frame device in any of the above embodiments.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in the technical scheme, when the main control board of the frame type equipment detects that the line card is abnormal, the power management chip of the abnormal line card can be controlled to perform power-on and power-off operations, the power management chip of the abnormal line card is reset and powered-off operations are simulated, the pulling-out operations of the abnormal line card are simulated, the power-on and power-off operations are performed, the inserting operations of the abnormal line card are simulated, the hot plug operations of the abnormal line card are completed, the restarting of the abnormal line card is realized, and the abnormal problem is solved. Therefore, the power supply and the power supply of the power supply management chip of the abnormal line card are controlled by the main control board, the hot plug of the abnormal line card is automatically completed on the software layer, the hot plug of the line card does not need to be operated by a maintainer on site, the abnormal condition of the line card can be remotely and timely processed, the maintenance efficiency is improved, and the maintenance cost is effectively reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flowchart illustrating a hot plug method for a frame device line card according to an exemplary embodiment of the present application.
Fig. 2 is a flowchart illustrating a process of detecting a line card exception by a master control board according to an exemplary embodiment of the present application.
Fig. 3 is a flowchart illustrating a hot plug method for a frame device line card according to an exemplary embodiment of the present application.
Fig. 4 is a block diagram illustrating a structure of a hot plug device of a frame device line card according to an exemplary embodiment of the present application.
Fig. 5 is a block diagram of a main control board according to an exemplary embodiment of the present application.
Fig. 6 is a block diagram illustrating a configuration of a block device according to an exemplary embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The hot plugging method, the hot plugging device, the main control board and the frame of the frame device line card of the present application are described in detail below with reference to the accompanying drawings. The features of the following examples and embodiments may be combined with each other without conflict.
The application provides a hot plug method of a frame type equipment line card. Fig. 1 is a flowchart illustrating a hot plug method for a frame device line card according to an exemplary embodiment of the present application, where the frame device in the method may be a switch, a firewall device, and the like, and the present application is not limited in detail. The frame device generally includes a main control board and a plurality of line cards, where the main control board is used to provide management and control functions of the frame device, and the line cards may also be referred to as service processing boards and are used to provide service transmission. As shown in fig. 1, the hot plug method of the frame device line card includes the following steps 101 to 102:
step 101, when detecting that a line card is abnormal, resetting and powering down a power management chip of the line card.
The line card of frame equipment includes power management chip, and when the line card inserted the line card trench that corresponds on the frame equipment, the frame equipment was the line card power supply, and like this, the main control board can communication connection with the line card, carries out service transmission.
In step 101, the main control board may detect whether the line card is abnormal in real time, or may periodically detect whether the line card is abnormal. When the abnormal line card is detected, the power management chip of the abnormal line card is reset and powered off, and the pulling operation of the abnormal line card is simulated.
And 102, carrying out power-on and reset operations on the power management chip to complete hot plug of the line card.
In step 102, after the power management chip of the abnormal line card is reset and powered off, the power management chip of the abnormal line card is subjected to electrolytic reset to simulate the insertion operation of the abnormal line card, and hot plug is a physical operation, so that hot plug operation of the line card can be completed, hot plug is not required to be performed in a manual mode, and the problem of abnormal line card is solved. In the related art, a maintenance person is required to go to the field of the frame type equipment to perform hot plug operation on an abnormal line card.
In a possible embodiment of the present application, a time interval may be preset, the main control board performs reset and power-off operations on the power management chip, and after the time interval is set, power-on and power-off operations are performed on the power management chip. The set time interval may be 1 second, 3 seconds, 5 seconds, 30 seconds, or 1 minute, and the present application is not particularly limited.
In one possible embodiment of the present application, when more than one abnormal line card is detected, the order of resetting and powering down, powering up and resetting the power management chip of the line card may be determined according to the priority of the line card. Therefore, the importance degree of each line card can be represented by priority, and for an abnormal line card with high importance degree, the power management chip of the abnormal line card is subjected to resetting, power-off, power-on and reset operations preferentially to complete hot plug of the abnormal line card and recover normal operation so as to recover normal service of important services.
In one possible embodiment of the present application, before resetting and powering down the power management chip of the line card, the method further includes: and starting an interrupt service to interrupt the operation of other services of the current main control board and other non-abnormal line cards, and storing the current states of an interrupt point, the main control board and other non-abnormal line cards.
When at least one line card is detected to be abnormal, the main control board starts an interrupt service, and stops other currently operated services and communication with other non-abnormal line cards so as to protect the other services and other non-abnormal line cards from being influenced by the abnormal line cards. Therefore, the method can avoid the influence of hot plug operation on the abnormal line card on the operation of other services and other non-abnormal line cards, and can recover the continuous operation of other services and other non-abnormal line cards according to the stored interrupt point and the current state of the main control board after the hot plug of the abnormal line card is processed.
In one possible embodiment of the present application, the interrupt service further includes: turning off interrupt enable; and after finishing one hot plug operation, restarting interrupt enabling. Therefore, the influence of other new interrupt events generated by the frame type equipment on the abnormal interrupt event of the current line card can be prevented.
In a possible implementation manner of the present application, before resetting and powering down the power management chip of the line card, the hot plug flag is set to 1, which indicates that a hot plug operation is performed; after the power management chip of the line card is powered on and is subjected to reset operation, the hot plug flag is set to 0, which means that the hot plug flag is cleared, and a hot plug operation is completed. And setting a hot plug flag to be 1 by changing the hot plug flag, and displaying that the event processed by the current start interrupt service is a hot plug operation. In one hot plug operation, the hot plug can be executed only aiming at an abnormal line card, so that the accuracy of executing the hot plug on the line card can be improved, and the hot plug operation of each line card can be recorded conveniently.
In one possible implementation manner of the present application, before resetting and powering down operations are performed on the power management chip of the line card, the line card may be controlled to exit, that is, an abnormal line card is controlled to exit, and the exiting operation may stop a service currently processed by the abnormal line card and store related information of the service processed by the abnormal line card before hot plug.
In one possible implementation manner of the present application, after completing a hot plug operation on an abnormal line card, status information of the line card may be obtained, where the status information of the line card includes an in-place status and an out-of-place status, the in-place status may indicate that the line card has been inserted into a line card slot, and the out-of-place status may indicate that the line card has not been inserted into the line card slot.
When the state information of the line card is in-place state, the state information indicates that the line card is inserted into the line card slot position, the action of the main control board on the power supply management chip of the line card on power supply and power off is effective, and the main control board can carry out initialization configuration on the line card so that the line card can work normally; when the state information is in an out-of-place state, the state information indicates that the line card is not inserted into the line card slot position, the power-on and power-off effect of the main control board on the power management chip of the line card is not effective, that is, the problem of line card abnormality cannot be solved through the hot plugging operation, and the main control board can send an alarm signal to inform maintenance personnel to repair or replace the line card on site.
According to the method provided by the embodiment, when the main control board of the frame type device detects that the line card is abnormal, the power management chip of the abnormal line card can be controlled to perform power-on and power-off operations, the power management chip of the abnormal line card is reset and powered-off operations, the pulling-out operation of the abnormal line card is simulated, the power-on and power-off operations are performed, and the inserting operation of the abnormal line card is simulated, so that the hot plug operation of the abnormal line card is completed, the abnormal line card is restarted, and the abnormal problem is solved. Therefore, the power supply and the power supply of the power supply management chip of the abnormal line card are controlled by the main control board, the hot plug of the abnormal line card is automatically completed on the software layer, the hot plug of the line card does not need to be operated by a maintainer on site, the abnormal condition of the line card can be remotely and timely processed, the maintenance efficiency is improved, and the maintenance cost is effectively reduced.
In an exemplary embodiment of the present application, how to detect a line card exception is taken as an example to describe in detail, as shown in fig. 2, the step of detecting a line card exception specifically includes:
step 201, sending a detection request to each line card of the frame device.
Step 202, if the response of the line card is not received, determining that the line card is abnormal.
In a possible implementation manner of the present application, the detection request carries slot information of a line card receiving the detection request, so that when a response of the line card is not received, an abnormal line card is determined according to the slot information of the line card not responding. The detection request carries slot position information of each line card, and the slot position information can determine a slot position of each line card inserted into the frame type equipment. And if the line card is in a non-abnormal state, responding to the detection request sent by the main control board, wherein the information carried by the response of the non-abnormal line card is consistent with the preset information. The non-abnormal line card may include slot information of the line card in a response, and after the non-responded line card is determined to be an abnormal line card, the slot corresponding to the abnormal line card on the frame device may be determined based on the slot information of the responded line card, so that the main control board may perform operations of resetting, powering off, powering on, and resetting a power management chip of the line card according to the abnormal line card corresponding to the slot.
In a possible embodiment of the present application, for a case that the exception line card does not respond to the detection request, the exception line card may not respond to the main control board, or the exception line card may respond to the main control board, but information carried in the response is inconsistent with preset information.
In one possible implementation manner of the present application, the main control board sends the detection request in the form of a message, and the main control board sends the detection message to each line card to determine whether the line card feeds back the corresponding reply message. In a possible implementation manner of the present application, the reply message may include slot information of each line card, and the main control board may determine, according to the slot information in the reply message that has been fed back, the slot information of the line card that has not been fed back, so as to determine an abnormal line card. That is to say, the slot position information of the normal line card which has fed back the corresponding reply message can eliminate the abnormality, and the remaining reply messages which are not fed back and correspond to the detection message can determine that the corresponding line card is abnormal, so that the line card corresponding to the slot position can be determined by determining the slot position information of the abnormal line card, so as to perform power-on and power-off operation aiming at the power management chip of the determined abnormal line card, and improve the accuracy of hot plug operation. And feeding back a reply message corresponding to the detection message, wherein the main control board can determine that the line card is normal according to the received reply message. If the current state of the line card is abnormal, the reply message corresponding to the detection message cannot be fed back, and the corresponding line card can be determined to be abnormal. When the current state of the line card is abnormal, the reply message may not be fed back, or the fed back reply message does not correspond to the detection message. The information included in the detection message and the reply message may be preset designated information.
In one possible implementation manner of the present application, the slot corresponding to the abnormal line card may be determined again when the power management chip of the abnormal line card is reset and powered off, powered on, and reset. And detecting and determining whether the line card is abnormal again according to the slot position information corresponding to the abnormal line card determined when detecting whether the abnormal line card exists in all the line cards for the first time so as to improve the accuracy of determining the line card abnormality.
In this embodiment, the main control board detects the line card exception by sending a detection request to determine whether a response from the line card is received. The main control board sends a detection request to each line card of the frame type equipment, if the current state of the line card is normal, the main control board can respond to the main control board after receiving the detection request, and if the line card does not respond, the line card is determined to be an abnormal line card, so that the accuracy of detecting the abnormal line card is improved.
In another exemplary embodiment of the present application, the detection messages may be sent to each line card of the frame device one by one. And when the current detection message is sent and the current detected line card is determined to be abnormal, starting an interrupt service, and carrying out power-on and power-off operation on a power management chip of the abnormal line card so as to complete the hot plug operation of the abnormal line card and enable the line card to recover to be normal. And completing the normal recovery of one line card, and then detecting the next line card. Of course, if the currently detected line card is normal, the next line card is detected.
In one possible implementation manner of the present application, the master control board may define a global structure for storing information related to hot plugging of the line card, where the global structure includes the following information:
Typedef struct{
int hotplug_state;
Int slot;
Int state;
Int valib;
Int hstat;
Int hirq;
Int pold[SLOT_MAX];
Int pnew[SLOT_MAX];
Int res[SLOT_MAX];
}
wherein, the hot plug _ state can represent a hot plug state; slots can represent slot numbers of the line cards; hstat may represent a hot plug flag; hirq may represent a hot plug interrupt; pold [ SLOT _ MAX ] may represent the last line card in-place state; pnew [ SLOT _ MAX ] may represent the in-place state of the current line card; res SLOT MAX may represent a SLOT where a state change occurs.
Fig. 3 is a flowchart of a hot plug method for a device line card frame according to an exemplary embodiment of the present application, where as shown in fig. 3, the hot plug method for the device line card frame includes the following steps 301 to 307:
step 301, detecting whether a line card is abnormal or not, and if so, executing step 302; if not, proceed to step 301.
Step 302, start interrupt service, close interrupt enable, set hot plug status to 1.
And step 303, controlling the line card to exit.
And step 304, resetting and powering down the power management chip of the line card.
Step 305, performing power-on and reset operations on the power management chip after a set time period.
And step 306, completing hot plug of the line card, and setting the hot plug state to be 0.
Step 307, acquiring state information of the line card, and judging whether the state information is in-place state; if so, go to step 308; otherwise, step 309 is performed.
And 308, performing initialization configuration on the line card.
Step 309, an alarm signal is sent.
In the method provided by this embodiment, when the main control board of the frame device detects that a line card is abnormal, the interrupt service is started to stop the operations of other services of the current frame device and other normal line cards, so as to avoid the abnormal line card from affecting other services of the current frame device and other normal line cards, close the interrupt enable, and avoid the other interrupt events from affecting the processing of performing hot plug operation on the current abnormal line card; the hot plug state setting 1 is set, the power management chip of the line card is controlled by the main control board to carry out power-on and power-off operations, the power management chip is reset and powered off firstly, then the power management chip is powered on and is reset, the hot plug operation of the line card is completed, and the hot plug state setting 0 is set, so that the hot plug operation of the abnormal line card is completed. After completing the hot plug operation of the line card, acquiring the state information of the line card, if the state information of the line card is in-place state, indicating that the hot plug operation is effective, and restarting an abnormal line card, performing initialization setting on the line card to enable the line card to recover normal operation; and if the state information of the line card is in an out-of-position state, which indicates that the hot plug operation is not effective and the line card is still abnormal, sending an alarm signal to inform maintenance personnel to go to the site for repair or replacement. Therefore, the main control board controls the power supply management chip of the abnormal line card to be electrically operated up and down, and the hot plug of the abnormal line card is automatically completed on the software layer, so that the line card is recovered to be normal, maintenance personnel are not needed to carry out on-site operation for the hot plug of the line card, the abnormal condition of the line card can be remotely and timely processed, the maintenance efficiency is improved, and the maintenance cost is effectively reduced. If the hot plug of the line card is not effective, an alarm signal can be sent in time to inform maintenance personnel to repair or replace the line card on site, and the maintenance efficiency is further improved.
The application also provides a hot plug device of the frame type equipment line card. Fig. 4 is a block diagram illustrating a structure of a hot plug device of a frame device line card according to an exemplary embodiment of the present application. As shown in fig. 4, the apparatus 40 includes:
the power-off module 410 is used for resetting and powering off a power management chip of the line card when the abnormality of the line card is detected;
and the power-on module 420 is configured to perform power-on and power-off operations on the power management chip to complete hot plug of the line card.
In an exemplary embodiment of the present application, the apparatus further includes:
the starting module is used for starting an interrupt service before resetting and powering off the power management chip of the line card so as to interrupt the operation of other services of the current main control board and other non-abnormal line cards;
and the storage module is used for storing the current states of the interrupt point, the main control board and other normal line cards.
In an exemplary embodiment of the present application, the apparatus includes a detection module, configured to detect whether a line card is abnormal, where the detection module includes:
the sending submodule is used for sending a detection request to each line card of the frame type equipment;
and the determining submodule is used for determining that the line card is abnormal if the response of the line card is not received.
In an exemplary embodiment of the present application, the detection request carries slot information of a line card receiving the detection request, and the determining sub-module is further configured to determine an abnormal line card according to the slot information of an unresponsive line card when a response of the line card is not received.
In an exemplary embodiment of the present application, the apparatus further includes:
the determining module is used for determining the sequence of power-on and power-off operation of the power management chip of the line card according to the priority of the line card when more than one abnormal line card is detected.
In an exemplary embodiment of the present application, the apparatus further includes:
the acquisition module is used for acquiring the state information of the line card after the power management chip is powered on and subjected to the operation of resetting;
and the sending module is used for sending an alarm signal when the state information is in the out-of-position state.
In an exemplary embodiment of the present application, the apparatus further includes:
and the configuration module is used for carrying out initialization configuration on the line card when the state information is in-place state.
The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Fig. 5 is a block diagram of a main control board according to an exemplary embodiment of the present disclosure. As shown in fig. 5, the main control board 50 includes:
a processor;
a memory; for storing a computer program executable by the processor;
wherein the processor executing the computer program implements the steps of:
when the abnormality of the line card is detected, resetting and powering off a power management chip of the line card;
and carrying out power-on and reset operations on the power management chip to complete the hot plug of the line card.
The present application further provides a frame device, and fig. 6 is a block diagram illustrating a structure of the frame device according to an exemplary embodiment of the present application. As shown in fig. 6, the frame device 60 includes a main control board 610 and at least one line card 620, where the main control board 610 is communicatively connected to the line card 620, and the main control board 610 is configured to implement the following steps:
when the abnormality of the line card is detected, resetting and powering off a power management chip of the line card;
and carrying out power-on and reset operations on the power management chip to complete the hot plug of the line card.
The present application further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
when the abnormality of the line card is detected, resetting and powering off a power management chip of the line card;
and carrying out power-on and reset operations on the power management chip to complete the hot plug of the line card.
Embodiments of the present application may take the form of a computer program product embodied on one or more readable media having program code embodied therein, including but not limited to disk storage, CD-ROM, optical storage, and the like. Computer-usable readable media, which include both non-transitory and non-transitory, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer readable media include, but are not limited to: phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), erasable programmable read only memory (EEPROM), flash memory or other memory technologies, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by a computing device.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A hot plug method of a line card of a frame type device is characterized in that the method is applied to a main control board of the frame type device, and the method comprises the following steps:
when the abnormality of the line card is detected, resetting and powering off a power management chip of the line card;
and carrying out power-on and reset operations on the power management chip to complete the hot plug of the line card.
2. The method for hot plug of a frame device line card according to claim 1, wherein before resetting and powering down the power management chip of the line card, the method further comprises:
and starting an interrupt service to interrupt the operation of other services of the current main control board and other non-abnormal line cards, and storing the current states of an interrupt point, the main control board and other normal line cards.
3. The hot plug method for a frame device line card according to claim 1, wherein the step of detecting the abnormality of the line card comprises:
sending a detection request to each line card of the frame type equipment;
and if the response of the line card is not received, determining that the line card is abnormal.
4. The hot plug method for a frame device line card according to claim 3, wherein the detection request carries slot information of the line card receiving the detection request, so that when no response is received from the line card, an abnormal line card is determined according to the slot information of the line card not responding.
5. The hot plug method for a frame device line card according to claim 1, wherein the method comprises:
when more than one abnormal line card is detected, determining the sequence of power-on and power-off operation of a power management chip of the line card according to the priority of the line card.
6. The hot plug method for a frame device line card according to claim 1, wherein the step of performing power-on and reset operations on the power management chip further comprises:
acquiring state information of the line card;
and when the state information is in the out-of-position state, sending an alarm signal.
7. The method for hot plugging of a frame device line card according to claim 6, further comprising:
and when the state information is in-place state, performing initialization configuration on the line card.
8. The hot plug device of frame equipment line card, its characterized in that, the device includes:
the power-off module is used for resetting and powering off a power management chip of the line card when the abnormality of the line card is detected;
and the power-on module is used for carrying out power-on and reset operations on the power management chip so as to complete hot plug of the line card.
9. A host board comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method for hot plug of a device line card of frame type as claimed in any one of claims 1 to 7 when executing the program.
10. A frame device, comprising a main control board and at least one line card, wherein the main control board is communicatively connected to the line card, and the main control board is configured to implement the steps of the method for hot plug of the line card of the frame device according to any one of claims 1 to 7.
CN201911171230.3A 2019-11-26 2019-11-26 Hot plug method and device for frame type equipment line card, main control board and frame type equipment Pending CN110908947A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911171230.3A CN110908947A (en) 2019-11-26 2019-11-26 Hot plug method and device for frame type equipment line card, main control board and frame type equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911171230.3A CN110908947A (en) 2019-11-26 2019-11-26 Hot plug method and device for frame type equipment line card, main control board and frame type equipment

Publications (1)

Publication Number Publication Date
CN110908947A true CN110908947A (en) 2020-03-24

Family

ID=69819487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911171230.3A Pending CN110908947A (en) 2019-11-26 2019-11-26 Hot plug method and device for frame type equipment line card, main control board and frame type equipment

Country Status (1)

Country Link
CN (1) CN110908947A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118155A (en) * 2020-09-18 2020-12-22 苏州浪潮智能科技有限公司 Method and equipment for monitoring switch port state
CN113556249A (en) * 2021-07-20 2021-10-26 浪潮思科网络科技有限公司 Hot plug method, device, equipment and medium based on single-chip switch

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566679A (en) * 2011-12-29 2012-07-11 曙光信息产业股份有限公司 Server system
CN102739535A (en) * 2012-06-26 2012-10-17 中兴通讯股份有限公司 Method and system for protecting offline of line card
CN103326897A (en) * 2013-06-08 2013-09-25 烽火通信科技股份有限公司 Distributed computing environment general monitoring device and failure detection method
CN105022467A (en) * 2014-04-29 2015-11-04 中兴通讯股份有限公司 Board reset method and device
CN105530121A (en) * 2015-12-03 2016-04-27 福建星网锐捷网络有限公司 Master and slave management board switching control method and device
US20180210851A1 (en) * 2017-01-22 2018-07-26 Lenovo (Beijing) Co., Ltd. Apparatus, method, and electronic device for implementing solid-state drive data interaction

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566679A (en) * 2011-12-29 2012-07-11 曙光信息产业股份有限公司 Server system
CN102739535A (en) * 2012-06-26 2012-10-17 中兴通讯股份有限公司 Method and system for protecting offline of line card
CN103326897A (en) * 2013-06-08 2013-09-25 烽火通信科技股份有限公司 Distributed computing environment general monitoring device and failure detection method
CN105022467A (en) * 2014-04-29 2015-11-04 中兴通讯股份有限公司 Board reset method and device
CN105530121A (en) * 2015-12-03 2016-04-27 福建星网锐捷网络有限公司 Master and slave management board switching control method and device
US20180210851A1 (en) * 2017-01-22 2018-07-26 Lenovo (Beijing) Co., Ltd. Apparatus, method, and electronic device for implementing solid-state drive data interaction

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118155A (en) * 2020-09-18 2020-12-22 苏州浪潮智能科技有限公司 Method and equipment for monitoring switch port state
CN113556249A (en) * 2021-07-20 2021-10-26 浪潮思科网络科技有限公司 Hot plug method, device, equipment and medium based on single-chip switch

Similar Documents

Publication Publication Date Title
CN108363659B (en) Method and device for processing abnormity of electronic equipment
GB2507604A (en) Rack and method thereof for simultaneously updating basic input output systems
EP0486304B1 (en) Initialising computer systems
CN110442386A (en) A kind of BMC starting method, system, electronic equipment and computer storage medium
CN110908947A (en) Hot plug method and device for frame type equipment line card, main control board and frame type equipment
CN110445638B (en) Switch system fault protection method and device
CN107315656A (en) The Embedded PLC software rejuvenation method and PLC of many kernels
CN111694710A (en) Method, device and equipment for monitoring faults of substrate management controller and storage medium
CN107368384A (en) A kind of Linux server abnormal information dump system and method
CN105550076B (en) Image splicing control system and redundant hot backup method thereof
CN110445932B (en) Abnormal card dropping processing method and device, storage medium and terminal
CN105868047A (en) Repairing method and device of data partition, and terminal
CN108897646B (en) Switching method of BIOS (basic input output System) chips and substrate management controller
CN105573209A (en) Function module monitoring and resetting method in vehicle electronic system
CN113672306A (en) Server component self-checking abnormity recovery method, device, system and medium
CN101826040A (en) Method and system for automatically detecting and restoring memory equipment
CN109922014B (en) Method and system for judging cold and hot start of switch
CN111124785A (en) Hard disk fault checking method, device, equipment and storage medium
CN110733037B (en) Signal processing method and device, storage medium and processor
CN100501669C (en) Screen protection system and method
CN113064095A (en) Electronic equipment fault detection method and device and electronic equipment
CN113064798A (en) Exception handling method and device, electronic equipment and system
CN111124730A (en) Error positioning method and device for server and computer storage medium
CN112084077A (en) Aging test method, device and medium of USB (Universal Serial bus) equipment and USB equipment
CN107797915B (en) Fault repairing method, device and system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200324