CN114184361A - Method, device and medium for detecting information of switch fan - Google Patents

Method, device and medium for detecting information of switch fan Download PDF

Info

Publication number
CN114184361A
CN114184361A CN202111339735.3A CN202111339735A CN114184361A CN 114184361 A CN114184361 A CN 114184361A CN 202111339735 A CN202111339735 A CN 202111339735A CN 114184361 A CN114184361 A CN 114184361A
Authority
CN
China
Prior art keywords
fan
information
switch
detection
reading
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.)
Granted
Application number
CN202111339735.3A
Other languages
Chinese (zh)
Other versions
CN114184361B (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 CN202111339735.3A priority Critical patent/CN114184361B/en
Publication of CN114184361A publication Critical patent/CN114184361A/en
Application granted granted Critical
Publication of CN114184361B publication Critical patent/CN114184361B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M13/00Testing of machine parts

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Structures Of Non-Positive Displacement Pumps (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a method for detecting fan information of a switch, which comprises the steps of collecting information of all fans in the switch after receiving an instruction for detecting the fan information, comparing the collected hardware information of the fans with standard hardware information stored in a database in advance, judging whether fan state information of the switch meets a preset condition or not, confirming that the detection is passed if the hardware information is consistent and the fan state information meets the preset condition, and confirming that the detection is failed if the hardware information is not consistent and the fan state information meets the preset condition. By adopting the technical scheme, the hardware information and the state information of the fan are comprehensively detected, the condition that the fan information needs to be compared manually after the fan enters the existing network is avoided, the waste of human resources is reduced, and the comprehensiveness of fan information detection is improved. In addition, the application also discloses a device and a medium for detecting the information of the switch fan, which correspond to the method for detecting the information of the switch fan and have the same effects.

Description

Method, device and medium for detecting information of switch fan
Technical Field
The present application relates to the field of data processing, and in particular, to a method, an apparatus, and a medium for detecting switch fan information.
Background
The switch, as a network device, can connect multiple devices to a computer network and forward data to a destination by means of packet switching. The switch has many ports, and these ports are identified by MAC address, that is, hardware address of network card, so as to achieve the function of data exchange.
The reliable application of radiator fan can not be left in the stability of current switch, consequently when production processing switch, also need verify the fan, verifies whether it is the yields. In the prior art, whether a fan is normal or not is mainly judged by judging whether a fan abnormal log exists or not, generating a temperature alarm log and judging whether an indicator lamp is correct or not. The method only judges whether the fan works or not so as to judge whether the fan is normal or not, but because the data center switch usually corresponds to different switches, the types of the used fans may be different, and hardware information of the fan, such as the type and the like, cannot be detected only through the working state. When the fans enter the existing network, hardware information of the fans needs to be compared one by one manually, and a large amount of manpower is wasted.
Therefore, how to comprehensively detect the information of the fan is a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
The application aims to provide a method, a device and a medium for detecting information of a fan of a switch, which are used for comprehensively detecting the information of the fan.
In order to solve the above technical problem, the present application provides a method for detecting information of a switch fan, including:
after receiving an instruction for detecting fan information, reading hardware information of each fan and fan state information of a switch; the reading the fan status information of the switch comprises: reading the log information and the state of a fan indicator light of the switch;
judging whether the hardware information is consistent with standard hardware information prestored in a database or not, wherein the fan state information meets a preset condition;
if yes, confirming that the detection is passed; if not, the detection is confirmed to fail.
Preferably, the reading of the hardware information of each fan includes:
and reading the model, the in-place information, the PN and the SN of each fan.
Preferably, the judging whether the fan state information satisfies a preset condition includes:
and judging whether the log information of the fan abnormity and/or the temperature abnormity exists or not, and judging that the state of the fan indicating lamp is green.
Preferably, the reading the fan status information of the switch further includes:
reading the current rotating speed of each fan;
further, the determining whether the fan state information satisfies a preset condition further includes:
reading the temperature information of each single board in the switch;
calling the target temperature information with the highest temperature in the temperature information;
calculating the current standard rotating speed of each fan according to the corresponding relation between the target temperature information and the rotating speed of the fan;
judging whether the rotation speed difference between the current standard rotation speed and the current rotation speed of each fan does not exceed a threshold value, and if so, confirming that the fan state information meets a preset condition; if not, confirming that the fan state information does not meet the preset condition.
Preferably, if any one of the hardware information of the fan is not consistent with the standard hardware information pre-stored in the database, all the hardware information of the corresponding fan is sent to a display device.
Preferably, if the difference between the current standard rotation speed and the current rotation speed of each fan is not greater than the threshold, the hardware information corresponding to the fan whose rotation speed difference exceeds the threshold is sent to a display device.
Preferably, the method further comprises the following steps:
if the hardware information is not uniform and is consistent with the standard hardware information prestored in the database, sending a first alarm signal;
and if the fan state information does not meet the preset condition, sending a second alarm signal.
In order to solve the above technical problem, the present application further provides a switch fan information detecting device, which includes:
the reading module is used for reading hardware information of each fan and fan state information of the switch after receiving an instruction for detecting fan information; the reading the fan status information of the switch comprises: reading the log information and the state of a fan indicator light of the switch;
the judging module is used for judging whether the hardware information is consistent with standard hardware information prestored in a database or not, and the fan state information meets a preset condition;
the confirming module is used for confirming that the detection is passed if the detection is successful; if not, the detection is confirmed to fail.
In order to solve the above technical problem, the present application further provides another switch fan information detecting device, which includes:
a memory for storing a computer program;
a processor for implementing the steps of the switch fan information detection method as described above when executing the computer program.
To solve the above technical problem, the present application further provides a computer-readable storage medium having a computer program stored thereon, where the computer program, when executed by a processor, implements the steps of the method for detecting fan information of an exchange according to the foregoing physalis.
According to the method for detecting the fan information of the switch, after an instruction for detecting the fan information is received, information collection is carried out on all fans in the switch, the collected hardware information of the fans is compared with standard hardware information stored in a database in advance, whether the fan state information of the switch meets a preset condition or not is judged, if the hardware information is consistent and the fan state information meets the preset condition, the detection is confirmed to be passed, and if not, the detection is confirmed to be failed. Compared with the prior art, whether work judgment detects whether to pass through the fan only, adopt this technical scheme, carried out comprehensive detection to the hardware information and the state information of fan, avoided the fan to get into the current net after, need the artifical condition of comparing fan information, reduced manpower resources's waste, improved the comprehensiveness to fan information detection.
In addition, the switch fan information detection device and the medium provided by the application correspond to the switch fan information detection method, and the effect is the same as the effect.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a method for detecting information of a switch fan according to an embodiment of the present disclosure;
fig. 2 is a structural diagram of an apparatus for detecting information of a fan of an exchange according to an embodiment of the present disclosure;
fig. 3 is a structural diagram of another switch fan information detection apparatus according to an 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 the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
With the explosion of the internet industry, data and traffic begin to gather towards data centers, and in recent years, the network scale of data centers is getting larger and larger, and the data centers can be seen from the construction of large/ultra-large data centers. In the 5G era, the data aggregation situation is further aggravated, and under the large background, how to continue to improve the large-scale benefits of the data center and how to solve the problems of operation, maintenance, troubleshooting and automation of the heterogeneous network of the ultra-large cloud computing center are challenges faced by architects of each data center.
The switch, as a network device, can connect multiple devices to a computer network and forward data to a destination by means of packet switching. The switch has many ports, and these ports are identified by MAC address, that is, hardware address of network card, so as to achieve the function of data exchange.
The reliable application of radiator fan can not be left in the stability of current switch, consequently when production processing switch, also need verify the fan, verifies whether it is the yields. In the prior art, whether a fan is normal or not is mainly judged by judging whether a fan abnormal log exists or not, generating a temperature alarm log and judging whether an indicator lamp is correct or not. The method only judges whether the fan works or not so as to judge whether the fan is normal or not, but because the data center switch usually corresponds to different switches, the types of the used fans may be different, and hardware information of the fan, such as the type and the like, cannot be detected only through the working state. When the fans enter the existing network, hardware information of the fans needs to be compared one by one manually, and a large amount of manpower is wasted.
Therefore, how to comprehensively detect the information of the fan is a problem to be solved urgently by those skilled in the art.
The core of the application is to provide a method, a device and a medium for detecting the information of the switch fan.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for detecting switch fan information according to an embodiment of the present application, and as shown in fig. 1, the method includes:
s10: after receiving an instruction for detecting fan information, reading hardware information of each fan and fan state information of a switch; reading the fan status information of the switch includes: and reading the log information and the fan indicator light state of the switch.
In step S10, when the processor receives the instruction to detect the fan information, the hardware information and the status information of all the fans in the switch are read. The hardware information may be a model, a category, a serial number, and the like of each fan. In this embodiment, the log information of the switch and the status of the fan indicator light indicate all fans, which represents the overall status of all fans, for example, if the information of one fan is inconsistent, the status of the fan indicator light is a failure status, which indicates that the overall fan of the switch is not detected.
S11: and judging whether the hardware information is consistent with standard hardware information prestored in the database or not, and the fan state information meets the preset condition, if so, entering the step S12, and if not, entering the step S13.
It should be noted that, in this embodiment, the database is established in advance, and the database at least includes hardware information of each fan. In a particular implementation, the database should also include the IP address of the switch through which the data center can access the switch. Certainly, the database may further include the number of the fans, and when the hardware information of the fans is compared, the number of the read fans may also be compared, and it is determined whether the hardware information of all the fans is read, and whether the fan slot position of the switch is empty. When determining whether the hardware information of the fans is consistent, it may be determined whether the information such as the model and the type of each fan is consistent, or it may be determined whether the numbers of the fans are consistent. When judging whether the fan state information meets the preset condition, the method can judge whether the log information of the fan abnormity and/or the temperature abnormity is read or not, and can also judge whether the fan indicating lamp is lightened or not. It is to be understood that when all the hardware information of all the fans and the fan status information all conform to the specifications, the process proceeds to step S12, the information detection of the switch fan is confirmed to be passed, and if any one does not conform to the specifications, the process proceeds to step S13, and the detection is confirmed to be failed.
S12: confirming that the detection passed.
S13: confirming the detection failure.
It will be appreciated that in implementations, upon failure of the validation check, the processor may issue an alarm signal, the setting of which may vary depending on the information that is not in compliance. For example, if the hardware information of the fan is inconsistent with the hardware information in the database, the detection fails, and a first alarm signal is sent, which may be a control indicator lamp flashing. If the state information of the fan does not meet the preset condition, a second alarm signal is sent, and the buzzer can be controlled. Therefore, technicians are prompted timely when the fan information detection fails. Of course, the result of the detection may also be visualized by a display device. When the detection fails, the hardware information of the failed fan is sent to the display device, and technicians can conveniently locate the failed fan.
According to the switch fan information detection method provided by the embodiment of the application, after the instruction for detecting the fan information is received, all fans in the switch are subjected to information acquisition, the acquired hardware information of the fans is compared with standard hardware information stored in a database in advance, whether the fan state information of the switch meets a preset condition or not is judged, if the hardware information is consistent and the fan state information meets the preset condition, the detection is confirmed to be passed, and if not, the detection is confirmed to be failed. Compared with the prior art, whether work judgment detects whether to pass through the fan only, adopt this technical scheme, carried out comprehensive detection to the hardware information and the state information of fan, avoided the fan to get into the present net back simultaneously, need the artifical condition of comparing fan information, reduced manpower resources's waste, improved the comprehensiveness to fan information detection.
In the above embodiment, the hardware information of the fans is not limited, and in the present embodiment, reading the hardware information of each fan includes:
and reading the model, the on-site information, the PN and the SN of each fan.
In this embodiment, after the fans are inserted into the corresponding card slots, the processor may read hardware information of the fans, where the hardware information includes model numbers, in-place information, Serial Numbers (SNs), and Part Numbers (PNs) of the fans. It will be appreciated that standard hardware information for the fan has been entered in advance in the database. When comparing the hardware information of the fan, whether the model, the PN and the SN of the fan are consistent or not is compared, and whether the fan is on the corresponding card slot or not is also judged. When the standard hardware information of the fan is input into the database, the standard hardware information of the fan can be input manually, and a code scanning gun scanning mode can be adopted, wherein the standard hardware information of the fan reduces the material cost, and the code scanning gun scanning mode is more convenient and fast, so that the consumption of human resources is reduced.
The switch fan information detection method provided by the embodiment of the application reads the model, the in-place information, the PN and the SN of each fan when the hardware information of the fan is read, not only judges whether the model, the PN and the SN of the fan meet requirements or not, but also judges whether the fan is arranged on the card slot or not, and whether the number of the fans meet requirements or not, and can judge whether the fan is arranged at a corresponding position or not through mutual association, so that the comprehensive detection of the hardware information of the fan is realized.
On the basis of the foregoing embodiment, in this embodiment, the determining whether the fan state information satisfies the preset condition includes:
and judging whether log information of fan abnormity and/or temperature abnormity exists or not, and judging that the state of the fan indicating lamp is green.
It can be understood that the log information and the status of the fan indicator light represent the status of all fans of the switch as a whole, and in this embodiment, when the log information of the fan abnormality and/or the temperature abnormality is not read and the status of the fan indicator light is green, it is determined that the status information of the fan satisfies the preset condition. Of course, in other embodiments, the fan indicator light may not be turned on to indicate that the fan status information meets the preset condition, and compared with this, the prompting method of the embodiment is more striking and easier for a technician to distinguish.
According to the switch fan information detection method provided by the embodiment of the application, whether the fan state information meets the preset condition or not is judged by judging whether the log information of the fan abnormity and/or the temperature abnormity exists or not and judging whether the fan indicating lamp state is green, so that the technician can conveniently check the fan state information.
In the above embodiment, the detection of the state information of the whole fan is realized by reading the log information of the switch and the state of the fan indicator light. However, in the specific implementation, the rotation speed of the fan determines the heat dissipation capability of the switch, and during the test, whether the rotation speed of the fan meets the requirement cannot be verified by simply reading the log information with abnormal temperature. Therefore, on the basis of the above embodiment, in this embodiment, reading the fan status information of the switch further includes:
reading the current rotating speed of each fan;
further, determining whether the fan status information satisfies a preset condition further includes:
reading the temperature information of each single board in the switch;
calling target temperature information with the highest temperature in the temperature information;
calculating the current standard rotating speed of each fan according to the corresponding relation between the target temperature information and the rotating speed of each fan;
judging whether the difference between the current standard rotating speed and the current rotating speed of each fan does not exceed a threshold value, and if so, confirming that the fan state information meets the preset condition; if not, confirming that the fan state information does not meet the preset condition.
It can be understood that in the switch, the rotation speed of the fan should change with the change of the highest temperature in the switch, and in this embodiment, the standard rotation speed of the fan at the current moment is calculated according to the temperature information at the highest temperature of the single board. The correspondence between the temperature and the fan speed should be calculated by a calculation formula, which is usually provided by the heat dissipation engineer and stored in the database in advance in the specific implementation. The rotation speed difference in this embodiment may be a difference value, that is, a difference value between the current rotation speed and the current standard rotation speed; or a percentage, that is, after the PWM value of the fan is set, the difference between the current rotation speed of the corresponding fan and the current standard rotation speed is divided by the current standard rotation speed. Compared with the former, the percentage form is more accurate, and the method can be suitable for testing in different temperature environments.
The switch fan information detection method provided by the embodiment of the application can be used for detecting the rotating speed of the fan besides reading the log information and the states of the indicating lamps, so that the condition that the rotating speed of the fan does not meet the requirement due to the fact that no log information with abnormal temperature is generated during detection caused by the temperature environment problem is avoided. The comprehensiveness of fan information detection is further improved.
In a specific implementation, on the basis of the above embodiment, in this embodiment, if any one of the hardware information of the fan does not match the standard hardware information pre-stored in the database, all the hardware information of the corresponding fan is sent to the display device.
According to the switch fan information detection method provided by the embodiment of the application, when any one item of hardware information is inconsistent with the standard hardware information in the database, all the hardware information of the fan is displayed to a technician, so that the technician can conveniently locate the fan with problems.
On the basis of the foregoing embodiment, in this embodiment, if the difference between the current standard rotation speed and the current rotation speed of each fan is not greater than the threshold, the hardware information corresponding to the fan whose rotation speed difference exceeds the threshold is sent to the display device.
The method for detecting the fan information of the switch, provided by the embodiment of the application, displays the information of the fan with the rotating speed difference not meeting the requirement to a technician, and is convenient for positioning and replacing the fan.
In the implementation, when the confirmation detection fails, the hardware information of the fan may not match the information in the database, for example, the fan is installed incorrectly, the contact is not firm, and the like. It is also possible that the fan status information does not comply with a predetermined condition, such as a difference in rotational speed exceeding a threshold value. For the former problem, the technician may only need to reinsert the fan to restore to normal; for the latter problem, the fan may need to be replaced or the program modified. In order to more clearly prompt the technician of the reason for the detection failure, on the basis of the above embodiment, in this embodiment, the method further includes:
if the hardware information is uneven and is consistent with standard hardware information stored in a database in advance, a first alarm signal is sent;
and if the fan state information does not meet the preset condition, sending a second alarm signal.
In this embodiment, the first alarm signal and the second alarm signal should be in a form convenient for the technician to distinguish, for example, the first alarm signal is an indicator light flashing, and the second alarm signal is a buzzer buzzing.
According to the switch fan information detection method provided by the embodiment of the application, when the detection fails, the reason of the failure is converted into different alarm signals, so that a technician can conveniently confirm the problem and distinguish the severity of the failure.
In the foregoing embodiments, the switch fan information detection method is described in detail, and the present application also provides embodiments corresponding to the switch fan information detection apparatus. It should be noted that the present application describes the embodiments of the apparatus portion from two perspectives, one from the perspective of the function module and the other from the perspective of the hardware.
Fig. 2 is a structural diagram of an apparatus for detecting information of a switch fan according to an embodiment of the present application, and as shown in fig. 2, the apparatus includes:
the reading module 10 is configured to read hardware information of each fan and fan state information of the switch after receiving an instruction for detecting fan information; reading the fan status information of the switch includes: reading the log information and the state of a fan indicator light of the switch;
the judging module 11 is used for judging whether the hardware information is consistent with standard hardware information prestored in a database, and the fan state information meets a preset condition;
a confirming module 12, configured to confirm that the detection is passed if the detection is successful; if not, the detection is confirmed to fail.
The switch fan information detection device provided by the embodiment of the application acquires information of all fans in the switch after receiving an instruction for detecting fan information, compares the acquired hardware information of the fans with standard hardware information stored in a database in advance, judges whether fan state information of the switch meets a preset condition or not, and if the hardware information is consistent and the fan state information meets the preset condition, confirms that the detection is passed, and otherwise, confirms that the detection is failed. Compared with the prior art, whether work judgment detects whether to pass through the fan only, adopt this technical scheme, carried out comprehensive detection to the hardware information and the state information of fan, avoided the fan to get into the present net back simultaneously, need the artifical condition of comparing fan information, reduced manpower resources's waste, improved the comprehensiveness to fan information detection.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
Fig. 3 is a structural diagram of another switch fan information detection apparatus according to an embodiment of the present application, and as shown in fig. 3, the apparatus includes: a memory 20 for storing a computer program;
the processor 21 is configured to implement the steps of the switch fan information detection method according to the above-mentioned embodiment when executing the computer program.
The switch fan information detection apparatus provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, or a desktop computer.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a Graphics Processing Unit (GPU) which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 21 may further include an Artificial Intelligence (AI) processor for processing computational operations related to machine learning.
The memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, wherein after being loaded and executed by the processor 21, the computer program can implement the relevant steps of the switch fan information detection method disclosed in any one of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202, data 203, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 202 may include, among others, Windows, Unix, Linux, and the like. Data 203 may include, but is not limited to, the model of the fan, presence information, PN, SN, etc.
In some embodiments, the switch fan information detection device may further include a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the configuration shown in fig. 3 does not constitute a limitation of the switch fan information detection apparatus and may include more or fewer components than those shown.
The switch fan information detection device provided by the embodiment of the application comprises a memory and a processor, wherein when the processor executes a program stored in the memory, the following method can be realized:
after receiving an instruction for detecting fan information, reading hardware information of each fan and fan state information of a switch; reading the fan status information of the switch includes: reading the log information and the state of a fan indicator light of the switch;
judging whether the hardware information is consistent with standard hardware information prestored in a database or not, wherein the fan state information meets a preset condition;
if yes, confirming that the detection is passed; if not, the detection is confirmed to fail.
The switch fan information detection device provided by the embodiment of the application acquires information of all fans in the switch after receiving an instruction for detecting fan information, compares the acquired hardware information of the fans with standard hardware information stored in a database in advance, judges whether fan state information of the switch meets a preset condition or not, and if the hardware information is consistent and the fan state information meets the preset condition, confirms that the detection is passed, and otherwise, confirms that the detection is failed. Compared with the prior art, whether work judgment detects whether to pass through the fan only, adopt this technical scheme, carried out comprehensive detection to the hardware information and the state information of fan, avoided the fan to get into the present net back simultaneously, need the artifical condition of comparing fan information, reduced manpower resources's waste, improved the comprehensiveness to fan information detection.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps as set forth in the above-mentioned method embodiments.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods described in the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
According to the computer-readable storage medium provided by the embodiment of the application, after the instruction for detecting the fan information is received, information collection is performed on all fans in the switch, the collected hardware information of the fans is compared with the standard hardware information stored in the database in advance, whether the fan state information of the switch meets the preset condition or not is judged, if the hardware information is consistent and the fan state information meets the preset condition, the detection is confirmed to be passed, and if not, the detection is confirmed to be failed. Compared with the prior art, whether work judgment detects whether to pass through the fan only, adopt this technical scheme, carried out comprehensive detection to the hardware information and the state information of fan, avoided the fan to get into the present net back simultaneously, need the artifical condition of comparing fan information, reduced manpower resources's waste, improved the comprehensiveness to fan information detection.
The method, the apparatus, and the medium for detecting the switch fan information provided by the present application are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for detecting information of a switch fan is characterized by comprising the following steps:
after receiving an instruction for detecting fan information, reading hardware information of each fan and fan state information of a switch; the reading the fan status information of the switch comprises: reading the log information and the state of a fan indicator light of the switch;
judging whether the hardware information is consistent with standard hardware information prestored in a database or not, wherein the fan state information meets a preset condition;
if yes, confirming that the detection is passed; if not, the detection is confirmed to fail.
2. The method as claimed in claim 1, wherein the reading hardware information of each fan comprises:
and reading the model, the in-place information, the PN and the SN of each fan.
3. The method as claimed in claim 1, wherein said determining whether the fan status information satisfies a predetermined condition comprises:
and judging whether the log information of the fan abnormity and/or the temperature abnormity exists or not, and judging that the state of the fan indicating lamp is green.
4. The switch fan information detection method of claim 3, wherein the reading the fan status information of the switch further comprises:
reading the current rotating speed of each fan;
further, the determining whether the fan state information satisfies a preset condition further includes:
reading the temperature information of each single board in the switch;
calling the target temperature information with the highest temperature in the temperature information;
calculating the current standard rotating speed of each fan according to the corresponding relation between the target temperature information and the rotating speed of the fan;
judging whether the rotation speed difference between the current standard rotation speed and the current rotation speed of each fan does not exceed a threshold value, and if so, confirming that the fan state information meets a preset condition; if not, confirming that the fan state information does not meet the preset condition.
5. The method as claimed in claim 2, wherein if any one of the hardware information of the fan is not consistent with the standard hardware information pre-stored in the database, sending all the hardware information of the corresponding fan to a display device.
6. The method as claimed in claim 3, wherein if the difference between the current standard rotational speed and the current rotational speed of each fan does not exceed the threshold, sending the hardware information corresponding to the fan whose difference exceeds the threshold to a display device.
7. The switch fan information detection method according to any one of claims 1 to 6, further comprising:
if the hardware information is not uniform and is consistent with the standard hardware information prestored in the database, sending a first alarm signal;
and if the fan state information does not meet the preset condition, sending a second alarm signal.
8. An exchange fan information detecting apparatus, comprising:
the reading module is used for reading hardware information of each fan and fan state information of the switch after receiving an instruction for detecting fan information; the reading the fan status information of the switch comprises: reading the log information and the state of a fan indicator light of the switch;
the judging module is used for judging whether the hardware information is consistent with standard hardware information prestored in a database or not, and the fan state information meets a preset condition;
the confirming module is used for confirming that the detection is passed if the detection is successful; if not, the detection is confirmed to fail.
9. An exchange fan information detection device is characterized by comprising a memory, a processor and a control unit, wherein the memory is used for storing a computer program;
a processor for implementing the steps of the switch fan information detection method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the steps of the switch fan information detection method according to any one of claims 1 to 7.
CN202111339735.3A 2021-11-12 2021-11-12 Method, device and medium for detecting information of switch fan Active CN114184361B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111339735.3A CN114184361B (en) 2021-11-12 2021-11-12 Method, device and medium for detecting information of switch fan

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111339735.3A CN114184361B (en) 2021-11-12 2021-11-12 Method, device and medium for detecting information of switch fan

Publications (2)

Publication Number Publication Date
CN114184361A true CN114184361A (en) 2022-03-15
CN114184361B CN114184361B (en) 2024-03-22

Family

ID=80540911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111339735.3A Active CN114184361B (en) 2021-11-12 2021-11-12 Method, device and medium for detecting information of switch fan

Country Status (1)

Country Link
CN (1) CN114184361B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978254A (en) * 2014-04-03 2015-10-14 联想(北京)有限公司 Heat dissipation detection method, heat dissipation detection system and electronic device
CN108062270A (en) * 2017-12-14 2018-05-22 郑州云海信息技术有限公司 Fan failure management method, system, device and readable storage medium storing program for executing
CN108280016A (en) * 2018-02-27 2018-07-13 郑州云海信息技术有限公司 A kind of fan detection method, device, equipment and computer readable storage medium
CN111120383A (en) * 2019-12-28 2020-05-08 苏州浪潮智能科技有限公司 Control method and control device for equipment fan, switch and storage medium
CN111338891A (en) * 2020-02-16 2020-06-26 苏州浪潮智能科技有限公司 Fan stability testing method and device
CN112324693A (en) * 2020-10-29 2021-02-05 山东云海国创云计算装备产业创新中心有限公司 Monitoring method, monitoring device, monitoring equipment and storage medium for fan rotating speed
CN112965883A (en) * 2021-05-19 2021-06-15 北方卓越(北京)勘测技术有限公司 Network-based computer hardware monitoring system
CN113530660A (en) * 2021-07-27 2021-10-22 上海华兴数字科技有限公司 Electric control silicone oil fan control method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978254A (en) * 2014-04-03 2015-10-14 联想(北京)有限公司 Heat dissipation detection method, heat dissipation detection system and electronic device
CN108062270A (en) * 2017-12-14 2018-05-22 郑州云海信息技术有限公司 Fan failure management method, system, device and readable storage medium storing program for executing
CN108280016A (en) * 2018-02-27 2018-07-13 郑州云海信息技术有限公司 A kind of fan detection method, device, equipment and computer readable storage medium
CN111120383A (en) * 2019-12-28 2020-05-08 苏州浪潮智能科技有限公司 Control method and control device for equipment fan, switch and storage medium
CN111338891A (en) * 2020-02-16 2020-06-26 苏州浪潮智能科技有限公司 Fan stability testing method and device
CN112324693A (en) * 2020-10-29 2021-02-05 山东云海国创云计算装备产业创新中心有限公司 Monitoring method, monitoring device, monitoring equipment and storage medium for fan rotating speed
CN112965883A (en) * 2021-05-19 2021-06-15 北方卓越(北京)勘测技术有限公司 Network-based computer hardware monitoring system
CN113530660A (en) * 2021-07-27 2021-10-22 上海华兴数字科技有限公司 Electric control silicone oil fan control method and system

Also Published As

Publication number Publication date
CN114184361B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN112286709B (en) Diagnosis method, diagnosis device and diagnosis equipment for server hardware faults
CN113687969A (en) Alarm information generation method and device, electronic equipment and readable storage medium
US20240103961A1 (en) PCIe Fault Auto-Repair Method, Apparatus and Device, and Readable Storage Medium
CN112732477B (en) Method for fault isolation by out-of-band self-checking
CN113127299A (en) Server operation and maintenance method, device and system and computer readable storage medium
CN112529223A (en) Equipment fault repair method and device, server and storage medium
CN111858122A (en) Fault detection method, device, equipment and storage medium of storage link
CN112351035A (en) Industrial control security situation sensing method, device and medium
CN112463501A (en) Method, equipment and storage medium for rapidly positioning fault of abnormal power failure
CN114595987A (en) Multi-device centralized management method, device, system, electronic device and storage medium
CN110727586A (en) Host anomaly monitoring method and device, storage medium and server
CN108897667A (en) A kind of memory temperature alarm method, device and equipment
CN114184361A (en) Method, device and medium for detecting information of switch fan
CN114218001A (en) Fault repairing method and device, electronic equipment and readable storage medium
CN111124785A (en) Hard disk fault checking method, device, equipment and storage medium
CN110688268A (en) Fault positioning method, device, equipment and medium for NVME SSD
CN114328080A (en) Firmware state detection method and device and electronic equipment
CN114579147A (en) Burning verification method and device, terminal equipment and storage medium
CN110704219B (en) Hardware fault reporting method and device and computer storage medium
CN110730213B (en) Method, system, medium, and apparatus for monitoring life cycle of sensor device
CN113110970A (en) Method, device, equipment and medium for monitoring components in server working mode
CN111966378A (en) Board card version upgrading method, device and medium
CN110752950A (en) Update detection method and device for cloud resource pool and terminal equipment
CN111444032A (en) Computer system fault repairing method, system and equipment
TWI679530B (en) Batch test system and method thereof

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