CN109358998A - A kind of server detection method, apparatus and system - Google Patents
A kind of server detection method, apparatus and system Download PDFInfo
- Publication number
- CN109358998A CN109358998A CN201811177456.XA CN201811177456A CN109358998A CN 109358998 A CN109358998 A CN 109358998A CN 201811177456 A CN201811177456 A CN 201811177456A CN 109358998 A CN109358998 A CN 109358998A
- Authority
- CN
- China
- Prior art keywords
- server
- detection
- information
- configuration information
- current
- 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
Links
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/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2294—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses a kind of server detection methods, apparatus and system.Wherein, server detection method includes: the server of scanning access network;The server scanned is detected, to determine the working condition of these servers.The embodiment of the present invention solves when being detected using health status of the existing method to large batch of server, due to needing artificially to be detected manually to every server, and caused by human resources waste and the low-down problem of detection efficiency.
Description
Technical field
This application involves but be not limited to field of computer technology, espespecially a kind of server detection method, apparatus and system.
Background technique
With the rapid development of computer technology and integrated circuit technique, high performance server is gradually economic society hair
The necessity of exhibition, requirement of the user to number of servers obviously increase, in this way, having the online work of large batch of server.
Currently, online server is configured, installs the operation such as operating system and firmware upgrade, in completion
It states to match and postpone, it is also necessary to ensure that the configuration of server and health status are normal.In existing way, operation maintenance personnel is by logging in every
The baseboard management controller (Baseboard Management Controller, referred to as are as follows: BMC) of server checks that it is hard
Part state, firmware version, or check the log of server.However, when there is large batch of server to need to detect health status
When, processing mode needs in the prior art artificially detect the health status of every server manually, it is clear that take very much
Thing is laborious, and therefore, it is necessary to higher manpower data costs, and detection efficiency is very low.
Summary of the invention
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of server detection method, apparatus and system,
When solving to detect the health status of large batch of server using existing method, due to needing artificially to service every
Device is detected manually, and caused by human resources waste and the low-down problem of detection efficiency.
The embodiment of the present invention provides a kind of server detection method, comprising:
The server of scanning access network;
The server scanned is detected, with the working condition of the determination server.
Optionally, in server detection method as described above, further includes:
By receiving the initial hardware configuration information and preset firmware version information of the server, configuration list is generated.
Optionally, in server detection method as described above, the described pair of server scanned is checked, including with
It is at least one of lower:
The current configuration information of the server scanned is detected, the current configuration information include with down toward
One item missing: Current hardware configuration information and current version of firmware information;
Program distribution be will test to the server for having installed operating system OS in the server scanned, so that institute
The OS for stating server carries out the detection of preset term by executing the detection program.
Optionally, in server detection method as described above, the current-configuration to the server scanned
Information is detected, and is included at least one of the following:
The hardware of the server is remotely obtained in bit quantity and operation shape by Intelligent Platform Management Interface IPMI order
State, and compared with the initial hardware configuration information in the configuration list, with the hardware configuration shape of the determination server
State;
Remotely obtain the current version of firmware information of the server by the IPMI order, and with the configuration list
In preset firmware version information compare, with the firmware version state of the determination server.
The embodiment of the present invention also provides a kind of server detection device, comprising:
Scan module, for scanning the server of access network;
Detection module, for being detected to the server scanned, with the working condition of the determination server.
Optionally, in server detection device as described above, further includes:
Generation module, for the initial hardware configuration information of the server by receiving and preset firmware version letter
Breath generates configuration list.
Optionally, in server detection device as described above, the detection module include it is following at least one:
Detection unit detects, the current-configuration for the current configuration information to the server scanned
Information includes at least one of the following: Current hardware configuration information and current version of firmware information;
Dispatching Unit, for will test program distribution to the clothes for having installed operating system OS in the server scanned
Business device, so that the OS of the server carries out the detection of preset term by executing the detection program.
Optionally, in server detection device as described above, the detection unit is to the server scanned
Current configuration information is detected, and is included at least one of the following:
The hardware of the server is remotely obtained in bit quantity and operation shape by Intelligent Platform Management Interface IPMI order
State, and compared with the initial hardware configuration information in the configuration list, with the hardware configuration shape of the determination server
State;
Remotely obtain the current version of firmware information of the server by the IPMI order, and with the configuration list
In preset firmware version information compare, with the firmware version state of the determination server.
The embodiment of the present invention also provides a kind of server detection system, comprising: access at least one server of network and inspection
Measurement equipment includes server detection device as described in any one of the above embodiments in the detection device.
The embodiment of the present invention also provides a kind of computer equipment, comprising: memory and processor;
The memory, for saving executable instruction;
The processor, for realizing such as any of the above-described when executing the executable instruction that the memory saves
The server detection method.
The embodiment of the present invention also provides a kind of computer readable storage medium, and the computer-readable recording medium storage has
Executable instruction realizes the server detection side as described in any one of above-mentioned when the executable instruction is executed by processor
Method.
Server detection method provided in an embodiment of the present invention, apparatus and system pass through the clothes that automatically scanning accesses network
Business device, so as to carry out batch detection processing to the server scanned, to determine the working condition of these servers, wherein
It can be the relevant information in current configuration information or operational process to server to the detection of server to detect.This hair
The server detection method that bright embodiment provides, can automatically scanning accesses net in a network by a host in detection system
The server of network, and batch detection processing is carried out to all placed into service devices in the network, and in the prior art artificially to big
The mode that the health status of bulk service device is detected manually is compared, and saves a large amount of cost of human resources, and greatly
Improve detection efficiency, to reduce the O&M cost of high-volume server.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this
The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is a kind of flow chart of server detection method provided in an embodiment of the present invention;
Fig. 2 is the knot for executing a kind of server detection system of server detection method provided in an embodiment of the present invention
Structure schematic diagram;
Fig. 3 is the flow chart of another server detection method provided in an embodiment of the present invention;
Fig. 4 is the flow chart of another server detection method provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of server detection device provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of server detection system in the embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another server detection device provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions
It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable
Sequence executes shown or described step.
The present invention provides following specific embodiment and can be combined with each other, for the same or similar concept or process
It may be repeated no more in some embodiments.
Fig. 1 is a kind of flow chart of server detection method provided in an embodiment of the present invention.Service provided in this embodiment
The health status that device detection method can dock the multiple servers into network is detected, the server in the embodiment of the present invention
Detection method may include steps of:
S110, the server of scanning access network.
Server detection method provided in an embodiment of the present invention, can be applied in cloud computing and big data scene, upper
It states under application scenarios, it will usually which large batch of deployment services device and other information technoloy equipments, operation maintenance personnel need to detect these clothes at any time
The health status of business device, to know effective service condition of every server in network, detection efficiency, which becomes, influences detectability
An important factor for.Using server detection method provided in an embodiment of the present invention, a host (example in local area network can be passed through
A server for example in the local area network) health status of other servers in the local area network is detected, detection
On condition that server to be detected access in the local area network, such as can be by the BMC interface of server to be detected by its
Access to LAN, in this way, host can know which server has accessed the local area network by scan operation, it can scanning
To these with the server of access to LAN, the server that can also scan these, which is added to, to be used to detect in the local area network
In the detection system of server health status, or it is added in a detection list.In the embodiment of the present invention, it can pass through
LAN segment is arranged to be linked into server to be detected in the local area network of same network segment, these access same network segment local area network
Server is known as placed into service device, carries out health status inspection to these placed into service devices using method provided in an embodiment of the present invention
Before survey, first these placed into service devices can be added in detection system or detection list by scanning, so as to subsequent realization
Automatically the purpose detected.
It should be noted that can be in detection system in the embodiment of the present invention for executing the host of service detection method
A server, this can be preset as the server of host by operation maintenance personnel, which is also possible to match in advance
One set is exclusively used in the terminal device of server health status in detection local area network.It is swept in addition, being executed in the embodiment of the present invention
The operation retouched and added can be that the host in detection system executes automatically, as long as server to be detected has been successfully accessed
Local area network, so that it may be added in detection system or detection list by host by scanning, the frequency of host scanning can also
It to be set by operation maintenance personnel, such as scans within period regular hour, or is scanned after the certain period of time of interval.Such as Fig. 2 institute
Show, for a kind of structural representation of server detection system for executing server detection method provided in an embodiment of the present invention
Figure, wherein host 21 and each server 22 (including 1~server N of server) in detection system 20 access same network segment
In local area network, and 1~server of server N is arrived by the scanning of host 21, and is added in detection system 20.
S120 detects the server scanned, to determine the working condition of these servers.
In embodiments of the present invention, by placed into service device (server i.e. in access to LAN) be added to detection system or
After detecting list, the server that can have been added to every carries out the detection of health status respectively, and detection operation is host
These have been added with the batch processing of server progress.The health status for detecting certain server for example can be by obtaining this
Every configuration information of platform server detects the configuration information of the acquisition and the matching degree of preset configuration information, when
It can consider that the health status of server reaches requirement when meeting the requirements with degree, then think when matching degree backlog demand
The health status of server is not up to standard.
Server detection method provided in an embodiment of the present invention accesses the server of network by automatically scanning, so as to
To carry out batch detection processing to the server scanned, to determine the working condition of these servers, wherein to server
The relevant information that detection can be in current configuration information or operational process to server detects.The embodiment of the present invention mentions
The server detection method of confession, can by a host in detection system in a network automatically scanning access network service
Device, and in the network all placed into service devices carry out batch detection processing, in the prior art artificially to high-volume service
The mode that the health status of device is detected manually is compared, and saves a large amount of cost of human resources, and greatly improve
Detection efficiency, to reduce the O&M cost of high-volume server.
Optionally, Fig. 3 is the flow chart of another server detection method provided in an embodiment of the present invention.It is shown in Fig. 1
On the basis of embodiment, server detection method provided in an embodiment of the present invention can also include the following steps: before S120
S111 generates configuration list by receiving the initial hardware configuration information and preset firmware version information of server.
In embodiments of the present invention, placed into service device is added to detection system or detection list by the host in local area network
Afterwards, the initial configuration information of these servers can be received by input equipment, that is, includes initial hardware configuration information and preset
Firmware version information, and a configuration list is generated by these initial configuration informations, which can be O&M people
Member is artificially entered into detection system, and the configuration list which generates can be used for the subsequent reality to server
When configuration information detected.
It should be noted that the embodiment of the present invention does not limit the execution sequence of S111 before or after S110, due to right
When the current configuration information of server is detected, need to compare with the configuration information in configuration list, therefore, as long as
It detects preceding typing initial configuration information and generates configuration list, embodiment illustrated in fig. 3 is executed after S110 with S111 is
Example is shown.
Optionally, method provided in an embodiment of the present invention, S120 may include at least one of following:
S121 detects the current configuration information of the server scanned, the current configuration information include with down toward
One item missing: Current hardware configuration information and current version of firmware information.
This hair embodiment in practical applications, can obtain the current configuration information of server by BMC interface remote, by
The current configuration information got assesses the health status of server, and the current configuration information for detection may include
Current hardware configuration information and current version of firmware information, Current hardware configuration information is for example including central processing unit (Central
Processing Unit, referred to as are as follows: CPU) number of cores, model and operating rate, the quantity and size of memory, disk
Quantity and size etc., current version of firmware information is for example including BMC, basic input output system (Basic Input Output
System, referred to as are as follows: BIOS), Field Replaceable Unit (Field Replace Unit, referred to as are as follows: FRU) etc. firmwares version
Information.
Server detection method provided in an embodiment of the present invention can be known by the current configuration information of detection service device
The working condition of server.For example, the kernel of certain server CPU is 2 in bit quantity, but actually the CPU has in 4
Core, then illustrating other 2 kernels, there are problems, are in abnormal operation;For another example the kernel of certain server CPU is in place
Quantity is identical as practical number of cores, but the processing speed of some kernel is substantially reduced compared with the processing speed of pre-configuration, then is said
There are problems for the operation of the bright kernel, are in abnormal operation;In another example the memory of certain server is less than in fact in bit quantity
Border amount of memory, or the size of memory and pre-configuration are not of uniform size in place.The health status of server in above-mentioned several situations
All there are abnormal conditions.
S122 will test program distribution to the server for having pacified OS in the server scanned, so that the OS of server
The detection of preset term is carried out by executing detection program.
In embodiments of the present invention, it has been added in the server of detection system or detection list, for having installed OS
Server, can will test in program distribution to the OS of these servers, executed at OS by server detection program carry out
Customized detection, the project of the customized detection are to detect the project that detection is indicated in program.In practical applications, server
Some information can not be obtained by above-mentioned BMC interface remote, such as the usage amount and utilization rate of hard disk, then can by point
The mode of hair detection program obtains, which can be compiled inspection software or the script file for detection,
Detecting the order line in program can be executed at OS to obtain corresponding status information in server.
For example, the host in detection system obtains the usage amount of certain server hard disc by distribution detection program
And utilization rate, after the OS of the server executes detection program, get the hard disk of this server usage amount close to total amount, or
Hard disk utilization rate illustrates that the hard disk of the server can be used surplus very small, the result that can then will acquire is anti-close to 100%
It feeds host.
Refering to what is shown in Fig. 2, the server 3 and server 4 in Fig. 2 are the server for having installed OS, journey is detected by distribution
The mode of sequence carries out the detection of preset term to the two servers, after the two servers complete detection, can also will examine
Survey result return to host, the preset term can for detection program in indicate detection project, operation maintenance personnel can in advance by
Testing requirements are compiled into detection program.
It should be noted that the embodiment of the present invention do not limit to server detect in execute S121 still execute
S122 can be execution one of them, is also possible to two and is carried out;In addition, also do not limit S121 and S122 executes sequence,
Process shown in Fig. 3 is shown so that S121 is executed before S122 as an example, in practical applications, if detecting some clothes in S121
The health status of business device is not up to standard, after to these health status, server not up to standard is safeguarded, can also execute again
The execution of S121, S122 can then be monitored the service for being equipped with OS at any time by operation maintenance personnel according to the service condition of placed into service device
Device.
Optionally, Fig. 4 is the flow chart of another server detection method provided in an embodiment of the present invention.In above-mentioned Fig. 3
On the basis of illustrated embodiment, in server detection method provided in an embodiment of the present invention, S121 can also include it is following at least
One content:
S123, by Intelligent Platform Management Interface (Intelligent Platform Management Interface,
Referred to as are as follows: IPMI) the long-range hardware for obtaining server of order in bit quantity and operating status, and with it is initial hard in configuration list
Part configuration information compares, to determine the hardware configuration state of server;
S124, by IPMI order remotely obtain server current version of firmware information, and with it is pre- in configuration list
It sets firmware version information to compare, to determine the firmware version state of server.
In embodiments of the present invention, since each server to be detected passes through in BMC interface access to LAN,
Host can remotely obtain the Current hardware and current firmware information of these servers, the Current hardware of acquisition by IPMI order
Information may include the hardware of server in bit quantity and operating status, and the above-mentioned real time information that will acquire and configuration list
On initial hardware configuration information compare, so as to judge the work of various hardware in server according to comparing result
Whether state is normal, for example, the number of cores of CPU is 4 on configuration list, amount of memory is 5, in the CPU remotely obtained
Core is 3 in bit quantity, and memory is 5 in bit quantity, then illustrates have a kernel to be in abnormal operating state in CPU;Class
As, after remotely getting current version of firmware information, it can equally be carried out with the preset firmware version information in configuration list
Comparison, judges whether the firmware of server refreshes normally, such as the version number of the BMC in the configuration list of some server is
7.0.1, the version information of the BMC remotely obtained is 7.0.0, then illustrate BMC in the server without normally upgrading.The present invention
Embodiment, can be with according to above-mentioned comparing result by comparing the information in the every terms of information and configuration list that remotely obtain
Evaluate the health status of server, and aforesaid operations all can be host in detection system to have been added to detection system or
The high-volume server detected in list carries out batch detection processing, dramatically saves needed for detection service device health status
Cost of human resources, and improve detection efficiency.
It optionally, can be to having been added in detection system or detection list using method provided in an embodiment of the present invention
The actual disposition information of server detected, customized inspection can also be carried out to the server for having installed OS in detection system
It surveys.After executing above-mentioned detection, following steps can also be performed:
S130, generates the state report of server according to testing result, which includes at least one of the following: acquisition
Hardware in bit quantity, operating status and current solid-state version information one or more matching results with configuration list, with
And the testing result of preset term.
In embodiments of the present invention, pass through Current hardware configuration information, the current firmware of server in acquisition detection system
Version information is detected, or executes customized detection, can know the current working condition of server, and evaluation services
The health status of device.The judgment criteria of the health status can also be set by operation maintenance personnel, for example, having in matching result inconsistent
Content be health status exception, although not influencing server for another example there is some inconsistent contents in matching result
Normal operating conditions, it is believed that health status is normal.
Further, the state report generated by testing result is obtained using detection method provided in an embodiment of the present invention
Afterwards, can accurately orient any platform server which or which configuration with configuration list in mismatch, for example, in Fig. 2
The memory of server 2 is one few in bit quantity, and the slot numbering of memory not in place can be determined by memory in place.Therefore, may be used
To be safeguarded according to the information in state report to the underproof server of health status, then, can also continue to maintenance
The current configuration information of server afterwards is detected, until the health status of these servers meets the requirements.
Using server detection method provided in an embodiment of the present invention, the host in detection system can be by local area network certainly
Server to be detected is added in detection system or detection list by dynamic scanning, and by BMC interface, system log and its
He checks the server in system existing detection method, saves a large amount of human resources, greatly improves efficiency,
Reduce O&M cost.
Based on the server detection method that the various embodiments described above of the present invention provide, the embodiment of the present invention also provides a kind of service
Device detection device, the server detection device are used to execute the server detection method that any of the above-described embodiment of the present invention provides.
As shown in figure 5, being a kind of structural schematic diagram of server detection device provided in an embodiment of the present invention.The present embodiment
The health status that the server detection device 300 of offer can dock the multiple servers into network is detected, and the service
Device detection device 300 is set in a host in the network, and the server detection device 300 in the embodiment of the present invention can be with
It include: scan module 310 and detection module 320;
Wherein, scan module 310, for scanning the server of access network.
Server detection device 300 provided in an embodiment of the present invention, can be applied in cloud computing and big data scene,
Under above-mentioned application scenarios, it will usually which large batch of deployment services device and other information technoloy equipments, operation maintenance personnel need to detect these at any time
The health status of server, to know effective service condition of every server in network, detection efficiency, which becomes, influences detection energy
An important factor for power.Using server detection device provided in an embodiment of the present invention, a host in local area network can be passed through
(server for example, in the local area network) detects the health status of other servers in the local area network, detection
The premise server to be detected that is access in the local area network, such as can be will by the BMC interface of server to be detected
Its access to LAN, in this way, scan module 310 can know which server has accessed the local area network by scanning
With scanning to these with the server of access to LAN, the server that can also scan these, which is added to, is used to detect the office
In the net of domain in the detection system of server health status, or it is added in a detection list.It, can in the embodiment of the present invention
Server to be detected to be linked into the local area network of same network segment by the way that LAN segment is arranged, these access same network segment office
The server of domain net is known as placed into service device, online to these using server detection device 300 provided in an embodiment of the present invention
Before server carries out health status detection, these placed into service devices first can be added to by detection system or detection by scanning
In list, the purpose detected automatically is realized so as to subsequent.
It should be noted that the host in the embodiment of the present invention configured with server detection device 300 can be detection system
A server in system, this can be preset as the server of host by operation maintenance personnel, which is also possible to pre-
One first configured is exclusively used in the terminal device of server health status in detection local area network.In addition, being held in the embodiment of the present invention
The operation of row scanning and addition can be that the host in the detection system executes automatically, as long as server to be detected has become
Function access to LAN, so that it may it is added in detection system or detection list by the scan module 310 of host by scanning,
The frequency that scan module 310 executes scanning can also be set by operation maintenance personnel, such as be scanned within period regular hour, or
It is scanned after section at regular intervals.As shown in fig. 6, for a kind of structural representation of server detection system in the embodiment of the present invention
Figure, wherein host 21 and each server 22 (including 1~server N of server) in detection system 20 access same network segment
In local area network, configured with server detection device 300 provided in an embodiment of the present invention, (detection system shown in Fig. 6 is shown in host 21
Each module in server detection device 300 of having anticipated out), and 1~server of server N is by server detection device 300
The scanning of scan module 310 is arrived, and is added in detection system 20.
Detection module 320, for being detected to the server scanned, to determine the working condition of these servers.
In embodiments of the present invention, scan module 310 adds placed into service device (server i.e. in access to LAN)
To detection system or detection list, the server that detection module 320 can add every carries out health status respectively
Detection, and detection operation is the batch processing that detection module 320 has added server progress to these.Detection module 320 is examined
The health status for surveying certain server, which for example can be, detects the acquisition by the every configuration information for obtaining this server
The matching degree of configuration information and preset configuration information can consider the strong of server when matching degree is met the requirements
Health state reaches requirement, then thinks that the health status of server is not up to standard when matching degree backlog demand.
Server detection device provided in an embodiment of the present invention accesses the service of network by scan module automatically scanning
Device, thus by detection module to above-mentioned scanning to server carry out batch detection processing, with determine these servers work
State carries out wherein can be the relevant information in current configuration information or operational process to server to the detection of server
Detection.Server detection device provided in an embodiment of the present invention can be configured in a host in detection system, there is the master
Automatically scanning accesses the server of network to machine in a network, and carries out at batch detection to all placed into service devices in the network
Reason saves a large amount of compared with the mode artificially detected manually to the health status of high-volume server in the prior art
Cost of human resources, and detection efficiency is greatly improved, to reduce the O&M cost of high-volume server.
Optionally, Fig. 7 is the structural schematic diagram of another server detection device provided in an embodiment of the present invention.In Fig. 5
In the structure basis of shown device, server detection device 300 provided in an embodiment of the present invention can also include:
Generation module 330, for passing through the initial hardware configuration information and preset firmware version information of received server,
Generate configuration list.
In embodiments of the present invention, placed into service device is added to detection system or detection list by the host in local area network
Afterwards, the initial configuration information of these servers can be received by input equipment, that is, includes initial hardware configuration information and preset
Firmware version information, and these initial configuration informations are generated into a configuration list, the initial configuration information by generation module 330
It can be operation maintenance personnel to be artificially entered into detection system, after can be used for by the configuration list that the initial configuration information generates
It is continuous that the configuration information of server is detected.
It should be noted that the embodiment of the present invention, which does not limit generation module 330, generates the sequence of configuration list in scanning mould
Before or after the server of the scanning access network of block 310, when being detected due to the current configuration information to server, need
It is compared with the configuration information in configuration list, therefore, as long as typing initial configuration information is simultaneously before detection module 320 detects
Generate configuration list.
Optionally, in server detection device 300 provided in an embodiment of the present invention, detection module 320 may include down toward
It is one few:
Detection unit 321 is detected for the current configuration information to the server scanned, the current configuration information
Include at least one of the following: Current hardware configuration information and current version of firmware information.
In practical applications, detection unit 321 can obtain the current of server by BMC interface remote to this hair embodiment
Configuration information is assessed the health status of server by the current configuration information got, the current-configuration for detection
Information may include Current hardware configuration information and current version of firmware information, and Current hardware configuration information is for example including CPU's
Number of cores, model and operating rate, the quantity and size of memory, quantity and size of disk etc., current version of firmware information
Version information for example including BMC, BIOS, FRU firmware.
Server detection device provided in an embodiment of the present invention can pass through the current of 321 detection service device of detection unit
Configuration information knows the working condition of server.For example, the kernel of certain server CPU is 2 in bit quantity, but actually should
CPU has 4 kernels, then illustrating other 2 kernels, there are problems, is in abnormal operation;For another example certain server CPU
Kernel it is identical as practical number of cores in bit quantity, but the processing speed of some kernel is obvious compared with the processing speed of pre-configuration
It reduces, then illustrating the operation of the kernel, there are problems, are in abnormal operation;In another example the memory of certain server is in place
Quantity is less than actual memory quantity, or the size of memory and pre-configuration are not of uniform size in place.Server in above-mentioned several situations
Health status all there are abnormal conditions.
Dispatching Unit 322 will test program distribution to the server for having pacified OS in the server scanned, so that service
The OS of device carries out the detection of preset term by executing detection program.
In embodiments of the present invention, it has been added in the server of detection system, for having installed the server of OS, point
Bill member 322 can will test in program distribution to the OS of these servers, execute detection program at OS by server and carry out
Customized detection, the project of the customized detection are to detect the project that detection is indicated in program.In practical applications, server
Some information can not be obtained by above-mentioned BMC interface remote, such as the usage amount and utilization rate of hard disk then can be by distributing
Unit 322 obtains in such a way that distribution detects program, which can be for compiled inspection software or for examining
The script file of survey, detecting the order line in program can be executed at OS to obtain corresponding status information in server.
For example, the Dispatching Unit 322 of the host in detection system obtains certain server by distribution detection program
The usage amount and utilization rate of hard disk, after the OS of the server executes detection program, the hard disk for getting this server has made
Dosage illustrates that the hard disk of the server can be used surplus very small, then may be used close to total amount or hard disk utilization rate close to 100%
Detection unit 321 is fed back to the result that will acquire.
Refering to what is shown in Fig. 6, the server 3 and server 4 in Fig. 6 are the server for having installed OS, Dispatching Unit 322 can be with
The detection that in such a way that distribution detects program the two servers are carried out with preset term is completed to detect in the two servers
Afterwards, result can also be will test and returns to detection unit 321, which can be the item for indicating detection in detection program
Mesh, operation maintenance personnel can will test requirement in advance and be compiled into detection program.
It is gone back when being detected to detection module 320 by detection unit 321 it should be noted that the embodiment of the present invention does not limit
It is that Dispatching Unit 322 executes, can be one of execution, be also possible to both execute;In addition, also not limiting detection unit
321 and Dispatching Unit 322 execute detection tandem, in practical applications, if detection unit 321 detects some servers
Health status it is not up to standard, after server not up to standard is safeguarded to these health status, can also have detection single again
Member 321 executes detection, and customized detection performed by Dispatching Unit 322 then can be by operation maintenance personnel making according to placed into service device
Monitor the server for being equipped with OS at any time with situation.
Optionally, in embodiments of the present invention, the current configuration information of 321 pairs of servers scanned of detection unit carries out
The implementation of detection, including at least one of following content:
First, the hardware of server is remotely obtained by IPMI order in bit quantity and operating status, and and configuration list
In initial hardware configuration information compare, to determine the hardware configuration state of server;
Second, the current version of firmware information for having added server, and and configuration list are remotely obtained by IPMI order
In preset firmware version information compare, to determine the firmware version state of server.
In embodiments of the present invention, since each server to be detected passes through in BMC interface access to LAN,
Detection unit 321 can remotely obtain the Current hardware and current firmware information of these servers by IPMI order, acquisition
Current hardware information may include the hardware of server in bit quantity and operating status, and the above-mentioned real time information that will acquire with
Initial hardware configuration information on configuration list compares, various hard in server so as to be judged according to comparing result
Whether the working condition of part is normal;It similarly, equally can be with after detection unit 321 remotely gets current version of firmware information
It is compared with the preset firmware version information in configuration list, judges whether the firmware of server refreshes normally.The present invention is real
The detection unit 321 of example is applied by comparing the information in the every terms of information and configuration list that remotely obtain, according to above-mentioned
Comparing result can evaluate the health status of server, and aforesaid operations all can be host detection unit 321 to having added
The high-volume server for being added to detection system or detecting in list carries out batch detection processing, dramatically saves detection service device
Cost of human resources needed for health status, and improve detection efficiency.
Optionally, using server detection device 300 provided in an embodiment of the present invention, detection module 320 can be to having added
The actual disposition information for being added to detection system or the server in detection list is detected, and distribution detection program can be passed through
Mode carries out customized detection to the server for having installed OS in detection system.
The generation module 330 of server detection device 300 in the embodiment of the present invention is also used to execute in detection module 320
After above-mentioned detection, the state report of server is generated according to testing result, which includes at least one of the following: acquisition
Hardware one or more matching results with configuration list in bit quantity, operating status and current solid-state version information, and
The testing result of preset term.
In embodiments of the present invention, detection module 320 matches confidence by obtaining the Current hardware of server in detection system
Breath, current version of firmware information are detected, or execute customized detection, can know the current working condition of server,
And the health status of evaluating server.The judgment criteria of the health status can also be set by operation maintenance personnel, for example, matching knot
Having inconsistent content in fruit is health status exception, although for another example there is some inconsistent contents in matching result,
The normal operating conditions of server is not influenced, it is believed that health status is normal.
It further, can be with after the generation module 330 of the embodiment of the present invention obtains the state report generated by testing result
Accurately orient any platform server which or which configuration with configuration list in mismatch.It therefore, can be according to state
Information in report safeguards the underproof server of health status, then, can also continue to the server after maintenance
Current configuration information detected, until the health status of these servers meets the requirements.
The embodiment of the present invention also provides a kind of server detection system, which is referred to above-mentioned Fig. 2
With server detection system shown in Fig. 6, which may include: at least one clothes of the same local area network of access
It is engaged in device 22 and host 21, configured with the server detection device in any embodiment as shown in above-mentioned Fig. 5 and Fig. 7 in the host 21
300.Server detection system 20 provided in an embodiment of the present invention is for executing any implementation shown in Fig. 1 of the present invention, Fig. 3 to Fig. 4
The server detection method that example provides, has corresponding entity apparatus, and it is similar that the realization principle and technical effect are similar, no longer superfluous herein
It states.
Fig. 8 is a kind of structural schematic diagram of computer equipment provided in an embodiment of the present invention.It is provided in an embodiment of the present invention
Computer equipment 40 may include: memory 41 and processor 42.
Wherein, memory 41, for saving executable instruction;
Processor 42, for realizing any of the above-described embodiment of the present invention when executing the executable instruction that memory 41 saves
The server detection method of offer.
Computer equipment 40 provided in an embodiment of the present invention can be the host in detection system in above-described embodiment, the meter
The server detection method that the embodiment and the above embodiment of the present invention of calculation machine equipment 40 provide is essentially identical, does not do herein superfluous
It states.
The embodiment of the present invention also provides a kind of computer readable storage medium, which has can
It executes instruction, which may be implemented the server inspection that any of the above-described embodiment of the present invention provides when being executed by processor
Survey method.What the embodiment and the above embodiment of the present invention of computer readable storage medium provided in an embodiment of the present invention provided
Server detection method is essentially identical, and this will not be repeated here.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove
Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment,
Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one
Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain groups
Part or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by
It is embodied as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in computer-readable
On medium, computer-readable medium may include computer storage medium (or non-transitory medium) and communication media (or temporarily
Property medium).As known to a person of ordinary skill in the art, term computer storage medium is included in for storing information (such as
Computer readable instructions, data structure, program module or other data) any method or technique in the volatibility implemented and non-
Volatibility, removable and nonremovable medium.Computer storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or its
His memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other
Magnetic memory apparatus or any other medium that can be used for storing desired information and can be accessed by a computer.This
Outside, known to a person of ordinary skill in the art to be, communication media generally comprises computer readable instructions, data structure, program mould
Other data in the modulated data signal of block or such as carrier wave or other transmission mechanisms etc, and may include any information
Delivery media.
Although disclosed herein embodiment it is as above, the content only for ease of understanding the present invention and use
Embodiment is not intended to limit the invention.Technical staff in any fields of the present invention is taken off not departing from the present invention
Under the premise of the spirit and scope of dew, any modification and variation, but the present invention can be carried out in the form and details of implementation
Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.
Claims (11)
1. a kind of server detection method characterized by comprising
The server of scanning access network;
The server scanned is detected, with the working condition of the determination server.
2. server detection method according to claim 1, which is characterized in that further include:
By receiving the initial hardware configuration information and preset firmware version information of the server, configuration list is generated.
3. server detection method according to claim 1, which is characterized in that the described pair of server scanned is examined
It looks into, includes at least one of the following:
The current configuration information of the server scanned is detected, the current configuration information includes following at least one
: Current hardware configuration information and current version of firmware information;
Program distribution be will test to the server for having installed operating system OS in the server scanned, so that the clothes
The OS of business device carries out the detection of preset term by executing the detection program.
4. server detection method according to claim 3, which is characterized in that described to the server scanned
Current configuration information is detected, and is included at least one of the following:
The hardware of the server is remotely obtained in bit quantity and operating status by Intelligent Platform Management Interface IPMI order, and
It is compared with the initial hardware configuration information in the configuration list, with the hardware configuration state of the determination server;
Remotely obtain the current version of firmware information of the server by the IPMI order, and in the configuration list
Preset firmware version information compares, with the firmware version state of the determination server.
5. a kind of server detection device characterized by comprising
Scan module, for scanning the service of access network;
Detection module, for being detected to the server scanned, with the working condition of the determination server.
6. server detection device according to claim 5, which is characterized in that further include:
Generation module, for passing through the initial hardware configuration information and preset firmware version information of the server received,
Generate configuration list.
7. server detection device according to claim 5, which is characterized in that the detection module includes following at least one
It is a:
Detection unit detects, the current configuration information for the current configuration information to the server scanned
Include at least one of the following: Current hardware configuration information and current version of firmware information;
Dispatching Unit, for will test program distribution to the service for having installed operating system OS in the server scanned
Device, so that the OS of the server carries out the detection of preset term by executing the detection program.
8. server detection device according to claim 7, which is characterized in that the detection unit is scanned to described
The current configuration information of server is detected, and is included at least one of the following:
The hardware of the server is remotely obtained in bit quantity and operating status by Intelligent Platform Management Interface IPMI order, and
It is compared with the initial hardware configuration information in the configuration list, with the hardware configuration state of the determination server;
Remotely obtain the current version of firmware information of the server by the IPMI order, and in the configuration list
Preset firmware version information compares, with the firmware version state of the determination server.
9. a kind of server detection system characterized by comprising access at least one server of network and detection device, institute
Stating includes server detection device as described in any one of the claims 5~8 in detection device.
10. a kind of computer equipment characterized by comprising memory and processor;
The memory, for saving executable instruction;
The processor, for being realized when executing the executable instruction that the memory saves as in Claims 1 to 4
Described in any item server detection methods.
11. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has executable finger
It enables, the executable instruction realizes server detection side as described in any one of claims 1 to 4 when being executed by processor
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811177456.XA CN109358998A (en) | 2018-10-10 | 2018-10-10 | A kind of server detection method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811177456.XA CN109358998A (en) | 2018-10-10 | 2018-10-10 | A kind of server detection method, apparatus and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109358998A true CN109358998A (en) | 2019-02-19 |
Family
ID=65348916
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811177456.XA Pending CN109358998A (en) | 2018-10-10 | 2018-10-10 | A kind of server detection method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109358998A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112486755A (en) * | 2020-12-11 | 2021-03-12 | 北京金山云网络技术有限公司 | Server detection method, detection device, electronic equipment and storage medium |
CN113094224A (en) * | 2019-12-20 | 2021-07-09 | 中移全通系统集成有限公司 | Server asset management method and device, computer equipment and storage medium |
CN113110970A (en) * | 2021-04-08 | 2021-07-13 | 浪潮商用机器有限公司 | Method, device, equipment and medium for monitoring components in server working mode |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102957567A (en) * | 2012-11-09 | 2013-03-06 | 北京百度网讯科技有限公司 | Server information management method and server management device |
CN103905264A (en) * | 2012-12-27 | 2014-07-02 | 鸿富锦精密工业(深圳)有限公司 | Monitoring system and monitoring method |
CN105490870A (en) * | 2015-11-20 | 2016-04-13 | 浪潮电子信息产业股份有限公司 | Method for monitoring running states of Linux servers in batch |
CN107025155A (en) * | 2017-03-04 | 2017-08-08 | 郑州云海信息技术有限公司 | User method of testing and device is remotely set up based on ipmitool |
CN107544879A (en) * | 2017-06-23 | 2018-01-05 | 紫光华山信息技术有限公司 | Diagnostic method, device and the machinable medium of server |
CN107623598A (en) * | 2017-09-25 | 2018-01-23 | 郑州云海信息技术有限公司 | A kind of method of server examining system automatically dispose |
CN108365987A (en) * | 2018-02-08 | 2018-08-03 | 北京首都在线科技股份有限公司 | A kind of management systems and management method of multiserver |
-
2018
- 2018-10-10 CN CN201811177456.XA patent/CN109358998A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102957567A (en) * | 2012-11-09 | 2013-03-06 | 北京百度网讯科技有限公司 | Server information management method and server management device |
CN103905264A (en) * | 2012-12-27 | 2014-07-02 | 鸿富锦精密工业(深圳)有限公司 | Monitoring system and monitoring method |
CN105490870A (en) * | 2015-11-20 | 2016-04-13 | 浪潮电子信息产业股份有限公司 | Method for monitoring running states of Linux servers in batch |
CN107025155A (en) * | 2017-03-04 | 2017-08-08 | 郑州云海信息技术有限公司 | User method of testing and device is remotely set up based on ipmitool |
CN107544879A (en) * | 2017-06-23 | 2018-01-05 | 紫光华山信息技术有限公司 | Diagnostic method, device and the machinable medium of server |
CN107623598A (en) * | 2017-09-25 | 2018-01-23 | 郑州云海信息技术有限公司 | A kind of method of server examining system automatically dispose |
CN108365987A (en) * | 2018-02-08 | 2018-08-03 | 北京首都在线科技股份有限公司 | A kind of management systems and management method of multiserver |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113094224A (en) * | 2019-12-20 | 2021-07-09 | 中移全通系统集成有限公司 | Server asset management method and device, computer equipment and storage medium |
CN113094224B (en) * | 2019-12-20 | 2022-07-29 | 中移全通系统集成有限公司 | Server asset management method and device, computer equipment and storage medium |
CN112486755A (en) * | 2020-12-11 | 2021-03-12 | 北京金山云网络技术有限公司 | Server detection method, detection device, electronic equipment and storage medium |
CN113110970A (en) * | 2021-04-08 | 2021-07-13 | 浪潮商用机器有限公司 | Method, device, equipment and medium for monitoring components in server working mode |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9588820B2 (en) | Cloud architecture recommender system using automated workload instrumentation | |
US8661125B2 (en) | System comprising probe runner, monitor, and responder with associated databases for multi-level monitoring of a cloud service | |
US9606899B1 (en) | Software testing using shadow requests | |
CN111124850A (en) | MQTT server performance testing method, system, computer equipment and storage medium | |
EP2600250A1 (en) | Method and system for performance assurance of applications. | |
US11625310B2 (en) | Application regression detection in computing systems | |
US20180276019A1 (en) | Ensuring operational integrity and performance of deployed converged infrastructure information handling systems | |
CN105122234A (en) | Deploying trace objectives using cost analyses | |
CN105787364B (en) | Automatic testing method, device and system for tasks | |
CN105122212A (en) | Periodicity optimization in an automated tracing system | |
CN105283866A (en) | Optimization analysis using similar frequencies | |
CN105283848A (en) | Application tracing by distributed objectives | |
CN103150250B (en) | Application program capacity detection system and application program capacity detection method | |
CN105283851A (en) | Cost analysis for selecting trace objectives | |
CN109358998A (en) | A kind of server detection method, apparatus and system | |
US10956293B2 (en) | Automated process performance determination | |
CN104112084B (en) | Execution-based license discovery and optimization method and device | |
CN106845215A (en) | Based on safety protecting method and device under virtualized environment | |
CN105245591B (en) | A kind of monitoring method and system of the experience of desktop cloud performance | |
CN111694556A (en) | Verification method and system, computer system and medium | |
CN109885472A (en) | Test and management method and system and computer readable storage medium | |
CN114610615A (en) | Project test processing method, device, equipment and storage medium | |
CN104883273A (en) | Method and system for processing service influence model in virtualized service management platform | |
CN108228445A (en) | The test method and device of energy consumption of virtual machine | |
CN112306850A (en) | Test case generation method and device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190219 |
|
RJ01 | Rejection of invention patent application after publication |