WO2020000758A1 - 服务器的验收方法、装置、计算机设备及存储介质 - Google Patents

服务器的验收方法、装置、计算机设备及存储介质 Download PDF

Info

Publication number
WO2020000758A1
WO2020000758A1 PCT/CN2018/109286 CN2018109286W WO2020000758A1 WO 2020000758 A1 WO2020000758 A1 WO 2020000758A1 CN 2018109286 W CN2018109286 W CN 2018109286W WO 2020000758 A1 WO2020000758 A1 WO 2020000758A1
Authority
WO
WIPO (PCT)
Prior art keywords
host
configuration information
server
acceptance
preset
Prior art date
Application number
PCT/CN2018/109286
Other languages
English (en)
French (fr)
Inventor
王海
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020000758A1 publication Critical patent/WO2020000758A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration
    • H04L41/0869Validating the configuration within one network element

Definitions

  • the present application relates to the field of computer technology, and in particular, to a server acceptance method, device, computer equipment, and storage medium.
  • the management of server clusters is becoming more and more important, but before the server is put on the shelves, it is necessary to check and accept the newly purchased server.
  • the existing acceptance method is to check and accept by manual inspection.
  • the number of newly purchased servers is large, and the manual viewing method is slow.
  • the industry also installs the operating system in the server, collects the server's configuration information through the operating system, and compares the configuration information with the server's configuration information provided by the customer at the time of purchase. This method requires the server to enter the main network at the same time. An operating system is required to achieve this, so the newly purchased server cannot be inspected and accepted in a timely manner. Therefore, it is necessary to provide a server acceptance method to solve the above problems.
  • This application provides a server acceptance method, device, computer equipment, and storage medium, which aims to achieve fast and automatic acceptance of new servers.
  • This application provides a server acceptance method, which includes:
  • the demand change information includes host information of a server, and the host information includes a host identifier
  • the host configuration information is verified based on a preset acceptance rule to obtain a verification result.
  • This application provides a server acceptance device, which includes:
  • An address configuration unit configured to configure a remote management network address for the server if it is detected that the server is on the network
  • a first obtaining unit configured to obtain demand change information, where the demand change information includes host information of a server, and the host information includes a host identifier;
  • a generating and sending unit configured to generate a host management task according to the host information, and send the host management task to a terminal so that the terminal displays the host management task, where the host management task includes an acceptance control;
  • a receiving and collecting unit configured to receive an acceptance instruction generated according to triggering an operation of the acceptance control, and collect host configuration information corresponding to the host identifier according to the acceptance instruction;
  • a second obtaining unit configured to obtain target configuration information corresponding to the host identifier
  • An information verification unit is configured to verify the host configuration information based on the target configuration information based on a preset acceptance rule to obtain a verification result.
  • the present application also provides a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor.
  • the processor executes the program, the program provided by the application is implemented. Steps of the server acceptance method according to any one.
  • the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor causes the processor to execute any one of the items provided in the application. Steps of the server acceptance method.
  • the embodiments of the present application provide a server acceptance method, device, computer equipment, and storage medium.
  • the demand change information includes server host information
  • the host information includes a host identifier.
  • the information generates a host management task, sends the host management task to a terminal to cause the terminal to display the host management task, the host management task includes an acceptance control, and receives an acceptance instruction generated according to an operation that triggers the acceptance control, Collecting host configuration information corresponding to the host identifier according to the acceptance instruction; obtaining target configuration information corresponding to the host identifier; and verifying the host configuration information based on a preset acceptance rule based on the target configuration information to obtain a verification result, Then complete the acceptance of the new server.
  • This method does not require the server to install an operating system, and can automatically complete acceptance of the newly added server.
  • FIG. 1 is a schematic flowchart of a server acceptance method according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of sub-steps of the server acceptance method in FIG. 1;
  • FIG. 3 is a schematic flowchart of sub-steps of the server acceptance method in FIG. 1; FIG.
  • FIG. 4 is a schematic flowchart of a server acceptance method according to another embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a server acceptance method according to another embodiment of the present application.
  • FIG. 6 is a schematic flowchart of sub-steps of the server acceptance method in FIG. 5; FIG.
  • FIG. 7 is a schematic block diagram of a server acceptance device according to an embodiment of the present application.
  • FIG. 8 is a schematic block diagram of a server acceptance device according to another embodiment of the present application.
  • FIG. 9 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • the embodiments of the present application provide a server acceptance method, device, computer equipment, and storage medium.
  • the acceptance method is applied to a server of a centralized management platform, and the server can be specifically configured in a management server to implement acceptance of a server in a server cluster.
  • the centralized management platform is a platform software system developed based on out-of-band devices.
  • the platform software system includes a client and a server.
  • the client is configured in the terminal
  • the server is configured in the management server
  • the management server and the terminal are implemented in cooperation.
  • the out-of-band device may be, for example, a baseboard management controller (BMC).
  • BMC baseboard management controller
  • a PC Personal Computer, personal computer
  • REDFISH can also support data center power supply / cooling fields and network switches.
  • FIG. 1 is a schematic flowchart of a server acceptance method according to an embodiment of the present application.
  • the acceptance method of the server is applied to the management server. As shown in FIG. 1, the acceptance method includes steps S101 to S106.
  • a newly-purchased server needs to be installed on the network. Since the server has an out-of-band device (BMC, Baseboard Management Controller, baseboard management controller) installed, the out-of-band device can establish a communication connection with the management server Therefore, it is possible to configure a remote management network address (KVM IP) for a newly-launched server through a centralized management platform.
  • BMC Baseboard Management Controller
  • KVM IP remote management network address
  • the user will submit the requirement change information in the process management tool, such as the requirement change information of some servers in the Itil tool.
  • the requirement change information includes the requirement change name, the submitter , responsible person, demand type and start time, etc.
  • the demand change information also includes host information, the host information includes host brand, host model, host ID, hard disk information, etc., the host ID may be a host serial number (host SN).
  • S103 Generate a host management task according to the host information, and send the host management task to a terminal so that the terminal displays the host management task, where the host management task includes an acceptance control.
  • a host management task is generated and sent to the terminal according to the host information, and the host management task is displayed on a task display interface of a client of the terminal's centralized management platform, which can be specifically corresponding to the generation time of the host management task.
  • the display is performed in the order of display, and it can also be displayed in the order corresponding to the required time of the host management task, of course, it can also be displayed in other ways. It is displayed on the task display interface that the host management task includes an acceptance control, which is used to trigger an acceptance operation on the server.
  • S104 Receive an acceptance instruction generated according to triggering an operation of the acceptance control, and collect host configuration information corresponding to the host identifier according to the acceptance instruction.
  • an acceptance instruction is generated according to the click operation, and the terminal sends the acceptance instruction to the management server, and collects the host according to the acceptance instruction.
  • the acceptance instruction includes a host identifier of the server, for example, a host SN, and collects host configuration information corresponding to the host identifier according to the acceptance instruction.
  • the host configuration information includes index information that needs to be inspected, including hard disk information, Raid information, CPU information, memory information, network card information, NTP, IP, and so on.
  • the acceptance instruction carries the host identifier.
  • S104 includes: sub-steps S104a to S104c, as shown in FIG. 2.
  • S104a Determine the host type of the server corresponding to the host identifier;
  • S104b Determine a preset acquisition script corresponding to the host identifier carried by the acceptance instruction based on a preset correspondence between the host type and the preset acquisition script;
  • S104c Collect host configuration information of the server according to the determined preset collection script.
  • the host type includes host brand and host model, servers of different host brands (such as servers from Huawei and Lenovo), or servers of different models of the same host brand require different collection rules, such as the corresponding interface and data format are not It is the same, so a preset collection script corresponding to the host type of the server needs to be developed in advance.
  • Servers of different manufacturers or servers of the same manufacturer and different models all include different host identifiers.
  • the host type of the corresponding server can be determined.
  • the acceptance instruction is determined.
  • a preset collection script corresponding to the carried host identifier; and the determined preset collection script is run to implement collection of the host configuration information of the server.
  • step S105 includes: sub-steps S105a-S105b, as shown in FIG. S105a: Acquire factory configuration information and demand configuration information corresponding to the host identifier; S105b: Use the factory configuration information and demand configuration information as the target configuration information.
  • the factory configuration information includes hard disk information, Raid information, CPU, memory, and network card information;
  • the demand configuration information includes Root account password, NTP IP, BMC version, and BIOS version.
  • additional requirements configuration information was also accepted to ensure the comprehensiveness of the acceptance and the safe use of the server.
  • the preset acceptance rule is a specific acceptance condition, such as whether the hard disk information in the host configuration information is consistent with the hard disk information in the target configuration information, etc .; the Raid in the host configuration information Whether the configuration information (the current Raid configuration information of the host) is the same as the Raid configuration information in the target configuration information, or whether the serial numbers of the hard disks are consistent, and so on.
  • the host configuration information is verified by the preset acceptance rule to obtain a verification result, wherein the verification result includes a success result or a failure result.
  • the method further includes the following steps: S107. Invoke a health check tool of the server to detect the health of the server. State to obtain health status information; S108. Add the health status information to the verification result to generate a verification report, and send the verification report to a server manager.
  • the health check tool provided by the server manufacturer is used to automatically check the health of the server, thereby increasing the acceptance items of the server and ensuring the safe use of the server.
  • a remote management network address is configured for the server through a centralized management platform; obtaining demand change information, the demand change information includes host information of the server, the host information includes a host identifier, and generating a host management task according to the host information Sending the host management task to a terminal so that the terminal displays the host management task, the host management task includes an acceptance control; receiving an acceptance instruction generated according to an operation that triggers the acceptance control, and according to the acceptance instruction Collecting host configuration information corresponding to the host identifier; obtaining target configuration information corresponding to the host identifier; and verifying the host configuration information based on the preset configuration rules based on the target configuration information to obtain a verification result, and then complete the addition of Acceptance of the server.
  • This method does not require the server to install an operating system, and can automatically complete acceptance of the newly added server.
  • FIG. 5 is a schematic flowchart of a server acceptance method according to another embodiment of the present application.
  • the acceptance method of the server is applied to the management server. As shown in FIG. 5, the acceptance method includes steps S201 to S207.
  • the server of the centralized management platform is used to configure a remote management network address for the newly-launched network server, and the remote management network address is a KVM IP address.
  • the request change information of some servers is submitted in the Itil tool.
  • the request change information includes a request change name, a submitter, a person in charge, a request type, and a start time, and the request change information further includes host information.
  • the host information includes a host brand, a host model, a host identifier, and hard disk information, etc.
  • the host identifier may be a host serial number (host SN).
  • S203 Generate a host management task according to the host information, and send the host management task to a terminal so that the terminal displays the host management task, where the host management task includes an acceptance control.
  • the task display interface in the centralized management platform shows that the host management task includes an acceptance control, and the acceptance control is used to trigger an acceptance operation on the server.
  • S204 Receive an acceptance instruction generated according to triggering an operation of the acceptance control, and collect host configuration information corresponding to the host identifier according to the acceptance instruction, where the host configuration information includes software configuration information.
  • the host configuration information includes hardware configuration information and software configuration information
  • the hardware configuration information includes: hard disk information, Raid information, CPU information, memory information, and network card information, etc .
  • the software configuration information includes NTP IP address and root account.
  • the target configuration information is comparative information used for server acceptance, including factory configuration information provided by a server manufacturer and customer setting requirement information according to different needs.
  • the target configuration information corresponding to the host identifier may be obtained from a third-party management tool.
  • the third-party management tool is management software used by a purchasing unit.
  • the preset acceptance rule is a specific acceptance condition
  • the host configuration information is verified by the preset acceptance rule to obtain a verification result, where the verification result includes a success result or a failure result.
  • different verification results correspond to different preset processing strategies. For example, if the verification is successful, the verification result is displayed in a first preset display mode, and the verification result is stored in a historical verification record. For example, if the verification fails, the second preset is used. The display mode displays the verification result, and displays the reason corresponding to the verification failure.
  • the first preset display mode is different from the second preset display mode. For example, the first preset display mode is displayed in black font, and the second preset display mode is displayed in red font.
  • the host configuration information includes hardware configuration information and software configuration information.
  • S207 includes: sub-steps S207a and S207b, as shown in FIG. 6.
  • S207a If the verification result is a verification failure result, determine whether the host configuration information corresponding to the verification failure result is software configuration information;
  • S207b If the host configuration information corresponding to the verification failure result is software configuration information, send an automatic change
  • the instruction to the server causes the server to modify incorrect software configuration information according to the automatic change instruction. Specifically, in the verification, it is possible to automatically change configuration items that have failed verification in the software configuration information, such as NTP configuration.
  • FIG. 7 is a schematic block diagram of a server acceptance device according to an embodiment of the present application. As shown in FIG. 7, corresponding to the above server acceptance method, this application also provides a server acceptance device.
  • the acceptance device includes a unit for executing the acceptance method of the server, and the device may be configured in the server.
  • the acceptance device 400 includes: an address configuration unit 401, a first acquisition unit 402, a generation transmission unit 403, a reception acquisition unit 404, a second acquisition unit 405, an information verification unit 406, a health check unit 407, and a generation transmission unit 408.
  • the address configuration unit 401 is configured to configure a remote management network address for the server if it is detected that the server is on the network.
  • the first obtaining unit 402 is configured to obtain demand change information, where the demand change information includes host information of a server, and the host information includes a host identifier.
  • a generating and sending unit 403 is configured to generate a host management task according to the host information, and send the host management task to a terminal so that the terminal displays the host management task, where the host management task includes an acceptance control; specifically, in the The task display interface of the centralized management platform displays the host management task.
  • the receiving and collecting unit 404 is configured to receive an acceptance instruction generated according to triggering an operation of the acceptance control, collect host configuration information corresponding to the host identifier according to the acceptance instruction, and the acceptance instruction carries the host identifier.
  • the receiving and collecting unit 404 includes: a type determining sub-unit 4041 for determining the host type of the server corresponding to the host identifier; and a script determining sub-unit 4042 for determining a preset type based on the host type and a preset collecting script. Correspondence, determine a preset collection script corresponding to the host identifier carried in the acceptance instruction; an information collection subunit 4043 is configured to collect host configuration information of the server according to the determined preset collection script.
  • the second obtaining unit 405 is configured to obtain target configuration information corresponding to the host identifier.
  • the second obtaining unit 405 includes: a factory information obtaining subunit 4051 configured to obtain the factory configuration information corresponding to the host identifier; and a requirement information obtaining subunit 4052 configured to obtain the requirement configuration information corresponding to the host identifier;
  • a configuration information setting subunit 4053 is configured to use the factory configuration information and demand configuration information as the target configuration information.
  • An information verification unit 406 is configured to verify the host configuration information based on the target configuration information based on a preset acceptance rule to obtain a verification result.
  • the health check unit 407 is configured to call a health check tool of the server to detect the health status of the server to obtain health status information.
  • a generating and sending unit 408 is configured to add the health status information to the verification result to generate a verification report, and send the verification report to a server administrator.
  • FIG. 8 is a schematic block diagram of a server acceptance device according to an embodiment of the present application.
  • the server acceptance device 500 includes: an address configuration unit 501, a first acquisition unit 502, a generation and transmission unit 503, a reception acquisition unit 504, a second acquisition unit 505, an information verification unit 506, and a determination processing unit 507.
  • the address configuration unit 501 is configured to configure a remote management network address for the server if it is detected that the server is on the network.
  • the first obtaining unit 502 is configured to obtain demand change information, where the demand change information includes host information of a server, and the host information includes a host identifier.
  • a generating and sending unit 503 is configured to generate a host management task according to the host information, and send the host management task to a terminal so that the terminal displays the host management task.
  • the host management task includes an acceptance control.
  • the receiving and collecting unit 504 is configured to receive an acceptance instruction generated according to triggering an operation of the acceptance control, and collect, according to the acceptance instruction, host configuration information corresponding to the host identifier, where the host configuration information includes software configuration information.
  • the second obtaining unit 505 is configured to obtain target configuration information corresponding to the host identifier.
  • An information verification unit 506 is configured to verify the host configuration information based on the target configuration information based on a preset acceptance rule to obtain a verification result.
  • the determination processing unit 507 is configured to determine a preset processing strategy according to the verification result, and process the server according to the preset processing strategy to complete acceptance of the server.
  • the determining processing unit 507 includes: an information judging subunit 5071 configured to determine whether the host configuration information corresponding to the verification failure result is software configuration information if the verification result is a verification failure result; an instruction sending subunit 5072 And is configured to send an automatic change instruction to the server if the host configuration information corresponding to the verification failure result is software configuration information, so that the server modifies incorrect software configuration information according to the automatic change instruction.
  • the above apparatus may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in FIG. 9.
  • FIG. 9 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • the computer device 700 device may be a server.
  • the computer device 700 includes a processor 720, a memory, and a network interface 750 connected through a system bus 710.
  • the memory may include a non-volatile storage medium 730 and an internal memory 740.
  • the non-volatile storage medium 730 can store an operating system 731 and a computer program 732.
  • the computer program 732 When executed, it can cause the processor 720 to execute any kind of server acceptance method.
  • the processor 720 is used to provide computing and control capabilities to support the operation of the entire computer device 700.
  • the internal memory 740 provides an environment for running the computer program 732 in the non-volatile storage medium 730.
  • the processor 720 can execute any method of server acceptance.
  • the network interface 750 is used for network communication, such as sending assigned tasks.
  • the structure shown in FIG. 9 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment 700 to which the solution of the present application is applied.
  • the specific computer equipment 700 may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
  • the processor 720 is configured to run a program code stored in a memory to implement the following steps:
  • the server If it is detected that the server is on the network, configure a remote management network address for the server; obtain demand change information, the demand change information includes host information of the server, the host information includes a host identifier, and generate host management based on the host information
  • a task sending the host management task to a terminal to cause the terminal to display the host management task, the host management task including an acceptance control; receiving an acceptance instruction generated according to an operation that triggers the acceptance control, and according to the acceptance
  • the instruction collects host configuration information corresponding to the host identifier; acquires target configuration information corresponding to the host identifier; and verifies the host configuration information based on a preset acceptance rule based on the target configuration information to obtain a verification result.
  • the acceptance instruction carries the host identifier
  • the processor 720 is configured to run program code stored in the memory to implement the collection of host configuration information of the server according to the acceptance instruction.
  • the script collects host configuration information of the server.
  • the processor 720 is configured to run program code stored in a memory to implement the target configuration information, and to verify the host configuration information based on a preset acceptance rule to obtain a verification result, and then implement The following steps:
  • a preset processing strategy is determined according to the verification result, and the server is processed according to the preset processing strategy to complete acceptance of the server.
  • the host configuration information includes software configuration information
  • the processor 720 is configured to run program code stored in a memory to implement the determining a preset processing strategy according to the verification result, and according to the preset
  • the specific steps are implemented as follows:
  • the verification result is a verification failure result, determining whether the host configuration information corresponding to the verification failure result is software configuration information; if the host configuration information corresponding to the verification failure result is software configuration information, sending an automatic change instruction to the The server causes the server to modify incorrect software configuration information according to the automatic change instruction.
  • the processor 720 is configured to run program code stored in a memory to implement the target configuration information, and to verify the host configuration information based on a preset acceptance rule to obtain a verification result, and then implement The following steps:
  • the processor 720 is configured to run the program code stored in the memory to achieve the target configuration information of the server corresponding to the host identifier, and specifically implement the following steps:
  • the processor 720 is configured to run program code stored in a memory to implement the display of the host management task in the centralized management platform, and specifically implement the following steps: in the centralized management platform
  • the task display interface displays the host management task.
  • the processor 720 may be a central processing unit (CPU), and the processor 720 may also be another general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor, or the processor may be any conventional processor.
  • FIG. 9 does not constitute a limitation on the computer device 700, and may include more or fewer components than shown in the figure, or combine some components, or different components. Layout.
  • the computer program can be stored in a storage medium, which is a computer-readable medium. Read storage media.
  • the computer program may be stored in a storage medium of a computer system and executed by at least one processor in the computer system to implement the process steps including the embodiments of the methods described above.
  • the computer-readable storage medium may be any medium that can store program code, such as a magnetic disk, an optical disk, a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a magnetic disk, or an optical disk.
  • program code such as a magnetic disk, an optical disk, a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a magnetic disk, or an optical disk.
  • the disclosed apparatus and method for server acceptance may be implemented in other ways.
  • the embodiment of the acceptance device of the server described above is merely exemplary.
  • the division of each unit is only a logical function division, and there may be another division manner in actual implementation.
  • multiple units or components may be combined or integrated into another system, or some features may be ignored or not implemented.
  • the units in the apparatus of the embodiment of the present application may be combined, divided, and deleted according to actual needs.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of this application is essentially a part that contributes to the existing technology, or all or part of the technical solution may be embodied in the form of a software product, which is stored in a storage medium. Included are instructions for causing a computer device (which may be a personal computer, a terminal, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application.

Abstract

本申请公开了一种服务器的验收方法、装置、计算机设备及存储介质,方法包括:根据所述主机信息生成主机管理任务并发送至终端,主机管理任务包括验收控件,用于触发审查验证指令;根据该指令采集主机标识对应的主机配置信息;获取目标配置信息;根据目标配置信息,基于预设验收规则验证所述主机配置信息以完成验收。

Description

服务器的验收方法、装置、计算机设备及存储介质
本申请要求于2018年6月29日提交中国专利局、申请号为201810696057.8、发明名称为“服务器的验收方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,尤其涉及一种服务器的验收方法、装置、计算机设备及存储介质。
背景技术
目前,随着互联网技术领域的发展,对于服务器集群的管理越来越重要,但是在服务器上架之前,需要对新购买的服务器进行验收,然而现有的验收方法是通过人工查看方式进行验收,一般新购买的服务器的数量较多,人工查看方式较慢。此外,业内还有通过在服务器中安装操作系统,通过操作系统来收集服务器的配置信息,将该配置信息与采购时客户提供服务器的配置信息做比对进行验收,此方式需要服务器进入主网同时需要安装操作系统才能实现,因此无法及时对新采购的服务器进行验收。因此,有必要提供一种服务器的验收方法以解决上述问题。
发明内容
本申请提供了一种服务器的验收方法、装置、计算机设备及存储介质,旨在实现快速自动地验收新增服务器。
本申请提供了一种服务器的验收方法,其包括:
若检测到服务器上架组网,为所述服务器配置远程管理网络地址;
获取需求变更信息,所述需求变更信息包括服务器的主机信息,所述主机信息包括主机标识;
根据所述主机信息生成主机管理任务,发送所述主机管理任务至终端以使所述终端显示所述主机管理任务,所述主机管理任务包括验收控件;
接收根据触发所述验收控件的操作而生成的验收指令,根据所述验收指令采集所述主机标识对应的主机配置信息;
获取所述主机标识对应的目标配置信息;
根据所述目标配置信息,基于预设验收规则验证所述主机配置信息以得到验证结果。
本申请提供了一种服务器的验收装置,其包括:
地址配置单元,用于若检测到服务器上架组网,为所述服务器配置远程管理网络地址;
第一获取单元,用于获取需求变更信息,所述需求变更信息包括服务器的主机信息,所述主机信息包括主机标识;
生成发送单元,用于根据所述主机信息生成主机管理任务,发送所述主机管理任务至终端以使所述终端显示所述主机管理任务,所述主机管理任务包括验收控件;
接收采集单元,用于接收根据触发所述验收控件的操作而生成的验收指令,根据所述验收指令采集所述主机标识对应的主机配置信息;
第二获取单元,用于获取所述主机标识对应的目标配置信息;
信息验证单元,用于根据所述目标配置信息,基于预设验收规则验证所述主机配置信息以得到验证结果。
本申请还提供了一种计算机设备,其包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述程序时实现本申请提供的任意一项所述的服务器的验收方法的步骤。
本申请还提供了一种计算机可读存储介质,其中所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器执行本申请提供的任意一项所述的服务器的验收方法的步骤。
本申请实施例提供了一种服务器的验收方法、装置、计算机设备及存储介质,通过获取需求变更信息,所述需求变更信息包括服务器的主机信息,所述主机信息包括主机标识;根据所述主机信息生成主机管理任务,发送所述主机管理任务至终端以使所述终端显示所述主机管理任务,所述主机管理任务包括验收控件;接收根据触发所述验收控件的操作而生成的验收指令,根据所述验收指令采集所述主机标识对应的主机配置信息;获取所述主机标识对应的目标 配置信息;根据所述目标配置信息,基于预设验收规则验证所述主机配置信息以得到验证结果,进而完成对新增服务器的验收。该方法无需服务器安装操作系统,即可自动完成对新增服务器的验收。
附图说明
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请一实施例提供的一种服务器的验收方法的示意流程图;
图2是图1中服务器的验收方法的子步骤示意流程图;
图3是图1中服务器的验收方法的子步骤示意流程图;
图4是本申请另一实施例提供的一种服务器的验收方法的示意流程图;
图5是本申请又一实施例提供的一种服务器的验收方法的示意流程图;
图6是图5中服务器的验收方法的子步骤示意流程图;
图7是本申请一实施例提供的一种服务器的验收装置的示意性框图;
图8是本申请又一实施例提供的一种服务器的验收装置的示意性框图;
图9是本申请一实施例提供的一种计算机设备的示意性框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请实施例提供了一种服务器的验收方法、装置、计算机设备和存储介质。该验收方法应用于集中管理平台的服务端,该服务端具体可被配置于管理服务器中,以实现对服务器集群中的服务器进行验收。
其中,该集中管理平台为基于带外设备而开发的平台软件系统,该平台软件系统括客户端和服务端,其中客户端配置终端中,服务端配置在管理服务器中,管理服务器和终端配合实现对服务器集群中的服务器进行集中管理。该带 外设备可例如为BMC(Baseboard Management Controller,基板管理控制器)。在服务器安装该带外设备的情况下,基于IPMI/REDFISH协议即可开发出PC(Personal Computer,个人计算机)硬件运维自动化平台,也称为带外管理平台。REDFISH除了支持服务器,还可支持数据中心供电/冷却领域以及网络交换机。其采用基础架构的RESTful API行业标准,使用HTTPS协议和JSON数据格式,更容易与DevOps工具对接,基于IPMI和REDFISH这套业界标准,为开发一套工具以获取PC硬件的物理状态数据,同时也可以对其远程管理提供了可能。若再将此数据及管理功能集中,就可以搭建一套PC硬件运维管理平台,即所述集中管理平台。
请参阅图1,图1是本申请一实施例提供的一种服务器的验收方法的示意流程图。该服务器的验收方法应用于管理服务器中,如图1所示,该验收方法包括步骤S101~S106。
S101、若检测到服务器上架组网,为所述服务器配置远程管理网络地址。
在本实施例中,对于新采购的服务器需要上架组网,由于该服务器中安装有带外设备(BMC,Baseboard Management Controller,基板管理控制器),通过该带外设备可与管理服务器建立通信连接,由此可实现通过集中管理平台为新上架组网的服务器配置远程管理网络地址(KVM IP)。
S102、获取需求变更信息,所述需求变更信息包括所述服务器的主机信息,所述主机信息包括主机标识。
在本实施例中,由于某种需求和变更,因此用户会在流程管理工具提交需求变更信息,比如在Itil工具提交某些服务器的需求变更信息,所述需求变更信息包括需求变更名、提交人、负责人、需求类型和开始时间等,所述需求变更信息还包括主机信息,所述主机信息包括主机品牌、主机型号、主机标识和硬盘信息等,所述主机标识可为主机序列号(主机SN)。
S103、根据所述主机信息生成主机管理任务,发送所述主机管理任务至终端以使所述终端显示所述主机管理任务,所述主机管理任务包括验收控件。
在本实施例中,将根据所述主机信息生成主机管理任务发送至终端中,在终端的集中管理平台的客户端的任务展示界面显示所述主机管理任务,具体可以按照主机管理任务的生成时间对应的顺序进行显示,也可以按照主机管理任务的需求时间对应的顺序进行显示,当然也可以采用其他方式显示。在所述任 务展示界面显示所述主机管理任务中包括验收控件,所述验收控件用于触发对服务器的验收操作。
S104、接收根据触发所述验收控件的操作而生成的验收指令,根据所述验收指令采集所述主机标识对应的主机配置信息。
在本实施例中,比如,当检测到用户点击该验收控件时,根据该点击操作生成验收指令,所述终端将所述验收指令发送至所述管理服务器,根据所述验收指令采集所述主机标识对应的主机配置信息。其中,所述验收指令中包括所述服务器的主机标识,比如为主机SN,根据所述验收指令采集所述主机标识对应的主机配置信息。其中,所述主机配置信息包括需要验收的指标信息,包括:硬盘信息、Raid信息、CPU信息、内存信息、网卡信息和NTP IP等等。
在一实施例中,例如本实施例中,所述验收指令携带所述主机标识,基于此步骤S104包括:子步骤S104a~S104c,如图2所示。S104a、确定所述主机标识对应的服务器的主机类型;S104b、基于主机类型与预设采集脚本之间预设的对应关系,确定所述验收指令携带的主机标识对应的预设采集脚本;S104c、根据确定的预设采集脚本采集所述服务器的主机配置信息。
具体地,主机类型包括主机品牌和主机型号等,不同主机品牌的服务器(比如华为和联想的服务器),或者相同主机品牌不同型号的服务器需要不同的采集规则,比如对应的接口和数据格式均不相同,因此需要在预先开发出与服务器的主机类型相对应的预设采集脚本。不同厂家的服务器或相同的厂家不同型号的服务器均包括不同主机标识,根据主机标识可以确定其对应的服务器的主机类型,基于主机类型与预设采集脚本之间的对应关系,确定所述验收指令携带的主机标识对应的预设采集脚本;由此运行确定的预设采集脚本实现采集所述服务器的主机配置信息。
S105、获取所述主机标识对应的目标配置信息。
在本实施例中,所述目标配置信息为用于服务器验收的比较信息,包括服务器厂家提供的出厂配置信息以及客户根据不同的需求设定需求信息等。基于此,步骤S105包括:子步骤S105a~S105b,如图3所示。S105a、获取所述主机标识对应的出厂配置信息和需求配置信息;S105b、将所述出厂配置信息和需求配置信息作为所述目标配置信息。
具体地,所述出厂配置信息包括硬盘信息、Raid信息、CPU、内存和网卡 等信息;所述需求配置信息包括Root账号密码、NTP IP、BMC版本和BIOS版本等信息。除了验收出厂配置信息外,还验收了额外了需求配置信息,确保了验收的全面性和服务器的安全投入使用。
S106、根据所述目标配置信息,基于预设验收规则验证所述主机配置信息以得到验证结果。
在本实施例中,所述预设验收规则为具体的验收条件,比如所述主机配置信息中的硬盘信息与所述目标配置信息中的硬盘信息是否一致等;所述主机配置信息中的Raid配置信息(主机当前Raid配置信息)与所述目标配置信息中的Raid配置信息是否相同,或者硬盘序列号是否一致等等。通过所述预设验收规则验证所述主机配置信息以得到验证结果,其中所述验证结果包括成功结果或失败结果。
此外,在一实施例中,例如本实施例中,如图4所示,在步骤S106之后,所述方法还包括以下步骤:S107、调用所述服务器的健康状态检查工具检测所述服务器的健康状态以得到健康状态信息;S108、将所述健康状态信息添加在所述验证结果以生成验证报表,并将所述验证报表发送至服务器管理人员。具体地,通过调用服务器厂商自带的健康检查工具实现自动对服务器健康做检查,由此增加服务器的验收项,确保了服务器的安全使用。
上述实施例通过集中管理平台为所述服务器配置远程管理网络地址;获取需求变更信息,所述需求变更信息包括服务器的主机信息,所述主机信息包括主机标识;根据所述主机信息生成主机管理任务,发送所述主机管理任务至终端以使所述终端显示所述主机管理任务,所述主机管理任务包括验收控件;接收根据触发所述验收控件的操作而生成的验收指令,根据所述验收指令采集所述主机标识对应的主机配置信息;获取所述主机标识对应的目标配置信息;根据所述目标配置信息,基于预设验收规则验证所述主机配置信息以得到验证结果,进而完成对新增服务器的验收。该方法无需服务器安装操作系统,即可自动完成对新增服务器的验收。
请参阅图5,图5是本申请另一实施例提供的一种服务器的验收方法的示意流程图。该服务器的验收方法应用于管理服务器,如图5所示,该验收方法包括步骤S201~S207。
S201、若检测到服务器上架组网,为所述服务器配置远程管理网络地址。
具体地,是通过集中管理平台的服务端为新上架组网的服务器配置远程管理网络地址,该远程管理网络地址为KVM IP地址。
S202、获取需求变更信息,所述需求变更信息包括服务器的主机信息,所述主机信息包括主机标识。
具体地,在Itil工具提交某些服务器的需求变更信息,所述需求变更信息包括需求变更名、提交人、负责人、需求类型和开始时间等,所述需求变更信息还包括主机信息,所述主机信息包括主机品牌、主机型号、主机标识和硬盘信息等,所述主机标识可为主机序列号(主机SN)。
S203、根据所述主机信息生成主机管理任务,发送所述主机管理任务至终端以使所述终端显示所述主机管理任务,所述主机管理任务包括验收控件。
具体地,在所述集中管理平台中的任务展示界面显示所述主机管理任务中包括验收控件,所述验收控件用于触发对服务器的验收操作。
S204、接收根据触发所述验收控件的操作而生成的验收指令,根据所述验收指令采集所述主机标识对应的主机配置信息,所述主机配置信息包括软件配置信息。
在本实施例中,所述主机配置信息包括硬件配置信息和软件配置信息,所述硬件配置信息包括:硬盘信息、Raid信息、CPU信息、内存信息和网卡信息等;所述软件配置信息包括NTP IP地址和root账号等。
S205、获取所述主机标识对应的目标配置信息。
具体地,所述目标配置信息为用于服务器验收的比较信息,包括服务器厂家提动的出厂配置信息以及客户根据不同的需求设定需求信息。可以从第三方管理工具中获取所述主机标识对应的目标配置信息。所述第三方管理工具为采购单位用的管理软件。
S206、根据所述目标配置信息,基于预设验收规则验证所述主机配置信息以得到验证结果。
具体地,所述预设验收规则为具体的验收条件,通过所述预设验收规则验证所述主机配置信息以得到验证结果,其中所述验证结果包括成功结果或失败结果。
S207、根据所述验证结果确定预设处理策略,按照所述预设处理策略处理所述服务器,以完成对所述服务器的验收。
具体地,不同的验证结果对应不同预设处理策略,比如验证成功,通过第一预设显示方式,显示所述验证结果,并将验证结果保存历史验证记录;比如验证失败,通过第二预设显示方式显示所述验证结果,并显示验证失败对应的原因。其中第一预设显示方式和第二预设显示方式不同,比如第一预设显示方式用黑色字体显示,第二预设显示方式用红色字体显示。
其中,对所述主机配置信息包括硬件配置信息和软件配置信息,基于此步骤S207包括:子步骤S207a和S207b,如图6所示。S207a、若所述验证结果为验证失败结果,判断所述验证失败结果对应的主机配置信息是否为软件配置信息;S207b、若所述验证失败结果对应的主机配置信息为软件配置信息,发送自动更改指令至所述服务器使得所述服务器根据所述自动更改指令修改错误的软件配置信息。具体地,在验证中,实现对于软件配置信息中有验证失败的配置项,通过自动更改,比如NTP配置等。
图7是本申请实施例提供的一种服务器的验收装置的示意性框图。如图7所示,对应于以上服务器的验收方法,本申请还提供一种服务器的验收装置。该验收装置包括用于执行上述服务器的验收方法的单元,该装置可以被配置于服务器中。该验收装置400包括:地址配置单元401、第一获取单元402、生成发送单元403、接收采集单元404、第二获取单元405、信息验证单元406、健康检查单元407和生成发送单元408。
地址配置单元401,用于若检测到服务器上架组网,为所述服务器配置远程管理网络地址。
第一获取单元402,用于获取需求变更信息,所述需求变更信息包括服务器的主机信息,所述主机信息包括主机标识。
生成发送单元403,用于根据所述主机信息生成主机管理任务,发送所述主机管理任务至终端以使所述终端显示所述主机管理任务,所述主机管理任务包括验收控件;具体地,在所述集中管理平台的任务展示界面显示所述主机管理任务。
接收采集单元404,用于接收根据触发所述验收控件的操作而生成的验收指令,根据所述验收指令采集所述主机标识对应的主机配置信息,所述验收指令携带所述主机标识。
其中,接收采集单元404,包括:类型确定子单元4041,用于确定所述主 机标识对应的服务器的主机类型;脚本确定子单元4042,用于基于主机类型与预设采集脚本之间预设的对应关系,确定所述验收指令携带的主机标识对应的预设采集脚本;信息采集子单元4043,用于根据确定的预设采集脚本采集所述服务器的主机配置信息。
第二获取单元405,用于获取所述主机标识对应的目标配置信息。
其中,第二获取单元405,包括:出厂信息获取子单元4051,用于获取所述主机标识对应的出厂配置信息;需求信息获取子单元4052,用于获取所述主机标识对应的需求配置信息;配置信息设置子单元4053,用于将所述出厂配置信息和需求配置信息作为所述目标配置信息。
信息验证单元406,用于根据所述目标配置信息,基于预设验收规则验证所述主机配置信息以得到验证结果。
健康检查单元407,用于调用所述服务器的健康状态检查工具检测所述服务器的健康状态以得到健康状态信息。
生成发送单元408,用于将所述健康状态信息添加在所述验证结果以生成验证报表,并将所述验证报表发送至服务器管理人员。
请参阅图8,图8是本申请实施例提供的一种服务器的验收装置的示意性框图。如图8所示,服务器的验收装置500包括:地址配置单元501、第一获取单元502、生成发送单元503、接收采集单元504、第二获取单元505、信息验证单元506和确定处理单元507。
地址配置单元501,用于若检测到服务器上架组网,为所述服务器配置远程管理网络地址。
第一获取单元502,用于获取需求变更信息,所述需求变更信息包括服务器的主机信息,所述主机信息包括主机标识。
生成发送单元503,用于根据所述主机信息生成主机管理任务,发送所述主机管理任务至终端以使所述终端显示所述主机管理任务,所述主机管理任务包括验收控件。
接收采集单元504,用于接收根据触发所述验收控件的操作而生成的验收指令,根据所述验收指令采集所述主机标识对应的主机配置信息,所述主机配置信息包括软件配置信息。
第二获取单元505,用于获取所述主机标识对应的目标配置信息。
信息验证单元506,用于根据所述目标配置信息,基于预设验收规则验证所述主机配置信息以得到验证结果。
确定处理单元507,用于根据所述验证结果确定预设处理策略,按照所述预设处理策略处理所述服务器,以完成对所述服务器的验收。
具体地,确定处理单元507,包括:信息判断子单元5071,用于若所述验证结果为验证失败结果,判断所述验证失败结果对应的主机配置信息是否为软件配置信息;指令发送子单元5072,用于若所述验证失败结果对应的主机配置信息为软件配置信息,发送自动更改指令至所述服务器使得所述服务器根据所述自动更改指令修改错误的软件配置信息。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的服务器的验收装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
上述装置可以实现为一种计算机程序的形式,计算机程序可以在如图9所示的计算机设备上运行。
请参阅图9,图9是本申请实施例提供的一种计算机设备的示意性框图。该计算机设备700设备可以是服务器。
参照图9,该计算机设备700包括通过系统总线710连接的处理器720、存储器和网络接口750,其中,存储器可以包括非易失性存储介质730和内存储器740。
该非易失性存储介质730可存储操作系统731和计算机程序732。该计算机程序732被执行时,可使得处理器720执行任意一种服务器的验收方法。
该处理器720用于提供计算和控制能力,支撑整个计算机设备700的运行。
该内存储器740为非易失性存储介质730中的计算机程序732的运行提供环境,该计算机程序732被处理器720执行时,可使得处理器720执行任意一种服务器的验收方法。
该网络接口750用于进行网络通信,如发送分配的任务等。本领域技术人员可以理解,图9中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备700的限定,具体的计算机设备700可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。其中,所述处理器720用于运行存储在存储器中的程序代 码,以实现如下步骤:
若检测到服务器上架组网,为所述服务器配置远程管理网络地址;获取需求变更信息,所述需求变更信息包括服务器的主机信息,所述主机信息包括主机标识;根据所述主机信息生成主机管理任务,发送所述主机管理任务至终端以使所述终端显示所述主机管理任务,所述主机管理任务包括验收控件;接收根据触发所述验收控件的操作而生成的验收指令,根据所述验收指令采集所述主机标识对应的主机配置信息;获取所述主机标识对应的目标配置信息;根据所述目标配置信息,基于预设验收规则验证所述主机配置信息以得到验证结果。
在一实施例中,所述验收指令携带所述主机标识,所述处理器720用于运行存储在存储器中的程序代码实现所述根据所述验收指令采集所述服务器的主机配置信息时,具体实现如下步骤:
确定所述主机标识对应的服务器的主机类型;基于主机类型与预设采集脚本之间预设的对应关系,确定所述验收指令携带的主机标识对应的预设采集脚本;根据确定的预设采集脚本采集所述服务器的主机配置信息。
在一实施例中,所述处理器720用于运行存储在存储器中的程序代码实现所述根据所述目标配置信息,基于预设验收规则验证所述主机配置信息以得到验证结果之后,还实现如下步骤:
根据所述验证结果确定预设处理策略,按照所述预设处理策略处理所述服务器,以完成对所述服务器的验收。
在一实施例中,所述主机配置信息包括软件配置信息,所述处理器720用于运行存储在存储器中的程序代码实现所述根据所述验证结果确定预设处理策略,按照所述预设处理策略处理所述服务器时,具体实现如下步骤:
若所述验证结果为验证失败结果,判断所述验证失败结果对应的主机配置信息是否为软件配置信息;若所述验证失败结果对应的主机配置信息为软件配置信息,发送自动更改指令至所述服务器使得所述服务器根据所述自动更改指令修改错误的软件配置信息。
在一实施例中,所述处理器720用于运行存储在存储器中的程序代码实现所述根据所述目标配置信息,基于预设验收规则验证所述主机配置信息以得到验证结果之后,还实现如下步骤:
调用所述服务器的健康状态检查工具检测所述服务器的健康状态以得到健 康状态信息;将所述健康状态信息添加在所述验证结果以生成验证报表,并将所述验证报表发送至服务器管理人员。
在一实施例中,所述处理器720用于运行存储在存储器中的程序代码实现所述获取所述主机标识对应的服务器的目标配置信息时,具体实现如下步骤:
获取所述主机标识对应的出厂配置信息;获取所述主机标识对应的需求配置信息;将所述出厂配置信息和需求配置信息作为所述目标配置信息。
在一实施例中,所述处理器720用于运行存储在存储器中的程序代码实现所述在所述集中管理平台中显示所述主机管理任务时,具体实现如下步骤:在所述集中管理平台的任务展示界面显示所述主机管理任务。
应当理解,在本申请实施例中,处理器720可以是中央处理单元(Central Processing Unit,CPU),该处理器720还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
本领域技术人员可以理解,图9中示出的计算机设备700结构并不构成对计算机设备700的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
本领域普通技术人员可以理解的是实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,计算机程序可存储于一存储介质中,该存储介质为计算机可读存储介质。如本发明实施例中,该计算机程序可存储于计算机系统的存储介质中,并被该计算机系统中的至少一个处理器执行,以实现包括如上述各方法的实施例的流程步骤。
该计算机可读存储介质可以是磁碟、光盘、U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用 来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的几个实施例中,应该理解到,所揭露的服务器的验收装置和方法,可以通过其它的方式实现。例如,以上所描述的服务器的验收装置实施例仅仅是示意性的。例如,各个单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。
本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本申请实施例装置中的单元可以根据实际需要进行合并、划分和删减。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,终端,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (20)

  1. 一种服务器的验收方法,其包括:
    获取需求变更信息,所述需求变更信息包括所述服务器的主机信息,所述主机信息包括主机标识;
    根据所述主机信息生成主机管理任务,发送所述主机管理任务至终端以使所述终端显示所述主机管理任务,所述主机管理任务包括验收控件;
    接收根据触发所述验收控件的操作而生成的验收指令,根据所述验收指令采集所述主机标识对应的主机配置信息;
    获取所述主机标识对应的目标配置信息;
    根据所述目标配置信息,基于预设验收规则验证所述主机配置信息得到验证结果。
  2. 根据权利要求1所述的服务器的验收方法,其中,所述验收指令携带所述主机标识;
    所述根据所述验收指令采集所述主机标识对应的主机配置信息,包括:
    确定所述主机标识对应的服务器的主机类型;
    基于主机类型与预设采集脚本之间预设的对应关系,确定所述验收指令携带的主机标识对应的预设采集脚本;
    根据确定的预设采集脚本采集所述服务器的主机配置信息。
  3. 根据权利要求1所述的服务器的验收方法,其中,所述根据所述目标配置信息,基于预设验收规则验证所述主机配置信息以得到验证结果之后,还包括:
    根据所述验证结果确定预设处理策略,按照所述预设处理策略处理所述服务器。
  4. 根据权利要求3所述的服务器的验收方法,其中,所述主机配置信息包括软件配置信息;
    所述根据所述验证结果确定预设处理策略,按照所述预设处理策略处理所述服务器,包括:
    若所述验证结果为验证失败结果,判断所述验证失败结果对应的主机配置信息是否为软件配置信息;
    若所述验证失败结果对应的主机配置信息为软件配置信息,发送自动更改指令至所述服务器使得所述服务器根据所述自动更改指令修改错误的软件配置信息。
  5. 根据权利要求1所述的服务器的验收方法,其中,在所述根据所述目标配置信息,基于预设验收规则验证所述主机配置信息以得到验证结果之后,还包括:
    调用所述服务器的健康状态检查工具检测所述服务器的健康状态以得到健康状态信息;
    将所述健康状态信息添加在所述验证结果以生成验证报表,并将所述验证报表发送至服务器管理人员。
  6. 根据权利要求1所述的服务器的验收方法,其中,所述获取所述主机标识对应的服务器的目标配置信息,包括:
    获取所述主机标识对应的出厂配置信息和需求配置信息;以及
    将所述出厂配置信息和需求配置信息作为所述目标配置信息。
  7. 根据权利要求1所述的服务器的验收方法,其中,所述获取需求变更信息之前,还包括:若检测到服务器上架组网,为所述服务器配置远程管理网络地址,并执行所述获取需求变更信息的步骤。
  8. 一种服务器的验收装置,其包括:
    第一获取单元,用于获取需求变更信息,所述需求变更信息包括服务器的主机信息,所述主机信息包括主机标识;
    生成发送单元,用于根据所述主机信息生成主机管理任务,发送所述主机管理任务至终端以使所述终端显示所述主机管理任务,所述主机管理任务包括验收控件;
    接收采集单元,用于接收到根据触发所述验收控件的操作而生成的验收指令,根据所述验收指令采集所述主机标识对应的主机配置信息;
    第二获取单元,用于获取所述主机标识对应的目标配置信息;
    信息验证单元,用于根据所述目标配置信息,基于预设验收规则验证所述主机配置信息以得到验证结果。
  9. 一种计算机设备,其包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下 步骤:
    获取需求变更信息,所述需求变更信息包括所述服务器的主机信息,所述主机信息包括主机标识;
    根据所述主机信息生成主机管理任务,发送所述主机管理任务至终端以使所述终端显示所述主机管理任务,所述主机管理任务包括验收控件;
    接收根据触发所述验收控件的操作而生成的验收指令,根据所述验收指令采集所述主机标识对应的主机配置信息;
    获取所述主机标识对应的目标配置信息;
    根据所述目标配置信息,基于预设验收规则验证所述主机配置信息得到验证结果。
  10. 根据权利要求9所述的计算机设备,其中,所述验收指令携带所述主机标识;所述处理器执行所述计算机程序时实现所述根据所述验收指令采集所述主机标识对应的主机配置信息时,具体实现以下步骤:
    确定所述主机标识对应的服务器的主机类型;
    基于主机类型与预设采集脚本之间预设的对应关系,确定所述验收指令携带的主机标识对应的预设采集脚本;
    根据确定的预设采集脚本采集所述服务器的主机配置信息。
  11. 根据权利要求9所述的计算机设备,其中,所述处理器执行所述计算机程序时实现,所述根据所述目标配置信息,基于预设验收规则验证所述主机配置信息以得到验证结果之后,还实现以下步骤:
    根据所述验证结果确定预设处理策略,按照所述预设处理策略处理所述服务器。
  12. 根据权利要求11所述的计算机设备,其中,所述主机配置信息包括软件配置信息;所述处理器执行所述计算机程序时实现所述根据所述验证结果确定预设处理策略,按照所述预设处理策略处理所述服务器时,具体实现以下步骤:
    若所述验证结果为验证失败结果,判断所述验证失败结果对应的主机配置信息是否为软件配置信息;
    若所述验证失败结果对应的主机配置信息为软件配置信息,发送自动更改指令至所述服务器使得所述服务器根据所述自动更改指令修改错误的软件配置 信息。
  13. 根据权利要求9所述的计算机设备,其中,所述处理器执行所述计算机程序时实现所述根据所述目标配置信息,基于预设验收规则验证所述主机配置信息以得到验证结果之后,还实现以下步骤:
    调用所述服务器的健康状态检查工具检测所述服务器的健康状态以得到健康状态信息;
    将所述健康状态信息添加在所述验证结果以生成验证报表,并将所述验证报表发送至服务器管理人员。
  14. 根据权利要求9所述的计算机设备,其中,所述处理器执行所述计算机程序时实现所述获取所述主机标识对应的服务器的目标配置信息时,具体实现以下步骤:
    获取所述主机标识对应的出厂配置信息和需求配置信息;以及将所述出厂配置信息和需求配置信息作为所述目标配置信息。
  15. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器执行以下步骤:
    获取需求变更信息,所述需求变更信息包括所述服务器的主机信息,所述主机信息包括主机标识;
    根据所述主机信息生成主机管理任务,发送所述主机管理任务至终端以使所述终端显示所述主机管理任务,所述主机管理任务包括验收控件;
    接收根据触发所述验收控件的操作而生成的验收指令,根据所述验收指令采集所述主机标识对应的主机配置信息;
    获取所述主机标识对应的目标配置信息;
    根据所述目标配置信息,基于预设验收规则验证所述主机配置信息得到验证结果。
  16. 根据权利要求15所述的计算机可读存储介质,其中,所述验收指令携带所述主机标识;所述计算机程序被处理器执行时使所述处理器执行所述根据所述验收指令采集所述主机标识对应的主机配置信息时,具体执行以下步骤:
    确定所述主机标识对应的服务器的主机类型;
    基于主机类型与预设采集脚本之间预设的对应关系,确定所述验收指令携带的主机标识对应的预设采集脚本;
    根据确定的预设采集脚本采集所述服务器的主机配置信息。
  17. 根据权利要求15所述的计算机可读存储介质,其中,所述计算机程序被处理器执行时使所述处理器执行所述根据所述目标配置信息,基于预设验收规则验证所述主机配置信息以得到验证结果之后,还执行以下步骤:
    根据所述验证结果确定预设处理策略,按照所述预设处理策略处理所述服务器。
  18. 根据权利要求17所述的计算机可读存储介质,其中,所述主机配置信息包括软件配置信息;所述计算机程序被处理器执行时使所述处理器执行所述根据所述验证结果确定预设处理策略,按照所述预设处理策略处理所述服务器时,具体执行以下步骤:
    若所述验证结果为验证失败结果,判断所述验证失败结果对应的主机配置信息是否为软件配置信息;
    若所述验证失败结果对应的主机配置信息为软件配置信息,发送自动更改指令至所述服务器使得所述服务器根据所述自动更改指令修改错误的软件配置信息。
  19. 根据权利要求15所述的计算机可读存储介质,其中,所述计算机程序被处理器执行时使所述处理器执行所述根据所述目标配置信息,基于预设验收规则验证所述主机配置信息以得到验证结果之后,还执行以下步骤:
    调用所述服务器的健康状态检查工具检测所述服务器的健康状态以得到健康状态信息;
    将所述健康状态信息添加在所述验证结果以生成验证报表,并将所述验证报表发送至服务器管理人员。
  20. 根据权利要求15所述的计算机可读存储介质,其中,所述计算机程序被处理器执行时使所述处理器执行所述获取所述主机标识对应的服务器的目标配置信息时,具体执行以下步骤:
    获取所述主机标识对应的出厂配置信息和需求配置信息;以及将所述出厂配置信息和需求配置信息作为所述目标配置信息。
PCT/CN2018/109286 2018-06-29 2018-10-08 服务器的验收方法、装置、计算机设备及存储介质 WO2020000758A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810696057.8A CN108880897A (zh) 2018-06-29 2018-06-29 服务器的验收方法、装置、计算机设备及存储介质
CN201810696057.8 2018-06-29

Publications (1)

Publication Number Publication Date
WO2020000758A1 true WO2020000758A1 (zh) 2020-01-02

Family

ID=64297018

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/109286 WO2020000758A1 (zh) 2018-06-29 2018-10-08 服务器的验收方法、装置、计算机设备及存储介质

Country Status (2)

Country Link
CN (1) CN108880897A (zh)
WO (1) WO2020000758A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274777B (zh) * 2018-12-06 2019-11-22 浪潮电子信息产业股份有限公司 一种导出配置文件的方法、装置、设备及可读存储介质
CN110061864B (zh) * 2019-03-26 2022-07-26 网宿科技股份有限公司 一种域名配置自动化验证的方法和系统
CN111949977B (zh) * 2019-05-14 2024-02-27 阿里巴巴集团控股有限公司 一种对应用的可信监测方法、设备、系统及存储介质
CN113094224B (zh) * 2019-12-20 2022-07-29 中移全通系统集成有限公司 服务器资产管理方法、装置、计算机设备和存储介质
CN111371900B (zh) * 2020-03-13 2022-07-12 北京奇艺世纪科技有限公司 一种监测同步链路健康状态的方法及系统
CN112667275A (zh) * 2020-12-03 2021-04-16 平安科技(深圳)有限公司 Linux软件管理方法、装置、计算机设备及存储介质
CN112948217B (zh) * 2021-03-29 2023-01-13 腾讯科技(深圳)有限公司 服务器修复查验方法和装置、存储介质及电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622247A (zh) * 2012-02-27 2012-08-01 北京百度网讯科技有限公司 服务器的bios信息配置系统及方法
CN105468552A (zh) * 2014-09-12 2016-04-06 中兴通讯股份有限公司 Usb设备的驱动方法、主机及usb设备
US9329805B1 (en) * 2013-12-24 2016-05-03 Emc Corporation Host oriented automatic verification of best practices
CN106599957A (zh) * 2016-12-23 2017-04-26 郑州云海信息技术有限公司 一种实现机柜和sfp出货资产信息自动校验的方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954504A (zh) * 2015-05-05 2015-09-30 浪潮电子信息产业股份有限公司 一种自动化进行bmc管理ip配置的方法
CN105373899A (zh) * 2015-12-03 2016-03-02 广州云新信息技术有限公司 一种服务器资产管理的方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622247A (zh) * 2012-02-27 2012-08-01 北京百度网讯科技有限公司 服务器的bios信息配置系统及方法
US9329805B1 (en) * 2013-12-24 2016-05-03 Emc Corporation Host oriented automatic verification of best practices
CN105468552A (zh) * 2014-09-12 2016-04-06 中兴通讯股份有限公司 Usb设备的驱动方法、主机及usb设备
CN106599957A (zh) * 2016-12-23 2017-04-26 郑州云海信息技术有限公司 一种实现机柜和sfp出货资产信息自动校验的方法

Also Published As

Publication number Publication date
CN108880897A (zh) 2018-11-23

Similar Documents

Publication Publication Date Title
WO2020000758A1 (zh) 服务器的验收方法、装置、计算机设备及存储介质
CN108549580B (zh) 自动部署Kubernetes从节点的方法及终端设备
WO2020029407A1 (zh) 告警数据的管理方法、装置、计算机设备及存储介质
WO2020000745A1 (zh) 日志管理方法、装置、计算机设备及存储介质
WO2018059062A1 (zh) 一种网络修复方法、装置及终端
US9384114B2 (en) Group server performance correction via actions to server subset
US8719634B2 (en) System health and performance care of computing devices
CN110943860B (zh) 一种bmc固件更新方法、系统、电子设备及存储介质
KR102158754B1 (ko) 스마트 네트워크 인터페이스 카드의 조작 방법 및 조작 장치
JP2005276177A (ja) ネットワーク構成のチェックおよび修理のための方法、システムおよびプログラム
WO2020000762A1 (zh) 磁盘阵列配置管理方法、装置、计算机设备及存储介质
US20210306242A1 (en) Non-intrusive it device monitoring and performing action based on it device state
JP2008191878A (ja) 遠隔診断・障害対応システム、遠隔診断・障害対応装置、遠隔診断・障害対応指示装置、遠隔診断・障害対応方法、及び遠隔診断・障害対応プログラム
CN101771565B (zh) 单一服务器实现大批量或不同种基板管理控制器模拟方法
WO2020177385A1 (zh) 虚拟机性能检测方法及装置、电子设备、存储介质
CN108920103B (zh) 服务器的管理方法、装置、计算机设备及存储介质
WO2016032442A1 (en) Computer device error instructions
CN107181606B (zh) 用于控制网络节点的方法和装置
CN114430366A (zh) 信息采集应用下发方法、相关装置及计算机程序产品
US20210042093A1 (en) System and method that support production management
TWI507889B (zh) 用於保留及執行本機計算裝置的影像寫入之管理節點、方法、機器可存取媒體及系統
CN105119772B (zh) 一种c/s架构ipmi功能测试方法
CN116627595A (zh) 一种虚拟机创建方法及相关组件
US20210334153A1 (en) Remote error detection method adapted for a remote computer device to detect errors that occur in a service computer device
CN109101253B (zh) 云计算系统中主机的管理方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18924317

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18924317

Country of ref document: EP

Kind code of ref document: A1