CN114691237A - Parameter configuration method of server, client and computing device - Google Patents
Parameter configuration method of server, client and computing device Download PDFInfo
- Publication number
- CN114691237A CN114691237A CN202210332263.7A CN202210332263A CN114691237A CN 114691237 A CN114691237 A CN 114691237A CN 202210332263 A CN202210332263 A CN 202210332263A CN 114691237 A CN114691237 A CN 114691237A
- Authority
- CN
- China
- Prior art keywords
- server
- configuration file
- client
- configuration
- communication link
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000004891 communication Methods 0.000 claims abstract description 59
- 238000012795 verification Methods 0.000 claims abstract description 17
- 238000012545 processing Methods 0.000 claims description 22
- 238000004590 computer program Methods 0.000 claims description 12
- 210000005069 ears Anatomy 0.000 claims description 4
- 230000008569 process Effects 0.000 abstract description 10
- 238000010586 diagram Methods 0.000 description 22
- 230000005540 biological transmission Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 230000006698 induction Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000003993 interaction Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 230000002427 irreversible effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4403—Processor initialisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention provides a parameter configuration method of a server, the server, a client and computing equipment, wherein the method comprises the following steps: the method comprises the steps that a server and a client establish a Near Field Communication (NFC) Communication link, and the server and the client comprise NFC modules; the server receives a configuration file from the client through an NFC communication link, wherein the configuration file comprises parameter information of the configuration server; the server carries out integrity check on the configuration file; and if the integrity verification is successful, the server performs configuration according to the configuration file. By establishing the NFC communication link between the server and the client, the server can be rapidly configured under the condition without a network. By carrying out integrity check on the configuration file, the server can be prevented from configuring according to the wrong configuration file, and the accuracy of the configuration process of the server according to the configuration file is improved.
Description
Technical Field
The present invention relates to the field of servers, and in particular, to a parameter configuration method for a server, a client, and a computing device.
Background
With the continuous development of cloud computing and big data, server nodes are configured on a large scale. Among them, the out-of-Band Management Controller (BMC) is used as a Management module of a server and undertakes more and more important Management and diagnosis tasks.
Currently, most server configurations require a network connection, and then a configuration operation of the server is performed through a management interface of the BMC. However, since the configuration of the server needs to be performed in a state of network connection, and the requirement for a network environment is high, the configuration of the server is greatly limited.
In summary, how to solve the problem of configuring a server in a network-free environment is a technical problem that needs to be solved at present.
Disclosure of Invention
The embodiment of the invention provides a parameter configuration method of a server, the server, a client and a computing device, which are used for solving the technical problem that the server can only be configured in a network environment in the prior art.
In a first aspect, an embodiment of the present invention provides a parameter configuration method for a server, including: the method comprises the steps that a server and a client establish a Near Field Communication (NFC) communication link, wherein the server comprises an NFC module; the server receives a configuration file from the client through the NFC communication link, wherein the configuration file comprises parameter information for configuring the server; the server carries out integrity check on the configuration file; and if the integrity check is successful, the server carries out configuration according to the configuration file.
In the embodiment of the invention, the NFC communication link between the server and the client is established, so that the server can be rapidly configured under the condition of no network. By carrying out integrity check on the configuration file, the server can be prevented from configuring according to the wrong configuration file, and the accuracy of the configuration process of the server according to the configuration file is improved.
Optionally, after the server receives the configuration file from the client through the NFC communication link, the method further includes: the server analyzes the configuration file to obtain parameter information; the server determines the total length of the parameter information; and if the total length of the parameter information is equal to a preset length, the server carries out configuration according to the configuration file.
In the embodiment of the invention, the server analyzes the configuration file, determines the total length of the parameter information, determines whether the configuration file sent by the client is the configuration file required by the server by judging whether the total length of the parameter information is the same as the preset length, and prevents the server from configuring according to the wrong configuration file, thereby realizing that the server configures according to the accurate configuration file.
Optionally, the configuration file further includes verification information; the server performs integrity check on the configuration file, including: the server analyzes the configuration file to obtain second check-up information; and if the first check information and the second check information are consistent, the integrity check is successful.
In the embodiment of the invention, the server carries out integrity check on the configuration file, so that the configuration file with errors in the transmission process can be found in time, the server is prevented from being configured according to the configuration file with errors, the safety of the configuration file in the transmission process is improved, and the server is configured according to the accurate configuration file.
Optionally, the parameter information includes at least one of: the server comprises an identifier of the server, authority management of the server and indication information used for indicating the server to give an alarm.
In the embodiment of the invention, at least one item of parameter information is determined in a targeted manner at the client according to the requirements of the user, so that the server is configured in a customized manner according to the requirements of the user, and the subsequent use of the user is facilitated.
Optionally, the establishing, by the server, an NFC communication link with the client includes: the server determines that the distance between the server and the client is smaller than a preset distance; and the server establishes NFC connection with the client.
In the embodiment of the invention, when the distance between the client and the server is less than the preset distance, the server and the client can establish the NFC communication link, so that the subsequent server can be conveniently configured according to the configuration file sent by the client.
Optionally, the server is located in a chassis, the chassis includes box ears disposed on two sides, and the NFC module is disposed inside the box ears of the server.
In the embodiment of the invention, the NFC modules of the server are arranged in the box lugs at two sides, so that the NFC modules can be protected by the shells of the box lugs, and the box lugs are protruded out of the case, thereby facilitating the approach of the client and the server and establishing an NFC communication link.
In a second aspect, an embodiment of the present invention provides a method for configuring parameters of a client, including: the method comprises the steps that a client establishes an NFC communication link with a server; and the client sends a configuration file to the server through the NFC communication link, wherein the configuration file comprises parameter information for configuring the server, the configuration file is used for verifying the integrity of the server, and if the verification is successful, the configuration file is configured according to the configuration file.
In the embodiment of the invention, the NFC communication link is established, so that the configuration file of the client can be conveniently and quickly sent to the server, and the subsequent server can configure the server according to the configuration file from the client.
Optionally, the parameter information includes at least one of: the server comprises an identifier of the server, authority management of the server and indication information used for indicating the server to give an alarm.
In the embodiment of the invention, at least one item of parameter information is determined in a targeted manner at the client according to the requirements of the user, so that the server is configured in a customized manner according to the requirements of the user, and the subsequent use of the user is facilitated.
In a third aspect, an embodiment of the present invention further provides a server, including: the processing unit is used for establishing an NFC communication link with the client, and the server comprises an NFC module; a transceiving unit, configured to receive a configuration file from the client over the NFC communication link, where the configuration file includes parameter information for configuring the server; the processing unit is further configured to perform integrity check on the configuration file, and configure according to the configuration file if the integrity check is successful.
Optionally, the transceiver unit, specifically configured to, after the server receives the configuration file from the client through the NFC communication link, further include: the server analyzes the configuration file to obtain parameter information; the server determines the total length of the parameter information; and if the total length of the parameter information is equal to a preset length, the server carries out configuration according to the configuration file.
Optionally, the processing unit is specifically configured to further include verification information in the configuration file; the server performs integrity check on the configuration file, including: the server analyzes the configuration file and determines second check-up information; and if the first check information and the second check information are consistent, the integrity check is successful.
Optionally, the transceiver unit is specifically configured to enable the parameter information to include at least one of: IP address of the server, identification of the server, authority management of the server and alarm notification of the server.
Optionally, the processing unit is specifically configured to establish an NFC communication link between the server and the client, and includes: the server determines that the distance between the server and the client is smaller than a preset distance; and the server establishes NFC connection with the client.
Optionally, the processing unit is specifically configured to position the server in a chassis, the chassis includes box lugs disposed on two sides, and the NFC module is disposed inside the box lugs of the server.
In a fourth aspect, an embodiment of the present invention provides a client, including: a processing unit for establishing an NFC communication link with a server, the server comprising an NFC module; and the receiving and sending unit is used for sending a configuration file to the server through the NFC communication link, wherein the configuration file comprises parameter information for configuring the server, the configuration file is used for carrying out integrity verification on the server, and if the verification is successful, the configuration file is configured according to the configuration file.
Optionally, the transceiver unit is specifically configured to enable the parameter information to include at least one of: IP address of the server, identification of the server, authority management of the server and alarm notification of the server.
In a fifth aspect, the embodiments of the present invention further provide a computing device, including at least one processor and at least one memory, where the memory stores a computer program, and when the program is executed by the processor, the processor is caused to execute a method for configuring parameters of a server or configuring parameters of a client.
In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium storing a program, which when executed on a computer, causes the computer to implement a method for performing parameter configuration of a server or parameter configuration of a client.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram of a possible application scenario provided in an embodiment of the present invention;
fig. 2 is a flowchart of a parameter configuration method of a server according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 4a is a schematic diagram of a location of an NFC module according to an embodiment of the present invention;
fig. 4b is a schematic diagram of a location of another NFC module according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a location of another NFC module according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a client and a server according to an embodiment of the present invention;
fig. 7 is a first interface diagram of a client according to an embodiment of the present invention;
fig. 8 is a second interface diagram of a client according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a parameter configuration apparatus of a server according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a parameter configuration apparatus of a client according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a computing device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
Fig. 1 is a schematic diagram of a possible application scenario provided in the embodiment of the present invention. The application scenario may include at least one server and at least one client, and fig. 1 illustrates an example including a server 101 and a client 102, where the server 101 may be a single physical server, a server cluster, or a cloud server. The client 102 is exemplified by a mobile phone. The server 101 needs to be configured before it can interact with the client 102. The configuration of the server 101 specifically includes that the server 101 needs configuration parameters according to actual needs of an enterprise, and after the server 101 configures the parameters, information interaction can be performed with the client 102. For example, the client 102 obtains and analyzes a log related to the information interaction with the server 101, and obtains information required by the client 102. The server 101 may be a computer or other electronic products, and is not limited herein. The client 102 may be a computer, a tablet, or other client, and is not limited herein.
In one possible scenario, the server 101 includes a Baseboard Management Controller (BMC), wherein the BMC is a Management system responsible for monitoring the status of the main system and components (including but not limited to voltage, current, temperature, and fault) in real time, and recording and reporting abnormal events. The configuration of the server 101 needs to enter a management interface of the BMC to perform configuration operation of the server 101 in the case of network connection, in this case, the server 101 needs to be powered on and powered on, and then needs to be connected to a network, which may cause the configuration operation of the server to be complicated. If the network fails, the server 101 cannot be configured, and the efficiency of server configuration is reduced.
In another possible case, the configuration of the server 101 requires the configuration operation of the server 101 by installing the relevant software tool in the client 102 in the case of network connection, in which case, the server needs to be powered on and powered on, and then the network connection is also required and required, which may cause the configuration operation of the server to be complicated.
In view of this, the method for configuring parameters of a server according to the embodiments of the present invention may implement configuration of the server only in a network environment by establishing an NFC communication link.
As shown in fig. 2, a flowchart of a method for configuring parameters of a server according to an embodiment of the present invention is provided, where the method includes the following steps:
step 201, the server establishes an NFC communication link with the client.
In the embodiment of the invention, the server is provided with the NFC module, the client has the NFC function, and when the NFC function of the client is started and the distance between the client and the NFC module of the server meets the preset distance, the client and the server can establish the NFC communication link. Wherein the preset distance is [0cm, 10cm ]. Under the condition of not needing network connection, the server and the client establish an NFC communication link, so that parameter configuration can be conveniently and rapidly carried out on the server subsequently.
At step 202, the server receives a configuration file from the client over the NFC communication link.
In the embodiment of the present invention, first, a user may determine a required configuration parameter at a client, where the user may determine the configuration parameter in an APP manner or in a applet manner, which is not limited herein, and refer to the following related description of fig. 7. The configuration parameters include an identifier of the server, authority management of the server, indication information for indicating an alarm of the server, and other configuration parameters, which are not limited herein. Wherein the identification of the server may be the IP address of the server. The following description takes the example that the user determines the configuration parameters by means of APP. And generating a configuration file by the APP according to the determined configuration parameters, and then sending the configuration file to the server by the client through the NFC communication link.
Step 203, the server checks the integrity of the configuration file.
In the embodiment of the invention, because the NFC communication link is established between the server and the client, the configuration file is damaged, lost, partially lost and the like in the process of sending the configuration file to the server by the client through the NFC communication link. In order to prevent the server from performing parameter configuration according to the received wrong configuration file, the server performs integrity check on the configuration file received from the client. For a specific verification method, reference may be made to the related description below, and details are not repeated here.
In step 204, the server determines whether the integrity check of the configuration file is successful, if so, step 205 is executed, and if not, step 206 is executed.
In the embodiment of the invention, if the integrity of the configuration file is successfully verified, the client side accurately sends the configuration file to the server, so that the subsequent server can conveniently configure according to the configuration file. If the integrity check of the configuration file fails, it is indicated that an error occurs in the configuration file of the client in the transmission process, in order to prevent the server from configuring according to the wrong configuration information, thereby causing a situation that the server is configured incorrectly, the server does not configure according to the wrong configuration file, and the server sends a message that the configuration file is wrong to the server, the client receives the message that the configuration information is wrong and then further processes the message, for example, the client analyzes the reason of the error of the configuration file, adjusts the configuration file according to the reason that the configuration file is wrong, and then sends the adjusted configuration file to the server through the NFC communication link again after the configuration file is adjusted.
Step 205, the server performs configuration according to the configuration file.
In the embodiment of the invention, the server is configured according to the configuration file, and after the server completes configuration, the server can realize information interaction with the intelligent terminal. The intelligent terminal may be a mobile phone, a tablet, or a computer, and is not limited herein.
At step 206, the server is not configured.
In the embodiment of the invention, when the integrity check of the configuration file fails, the configuration file is indicated to have problems in the transportation process, so that the server is not configured to avoid the configuration according to the wrong configuration file, and the wrong information of the configuration file is fed back to the client.
As can be seen from steps 201 to 206, by establishing the NFC communication link between the server and the client, the faster server configuration can be achieved without a network. By carrying out integrity check on the configuration file, the server can be prevented from configuring according to the wrong configuration file, and the accuracy of the configuration process of the server according to the configuration file is improved.
According to the scheme, firstly, an NFC communication link between the server and the client needs to be established, then the client sends the configuration file to the server through the NFC communication link, so that parameter configuration is carried out on the server, and how to establish the NFC communication link between the server and the client is introduced below.
Fig. 3 is a schematic structural diagram of a server according to an embodiment of the present invention. The server is located the quick-witted case, and the both sides of machine case have set up the case ear, and wherein, including the NFC module in the server, the NFC module in the server divide into two parts, and one is the induction coil module of NFC information transmission module and NFC, because the case ear is outstanding, places the induction coil module of NFC in the case ear, can make things convenient for the client to be close to the server and establish NFC communication link, wherein can set up in one of them case ear, can see fig. 4a and fig. 4 b. It is also possible to provide NFC induction coil modules in both housing lugs, see fig. 5. NFC's induction coil module is placed not only can save the space of quick-witted incasement portion in the case ear, and the shell of case ear also can be to a certain extent the induction coil module of protection NFC moreover. When the client opens the NFC function and is close to the box ear of the case, the NFC communication link can be established. See figure 6.
After the server and the client establish the NFC communication link, the client sends the configuration file to the server through the NFC communication link.
Fig. 7 is a first interface diagram of a client according to an embodiment of the present invention. The client needs to determine the configuration parameters and generate a configuration file according to the configuration parameters. Specifically, in order to confirm the identity of the user and improve the security of determining the configuration parameters, the first interface of the client is a login interface, and the user can enter the second interface of the client only by inputting an account and a password on the first interface, so that the security of determining the configuration parameters is improved, and the occurrence of malicious tampering of the configuration parameters can be effectively prevented. When the user inputs an account and a password and the login is successful, the first interface of the client jumps to the second interface, as shown in fig. 8. The second interface is used for the user to select the required configuration parameters, wherein the configuration parameters may be the IP address of the server, the identification of the server and the authority management of the server, the alarm notification of the server and other configuration parameters, but is not limited herein. For example, when a user selects three configuration parameters, namely an IP address of a server, an identifier of the server, and authority management of the server, and then selects and confirms the three configuration parameters, the client generates a configuration file according to the configuration parameters selected by the user, and then the client sends the generated configuration file to the server through the NFC communication link.
In order to ensure that the client accurately sends the configuration file to the server through the NFC communication link, the server needs to perform integrity check on the configuration file after receiving the configuration file sent by the client.
The server may perform integrity check on the configuration file by using a CRC check method, an MD5 check method, or other methods, which is not limited herein. Take the first check information as the first check code and the second check information as the second check code as an example. The CRC check mode is a commonly used check code with error detection capability, and whether the configuration file is maliciously tampered and damaged in the transmission process is judged by comparing whether a first check code of the configuration file generated by the client is consistent with a second check code of the configuration file received by the server, so that the security of the configuration file received by the server is improved.
The MD5 verification method takes the configuration file as a large text message, and generates a verification code through an irreversible character string transformation algorithm, thereby preventing the configuration file from being maliciously tampered, damaged and the like in the transmission process. For example, the configuration file generated by the client uses the MD5 verification method to generate the first verification code according to the configuration file generated by the client. Specifically, according to a configuration file generated by a client, determining that a data structure of the configuration file is as follows:
Checksum=
[FuncDesc1]
$DataLength=$
Data1=
Data2=
……
DataN=
[FuncDesc2]
$DataLength=$
Data1=
Data2=
……
DataN=
……
[FuncDescN]
$DataLength=$
Data1=
Data2=
……
DataN=
the client generates a configuration file, wherein Checksum is determined as a first check code of the configuration file generated by the client, and then after the generated configuration file is sent to the server through the NFC communication link, the server determines a data structure of the configuration file according to the received configuration file and determines a second check code of the received configuration file. If the first check code is equal to the second check code, it indicates that the configuration file generated by the client and the configuration file received by the server are the same configuration file, that is, the configuration file has no problem in the transmission process, so that the subsequent server can conveniently configure according to the configuration file.
If the first check code is not equal to the second check code, it is determined that the integrity check of the configuration file fails, and the configuration file generated by the client is not a configuration file as the configuration file received by the server due to malicious tampering or damage in the process of transmitting the configuration file generated by the client to the server through the NFC communication link.
The server can determine that the configuration file has no problem in the transmission process through integrity check, but in order to prevent the client from determining that the configuration file has errors, the server needs to perform length check on the parameter information in the configuration file. The server can perform the integrity check of the configuration file firstly and then perform the length check of the configuration file, can also perform the length check of the configuration file firstly and then perform the integrity check of the configuration file, and can also perform the integrity check of the configuration file and the length check of the configuration file simultaneously. And are not limited herein. In the following, it is convenient to introduce the scheme, for example, the server may perform integrity check on the configuration file first, and then perform length check on the configuration file.
The server analyzes the configuration file to obtain the parameter information, the server determines the total length of the parameter information according to the parameter information, if the total length of the parameter information is equal to the preset length, the length of the configuration file is verified successfully, and the server configures according to the configuration file, so that the parameter configuration of the server is realized, and the follow-up server can conveniently perform information interaction with the intelligent terminal. If the total length of the parameter information is not equal to the preset length, it indicates that the length check of the configuration file fails, that is, the configuration file sent by the client is not the configuration file required by the server, so that the server does not perform parameter configuration according to the wrong configuration file, but sends a message that the length check of the configuration file fails to the client, so that the client performs analysis and adjustment according to the wrong configuration information, and then resends the adjusted configuration information to the server.
The server checks the integrity of the configuration file and the length of the configuration file, if the two checks are successful, the received configuration file can be determined to be accurate, and then the server configures the server according to the configuration file, so that the server can be conveniently, quickly and accurately configured under the condition that no network exists.
Based on the same technical concept, the embodiment of the invention further provides a server, and the server can execute the method on the server side in the method embodiment. Referring to fig. 9, a structure of a server according to an embodiment of the present invention is shown, where the server 900 includes: a processing unit 901, configured to establish an NFC communication link with a client, where the server includes an NFC module; a transceiving unit 902, configured to receive, through the NFC communication link, a configuration file from the client, where the configuration file includes parameter information for configuring the server; the processing unit 901 is further configured to perform integrity check on the configuration file, and if the integrity check is successful, configure according to the configuration file.
Optionally, the transceiver unit 902 is specifically configured to, after the server receives the configuration file from the client through the NFC communication link, further include: the server analyzes the configuration file to obtain parameter information; the server determines the total length of the parameter information; and if the total length of the parameter information is equal to a preset length, the server carries out configuration according to the configuration file.
Optionally, the processing unit 901 is specifically configured to further include verification information in the configuration file; the server performs integrity check on the configuration file, including: the server analyzes the configuration file and determines second check-up information; and if the first check information and the second check information are consistent, the integrity check is successful.
Optionally, the transceiver 902 is specifically configured to use the parameter information to include at least one of the following: IP address of the server, identification of the server, authority management of the server and alarm notification of the server.
Optionally, the processing unit 901 is specifically configured to establish an NFC communication link between the server and the client, and includes: the server determines that the distance between the server and the client is smaller than a preset distance; and the server establishes NFC connection with the client.
Optionally, the processing unit 901 is specifically configured to locate the server in a chassis, where the chassis includes box lugs disposed on two sides, and the NFC module is disposed inside the box lugs of the server.
Based on the same technical concept, the embodiment of the present invention further provides a client, which can execute the method in the method embodiment. Referring to fig. 10, a client structure provided in an embodiment of the present invention is a client 1000, including: a processing unit 1001 configured to establish an NFC communication link with a server, where the server includes an NFC module; a transceiving unit 1002, configured to send a configuration file to the server through the NFC communication link, where the configuration file includes parameter information for configuring the server, and the configuration file is used for the server to perform integrity check, and if the check is successful, configure according to the configuration file.
Optionally, the transceiver 1002 is specifically configured to use the parameter information to include at least one of the following: IP address of the server, identification of the server, authority management of the server and alarm notification of the server.
Based on the same technical concept, the embodiment of the present application further provides a computing device, as shown in fig. 11, a computing device 1100 includes at least one processor 1101 and a memory 1102 connected to the at least one processor 1101, a specific connection medium between the processor 1101 and the memory 1102 is not limited in the embodiment of the present application, and the processor 1101 and the memory 1102 are connected through a bus in fig. 11 as an example. The bus may be divided into an address bus, a data bus, a control bus, etc. In the embodiment of the present application, the memory 1102 stores instructions executable by the at least one processor 1101, and the at least one processor 1101 may execute the aforementioned steps included in the method for configuring parameters of a server or configuring parameters of a client by executing the instructions stored in the memory 1102.
The processor 1101 is a control center of the computing device, and may connect various parts of the computing device by using various interfaces and lines, and perform or execute instructions stored in the memory 1102 and call up data stored in the memory 1102, thereby implementing data processing. Optionally, the processor 1101 may include one or more processing units, and the processor 1101 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes an issued instruction. It will be appreciated that the modem processor described above may not be integrated into the processor 1101. In some embodiments, the processor 1101 and the memory 1102 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 1101 may be a general purpose processor such as a Central Processing Unit (CPU), a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, configured to implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present Application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of parameter configuration of a server or parameter configuration of a client may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
The memory 1102, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 1102 may include at least one type of storage medium, which may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charged Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and the like. The memory 1102 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 1102 in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function to store program instructions and/or data.
Based on the same technical concept, the embodiment of the present application further provides a computer-readable storage medium storing a computer program executable by a computing device, and when the program runs on the computing device, the computer program causes the computing device to perform the steps of the method for configuring the parameters of the server or configuring the parameters of the client.
Based on the same technical concept, embodiments of the present application further provide a computer program product, which includes computer readable instructions, and when the computer readable instructions are executed by a processor, the method for configuring parameters of the server or configuring parameters of a client is implemented.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
Claims (10)
1. A parameter configuration method of a server is characterized by comprising the following steps:
a server and a client establish a Near Field Communication (NFC) communication link, wherein the server comprises an NFC module;
the server receives a configuration file from the client through the NFC communication link, wherein the configuration file comprises parameter information for configuring the server;
the server carries out integrity check on the configuration file;
and if the integrity verification is successful, the server carries out configuration according to the configuration file.
2. The method of claim 1, wherein after the server receives the configuration file from the client over the NFC communication link, further comprising:
the server analyzes the configuration file to obtain parameter information;
the server determines the total length of the parameter information;
and if the total length of the parameter information is equal to a preset length, the server carries out configuration according to the configuration file.
3. The method of claim 1, wherein the configuration file further comprises first verification information;
the server performs integrity check on the configuration file, including:
the server analyzes the configuration file to obtain second check-up information;
and if the first check information and the second check information are consistent, the integrity check is successful.
4. The method of claim 1, wherein the parameter information comprises at least one of:
an identification of the server;
the management authority of the server;
indication information for indicating the server alarm.
5. The method of claim 1, wherein the server establishing an NFC communication link with a client comprises:
the server determines that the distance between the server and the client is smaller than a preset distance;
and the server establishes NFC connection with the client.
6. The method of claim 1, wherein the server is located in a chassis, the chassis including case ears disposed on both sides, the NFC module being disposed inside the case ears of the server.
7. A method for configuring parameters of a client, comprising:
the method comprises the steps that a client establishes an NFC communication link with a server;
and the client sends a configuration file to the server through the NFC communication link, wherein the configuration file comprises parameter information for configuring the server, the configuration file is used for verifying the integrity of the server, and if the verification is successful, the configuration file is configured according to the configuration file.
8. A server, comprising:
the processing unit is used for establishing an NFC communication link with the client, and the server comprises an NFC module;
a transceiving unit, configured to receive a configuration file from the client over the NFC communication link, where the configuration file includes parameter information for configuring the server;
the processing unit is further configured to perform integrity check on the configuration file, and configure according to the configuration file if the integrity check is successful.
9. A client, comprising:
a processing unit for establishing an NFC communication link with a server, the server comprising an NFC module;
and the receiving and sending unit is used for sending a configuration file to the server through the NFC communication link, wherein the configuration file comprises parameter information for configuring the server, the configuration file is used for carrying out integrity verification on the server, and if the verification is successful, the configuration file is configured according to the configuration file.
10. A computing device comprising at least one processor and at least one memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the method of any of claims 1 to 6 or claim 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210332263.7A CN114691237A (en) | 2022-03-30 | 2022-03-30 | Parameter configuration method of server, client and computing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210332263.7A CN114691237A (en) | 2022-03-30 | 2022-03-30 | Parameter configuration method of server, client and computing device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114691237A true CN114691237A (en) | 2022-07-01 |
Family
ID=82140361
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210332263.7A Pending CN114691237A (en) | 2022-03-30 | 2022-03-30 | Parameter configuration method of server, client and computing device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114691237A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116346804A (en) * | 2022-12-29 | 2023-06-27 | 苏州浪潮智能科技有限公司 | System and method for remote voice management server equipment based on mobile terminal |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103580908A (en) * | 2012-08-10 | 2014-02-12 | 百度在线网络技术(北京)有限公司 | Server configuration method and system |
CN105338011A (en) * | 2014-06-23 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Cloud-service-based system configuration method and apparatus, and cloud server |
CN110391939A (en) * | 2019-07-26 | 2019-10-29 | 秒针信息技术有限公司 | Operating system configuration method, device and computer storage medium based on NFC |
CN110427735A (en) * | 2019-07-31 | 2019-11-08 | 上海联影医疗科技有限公司 | A kind of method of calibration, device, server and storage medium |
CN110909394A (en) * | 2019-11-24 | 2020-03-24 | 苏州浪潮智能科技有限公司 | Configuration file monitoring method of server |
CN112822041A (en) * | 2020-12-31 | 2021-05-18 | 深圳市潮流网络技术有限公司 | Information configuration method and device, mobile terminal and computer readable storage medium |
CN113014667A (en) * | 2021-03-18 | 2021-06-22 | 山东英信计算机技术有限公司 | Configuration method, device and equipment of rack server and storage medium |
WO2021121125A1 (en) * | 2019-12-16 | 2021-06-24 | 华为技术有限公司 | Control method for smart home devices and medium and terminal thereof |
CN113727406A (en) * | 2020-05-21 | 2021-11-30 | 北京三快在线科技有限公司 | Communication control method, device, equipment and computer readable storage medium |
CN114139134A (en) * | 2021-12-08 | 2022-03-04 | 生迪智慧科技有限公司 | Program upgrade method, device and device for terminal equipment |
-
2022
- 2022-03-30 CN CN202210332263.7A patent/CN114691237A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103580908A (en) * | 2012-08-10 | 2014-02-12 | 百度在线网络技术(北京)有限公司 | Server configuration method and system |
CN105338011A (en) * | 2014-06-23 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Cloud-service-based system configuration method and apparatus, and cloud server |
CN110391939A (en) * | 2019-07-26 | 2019-10-29 | 秒针信息技术有限公司 | Operating system configuration method, device and computer storage medium based on NFC |
CN110427735A (en) * | 2019-07-31 | 2019-11-08 | 上海联影医疗科技有限公司 | A kind of method of calibration, device, server and storage medium |
CN110909394A (en) * | 2019-11-24 | 2020-03-24 | 苏州浪潮智能科技有限公司 | Configuration file monitoring method of server |
WO2021121125A1 (en) * | 2019-12-16 | 2021-06-24 | 华为技术有限公司 | Control method for smart home devices and medium and terminal thereof |
CN113727406A (en) * | 2020-05-21 | 2021-11-30 | 北京三快在线科技有限公司 | Communication control method, device, equipment and computer readable storage medium |
CN112822041A (en) * | 2020-12-31 | 2021-05-18 | 深圳市潮流网络技术有限公司 | Information configuration method and device, mobile terminal and computer readable storage medium |
CN113014667A (en) * | 2021-03-18 | 2021-06-22 | 山东英信计算机技术有限公司 | Configuration method, device and equipment of rack server and storage medium |
CN114139134A (en) * | 2021-12-08 | 2022-03-04 | 生迪智慧科技有限公司 | Program upgrade method, device and device for terminal equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116346804A (en) * | 2022-12-29 | 2023-06-27 | 苏州浪潮智能科技有限公司 | System and method for remote voice management server equipment based on mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109639724B (en) | Password retrieving method, password retrieving device, computer device and storage medium | |
CN112039900B (en) | Network security risk detection method, system, computer device and storage medium | |
CN110955899B (en) | Safety test method, device, test equipment and medium | |
CN112672357B (en) | Method and device for processing user account in service system and computer equipment | |
CN111149122A (en) | Block chain-based security management method, related device and storage medium | |
CN104869006A (en) | Data service automatic activation method and platform | |
CN110247897B (en) | System login method, device, gateway and computer readable storage medium | |
CN109447384A (en) | Verification method, device, equipment and the storage medium of air control system | |
CN115052053A (en) | Message processing method and simulator for bank system test | |
CN106559386A (en) | A kind of authentication method and device | |
CN114691237A (en) | Parameter configuration method of server, client and computing device | |
CN108881320B (en) | Authentication processing method for user login, server and client | |
CN114884963A (en) | Management method and management device of digital certificate | |
CN113791792A (en) | Application calling information acquisition method and device and storage medium | |
CN108234399B (en) | Interface communication method and terminal | |
CN117729008A (en) | Data security protection method and device, electronic equipment and storage medium | |
CN114285657B (en) | Firewall security policy change verification method and device | |
CN111190754A (en) | Block chain event notification method and block chain system | |
CN116421977A (en) | Cloud game security verification method, device and equipment | |
CN115659310A (en) | Offline authorization method, device and equipment | |
CN111131198B (en) | Updating method and device for network security policy configuration | |
CN114826739A (en) | Verification method, verification device and server | |
CN114257632A (en) | Disconnection reconnection method and device, electronic equipment and readable storage medium | |
CN110011817B (en) | Network element upgrading method and device and computer readable storage medium | |
CN115499836B (en) | Communication method, communication device, electronic equipment, storage medium and vehicle |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |