CN106502847B - Server diagnosis method and device - Google Patents
Server diagnosis method and device Download PDFInfo
- Publication number
- CN106502847B CN106502847B CN201610932530.9A CN201610932530A CN106502847B CN 106502847 B CN106502847 B CN 106502847B CN 201610932530 A CN201610932530 A CN 201610932530A CN 106502847 B CN106502847 B CN 106502847B
- Authority
- CN
- China
- Prior art keywords
- operating system
- server
- component
- components
- starting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/321—Display for diagnostics, e.g. diagnostic result display, self-test user interface
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
Abstract
The application provides a diagnostic method and a diagnostic device for a server, wherein the method is applied to the server and comprises the following steps: starting an operating system, and starting a diagnostic tool integrated in the operating system after the operating system is started, wherein the diagnostic tool is used for diagnosing a server; after the diagnostic tool is started, identifying the components in the in-place state contained in the server, and displaying the components through an interface so as to provide the components for a user to select; and diagnosing whether the state of the specified component is normal or not according to the specified component selected by the user, and displaying the diagnosis result in the interface.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a server diagnosis method and apparatus.
Background
With the continuous development of information technology, the service functions undertaken by the server become more and more important, which requires the server to have higher reliability and usability, and also needs to have strong maintainability. Currently, whether an abnormal state exists in a component on a server can be judged in a diagnosis mode so as to improve the maintainability of the server.
Disclosure of Invention
In view of the above, the present application provides a server diagnosis method and apparatus.
Specifically, the method is realized through the following technical scheme:
in one aspect, a diagnostic method for a server is provided, and the method is applied to the server and includes:
starting an operating system, and starting a diagnostic tool integrated in the operating system after the operating system is started, wherein the diagnostic tool is used for diagnosing a server;
after the diagnostic tool is started, identifying the components in the in-place state contained in the server, and displaying the components through an interface so as to provide the components for a user to select;
and diagnosing whether the state of the specified component is normal or not according to the specified component selected by the user, and displaying the diagnosis result in the interface.
In another aspect, a diagnostic apparatus for a server is provided, where the apparatus is applied to the server, and includes:
the starting unit is used for starting the operating system and starting a diagnosis tool integrated in the operating system after the operating system is started, wherein the diagnosis tool is used for diagnosing the server;
the component identification unit is used for identifying the components in the in-place state in the server after the diagnostic tool is started, and displaying the components through an interface so as to provide the components for a user to select;
and the component diagnosis unit is used for diagnosing whether the state of the specified component is normal or not aiming at the specified component selected by the user and displaying the diagnosis result in the interface.
According to the technical scheme, the components in the in-place state contained in the server can be identified through the diagnostic tool integrated in the operating system and displayed through the interface so as to be provided for the user to select, and after the user selects the specified components, whether the states of the specified components are normal or not can be diagnosed, and the diagnosis result is displayed in the interface. Thereby, the diagnosis of the server is realized.
Drawings
FIG. 1 is a schematic diagram of a server according to an exemplary embodiment of the present application;
FIG. 2 is a flow chart illustrating a diagnostic method for a server according to an exemplary embodiment of the present application;
fig. 3 is a schematic structural diagram of a diagnostic apparatus of a server according to an exemplary embodiment of the present application;
fig. 4 is another schematic structural diagram of a diagnostic apparatus of a server according to an exemplary embodiment of the present application.
Detailed Description
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.
In order to implement the diagnosis of the server, the following embodiments of the present application provide a diagnosis method of the server, and a diagnosis apparatus to which the method can be applied.
As shown in fig. 1, in the following embodiments of the present application, a server to be diagnosed includes: a host and a BMC (Baseboard Management Controller), the host including: a CPU (central processing Unit) and a PCH (integrated south bridge). An operating system is preinstalled in a storage medium such as a hard disk and a memory in the server or in a removable storage device accessing the server, and a diagnostic tool for diagnosing the server is integrated in the operating system. The operating system may be any operating system, such as a Windows operating system, a Linux operating system, and the like, and the diagnostic tool may be any tool for diagnosing the server. Preferably, the operating system is an IF (Integrated Fast Intelligent Scalable toolset) operating system, and the diagnostic tool is a FIST (Fast Intelligent Scalable toolset).
In addition, the removable storage device may be specifically an SD (Secure Digital) memory card, a removable hard disk, a usb disk, or the like. As shown in fig. 1, when the removable storage device is an SD memory card, the SD memory card accesses the BMC; when the removable storage device is a removable hard disk or a U disk, the removable hard disk or the U disk accesses the PCH.
In an actual implementation process, the operating system may be pre-installed in a storage medium in a server in various ways, and the specific way may be: the server downloads the image file of the operating system through the network, and then installs the operating system in a storage medium in the server using the image file. In addition, the operating system may also be preinstalled in the removable storage device in various ways, and the specific way may be: firstly, accessing a mobile storage device into a server, then downloading the image file of the operating system by the server through a network, and then installing the operating system in the mobile storage device by using the image file; or, the operating system is installed in a removable storage device on other equipment, and then the removable storage device is accessed to a server; this is not limited in this application.
Based on this, the diagnostic method of the server according to the embodiment of the present application is shown in fig. 2, and includes the following steps:
step S101, starting an operating system, and starting a diagnostic tool integrated in the operating system after the operating system is started;
when the operating system is preinstalled in the removable storage device of the access server and the removable storage device is an SD memory card accessed to the BMC, the method for starting the operating system in step S101 may specifically be: after the server is powered On and started, the BIOS (Basic Input Output System) is started and operated, the BIOS firstly enters a POST (Power On Self Test) stage, at the moment, the BIOS sends a command for starting the virtual hard disk to the BMC, and the BMC virtualizes the SD memory card into the virtual hard disk after receiving the command; subsequently, the BIOS enters a boot stage, and after detecting an instruction to boot from the virtual hard disk, the BIOS boots the operating system from the SD memory card as the virtual hard disk. The instruction for starting the virtual hard disk can be generated in a mode of selection in the BIOS interface by a user or in a mode of key pressing by the user.
When the operating system is preinstalled in the removable storage device of the access server, and the removable storage device is a removable hard disk or a usb disk that accesses the PCH, the method for starting the operating system in step S101 may specifically be: the user selects to start from the mobile hard disk or the U disk in the BIOS interface, and then the BIOS starts the operating system from the mobile hard disk or the U disk.
Step S102, after the diagnosis tool is started, identifying the components in the in-place state in the server, and displaying the components through an interface so as to provide the components for a user to select;
after the diagnostic tool is started, the diagnostic function is provided in the form of a web page. In step S102, after components included in the server in the on-position state are identified, the components are displayed in the web page. Wherein the component in the in-place state is a component that can be identified. A component refers to a hardware component in a server, such as a CPU, memory, hard disk, fan, BMC, PCH, etc.
In addition, after a component in the server is changed, for example, a new component is inserted into the server or a component is pulled out from the server, the user may click a button for refreshing the server in the web page, and at this time, the component in the on-position state included in the server is re-identified and displayed through the web page.
Step S103, for the designated component selected by the user, diagnosing whether the state of the designated component is normal or not, and displaying the diagnosis result in the interface.
After a user selects a component on a web page that requires a diagnosis (referred to as a designated component), the diagnostic tool diagnoses the designated component.
Preferably, the diagnostic tool diagnoses whether the state of the designated component is normal through other components related to the designated component, so as to realize linkage detection of the components.
For example, when the component is designated as a fan, whether the state of the fan is normal is diagnosed by the CPU associated with the fan. If it is assumed that there are 6 fans when there are 2 CPUs in the server under normal conditions, and if there are 2 CPUs and only 4 fans, the abnormal state of the fans and the cause of the abnormal state are displayed.
Or, when the designated component is the CPU, whether the state of the CPU is normal or not is diagnosed through a memory related to the CPU. If it is assumed that each CPU in the server needs a corresponding memory under normal conditions, and if 2 CPUs are detected and one of the CPUs does not have a corresponding memory, the CPU state abnormality and the cause of the abnormality are displayed.
In the above method, the diagnostic result in step S103 is also saved in the form of a log in a removable hard disk or a usb disk that accesses the PCH.
In the method of the foregoing embodiment of the present application, a diagnostic tool integrated in an operating system may identify a component in an in-place state included in a server, and display the component through an interface to provide the component for a user to select, and after the user selects a specific component, the user may diagnose whether the state of the specific component is normal, and display a diagnosis result in the interface. Thereby, the diagnosis of the server is realized.
In addition, when the designated component selected by the user is diagnosed, the designated component can be diagnosed through other components related to the designated component, and the diagnosis result is displayed in the interface, so that when the designated component in the server is diagnosed, the influence of other components on the designated component is considered, and the linkage detection of the components is realized.
In addition, when the components in the server are changed, the changed components can be directly identified and displayed, and the server is more convenient and faster to use.
Corresponding to the embodiment of the diagnosis method of the server, the application also provides an embodiment of a diagnosis device of the server.
Referring to fig. 3, the diagnostic apparatus according to the embodiment of the present application includes the following units: an activation unit 201, a component identification unit 202, and a component diagnosis unit 203, wherein:
the starting unit 201 is configured to start the operating system, and start a diagnostic tool integrated in the operating system after the operating system is started, where the diagnostic tool is used to diagnose the server;
the component identification unit 202 is used for identifying components in an in-place state contained in the server after the diagnostic tool is started, and displaying the components through an interface so as to provide the components for a user to select;
the component diagnosis unit 203 is configured to diagnose whether the state of the specified component is normal for the specified component selected by the user, and display a diagnosis result in the interface.
The operating system started by the starting unit 201 is an IF operating system, and the diagnostic tool is FIST.
Wherein the component diagnosing unit 203 diagnoses whether the state of the specified component is normal by: the state of the specified component is diagnosed as normal or not by other components related to the specified component.
The component identification unit 202 is further configured to re-identify a component in an in-place state included in the server after the component in the server is changed, and display the component through the interface.
The operating system started by the starting unit 201 is pre-installed in a storage medium in the server, or the operating system is pre-installed in a removable storage device accessing the server.
When the removable storage device is an SD memory card, the starting unit 201 starts the operating system in the following manner: virtualizing the SD memory card into a virtual hard disk; and starting the operating system in the virtual hard disk.
As shown in fig. 4, the diagnostic apparatus according to the embodiment of the present application may further include: a download installation unit 204, configured to download an image file of the operating system via a network, and install the operating system using the image file.
The implementation process of the functions and actions of each unit 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, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. 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.
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 (12)
1. A server diagnosis method, wherein the method is applied to the server, and the method comprises:
starting an operating system, and starting a diagnostic tool integrated in the operating system after the operating system is started, wherein the diagnostic tool is used for diagnosing a server;
after the diagnosis tool is started, identifying the components in the in-place state in the server, and displaying the components through an interface to provide the components for a user to select;
for a designated component selected by a user, diagnosing whether the state of the designated component is normal or not, and displaying a diagnosis result in an interface;
the operating system is an integrated rapid intelligent extensible toolset (IF) operating system, and the diagnostic tool is a FIST.
2. The method of claim 1, wherein diagnosing whether the state of the specified component is normal comprises:
diagnosing whether the state of the specified component is normal through other components related to the specified component.
3. The method of claim 1, further comprising:
and after the components in the server are changed, re-identifying the components in the on-position state contained in the server, and displaying the components through an interface.
4. The method of claim 1, wherein the operating system is pre-installed in a storage medium in the server, or wherein the operating system is pre-installed in a removable storage device accessing the server.
5. The method of claim 4, wherein when the removable storage device is an SD memory card, booting the operating system comprises:
virtualizing the SD memory card into a virtual hard disk;
and starting the operating system in the virtual hard disk.
6. The method of claim 4, further comprising:
and downloading the image file of the operating system through a network, and installing the operating system by using the image file.
7. A diagnostic apparatus for a server, the apparatus being applied to the server, the apparatus comprising:
the system comprises a starting unit, a judging unit and a judging unit, wherein the starting unit is used for starting an operating system and starting a diagnosis tool integrated in the operating system after the operating system is started, and the diagnosis tool is used for diagnosing a server;
the component identification unit is used for identifying the components in the in-place state in the server after the diagnosis tool is started, and displaying the components through an interface so as to provide the components for a user to select;
the component diagnosis unit is used for diagnosing whether the state of the specified component is normal or not aiming at the specified component selected by the user and displaying a diagnosis result in an interface;
the operating system started by the starting unit is an integrated rapid intelligent extensible tool set (IF) operating system, and the diagnosis tool is a rapid intelligent extensible tool set (FIST).
8. The apparatus according to claim 7, wherein the component diagnosing unit diagnoses whether the state of the specified component is normal by:
diagnosing whether the state of the specified component is normal through other components related to the specified component.
9. The apparatus of claim 7,
the component identification unit is further configured to re-identify the component in the on-position state included in the server after the component in the server is changed, and display the component through an interface.
10. The apparatus of claim 7, wherein the operating system booted by the booting unit is pre-installed in a storage medium in the server, or wherein the operating system is pre-installed in a removable storage device accessing the server.
11. The apparatus according to claim 10, wherein when the removable storage device is an SD memory card, the booting unit boots the operating system by:
virtualizing the SD memory card into a virtual hard disk;
and starting the operating system in the virtual hard disk.
12. The apparatus of claim 10, further comprising:
and the downloading and installing unit is used for downloading the image file of the operating system through a network and installing the operating system by using the image file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610932530.9A CN106502847B (en) | 2016-10-31 | 2016-10-31 | Server diagnosis method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610932530.9A CN106502847B (en) | 2016-10-31 | 2016-10-31 | Server diagnosis method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106502847A CN106502847A (en) | 2017-03-15 |
CN106502847B true CN106502847B (en) | 2020-02-11 |
Family
ID=58319608
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610932530.9A Active CN106502847B (en) | 2016-10-31 | 2016-10-31 | Server diagnosis method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106502847B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107045465A (en) * | 2017-04-24 | 2017-08-15 | 郑州云海信息技术有限公司 | A kind of method and device of server diagnostic result picture and textization display |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1670710A (en) * | 2004-03-16 | 2005-09-21 | 鸿富锦精密工业(深圳)有限公司 | Rapid diagnosis testing system and method for computer hardware |
TW200805053A (en) * | 2006-07-06 | 2008-01-16 | Asustek Comp Inc | PC component diagnostic test before executing operation system |
JP2010186242A (en) * | 2009-02-10 | 2010-08-26 | Mitsubishi Electric Corp | Computer system |
CN102214133A (en) * | 2011-07-22 | 2011-10-12 | 苏州工业园区七星电子有限公司 | System for quickly diagnosing and testing computer hardware |
CN105095031A (en) * | 2015-06-30 | 2015-11-25 | 北京奇虎科技有限公司 | Method and device for hard disk diagnosis |
-
2016
- 2016-10-31 CN CN201610932530.9A patent/CN106502847B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1670710A (en) * | 2004-03-16 | 2005-09-21 | 鸿富锦精密工业(深圳)有限公司 | Rapid diagnosis testing system and method for computer hardware |
TW200805053A (en) * | 2006-07-06 | 2008-01-16 | Asustek Comp Inc | PC component diagnostic test before executing operation system |
JP2010186242A (en) * | 2009-02-10 | 2010-08-26 | Mitsubishi Electric Corp | Computer system |
CN102214133A (en) * | 2011-07-22 | 2011-10-12 | 苏州工业园区七星电子有限公司 | System for quickly diagnosing and testing computer hardware |
CN105095031A (en) * | 2015-06-30 | 2015-11-25 | 北京奇虎科技有限公司 | Method and device for hard disk diagnosis |
Also Published As
Publication number | Publication date |
---|---|
CN106502847A (en) | 2017-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106681751B (en) | Unified firmware management system and management method and computer readable medium | |
CN106445576B (en) | Motherboard and its computer implemented method and the readable storage device of non-transient computer | |
US9778844B2 (en) | Installation of operating system on host computer using virtual storage of BMC | |
US10831467B2 (en) | Techniques of updating host device firmware via service processor | |
US9542201B2 (en) | Network bios management | |
WO2007045133A1 (en) | A computer system and a method which can perform integrity checking | |
US10606677B2 (en) | Method of retrieving debugging data in UEFI and computer system thereof | |
US20100057987A1 (en) | Method and System for Upgrading Normal Disk Controller to RAID Controller | |
US20150154033A1 (en) | Computer system and boot method thereof | |
US10691468B2 (en) | Techniques of retrieving bios data from BMC | |
CN102135893A (en) | Method for integrating operating system on BIOS (Basic Input Output System) chip and starting operating system on server | |
CN105814541A (en) | Computer device and memory starting method for computer device | |
US10210842B2 (en) | Techniques of displaying host data on a monitor connected to a service processor during pre-boot initialization stage | |
US10042666B2 (en) | Platform simulation for management controller development on virtual machines | |
CN104778081B (en) | Method for switching operating system and electronic device | |
US8375198B2 (en) | Boot system and method having a BIOS that reads an operating system from first storage device via an input/output chip based on detecting a temperature of a second storage device | |
CN107135462B (en) | Bluetooth pairing method of UEFI firmware and computing system thereof | |
US11023586B2 (en) | Auto detection mechanism of vulnerabilities for security updates | |
US20130097412A1 (en) | Performing A Boot Sequence In A Multi-Processor System | |
CN106502847B (en) | Server diagnosis method and device | |
US11467849B2 (en) | Systems and methods for collecting deep operating system (OS) telemetry | |
US10268466B2 (en) | Software installer with built-in hypervisor | |
CN111176958B (en) | Information monitoring method, system and storage medium | |
US11494289B2 (en) | Automatic framework to create QA test pass | |
CN111930575A (en) | Firmware acquisition method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province Applicant after: Xinhua Sanxin Information Technology Co., Ltd. Address before: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province Applicant before: Huashan Information Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |