WO2019075774A1 - 设备参数配置方法、装置、计算机设备和存储介质 - Google Patents

设备参数配置方法、装置、计算机设备和存储介质 Download PDF

Info

Publication number
WO2019075774A1
WO2019075774A1 PCT/CN2017/108305 CN2017108305W WO2019075774A1 WO 2019075774 A1 WO2019075774 A1 WO 2019075774A1 CN 2017108305 W CN2017108305 W CN 2017108305W WO 2019075774 A1 WO2019075774 A1 WO 2019075774A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration
configuration item
item
parameter
target device
Prior art date
Application number
PCT/CN2017/108305
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 WO2019075774A1 publication Critical patent/WO2019075774A1/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/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0266Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using meta-data, objects or commands for formatting management information, e.g. using eXtensible markup language [XML]
    • 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/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Definitions

  • the present application relates to the field of computer technology, and in particular, to a device parameter configuration method, apparatus, computer device, and storage medium.
  • a cluster is a group of independent computers that are interconnected by a network, which constitute a collection of external services.
  • you create a cluster you need to configure the environment parameters of the cluster, such as configuring the startup parameters, running parameters, and security settings of the cluster, so that the cluster can run normally and smoothly.
  • the environment parameters of the cluster such as configuring the startup parameters, running parameters, and security settings of the cluster, so that the cluster can run normally and smoothly.
  • the parameters of each server need to be set according to requirements, and the process is complicated and inefficient.
  • a device parameter configuration method, apparatus, computer device, and storage medium are provided.
  • a device parameter configuration method includes:
  • a device parameter configuration device includes:
  • a configuration request receiving module configured to receive a device parameter configuration request
  • a configuration file obtaining module configured to acquire a configuration file according to the device parameter configuration request, where the configuration file includes a configuration item sequence
  • An instruction set sending module configured to acquire a target device identifier to be configured, and a preset instruction set, where the instruction set is sent to a target device corresponding to the target device identifier, where the instruction set includes multiple parameters for executing Configured instructions;
  • a parameter obtaining module configured to acquire parameters corresponding to each configuration item in the sequence of the configuration items
  • a configuration information sending module configured to send the configuration item and a parameter corresponding to the configuration item to the target device according to an order of configuration items in the sequence of configuration items, so that the target device is located according to the configuration item Obtaining a corresponding target instruction on the instruction set, and executing the target instruction according to the parameter corresponding to the configuration item and the order of the configuration item.
  • a computer apparatus comprising a memory and a processor, the memory storing computer readable instructions, the computer readable instructions being executed by the processor such that the processor performs the following steps:
  • One or more non-transitory readable storage mediums storing computer readable instructions, when executed by one or more processors, cause the one or more processors to perform the following steps:
  • FIG. 1 is an implementation environment diagram of a device parameter configuration method provided in an embodiment
  • FIG. 2 is a flow chart of a method for configuring device parameters in an embodiment
  • FIG. 3 is a flow chart of a method for configuring device parameters in an embodiment
  • FIG. 4 is a flow chart of a method for configuring device parameters in an embodiment
  • FIG. 5 is a flowchart of a method for configuring device parameters in an embodiment
  • FIG. 7 is a structural block diagram of a device parameter configuration apparatus in an embodiment
  • FIG. 8 is a structural block diagram of a device parameter configuration apparatus in an embodiment
  • FIG. 9 is a structural block diagram of a device parameter configuration apparatus in an embodiment
  • FIG. 10 is a structural block diagram of a device parameter configuration apparatus in an embodiment
  • FIG. 11 is a structural block diagram of a device parameter configuration apparatus in an embodiment
  • Figure 12 is a block diagram showing the internal structure of a computer device in one embodiment.
  • first, second, and the like, as used herein, may be used to describe various elements, and the elements are not limited by these terms unless specifically stated. These terms are only used to distinguish one element from another.
  • first configuration item may be referred to as a second configuration item without departing from the scope of the present application, and similarly, the second configuration item may be referred to as a first configuration item.
  • the information sent to the target device in the present application or the information sent by the receiving target device may be directly receiving information sent by the target device or directly sending information to the target device, or may be indirectly through other devices such as an administrator node in the cluster. Receive information sent by the target device or indirectly send information to the target device.
  • FIG. 1 is an implementation environment diagram of a device parameter configuration method provided in an embodiment.
  • the implementation environment includes a terminal 110, a cluster 120, and a cluster 130.
  • Each cluster corresponds to a server that needs to be configured with parameters, such as server 1 to server 6.
  • the user can select or input the server information to be parameterized, such as the server name or the server IP address, and send the device parameter configuration request.
  • the terminal 110 After receiving the device parameter configuration request, the terminal 110 obtains the configuration according to the device parameter configuration request.
  • the file and the instruction set are sent to the administrator node 120 of the cluster and the administrator node 130, and the administrator node 120 and the administrator node 130 of the cluster send the instruction set to the server corresponding to the server information, and the terminal
  • the parameter corresponding to each configuration item in the configuration item sequence may be obtained, and the configuration item and the parameter corresponding to the configuration item are sent to the administrator node 120 and the administrator node 130 according to the configuration item sequence in the configuration item sequence, and then the administrator node 120 And the administrator node 130 sends the configuration item and the parameter corresponding to the configuration item to the corresponding server.
  • the server After receiving the configuration item and the parameter corresponding to the configuration item, the server obtains the corresponding target instruction according to the configuration item, and correspondingly according to the configuration item. Parameters and configuration Execute the target instruction sequence, the parameters of the server to complete the configuration.
  • the terminal 120 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto.
  • a cluster can be one or more.
  • the server does not exist in a cluster manner, and the terminal may directly send information such as an instruction set, a configuration item, and a parameter corresponding to the configuration item to the server.
  • the parameter configuration may also be a terminal or other production device or the like.
  • a device parameter configuration method is provided.
  • the device parameter configuration method may be applied to the terminal 110, and may specifically include the following steps:
  • Step 202 Receive a device parameter configuration request.
  • the user may perform corresponding operations on the terminal, issue a device parameter configuration request, and the terminal receives the device parameter configuration request. For example, the user can click the "Parameter Configuration" button on the terminal to issue a device parameter configuration request.
  • Step 204 Acquire a configuration file according to the device parameter configuration request, where the configuration file includes a configuration item sequence.
  • one or more configuration items are included in the sequence of configuration items, and the order of each configuration item is already set.
  • the configuration item sequence includes the configuration items of the IP address, the configuration items of the configuration parameters of the target device, and the configuration items of the security policy.
  • the configuration items are in the order of 1 to 3.
  • the configuration file may be preset or generated when the device parameter configuration request is received.
  • the user may input the configuration item and the configuration item sequence on the terminal interface, when receiving the device parameter configuration.
  • the terminal After the request, the terminal generates a configuration file according to the configuration items carried in the device parameter configuration request and the order of the configuration items.
  • Step 206 Acquire a target device identifier to be configured and a preset instruction set, and send the instruction set to the target device corresponding to the target device identifier, where the instruction set includes multiple instructions for performing parameter configuration.
  • the target device identifier is used to identify a target device that needs to be configured by parameters, and the target device identifier may be one or more.
  • the instructions in the instruction set are pre-written in the programming language for parameter configuration. The number of instructions in the instruction set and the specific instructions can be set as needed.
  • the target device identification can include the IP address of the target device. Therefore, a set of instructions can be sent to the target device based on the IP address.
  • the device parameter configuration request carries the target device identifier.
  • the target device identifier may be preset, for example, the target device identifier is obtained in advance, and the target device identifier is stored in the preset storage space, and after receiving the device parameter setting request, in the preset storage space. Get the target device ID.
  • the instruction set exists in the form of a program installation compression package, and after the instruction set is sent to the target device, the target device decompresses the program installation compression package to perform program installation. For example, if there are 10 target device identifiers, the program installation compression package is sent to the corresponding 10 target devices to install the program on the 10 target devices.
  • the configuration file and the corresponding order executed in the terminal are also included in the configuration file.
  • the configuration file further includes a configuration item that acquires the target device identifier and a configuration item that sends the instruction set to the target device corresponding to the target device identifier.
  • the corresponding operation is performed according to the configuration item of the configuration file and the corresponding order.
  • the operation sequence of the operation performed by the terminal and the parameter configuration operation performed in the target device is set in the configuration file through the configuration item sequence, so that the process of device parameter configuration can be performed in an orderly manner, thereby reducing operation errors.
  • the first configuration item in the configuration file is to check the running status of the terminal
  • the second configuration item is to read the target device identifier
  • the third configuration item is to obtain the instruction set and send the instruction set
  • the fourth The configuration item is set to the NTP (Network Time Protocol) time synchronization parameter. Therefore, when the configuration file is obtained, according to the configuration item order, the first operation is to check the running condition of the device of the terminal, the second operation is to obtain the target device identifier, and the third operation is to acquire the instruction set and set the instruction.
  • the fourth operation is to obtain the IP address of the NTP server, and then send the IP address and configuration item of the NTP server to the target device.
  • Step 208 Acquire parameters corresponding to each configuration item in the configuration item sequence.
  • the parameter of the configuration item may be preset or carried in the device parameter configuration request.
  • the user can input configuration items, configuration item order, and corresponding configuration parameters on the terminal interface.
  • the parameters corresponding to the configuration item are preset in the configuration file.
  • Step 210 Send a configuration item and a parameter corresponding to the configuration item to the target device according to the configuration item sequence in the configuration item sequence, so that the target device acquires the corresponding target instruction according to the configuration item, and according to the parameter corresponding to the configuration item.
  • the order of the configuration items executes the target instructions.
  • the parameter corresponding to the configuration item is a parameter that needs to be configured when the parameter configuration instruction is executed.
  • the IP address of the time synchronization reference device needs to be obtained, and the IP address is the parameter corresponding to the time synchronization configuration item.
  • the storage path configuration command is executed, the storage path is a parameter corresponding to the path configuration item.
  • the number of configuration items sent each time can be one or more, and can be set as needed. For example, all configuration items and corresponding parameters may be sent to the target device together, or the configuration items and corresponding parameters may be sequentially sent according to the configuration items in the configuration item sequence.
  • the correspondence between the instruction and the configuration item is set in the instruction set.
  • a configuration item can correspond to one or more instructions in a set of instructions. After the target device receives the configuration item and the parameter corresponding to the configuration item, the target instruction is found in the instruction set, and then the target instruction is sequentially executed in the order of the configuration item to perform parameter configuration on the target device.
  • the device parameter configuration method is configured to configure a corresponding configuration item and a configuration sequence in the configuration file, and obtain a parameter corresponding to each configuration item when receiving the parameter configuration request, and send a command set to the target device that needs to be configured, and then according to the configuration.
  • the sequence of the item sends the configuration item and the parameter corresponding to the configuration item to the target device, so that the target device acquires the corresponding target instruction on the instruction set according to the configuration item, and executes the target instruction according to the parameter corresponding to the configuration item and the configuration item, and completes the parameter.
  • Configuration Therefore, when parameter configuration is performed on the device, the device parameter request can be completed to complete the device parameter.
  • the configuration of the number, the device parameter configuration process is simple and efficient.
  • the device parameter configuration method further includes step S302 and step S304.
  • Step S302 Receive a configuration file setting request, where the configuration file setting request carries multiple configuration items and a sequence of configuration items.
  • the configuration items and/or configuration item order of each target device may be the same or different.
  • the corresponding configuration items and configuration items are in the order of A configuration item, B configuration item, and C configuration item.
  • the corresponding configuration items and configuration items are in the order of A configuration item, B configuration item, F configuration item, and C configuration item.
  • Step S304 Generate a configuration file according to the configuration file setting request, where the configuration file includes a configuration item sequence generated according to the configuration item and the configuration item.
  • the configuration items in the configuration file setting request are sorted according to the order of the configuration items, and a configuration file is obtained.
  • the configuration file includes one or more first configuration items and one or more second configuration items, and the configuration file has parameters corresponding to the respective first configuration items.
  • the device parameter configuration method further includes step S402: receiving configuration parameters corresponding to the respective second configuration items, and storing the second configuration item and the configuration parameters in association.
  • the step S208 is to obtain the parameter corresponding to each configuration item in the configuration item sequence, and the configuration parameter associated with the second configuration item is used as the parameter corresponding to the second configuration item.
  • the first configuration item and the corresponding parameter that are often used when performing device parameter configuration can be set in the configuration file.
  • the corresponding parameters may not be set in the configuration file.
  • the configuration parameters corresponding to the second configuration item are set according to the specific parameter configuration requirements, and the second configuration item and the configuration parameter are stored in association. And obtaining the configuration parameter associated with the second configuration item as the parameter corresponding to the second configuration item, when obtaining the parameter corresponding to each configuration item in the configuration item sequence.
  • the target device's IP address, port, username, and password are in the target setting. It is set when the backup is online. For example, the equipment personnel configure the device information such as the IP address, port, user name, and password of each server. And send device information to the terminal. For example, the terminal may provide an interface for writing a configuration parameter corresponding to the second configuration item, and the configuration parameter corresponding to the second configuration item is received through the interface.
  • the device parameter configuration method further includes steps S502 to S506.
  • Step S502 sending a configuration item execution status acquisition instruction to the target device.
  • the sending time of the configuration item execution state obtaining instruction may be set according to actual needs.
  • the configuration item execution status acquisition instruction is sent with the instruction set that performs the parameter configuration.
  • Step S504 receiving a current configuration item corresponding to the current target instruction returned by the target device.
  • the current target execution instruction refers to an instruction that is performing parameter configuration in the instruction set
  • the target device acquires a configuration item corresponding to the current target instruction, and returns the current configuration item to the terminal, and the terminal receives the current configuration item returned by the target device.
  • the current configuration item is obtained in an instruction operation log on the target device.
  • the target operation log can be generated, and the target device obtains the latest instruction operation log generated in the instruction operation log, and the configuration item corresponding to the latest instruction operation log is used as the current configuration item.
  • step S506 the current configuration item is displayed.
  • the current configuration item may be displayed on the terminal, and the form of the display may be set according to actual needs. Enable users to quickly understand the configuration of the parameters.
  • the parameter configuration progress of the target device can be presented while presenting the current configuration item.
  • the configuration progress of the target device may be displayed by at least one of the number of completed configuration items, the number of uncompleted configuration items, and the progress scale factor.
  • the calculation method of the progress scale factor can be set as needed.
  • the progress scale factor corresponding to each configuration item may also be set, and after obtaining the current configuration item, the progress scale coefficient corresponding to the current configuration item is obtained.
  • the device parameter configuration method further includes step S602: receiving target device monitoring information acquired by the target device according to the monitoring instruction.
  • the instruction set further includes one or more monitoring instructions for acquiring monitoring information.
  • the monitoring information of the target device collected by the monitoring command may be set as needed.
  • the monitoring information may include one or more of CPU usage, memory usage, disk read/write rate, file error information, and file browsing records.
  • the target device executes a monitoring instruction, acquires monitoring information, and sends the monitoring information to the terminal to monitor the state of the target device.
  • the time when the target device sends the monitoring information can be set according to actual needs. For example, the monitoring information can be obtained every 10 minutes or every hour and sent to the terminal.
  • the terminal may send a monitoring information acquisition request to the target device, and the target device may acquire the monitoring information according to the monitoring information acquisition request and send the monitoring information to the terminal.
  • the instruction set includes a monitoring instruction for acquiring monitoring information, so that after the parameter configuration is completed, the target device can be monitored without performing monitoring configuration again, the user operation is reduced, and the target device can be monitored in time.
  • a device parameter configuration device is provided.
  • the device parameter configuration device may be integrated into the terminal 110, and may specifically include:
  • the configuration request receiving module 702 is configured to receive a device parameter configuration request.
  • the configuration file obtaining module 704 is configured to obtain a configuration file according to the device parameter configuration request, where the configuration file includes a configuration item sequence.
  • the parameter obtaining module 708 is configured to obtain parameters corresponding to each configuration item in the sequence of configuration items.
  • the configuration information sending module 710 is configured to send a configuration item and a parameter corresponding to the configuration item to the target device according to the order of the configuration items in the configuration item sequence, so that the target device acquires the corresponding target instruction according to the configuration item on the instruction set, and according to the configuration
  • the target parameter is executed by the parameter corresponding to the item and the order of the configuration item.
  • the device further includes:
  • the setting request receiving module 802 is configured to receive a configuration file setting request, where the configuration file setting request carries multiple configuration items and a sequence of configuration items.
  • the file generating module 804 is configured to generate a configuration file according to the configuration file setting request, where the configuration file includes a configuration item sequence generated according to the configuration item and the configuration item.
  • the configuration file includes one or more first configuration items and one or more second configuration items, where the configuration file has parameters corresponding to the respective first configuration items, and the device further includes
  • the parameter association storage module 902 is configured to receive configuration parameters corresponding to each second configuration item, and store the second configuration item and the configuration parameter in association.
  • the parameter obtaining module 708 is configured to: use the configuration parameter stored in association with the second configuration item as a parameter corresponding to the second configuration item.
  • the device further includes:
  • the status acquisition instruction sending module 1002 is configured to send a configuration item execution status acquisition instruction to the target device.
  • the current configuration item receiving module 1004 is configured to receive a current configuration item corresponding to the current target instruction returned by the target device.
  • the display module 1006 is configured to display the current configuration item.
  • the instruction set further includes one or more monitoring instructions for acquiring monitoring information
  • the device further includes a monitoring information acquiring module 1102, configured to receive the target device acquired by the target device according to the monitoring instruction.
  • Monitor information As shown in FIG. 12, it is an internal structural diagram of a computer device in one embodiment, which is connected to a processor, a non-volatile storage medium, an internal memory, and a network interface through a system connection bus.
  • the non-volatile storage medium of the computer device can store an operating system and computer readable instructions that, when executed, cause the processor to perform a device parameter configuration method.
  • the processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device.
  • the internal memory can store computer readable instructions that, when executed by the processor, cause the processor to perform a device parameter configuration method.
  • the network interface of the computer device is used for network communication, such as sending a set of instructions. It will be understood by those skilled in the art that the structure shown in FIG. 12 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 of the computer device to which the solution of the present application is applied.
  • the specific computer device may Include more or fewer parts than shown in the figure, or combine some parts, or have different parts Set.
  • Each of the above device parameter configuration devices may be implemented in whole or in part by software, hardware, and combinations thereof.
  • the network interface may be an Ethernet card or a wireless network card.
  • the above modules may be embedded in the hardware in the processor or in the memory in the server, or may be stored in the memory in the server, so that the processor calls the corresponding operations of the above modules.
  • the processor can be a central processing unit (CPU), a microprocessor, a microcontroller, or the like.
  • the device parameter configuration apparatus may be implemented in the form of a computer readable instruction executable on a computer device as shown in FIG. 12, the nonvolatile nature of the computer device
  • the storage medium may store various program modules constituting the device parameter configuration device, such as the configuration request receiving module 702, the configuration file obtaining module 704, the instruction set sending module 706, the parameter obtaining module 708, and the configuration information transmitting module 710 in FIG.
  • Each of the program modules includes computer readable instructions for causing a computer device to perform the steps in the device parameter configuration method of various embodiments of the present application described in this specification.
  • the computer device can be as shown in FIG.
  • the configuration request receiving module 702 in the device parameter configuration device receives the device parameter configuration request.
  • the configuration file acquisition module 704 obtains a configuration file according to the device parameter configuration request, and the configuration file includes a configuration item sequence.
  • the instruction set sending module 706 obtains the target device identifier to be configured and the preset instruction set, and sends the instruction set to the target device corresponding to the target device identifier, where the instruction set includes a plurality of instructions for performing parameter configuration.
  • the parameter corresponding to each configuration item in the configuration item sequence is obtained by the parameter obtaining module 708.
  • the configuration information sending module 710 sends the configuration item and the parameter corresponding to the configuration item to the target device according to the order of the configuration items in the configuration item sequence, so that the target device acquires the corresponding target instruction according to the configuration item on the instruction set, and corresponds to the configuration item according to the configuration item.
  • the parameters and the order of the configuration items execute the target instructions.
  • a computer device is proposed.
  • the internal structure of the computer device may correspond to the structure shown in FIG. 12, that is, the computer device may be a server or a terminal, and the computer device includes a memory, a processor, and Computer readable instructions stored on the memory and operative on the processor, the processor executing the computer readable instructions to implement the step of receiving a device parameter configuration request.
  • the configuration file is obtained according to the device parameter configuration request, and the configuration file includes a configuration item sequence.
  • the processor further performs the step of receiving a configuration file setting request, the configuration file setting request carrying a plurality of configuration items and an order of configuration items when the computer readable instructions are executed.
  • the configuration file is generated according to the configuration file setting request, and the configuration file includes a sequence of configuration items generated according to the configuration item and the order of the configuration items.
  • the configuration file includes one or more first configuration items and one or more second configuration items, where the configuration file has parameters corresponding to the respective first configuration items, and when the processor executes the computer readable instructions The following steps are further performed: receiving configuration parameters corresponding to each second configuration item, and storing the second configuration item and the configuration parameter in association.
  • the step of obtaining the parameter corresponding to each configuration item in the configuration item sequence includes: using the configuration parameter stored in association with the second configuration item as the parameter corresponding to the second configuration item.
  • the processor when executing the computer readable instructions, further performs the step of transmitting a configuration item execution status acquisition instruction to the target device. Receiving the current configuration item corresponding to the current target instruction returned by the target device. Show current configuration items.
  • the set of instructions further includes one or more monitoring instructions for acquiring monitoring information.
  • the processor executes the computer readable instructions, the processor further performs the step of: receiving target device monitoring information acquired by the target device according to the monitoring instruction.
  • a computer readable storage medium having stored thereon computer readable instructions that, when executed by a processor, cause the processor to perform the following steps of receiving a device parameter configuration request.
  • the configuration file is obtained according to the device parameter configuration request, and the configuration file includes a configuration item sequence.
  • the processor further performs the step of receiving a configuration file setting request, the configuration file setting request carrying a plurality of configuration items and an order of configuration items when the computer readable instructions are executed.
  • the configuration file is generated according to the configuration file setting request, and the configuration file includes a sequence of configuration items generated according to the configuration item and the order of the configuration items.
  • the configuration file includes one or more first configuration items and one or more second configuration items, where the configuration file has parameters corresponding to the respective first configuration items, and when the processor executes the computer readable instructions The following steps are further performed: receiving configuration parameters corresponding to each second configuration item, and storing the second configuration item and the configuration parameter in association.
  • the step of obtaining the parameter corresponding to each configuration item in the configuration item sequence includes: using the configuration parameter stored in association with the second configuration item as the parameter corresponding to the second configuration item.
  • the processor when executing the computer readable instructions, further performs the step of transmitting a configuration item execution status acquisition instruction to the target device. Receiving the current configuration item corresponding to the current target instruction returned by the target device. Show current configuration items.
  • the set of instructions further includes one or more monitoring instructions for acquiring monitoring information.
  • the processor executes the computer readable instructions, the processor further performs the step of: receiving target device monitoring information acquired by the target device according to the monitoring instruction.
  • the foregoing storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, or a read-only memory (ROM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Computer And Data Communications (AREA)

Abstract

一种设备参数配置方法、装置、计算机设备和存储介质,方法包括:接收设备参数配置请求(S202);根据设备参数配置请求获取配置文件,配置文件包括配置项序列(S204);获取待配置的目标设备标识以及预设的指令集合,将指令集合发送到目标设备标识对应的目标设备中,指令集合包括多个用于执行参数配置的指令(S206);获取配置项序列中各个配置项对应的参数(S208);根据配置项序列中配置项的顺序向目标设备发送配置项以及配置项对应的参数,以使目标设备根据配置项在指令集合上获取对应的目标指令,并根据配置项对应的参数以及配置项的顺序执行目标指令(S210)。

Description

设备参数配置方法、装置、计算机设备和存储介质
本申请要求于2017年10月16日提交中国专利局、申请号为2017109584149、发明名称为“设备参数配置方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,特别是涉及设备参数配置方法、装置、计算机设备和存储介质。
背景技术
随着信息技术的发展,互联网上产生的信息量越来越多。为了应对日益增长的资源与服务器的需求,目前很多企业均通过服务器集群来提供资源管理以及网络服务。
集群是一组相互独立的、通过网络互联的计算机,它们构成了一个集合对外进行服务。在创建集群时,需要对集群的环境参数进行配置,例如配置集群的启动参数、运行参数以及安全设置参数等,以使得集群能够正常以及平稳的运行。现有技术中,当要对服务器的环境进行搭建时,需要在各个服务器根据需求进行参数设置,过程复杂,效率低下。
发明内容
根据本申请的各种实施例,提供一种设备参数配置方法、装置、计算机设备和存储介质。
一种设备参数配置方法,包括:
接收设备参数配置请求;
根据所述设备参数配置请求获取配置文件,所述配置文件包括配置项序列;
获取待配置的目标设备标识以及预设的指令集合,将所述指令集合发送到所述目标设备标识对应的目标设备中,所述指令集合包括多个用于执行参数配置的指令;
获取所述配置项序列中各个配置项对应的参数;及
根据所述配置项序列中配置项的顺序向所述目标设备发送所述配置项以及所述配置项对应的参数,以使所述目标设备根据所述配置项在所述指令集合上获取对应的目标指令,并根据所述配置项对应的参数以及所述配置项的顺序执行所述目标指令。
一种设备参数配置装置,包括:
配置请求接收模块,用于接收设备参数配置请求;
配置文件获取模块,用于根据所述设备参数配置请求获取配置文件,所述配置文件包括配置项序列;
指令集合发送模块,用于获取待配置的目标设备标识以及预设的指令集合,将所述指令集合发送到所述目标设备标识对应的目标设备中,所述指令集合包括多个用于执行参数配置的指令;
参数获取模块,用于获取所述配置项序列中各个配置项对应的参数;及
配置信息发送模块,用于根据所述配置项序列中配置项的顺序向所述目标设备发送所述配置项以及所述配置项对应的参数,以使所述目标设备根据所述配置项在所述指令集合上获取对应的目标指令,并根据所述配置项对应的参数以及所述配置项的顺序执行所述目标指令。
一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行以下步骤:
接收设备参数配置请求;
根据所述设备参数配置请求获取配置文件,所述配置文件包括配置项序列;
获取待配置的目标设备标识以及预设的指令集合,将所述指令集合发送到所述目标设备标识对应的目标设备中,所述指令集合包括多个用于执行参数配 置的指令;
获取所述配置项序列中各个配置项对应的参数;及
根据所述配置项序列中配置项的顺序向所述目标设备发送所述配置项以及所述配置项对应的参数,以使所述目标设备根据所述配置项在所述指令集合上获取对应的目标指令,并根据所述配置项对应的参数以及所述配置项的顺序执行所述目标指令。
一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
接收设备参数配置请求;
根据所述设备参数配置请求获取配置文件,所述配置文件包括配置项序列;
获取待配置的目标设备标识以及预设的指令集合,将所述指令集合发送到所述目标设备标识对应的目标设备中,所述指令集合包括多个用于执行参数配置的指令;
获取所述配置项序列中各个配置项对应的参数;及
根据所述配置项序列中配置项的顺序向所述目标设备发送所述配置项以及所述配置项对应的参数,以使所述目标设备根据所述配置项在所述指令集合上获取对应的目标指令,并根据所述配置项对应的参数以及所述配置项的顺序执行所述目标指令。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为一个实施例中提供的设备参数配置方法的实施环境图;
图2为一个实施例中设备参数配置方法的流程图;
图3为一个实施例中设备参数配置方法的流程图;
图4为一个实施例中设备参数配置方法的流程图;
图5为一个实施例中设备参数配置方法的流程图;
图6为一个实施例中设备参数配置方法的流程图;
图7为一个实施例中设备参数配置装置的结构框图;
图8为一个实施例中设备参数配置装置的结构框图;
图9为一个实施例中设备参数配置装置的结构框图;
图10为一个实施例中设备参数配置装置的结构框图;
图11为一个实施例中设备参数配置装置的结构框图;
图12为一个实施例中计算机设备的内部结构框图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但除非特别说明,这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一配置项称为第二配置项,且类似地,可将第二配置项称为第一配置项。此外,本申请中的向目标设备发送信息、或者接收目标设备发送的信息可以是直接接收目标设备发送的信息或者直接向目标设备发送信息,也可以是通过其他设备例如集群中的管理员节点间接接收目标设备发送的信息或者间接向目标设备发送信息。
图1为一个实施例中提供的设备参数配置方法的实施环境图,如图1所示,在该实施环境中,包括终端110、集群120以及集群130。每个集群对应有需要进行参数配置的服务器,例如服务器1~服务器6。要对服务器进行参数配置时, 用户可以在终端上选择或输入要进行参数配置的服务器信息,例如服务器名称或者服务器IP地址等等,并发送设备参数配置请求,终端110接收到设备参数配置请求后,根据设备参数配置请求获取配置文件以及指令集合,将配置文件以及指令集合发送到集群的管理员节点120以及管理员节点130中,由集群的管理员节点120以及管理员节点130将指令集合发送到服务器信息对应的服务器,终端110还可以获取配置项序列中各个配置项对应的参数,根据配置项序列中配置项的顺序向管理员节点120以及管理员节点130发送配置项以及配置项对应的参数,再由管理员节点120以及管理员节点130向对应的服务器发送配置项以及配置项对应的参数,服务器接收到配置项以及配置项对应的参数后,根据配置项在指令集合上获取对应的目标指令,并根据配置项对应的参数以及配置项的顺序执行目标指令,以对完成对服务器的参数配置。
终端120可以是智能手机、平板电脑、笔记本电脑、台式计算机、智能音箱、智能手表等,但并不局限于此。集群可以为一个或多个。
需要说明的是,上述实施例环境仅仅是一个示例性的说明,并不能看作是对本申请的限制,在实际的应用中,本申请实施例也可以应用在其他场景上。例如,服务器不是以集群的方式存在的,终端可以将指令集合、配置项以及配置项对应的参数等信息直接发送给服务器。或者,要进行参数配置的还可以是终端或者其他生产设备等等。
如图2所示,在一个实施例中,提出了一种设备参数配置方法,该设备参数配置方法可以应用于上述的终端110中,具体可以包括以下步骤:
步骤202,接收设备参数配置请求。
具体地,当需要对设备参数进行配置时,用户可以在终端上进行相应的操作,发出设备参数配置请求,终端接收设备参数配置请求。例如,用户可以点击终端上的“参数配置”按键,发出设备参数配置请求。
步骤204,根据设备参数配置请求获取配置文件,配置文件包括配置项序列。
具体地,配置项序列中包括一个或多个配置项,每个配置项的顺序是已经设置好的。例如,配置项序列中包括配置IP地址的配置项、配置目标设备启动参数的配置项以及配置安全策略的配置项等,配置项顺序依次为1~3。
在一个实施例中,配置文件可以是预先设置好的,也可以是在接收设备参数配置请求时生成的,例如,用户可以在终端界面上输入配置项以及配置项顺序,当接收到设备参数配置请求后,终端根据设备参数配置请求携带的配置项以及配置项的顺序生成配置文件。
步骤206,获取待配置的目标设备标识以及预设的指令集合,将指令集合发送到目标设备标识对应的目标设备中,指令集合包括多个用于执行参数配置的指令。
具体地,目标设备标识用于标识需要进行参数配置的目标设备,目标设备标识可以为一个或多个。指令集合中的指令是预先利用程序语言编写的,用于进行参数配置,指令集合中指令的个数以及具体的指令可以根据需要进行设置。
在一个实施例中,目标设备标识可以包括目标设备的IP地址。因此,可以根据IP地址向目标设备发送指令集合。
在一个实施例中,设备参数配置请求中携带有目标设备标识。
在一个实施例中,可以预先设置目标设备标识,例如,预先获取目标设备标识,并将目标设备标识储存在预设的存储空间中,当接收到设备参数设置请求后,在预设的存储空间中获取目标设备标识。
在一个实施例中,指令集合以程序安装压缩包形式存在,指令集合发送到目标设备后,目标设备中解压该程序安装压缩包,进行程序安装。例如有10个目标设备标识,则将程序安装压缩包发送到对应的10个目标设备上,以在10个目标设备上安装程序。
在一个实施例中,配置文件中还包括在终端中执行的配置项以及对应的顺序。例如,配置文件中还包括获取目标设备标识的配置项以及向目标设备标识对应的目标设备发送指令集合的配置项。在接收到设备参数配置请求时,根据配置文件的配置项以及对应的顺序执行相应的操作。将终端执行的操作以及目标设备中执行的参数配置操作的操作顺序在配置文件中通过配置项序列设置,可以使设备参数配置的过程有序的进行,减少操作错误。
例如,配置文件中的第一个配置项为检查终端的运行情况,第二个配置项为读取目标设备标识,第三个配置项为获取指令集合并发送指令集合,第四个 配置项为设置NTP(Network Time Protocol、网络时间协议)时间同步参数。因此,当获取到配置文件时,根据配置项顺序,第一个操作为对终端的设备运行情况进行检查,第二个操作为获取目标设备标识,第三个操作为获取指令集合并将指令集合发送到目标设备标识对应的目标设备上,第四个操作为获取NTP服务器的IP地址,然后将NTP服务器的IP地址以及配置项发送到目标设备中。
步骤208,获取配置项序列中各个配置项对应的参数。
在具体地,配置项的参数可以是预先设置的,也可以是设备参数配置请求中携带的。例如,用户可以在终端界面上输入配置项、配置项顺序以及对应的配置参数。或者,配置文件中预先设置配置项对应的参数。
步骤210,根据配置项序列中配置项的顺序向目标设备发送配置项以及配置项对应的参数,以使目标设备根据配置项在指令集合上获取对应的目标指令,并根据配置项对应的参数以及配置项的顺序执行目标指令。
具体地,配置项对应的参数为执行参数配置指令时需要进行配置的参数。例如,执行时间同步指令时,需要获取时间同步的参考设备的IP地址,IP地址即为时间同步配置项对应的参数。或者,执行存储路径配置指令时,存储路径为路径配置项对应的参数。每次发送的配置项的个数可以为一个或多个,具体可以根据需要进行设置。例如,可以将所有配置项以及对应的参数一起发送到目标设备中,也可以是按照配置项序列中配置项的顺序依次发送配置项以及对应的参数。指令集合中设置有指令与配置项的对应关系。一个配置项可以对应指令集合中的一个或多个指令。当目标设备接收到配置项以及配置项对应的参数后,在指令集合中查找到对应的目标指令,然后按照配置项的顺序依次执行目标指令,以对目标设备进行参数配置。
上述设备参数配置方法,通过在配置文件设置参数配置对应的配置项以及配置顺序,接收到参数配置请求时获取各个配置项对应的参数并向需要进行参数配置的目标设备发送指令集合,然后根据配置项的顺序向目标设备发送配置项以及配置项对应的参数,使目标设备根据配置项在指令集合上获取对应的目标指令,并根据配置项对应的参数以及配置项的顺序执行目标指令,完成参数配置。因此,要对设备进行参数配置时,发送设备参数请求便能完成对设备参 数的配置,设备参数配置过程简单且效率高。
在一个实施例中,如图3所示,设备参数配置方法还包括步骤S302以及步骤S304。
步骤S302,接收配置文件设置请求,配置文件设置请求中携带多个配置项以及配置项的顺序。
具体地,具体的配置项以及配置项顺序可以根据实际需要进行设置。每个目标设备的配置项和/或配置项顺序可以相同也可以不同。例如,对于第一个目标设备,对应的配置项以及配置项顺序依次为A配置项、B配置项以及C配置项。对于第二个目标设备,对应的配置项以及配置项顺序依次为A配置项、B配置项、F配置项以及C配置项。
步骤S304,根据配置文件设置请求生成配置文件,配置文件包括根据配置项以及配置项的顺序生成的配置项序列。
具体地,根据配置项的顺序对配置文件设置请求中的配置项进行排序,得到配置文件。
在一个实施例中,如图4所示,配置文件包括一个或多个第一配置项以及一个或多个第二配置项,配置文件中设有各个第一配置项对应的参数。设备参数配置方法还包括步骤S402:接收各个第二配置项对应的配置参数,将第二配置项以及配置参数关联存储。步骤S208即获取配置项序列中各个配置项对应的参数的步骤包括:将与第二配置项关联存储的配置参数作为第二配置项对应的参数。
具体地,对于进行设备参数配置时经常要用到的第一配置项以及对应的参数。可以在配置文件中设置第一配置项对应的参数。而对于需要经常更换参数的第二配置项,例如目标设备的IP地址、端口、用户名以及密码等参数,则可以不在配置文件中设置对应的参数。在要进行参数配置时,根据具体的参数配置需求设置各个第二配置项对应的配置参数,将第二配置项以及配置参数关联存储。并在获取获取配置项序列中各个配置项对应的参数时获取第二配置项关联存储的配置参数作为第二配置项对应的参数。
在一个实施例中,目标设备的IP地址、端口、用户名以及密码是在目标设 备上线时设置的,例如,由机房人员配置好每台服务器的IP地址、端口、用户名和密码等设备信息。并向终端发送设备信息。例如,终端可以提供写入第二配置项对应的配置参数的接口,通过该接口接收第二配置项对应的配置参数。
在一个实施例中,如图5所示,设备参数配置方法还包括步骤S502~步骤S506。
步骤S502,向目标设备发送配置项执行状态获取指令。
具体地,配置项执行状态获取指令的发送时间可以根据实际需要进行设置。例如,配置项执行状态获取指令与执行参数配置的指令集合是一起发送的。或者可以在发送第一个配置项时同时发送配置项执行状态获取指令。或者当需要获取执行状态时发送配置项执行状态获取指令。
步骤S504,接收目标设备返回的当前目标指令对应的当前配置项。
具体地,当前目标执行指令是指指令集合中正在执行参数配置的指令,目标设备获取当前目标指令所对应的配置项,作为当前配置项返回给终端,终端接收目标设备返回的当前配置项。
在一个实施例中,当前配置项是在目标设备上的指令操作日志中获取的。目标设备在执行指令集合中的目标指令时,可以生成指令操作日志,目标设备获取指令操作日志中最后生成的最新指令操作日志,将最新指令操作日志对应的配置项作为当前配置项。
步骤S506,展示当前配置项。
具体地,可以在终端上展示当前配置项,展示的形式可以根据实际需要进行设置。使用户快速了解参数配置的情况。
在一个实施例中,可以在展示当前配置项的同时展示目标设备的参数配置进度。目标设备的配置进度可以通过完成的配置项个数、未完成的配置项个数以及进度比例系数的至少一个进行展示。进度比例系数的计算方法可以根据需要进行设置。
在一个实施例中,可以根据当前配置项在配置项序列中的排序得到进度比例系数。例如,若当前配置项序列中一共有50个配置项,当前配置项排序为30,则进度比例系数可以为30/50=60%。
在一个实施例中,也可以设置每个配置项对应的进度比例系数,得到当前配置项后,获取当前配置项对应的进度比例系数。
在一个实施例中,如图6所示,设备参数配置方法还包括步骤S602:接收目标设备根据监控指令获取的目标设备监控信息。
具体地,指令集合中还包括一个或多个用于获取监控信息的监控指令。监控指令所采集的目标设备的监控信息可以根据需要进行设定,例如,监控信息可以包括CPU使用率、内存使用率、磁盘读写速率、文件错误信息数以及文件浏览记录的一个或多个。当完成对目标设备的参数配置后,目标设备执行监控指令,获取监控信息并发送到终端中,以对目标设备的状态进行监控。目标设备发送监控信息的时间可以根据实际需要进行设置,例如可以每10分钟或者每个小时获取一次监控信息并发送到终端中。或者,终端可以向目标设备发送监控信息获取请求,目标设备可以根据监控信息获取请求获取监控信息并发送到终端中。指令集合中包括用于获取监控信息的监控指令可以使得参数配置完成后,无需再次进行监控配置也能够对目标设备进行监控,减少用户操作,且能够及时对目标设备进行监控。
如图7所示,在一个实施例中,提供了一种设备参数配置装置,该设备参数配置装置可以集成于上述的终端110中,具体可以包括:
配置请求接收模块702,用于接收设备参数配置请求。
配置文件获取模块704,用于根据设备参数配置请求获取配置文件,配置文件包括配置项序列。
指令集合发送模块706,用于获取待配置的目标设备标识以及预设的指令集合,将指令集合发送到目标设备标识对应的目标设备中,指令集合包括多个用于执行参数配置的指令。
参数获取模块708,用于获取配置项序列中各个配置项对应的参数。
配置信息发送模块710,用于根据配置项序列中配置项的顺序向目标设备发送配置项以及配置项对应的参数,以使目标设备根据配置项在指令集合上获取对应的目标指令,并根据配置项对应的参数以及配置项的顺序执行目标指令。
在一个实施例中,如图8所示,装置还包括:
设置请求接收模块802,用于接收配置文件设置请求,配置文件设置请求中携带多个配置项以及配置项的顺序。
文件生成模块804,用于根据配置文件设置请求生成配置文件,配置文件包括根据配置项以及配置项的顺序生成的配置项序列。
在一个实施例中,如图9所示,配置文件包括一个或多个第一配置项以及一个或多个第二配置项,配置文件中设有各个第一配置项对应的参数,装置还包括参数关联存储模块902,用于接收各个第二配置项对应的配置参数,将第二配置项以及配置参数关联存储。参数获取模块708用于:将与第二配置项关联存储的配置参数作为第二配置项对应的参数。
在一个实施例中,如图10所示,装置还包括:
状态获取指令发送模块1002,用于向目标设备发送配置项执行状态获取指令。
当前配置项接收模块1004,用于接收目标设备返回的当前目标指令对应的当前配置项。
展示模块1006,用于展示当前配置项。
在一个实施例中,如图11所示,指令集合还包括一个或多个用于获取监控信息的监控指令,装置还包括监控信息获取模块1102,用于接收目标设备根据监控指令获取的目标设备监控信息。如图12所示,为一个实施例中计算机设备的内部结构图,该计算机设备通过系统连接总线连接处理器、非易失性存储介质、内存储器和网络接口。其中,该计算机设备的非易失性存储介质可存储操作系统和计算机可读指令,该计算机可读指令被执行时,可使得处理器执行一种设备参数配置方法。该计算机设备的处理器用于提供计算和控制能力,支撑整个计算机设备的运行。该内存储器中可储存有计算机可读指令,该计算机可读指令被处理器执行时,可使得处理器执行一种设备参数配置方法。计算机设备的网络接口用于进行网络通信,如发送指令集合等。本领域技术人员可以理解,图12中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布 置。
上述设备参数配置装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。其中,网络接口可以是以太网卡或无线网卡等。上述各模块可以硬件形式内嵌于或独立于服务器中的处理器中,也可以以软件形式存储于服务器中的存储器中,以便于处理器调用执行以上各个模块对应的操作。该处理器可以为中央处理单元(CPU)、微处理器、单片机等。
在一个实施例中,本申请提供的设备参数配置装置可以实现为一种计算机可读指令的形式,计算机可读指令可在如图12所示的计算机设备上运行,计算机设备的非易失性存储介质可存储组成该设备参数配置装置的各个程序模块,比如图7中的配置请求接收模块702、配置文件获取模块704、指令集合发送模块706、参数获取模块708和配置信息发送模块710。各个程序模块中包括计算机可读指令,计算机可读指令用于使计算机设备执行本说明书中描述的本申请各个实施例的设备参数配置方法中的步骤,例如,计算机设备可以通过如图7所示的设备参数配置装置中的配置请求接收模块702接收设备参数配置请求。通过配置文件获取模块704根据设备参数配置请求获取配置文件,配置文件包括配置项序列。通过指令集合发送模块706获取待配置的目标设备标识以及预设的指令集合,将指令集合发送到目标设备标识对应的目标设备中,指令集合包括多个用于执行参数配置的指令。通过参数获取模块708获取配置项序列中各个配置项对应的参数。通过配置信息发送模块710根据配置项序列中配置项的顺序向目标设备发送配置项以及配置项对应的参数,以使目标设备根据配置项在指令集合上获取对应的目标指令,并根据配置项对应的参数以及配置项的顺序执行目标指令。
在一个实施例中,提出了一种计算机设备,计算机设备的内部结构可对应于如图12所示的结构,即该计算机设备既可以是服务器也可以是终端,计算机设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,处理器执行计算机可读指令时实现以下步骤:接收设备参数配置请求。根据设备参数配置请求获取配置文件,配置文件包括配置项序列。获取待配置的目标设备标识以及预设的指令集合,将指令集合发送到目标设备标识对应的 目标设备中,指令集合包括多个用于执行参数配置的指令。获取配置项序列中各个配置项对应的参数。根据配置项序列中配置项的顺序向目标设备发送配置项以及配置项对应的参数,以使目标设备根据配置项在指令集合上获取对应的目标指令,并根据配置项对应的参数以及配置项的顺序执行目标指令。
在其中一个实施例中,处理器执行计算机可读指令时还执行以下步骤:接收配置文件设置请求,配置文件设置请求中携带多个配置项以及配置项的顺序。根据配置文件设置请求生成配置文件,配置文件包括根据配置项以及配置项的顺序生成的配置项序列。
在其中一个实施例中,配置文件包括一个或多个第一配置项以及一个或多个第二配置项,配置文件中设有各个第一配置项对应的参数,处理器执行计算机可读指令时还执行以下步骤:接收各个第二配置项对应的配置参数,将第二配置项以及配置参数关联存储。获取配置项序列中各个配置项对应的参数的步骤包括:将与第二配置项关联存储的配置参数作为第二配置项对应的参数。
在其中一个实施例中,处理器执行计算机可读指令时还执行以下步骤:向目标设备发送配置项执行状态获取指令。接收目标设备返回的当前目标指令对应的当前配置项。展示当前配置项。
在其中一个实施例中,指令集合还包括一个或多个用于获取监控信息的监控指令,处理器执行计算机可读指令时还执行以下步骤:接收目标设备根据监控指令获取的目标设备监控信息。
在一个实施例中,提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机可读指令,计算机可读指令被处理器执行时,使得处理器执行以下步骤接收设备参数配置请求。根据设备参数配置请求获取配置文件,配置文件包括配置项序列。获取待配置的目标设备标识以及预设的指令集合,将指令集合发送到目标设备标识对应的目标设备中,指令集合包括多个用于执行参数配置的指令。获取配置项序列中各个配置项对应的参数。根据配置项序列中配置项的顺序向目标设备发送配置项以及配置项对应的参数,以使目标设备根据配置项在指令集合上获取对应的目标指令,并根据配置项对应的参数以及配置项的顺序执行目标指令。
在其中一个实施例中,处理器执行计算机可读指令时还执行以下步骤:接收配置文件设置请求,配置文件设置请求中携带多个配置项以及配置项的顺序。根据配置文件设置请求生成配置文件,配置文件包括根据配置项以及配置项的顺序生成的配置项序列。
在其中一个实施例中,配置文件包括一个或多个第一配置项以及一个或多个第二配置项,配置文件中设有各个第一配置项对应的参数,处理器执行计算机可读指令时还执行以下步骤:接收各个第二配置项对应的配置参数,将第二配置项以及配置参数关联存储。获取配置项序列中各个配置项对应的参数的步骤包括:将与第二配置项关联存储的配置参数作为第二配置项对应的参数。
在其中一个实施例中,处理器执行计算机可读指令时还执行以下步骤:向目标设备发送配置项执行状态获取指令。接收目标设备返回的当前目标指令对应的当前配置项。展示当前配置项。
在其中一个实施例中,指令集合还包括一个或多个用于获取监控信息的监控指令,处理器执行计算机可读指令时还执行以下步骤:接收目标设备根据监控指令获取的目标设备监控信息。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,该计算机可读指令可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,前述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (20)

  1. 一种设备参数配置方法,包括:
    接收设备参数配置请求;
    根据所述设备参数配置请求获取配置文件,所述配置文件包括配置项序列;
    获取待配置的目标设备标识以及预设的指令集合,将所述指令集合发送到所述目标设备标识对应的目标设备中,所述指令集合包括多个用于执行参数配置的指令;
    获取所述配置项序列中各个配置项对应的参数;及
    根据所述配置项序列中配置项的顺序向所述目标设备发送所述配置项以及所述配置项对应的参数,以使所述目标设备根据所述配置项在所述指令集合上获取对应的目标指令,并根据所述配置项对应的参数以及所述配置项的顺序执行所述目标指令。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    接收配置文件设置请求,所述配置文件设置请求中携带多个所述配置项以及所述配置项的顺序;
    根据所述配置文件设置请求生成所述配置文件,所述配置文件包括根据所述配置项以及所述配置项的顺序生成的配置项序列。
  3. 根据权利要求1或2所述的方法,其特征在于,所述配置文件包括一个或多个第一配置项以及一个或多个第二配置项,所述配置文件中设有所述各个第一配置项对应的参数,所述方法还包括:
    接收所述各个第二配置项对应的配置参数,将所述第二配置项以及所述配置参数关联存储;
    所述获取所述配置项序列中各个配置项对应的参数的步骤包括:
    将与所述第二配置项关联存储的配置参数作为所述第二配置项对应的参数。
  4. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:
    向所述目标设备发送配置项执行状态获取指令;
    接收所述目标设备返回的当前目标指令对应的当前配置项;
    展示所述当前配置项。
  5. 根据权利要求1或2所述的方法,其特征在于,所述指令集合还包括一个或多个用于获取监控信息的监控指令,所述方法还包括:
    接收所述目标设备根据所述监控指令获取的目标设备监控信息。
  6. 一种设备参数配置装置,包括:
    配置请求接收模块,用于接收设备参数配置请求;
    配置文件获取模块,用于根据所述设备参数配置请求获取配置文件,所述配置文件包括配置项序列;
    指令集合发送模块,用于获取待配置的目标设备标识以及预设的指令集合,将所述指令集合发送到所述目标设备标识对应的目标设备中,所述指令集合包括多个用于执行参数配置的指令;
    参数获取模块,用于获取所述配置项序列中各个配置项对应的参数;及
    配置信息发送模块,用于根据所述配置项序列中配置项的顺序向所述目标设备发送所述配置项以及所述配置项对应的参数,以使所述目标设备根据所述配置项在所述指令集合上获取对应的目标指令,并根据所述配置项对应的参数以及所述配置项的顺序执行所述目标指令。
  7. 根据权利要求6所述的装置,其特征在于,所述装置还包括:
    设置请求接收模块,用于接收配置文件设置请求,所述配置文件设置请求中携带多个所述配置项以及所述配置项的顺序;
    文件生成模块,用于根据所述配置文件设置请求生成所述配置文件,所述配置文件包括根据所述配置项以及所述配置项的顺序生成的配置项序列。
  8. 根据权利要求6或7所述的装置,其特征在于,所述指令集合还包括一个或多个用于获取监控信息的监控指令,所述装置还包括:
    监控信息获取模块,用于接收所述目标设备根据所述监控指令获取的目标设备监控信息。
  9. 根据权利要求6或7所述的装置,其特征在于,所述配置文件包括一个或多个第一配置项以及一个或多个第二配置项,所述配置文件中设有所述各个 第一配置项对应的参数,所述装置还包括:
    参数关联存储模块,用于接收所述各个第二配置项对应的配置参数,将所述第二配置项以及所述配置参数关联存储;
    所述参数获取模块用于:
    将与所述第二配置项关联存储的配置参数作为所述第二配置项对应的参数。
  10. 根据权利要求6或7所述的装置,其特征在于,所述装置还包括:
    状态获取指令发送模块,用于向所述目标设备发送配置项执行状态获取指令;
    当前配置项接收模块,用于接收所述目标设备返回的当前目标指令对应的当前配置项;
    展示模块,用于展示所述当前配置项。
  11. 一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行以下步骤:
    接收设备参数配置请求;
    根据所述设备参数配置请求获取配置文件,所述配置文件包括配置项序列;
    获取待配置的目标设备标识以及预设的指令集合,将所述指令集合发送到所述目标设备标识对应的目标设备中,所述指令集合包括多个用于执行参数配置的指令;
    获取所述配置项序列中各个配置项对应的参数;及
    根据所述配置项序列中配置项的顺序向所述目标设备发送所述配置项以及所述配置项对应的参数,以使所述目标设备根据所述配置项在所述指令集合上获取对应的目标指令,并根据所述配置项对应的参数以及所述配置项的顺序执行所述目标指令。
  12. 根据权利要求11或12所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还用于实现以下步骤:
    接收配置文件设置请求,所述配置文件设置请求中携带多个所述配置项以 及所述配置项的顺序;
    根据所述配置文件设置请求生成所述配置文件,所述配置文件包括根据所述配置项以及所述配置项的顺序生成的配置项序列。
  13. 根据权利要求11或12所述的计算机设备,其特征在于,所述配置文件包括一个或多个第一配置项以及一个或多个第二配置项,所述配置文件中设有所述各个第一配置项对应的参数,所述处理器执行所述计算机可读指令时还用于实现以下步骤:
    接收所述各个第二配置项对应的配置参数,将所述第二配置项以及所述配置参数关联存储;
    所述处理器所执行的所述获取所述配置项序列中各个配置项对应的参数的步骤包括:
    将与所述第二配置项关联存储的配置参数作为所述第二配置项对应的参数。
  14. 根据权利要求11或12所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还用于实现以下步骤:
    向所述目标设备发送配置项执行状态获取指令;
    接收所述目标设备返回的当前目标指令对应的当前配置项;
    展示所述当前配置项。
  15. 根据权利要求11或12所述的计算机设备,其特征在于,所述指令集合还包括一个或多个用于获取监控信息的监控指令,所述处理器执行所述计算机可读指令时还用于实现以下步骤:
    接收所述目标设备根据所述监控指令获取的目标设备监控信息。
  16. 一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    接收设备参数配置请求;
    根据所述设备参数配置请求获取配置文件,所述配置文件包括配置项序列;
    获取待配置的目标设备标识以及预设的指令集合,将所述指令集合发送到 所述目标设备标识对应的目标设备中,所述指令集合包括多个用于执行参数配置的指令;
    获取所述配置项序列中各个配置项对应的参数;及
    根据所述配置项序列中配置项的顺序向所述目标设备发送所述配置项以及所述配置项对应的参数,以使所述目标设备根据所述配置项在所述指令集合上获取对应的目标指令,并根据所述配置项对应的参数以及所述配置项的顺序执行所述目标指令。
  17. 根据权利要求16或17所述的存储介质,其特征在于,所述处理器执行所述计算机可读指令时还用于实现以下步骤:
    接收配置文件设置请求,所述配置文件设置请求中携带多个所述配置项以及所述配置项的顺序;
    根据所述配置文件设置请求生成所述配置文件,所述配置文件包括根据所述配置项以及所述配置项的顺序生成的配置项序列。
  18. 根据权利要求16或17所述的存储介质,其特征在于,所述配置文件包括一个或多个第一配置项以及一个或多个第二配置项,所述配置文件中设有所述各个第一配置项对应的参数,所述处理器执行所述计算机可读指令时还用于实现以下步骤:
    接收所述各个第二配置项对应的配置参数,将所述第二配置项以及所述配置参数关联存储;
    所述处理器所执行的所述获取所述配置项序列中各个配置项对应的参数的步骤包括:
    将与所述第二配置项关联存储的配置参数作为所述第二配置项对应的参数。
  19. 根据权利要求16或17所述的存储介质,其特征在于,所述处理器执行所述计算机可读指令时还用于实现以下步骤:
    向所述目标设备发送配置项执行状态获取指令;
    接收所述目标设备返回的当前目标指令对应的当前配置项;
    展示所述当前配置项。
  20. 根据权利要求16或17所述的存储介质,其特征在于,所述指令集合还包括一个或多个用于获取监控信息的监控指令,所述处理器执行所述计算机可读指令时还用于实现以下步骤:
    接收所述目标设备根据所述监控指令获取的目标设备监控信息。
PCT/CN2017/108305 2017-10-16 2017-10-30 设备参数配置方法、装置、计算机设备和存储介质 WO2019075774A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710958414.9 2017-10-16
CN201710958414.9A CN107733708B (zh) 2017-10-16 2017-10-16 设备参数配置方法、装置、计算机设备和存储介质

Publications (1)

Publication Number Publication Date
WO2019075774A1 true WO2019075774A1 (zh) 2019-04-25

Family

ID=61211541

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/108305 WO2019075774A1 (zh) 2017-10-16 2017-10-30 设备参数配置方法、装置、计算机设备和存储介质

Country Status (2)

Country Link
CN (1) CN107733708B (zh)
WO (1) WO2019075774A1 (zh)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115204423A (zh) * 2018-05-24 2022-10-18 超聚变数字技术有限公司 一种设备管理方法及管理服务器
CN108804618B (zh) * 2018-05-31 2023-07-28 康键信息技术(深圳)有限公司 数据库配置方法、装置、计算机设备和存储介质
CN109460670B (zh) * 2018-09-26 2024-04-12 中国平安人寿保险股份有限公司 配置项解密方法、装置、计算机设备和存储介质
CN109766387A (zh) * 2018-12-20 2019-05-17 平安信托有限责任公司 数据处理文件生成方法、装置、计算机设备和存储介质
CN111385319B (zh) * 2018-12-27 2022-09-27 北京金风科创风电设备有限公司 风力发电机组的参数下载方法和装置、存储介质
CN110166278A (zh) * 2019-04-09 2019-08-23 平安科技(深圳)有限公司 Kubernetes集群搭建方法、装置、计算机设备及存储介质
CN111314147B (zh) * 2020-02-25 2022-11-18 浙江大华技术股份有限公司 智能设备配置方法、云平台及存储介质
CN111654408B (zh) * 2020-04-24 2023-08-22 平安科技(深圳)有限公司 设备监控方法、装置、计算机设备和存储介质
CN112379942A (zh) * 2020-11-16 2021-02-19 东信和平科技股份有限公司 一种扫描核对软件的配置方法、装置及其扫描核对方法
CN112398198A (zh) * 2020-11-18 2021-02-23 惠州Tcl移动通信有限公司 充电配置方法、装置、存储介质及移动终端
CN112787858B (zh) * 2020-12-30 2022-05-10 浙江三维利普维网络有限公司 数据模型参数配置方法、装置、电子装置及存储介质
CN113970915A (zh) * 2021-09-30 2022-01-25 武汉小安科技有限公司 智能中控设备的配置方法、装置、电子设备及存储介质
CN113992507B (zh) * 2021-10-11 2023-10-27 新华三信息安全技术有限公司 确定缺省参数值的方法、装置、服务器及存储介质
CN114650222B (zh) * 2022-03-14 2024-03-01 北京百度网讯科技有限公司 参数配置方法、装置、电子设备和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035016A (zh) * 2007-02-08 2007-09-12 中兴通讯股份有限公司 终端设备配置系统及方法
US20140244820A1 (en) * 2013-02-27 2014-08-28 Huawei Technologies Co., Ltd. Rule Set Orchestration Processing Method and Apparatus, and Cluster Data System
CN105224351A (zh) * 2014-06-17 2016-01-06 中兴通讯股份有限公司 快速配置实现方法及快速配置服务器
CN106604109A (zh) * 2016-12-30 2017-04-26 深圳Tcl数字技术有限公司 智能电视的配置方法及装置
CN106657233A (zh) * 2016-09-29 2017-05-10 Tcl商用信息科技(惠州)股份有限公司 一种升级显示器固件的方法和系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1265297C (zh) * 2002-10-18 2006-07-19 华为技术有限公司 一种设备数据的集中配置方法
CN100566357C (zh) * 2007-07-24 2009-12-02 华为技术有限公司 通信设备批量配置管理方法及其装置
CN103634144B (zh) * 2013-11-15 2017-06-13 新浪网技术(中国)有限公司 多idc集群的配置文件管理方法、系统和设备
WO2015096014A1 (zh) * 2013-12-23 2015-07-02 西门子公司 配置以太网设备的方法及其装置
CN106301906B (zh) * 2016-08-10 2020-02-07 青岛海信传媒网络技术有限公司 基于分布式系统的对象配置方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035016A (zh) * 2007-02-08 2007-09-12 中兴通讯股份有限公司 终端设备配置系统及方法
US20140244820A1 (en) * 2013-02-27 2014-08-28 Huawei Technologies Co., Ltd. Rule Set Orchestration Processing Method and Apparatus, and Cluster Data System
CN105224351A (zh) * 2014-06-17 2016-01-06 中兴通讯股份有限公司 快速配置实现方法及快速配置服务器
CN106657233A (zh) * 2016-09-29 2017-05-10 Tcl商用信息科技(惠州)股份有限公司 一种升级显示器固件的方法和系统
CN106604109A (zh) * 2016-12-30 2017-04-26 深圳Tcl数字技术有限公司 智能电视的配置方法及装置

Also Published As

Publication number Publication date
CN107733708A (zh) 2018-02-23
CN107733708B (zh) 2020-09-18

Similar Documents

Publication Publication Date Title
WO2019075774A1 (zh) 设备参数配置方法、装置、计算机设备和存储介质
US10678601B2 (en) Orchestration service for multi-step recipe composition with flexible, topology-aware, and massive parallel execution
US10824489B2 (en) Dynamic node rebalancing between container platforms
US10013491B2 (en) Methods and systems of workload mobility across divergent platforms
US20150186129A1 (en) Method and system for deploying a program module
US20150350021A1 (en) Generation and management of computing infrastructure instances
US9473356B2 (en) Automatic configuration of applications based on host metadata using application-specific templates
US9984086B2 (en) Performing actions on objects as a result of applying tags to the objects
US9378039B2 (en) Virtual machine storage replication schemes
US9785507B2 (en) Restoration of consistent regions within a streaming environment
WO2019075845A1 (zh) 链路调用关系的构建方法、装置、计算机设备及存储介质
US10341181B2 (en) Method and apparatus to allow dynamic changes of a replica network configuration in distributed systems
US11531528B2 (en) Systems and methods for non-disruptive continuous software delivery
US9596157B2 (en) Server restart management via stability time
US11693649B2 (en) Autonomous Kubernetes operator creation and management
US11195137B2 (en) Model-driven and automated system for shared resource solution design
US20220342742A1 (en) Graphical management of big data pipelines
US10659326B2 (en) Cloud computing network inspection techniques
US10325003B2 (en) Configuration resolution for transitive dependencies
US9256473B1 (en) Provision a virtual environment based on topology of virtual nodes, node dependencies and base node configuration information
US11645616B1 (en) Verifying the integrity of data transmitted between a firmware and a baseboard management controller (BMC)
US20240070132A1 (en) Independently loading related data into data storage
US20240070134A1 (en) Determining references to predefined types of records
US20170123821A1 (en) Human-Computer Interaction Function Execution Method and Terminal

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: 17929189

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24/09/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17929189

Country of ref document: EP

Kind code of ref document: A1