[go: up one dir, main page]

CN114115066A - Bare device control method and target electronic device - Google Patents

Bare device control method and target electronic device Download PDF

Info

Publication number
CN114115066A
CN114115066A CN202111470174.0A CN202111470174A CN114115066A CN 114115066 A CN114115066 A CN 114115066A CN 202111470174 A CN202111470174 A CN 202111470174A CN 114115066 A CN114115066 A CN 114115066A
Authority
CN
China
Prior art keywords
bare
information
created
creating
bare device
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
Application number
CN202111470174.0A
Other languages
Chinese (zh)
Inventor
简志峰
吴炎冰
张鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202111470174.0A priority Critical patent/CN114115066A/en
Publication of CN114115066A publication Critical patent/CN114115066A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a bare device control method and a target electronic device, which can be applied to the target electronic device. The method and the device can send the bare device creation information to the configuration server by obtaining the bare device creation information which comprises at least one device identifier of the bare device to be created, obtain the target configuration file returned by the configuration server based on the bare device creation information, and create each bare device to be created based on the target configuration file. The invention can realize the automatic creation of the bare equipment without manually executing commands one by one, thereby effectively reducing errors caused by human, reducing the consumption of human resources, reducing the cost of manpower and time and improving the creation efficiency of the bare equipment.

Description

Bare device control method and target electronic device
Technical Field
The invention relates to the field of computer science and technology, in particular to a bare device control method and target electronic equipment.
Background
With the development of computer science and technology, the control technology of bare devices is continuously improved.
In practical applications, large database systems (e.g., Oracle databases) often need bare devices for support. When the system uses the bare device, the data transmission between the database and the bare device can be directly carried out without passing through the operating system layer. Therefore, for a database system with frequent reading and writing, the system performance can be effectively improved by using the bare equipment.
Currently, the prior art can create bare devices on a host by a technician through manual creation. Specifically, the technician needs to manually execute the configuration command for the bare device one by one to complete the creation of the bare device on the host.
However, the manual creation process of the bare device is complicated and error-prone, which may result in inefficient creation.
Disclosure of Invention
In view of the above problems, the present invention provides a bare device control method and a target electronic device, which overcome or at least partially solve the above problems, and the technical solutions are as follows:
a bare device control method is applied to a target electronic device and comprises the following steps:
obtaining bare device creating information, wherein the bare device creating information comprises at least one device identifier of a bare device to be created;
sending the bare equipment creating information to a configuration server;
obtaining a target configuration file returned by the configuration server based on the bare equipment creating information;
and creating each bare device to be created based on the target configuration file.
Optionally, the sending the bare device creation information to a configuration server includes:
encrypting the bare device creating information to obtain the encrypted bare device creating information;
sending the encrypted bare equipment creating information to the configuration server;
the obtaining of the target configuration file returned by the configuration server based on the bare device creation information includes:
obtaining the target configuration file returned by the configuration server based on the encrypted bare device creation information; the target configuration file is generated by the configuration server based on the decrypted bare device creation information, and the decrypted bare device creation information is generated by the configuration server after decrypting the encrypted bare device creation information.
Optionally, the method further includes:
before creating each bare device to be created based on the target configuration file, determining device information of the currently created bare device as first device information on the target electronic device;
after each bare device to be created is created based on the target configuration file, determining device information of the target electronic device, which is currently created with the bare device, as second device information;
and verifying whether the second equipment information is correct or not based on the first equipment information and the bare equipment creating information.
Optionally, after creating each bare device to be created based on the target configuration file, the method further includes:
and in response to a bare device attribute modification instruction, modifying the attribute of each created bare device to be created to set user authority information matched with each created bare device to be created.
Optionally, the creating each bare device to be created based on the target configuration file includes:
and responding to a restart configuration instruction, executing a restart operation and creating each bare device to be created based on the target configuration file in the restart process.
A target electronic device, comprising: the device comprises a first obtaining unit, a first sending unit, a second obtaining unit and a creating unit; wherein:
the first obtaining unit is configured to obtain bare device creation information, where the bare device creation information includes a device identifier of at least one bare device to be created;
the first sending unit is used for sending the bare equipment creating information to a configuration server;
the second obtaining unit is configured to obtain a target configuration file returned by the configuration server based on the bare device creation information;
and the creating unit is used for creating each bare device to be created based on the target configuration file.
Optionally, the first sending unit includes: the encryption unit, the third obtaining unit and the second sending unit; wherein:
the encryption unit is used for encrypting the bare equipment creating information;
the third obtaining unit is configured to obtain the encrypted bare device creation information;
the second sending unit is configured to send the encrypted bare device creation information to the configuration server;
the second obtaining unit is configured to obtain the target configuration file returned by the configuration server based on the encrypted bare device creation information; the target configuration file is generated by the configuration server based on the decrypted bare device creation information, and the decrypted bare device creation information is generated by the configuration server after decrypting the encrypted bare device creation information.
Optionally, the target electronic device further includes: a first determining unit, a second determining unit and a verifying unit;
the first determining unit is configured to determine, on the target electronic device, device information of a currently created bare device as first device information before creating each bare device to be created based on the target configuration file;
the second determining unit is configured to determine, after creating each bare device to be created based on the target configuration file, device information of the target electronic device that has created the bare device currently as second device information;
the verification unit is configured to verify whether the second device information is correct based on the first device information and the bare device creation information.
Optionally, the target electronic device further includes: a modification unit;
the modification unit is configured to, after creating each bare device to be created based on the target configuration file, modify, in response to a bare device attribute modification instruction, an attribute of each created bare device to be created to set user right information matching each created bare device to be created.
Optionally, the creating unit is configured to, in response to a restart configuration instruction, execute a restart operation and create each bare device to be created based on the target configuration file in a restart process.
According to the bare device control method and the target electronic device provided by the embodiment, the bare device creation information including the device identifier of at least one bare device to be created is obtained, the bare device creation information is sent to the configuration server, the target configuration file returned by the configuration server based on the bare device creation information is obtained, and each bare device to be created is created based on the target configuration file. The invention can realize the automatic creation of the bare equipment without manually executing commands one by one, thereby effectively reducing errors caused by human, reducing the consumption of human resources, reducing the cost of manpower and time and improving the creation efficiency of the bare equipment.
The foregoing description is only an overview of the technical solutions of the present invention, and the following detailed description of the present invention is provided to enable the technical means of the present invention to be more clearly understood, and to enable the above and other objects, features, and advantages of the present invention to be more clearly understood.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart illustrating a first bare device control method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a second bare device control method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a third bare device control method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a first target electronic device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a second target electronic device according to an embodiment of the present invention;
fig. 6 shows a schematic structural diagram of a third target electronic device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
As shown in fig. 1, the present embodiment proposes a bare device control method, which can be applied to a target electronic device, and includes the following steps:
s101, bare device creating information is obtained, wherein the bare device creating information comprises at least one device identifier of a bare device to be created;
the target electronic device may be a terminal device (such as a host and a mobile phone), or may be a server, and the specific device type of the target electronic device is not limited in the present invention.
Wherein the bare device creation information may include device information specifying the created bare device. Alternatively, the bare device may be a magnetic disk.
The bare device to be created may be a specified bare device that needs to be created on the target electronic device.
Specifically, the bare device creation information may include device identifications of one or more bare devices to be created.
It should be noted that the bare device creation information may be created by a technician according to actual needs. Of course, the bare device creation information may also be created by the machine according to a preset creation rule.
S102, sending the bare equipment creating information to a configuration server;
specifically, the bare device creation information can be sent to the configuration server after the bare device creation information is obtained.
The configuration server can generate configuration files in the same format according to the bare device creation information and return the configuration files to the target electronic device. And the target electronic device may implement the setup of the bare device based on the configuration file.
Optionally, the configuration server may generate a raw configuration file (/ etc/udev/rule.d/60-raw.rule) in the same format based on the bare device creation information. For example, the content in the configuration file may be:
ACTION==“add”,KERNEL==“sddlm*”,SUBSYSTEM==“block”,PROGRAM==“/sbin/scsi_id--whitelisted--replace-whitespace--device=%N”,RESULT==“scsi_id”,RUN+=“/bin/raw/dev/raw/raw1%N”;
ACTION==“add”,KERNEL==“sddlm*”,SUBSYSTEM==“block”,PROGRAM==“/sbin/scsi_id--whitelisted--replace-whitespace--device=%N”,RESULT==“scsi_id”,RUN+=“/bin/raw/dev/raw/raw26%N”;
ACTION==“add”,KERNEL==“raw*”,OWNER=“grid”,GROUP=“asmadmin”,MODE=“660”;
ACTION==“add”,KERNEL==“rawctl”,OWNER=“root”,GROUP=“disk”,MODE=“660”。
s103, acquiring a target configuration file returned by the configuration server based on the bare equipment creating information;
the target configuration file may be a configuration file generated by the configuration server based on the bare device creation information.
Specifically, the present invention may obtain the target configuration file returned by the configuration server after the configuration server generates the target configuration file.
And S104, creating each bare device to be created based on the target configuration file.
Specifically, the bare device to be created can be created on the target electronic device based on the target configuration file after the target configuration file is obtained.
Specifically, the present invention can configure the corresponding parameters on the target electronic device based on the content in the target configuration file, and automatically create and bind the bare device to be created.
Optionally, in another bare device control method proposed in this embodiment, the step S104 may include:
and responding to the restart configuration instruction, executing restart operation and creating each bare device to be created based on the target configuration file in the restart process.
Specifically, after receiving the target configuration file, the invention can configure the relevant parameters based on the target configuration file in the restarting process, and complete the automatic creation and binding of the bare device to be created in the restarting process.
It should be noted that, according to the present invention, through the steps shown in fig. 1, automatic creation of bare devices can be achieved without manually executing commands one by one, thereby effectively reducing errors caused by human beings, reducing consumption of human resources, reducing costs of manpower and time, improving creation efficiency of bare devices, reducing tedious manual tasks of technicians, and releasing technicians from complex work.
Optionally, in the other bare device control method provided in this embodiment, a plurality of electronic devices including the target electronic device may send the bare device creation information to the configuration server through the cloud management platform. And then, the cloud management platform can receive a configuration file returned by the configuration server, and respectively send the configuration file to each electronic device in batch to instruct each electronic device to create the bare devices to be created in the restarting process, so that the batch creation of each electronic device on the bare devices to be created is realized, and the creation efficiency of the electronic device on the devices to be created is further improved.
Optionally, in the other bare device control method proposed in this embodiment, after step S104, the method may further include:
and in response to the bare device attribute modification instruction, modifying the attribute of each created bare device to be created to set user authority information matched with each created bare device to be created.
Specifically, the invention can set the user authority information required by the bare device by modifying the attribute of the created bare device according to the requirement.
The bare device control method provided by the embodiment can be applied to target electronic devices. The method and the device can send the bare device creation information to the configuration server by obtaining the bare device creation information which comprises at least one device identifier of the bare device to be created, obtain the target configuration file returned by the configuration server based on the bare device creation information, and create each bare device to be created based on the target configuration file. The invention can realize the automatic creation of the bare equipment without manually executing commands one by one, thereby effectively reducing errors caused by human, reducing the consumption of human resources, reducing the cost of manpower and time and improving the creation efficiency of the bare equipment.
Based on fig. 1, as shown in fig. 2, the present embodiment proposes a second bare device control method. The method may further comprise:
s201, before each bare device to be created is created based on the target configuration file, determining device information of the currently created bare device as first device information on a target electronic device;
it should be noted that, in order to ensure that the creation of the bare device to be created can meet the requirements of the number of bare devices and device identifiers corresponding to the bare device creation information, the present invention may collect, on the target electronic device, device information of an existing bare device before the bare device to be created is created, and device information of the bare device after the bare device to be created is created, and then determine whether the creation requirement of the bare device is met through comparison and verification of the information.
Specifically, the present invention may collect device information of the bare device created on the target electronic device before step S104, for example, as shown in fig. 2, before sending the bare device creation information to the configuration server, that is, before step S102.
Optionally, the collected device information of the bare device may include information such as the number of bare devices, an identifier of the bare device, a total size of a partition, an available space, an used space, a percentage of the used space, and/or a link state of each bare device.
Specifically, the present invention may acquire and obtain the device information of the bare device currently created on the target electronic device by scanning the bare device and executing the acquisition command. It should be noted that, collecting the device information of the bare device after scanning may omit the bare device information created recently.
Specifically, for different types of bare devices from different manufacturers, the execution command used by the present invention to collect device information of the bare device may be different. For example, for a first type of bare device, the present invention may collect bare device storage information and the number of bare devices by executing commands of/sbin/powermt display dev ═ all | grep "Symmetrix ID" | sort | uniq | awk-F "═ { print $2}' and/sbin/powermt display dev ═ all | grep" Pseudo "| wc-l, respectively;
for another example, for the second type of bare device, the present invention may collect bare device storage information and the number of bare devices of the bare device by executing commands of/opt/dynamic link manager/bin/dlnkmgr view-path | grep-i HITACHI | awk '{ print substr ($5,2,15) }' | sort | uniq and/opt/dynamic link manager/bin/dlnkmgr view-path | grep-i HITACHI | awk '{ print $13}' | sort | uniq | wc-l, respectively;
for another example, for the third type of bare device, the present invention may collect bare device storage information and the number of bare devices of the bare device by executing execution commands of/usr/sbin/upadmin show vlun | grep-Ev "Status | - - - -" | awk '{ print $8}' | sort | uniq and/usr/sbin/upadmin show vlun | grep-Ev "Status | - - -" | awk '{ print $2}' | sort | uniq | wc-l, respectively.
Optionally, the present invention may also check the link status and stored multipath status of the bare device. Verifying the multipath aggregation state of all the current bare devices, and monitoring the link state of each link; it should be noted that the link status may include an abnormal status and a normal status, and may also include an alive/dead status. Specifically, if there is a bare device with an abnormal link status, it needs to be listed separately and handed over to the technician for disposal. Specifically, the execution command used by the bare device for calculating the abnormal link according to the present invention may be different for bare devices from different vendors, i.e., different types of bare devices. For example, for a first type of bare device, the invention may calculate a bare device in an abnormal link state by executing an execution command of/sbin/powermt display dev ═ all | grepsd | grep-iv alive | wc-l;
for another example, for a second type of bare device, the invention may calculate the bare device in an abnormal link state by executing an execution command of/opt/dynamic link manager/bin/dlnkmgr view-path | awk 'NR >5' | grep-vKAPL | grep-iv Online | wc-l;
for another example, for the third type of bare device, the invention may calculate the bare device of the abnormal link by executing the command of/usr/sbin/upadmin show vlun | grep-Ev' State | Array | Module | Note | - - - - - - "| grep-w-v Normal | wc-l.
Optionally, for the bare device whose link state is detected to be abnormal before scanning, the bare device whose link state is abnormal may be further determined after scanning again. If the link state is still abnormal after scanning, the link state can be submitted to a storage team for resolution. Specifically, when the bare device is rescanned, the present invention may first execute the command cat/sys/class/fc _ host/node _ name to check the HBA card status; then, the naked device is scanned by executing a command echo '1' >/sys/class/fc _ host/host1/issue _ lip or echo '- -' >/sys/class/sci _ host/host 1/scan; after scanning, the present invention may execute a multipath configuration command, such as powermtconfig, to validate the multipath.
Specifically, the present invention may determine the device information of the created bare device collected from the target electronic device as the first device information.
S202, after each bare device to be created is created based on the target configuration file, determining the device information of the currently created bare device of the target electronic device as second device information;
specifically, the present invention may collect, on the target electronic device, the device information of each bare device to be created, and determine the device information as the second device information.
S203, verifying whether the second device information is correct or not based on the first device information and the bare device creating information.
Specifically, the method and the device can verify whether the second device information meets the creation requirement of the bare device according to the first device information and the information such as the device identification and the number of the bare devices to be created, which are carried in the bare device creation information, so that the accuracy of creation is ensured, and the control accuracy is improved. If the verification is passed, the invention can determine whether the creation can meet the creation requirement of the bare device; if not, the invention can output the relevant information of the abnormal condition to be handed to the technical personnel for treatment.
According to the bare device control method provided by the embodiment, whether the second device information meets the creation requirement of the bare device at this time can be verified according to the first device information and the information such as the device identifier and the number of the bare devices to be created, which are carried in the bare device creation information, so that the creation accuracy is ensured, and the control accuracy is improved.
Based on fig. 1, as shown in fig. 3, the present embodiment proposes a third bare device control method. In the method, step S102 may include steps S301, S302, and S303; step S103 may be step S304; wherein:
s301, encrypting the bare device creating information;
s302, encrypted bare equipment creating information is obtained;
s303, sending the encrypted bare equipment creating information to a configuration server;
specifically, the method and the device can encrypt the bare device creating information to obtain the encrypted bare device creating information after obtaining the bare device creating information, and then send the encrypted bare device creating information to the configuration server, so that the problem of information leakage caused by a stolen chain of the bare device creating information in the process of being transmitted to the configuration server is solved, the use reliability of the bare device can be guaranteed, the device information and related data can be prevented from being leaked, and the information transmission safety is improved.
It should be noted that the encryption algorithm used in the encryption is not limited in the present invention, such as a 3DES symmetric encryption algorithm.
S304, obtaining a target configuration file returned by the configuration server based on the encrypted bare device creation information; the target configuration file is generated by the configuration server based on the decrypted bare device creating information, and the decrypted bare device creating information is generated by the configuration server after decrypting the encrypted bare device creating information.
Specifically, the configuration server may decrypt, after obtaining the encrypted bare device creation information, using a decryption algorithm that matches an encryption algorithm used in the encryption process to obtain the decrypted bare device creation information, and then generate the target configuration file based on the decrypted bare device creation information and return the target configuration file to the target electronic device.
The bare device control method provided by the embodiment can prevent the problem of information leakage caused by a stolen chain of the bare device during the process of creating information and transmitting the information to the configuration server, can ensure the use reliability of the bare device, prevents the leakage of device information and related data, and improves the information transmission safety.
Corresponding to the method shown in fig. 1, as shown in fig. 4, the present embodiment proposes a first target electronic device. The target electronic device may include a first obtaining unit 101, a first transmitting unit 102, a second obtaining unit 103, and a creating unit 104; wherein:
a first obtaining unit 101, configured to obtain bare device creation information, where the bare device creation information includes a device identifier of at least one bare device to be created;
a first sending unit 102, configured to send bare device creation information to a configuration server;
a second obtaining unit 103, configured to obtain a target configuration file returned by the configuration server based on the bare device creation information;
a creating unit 104, configured to create each bare device to be created based on the target configuration file.
It should be noted that, the first obtaining unit 101, the first sending unit 102, the second obtaining unit 103, and the creating unit 104 may refer to the relevant descriptions of steps S101, S102, S103, and S104 in fig. 1, respectively, and the relevant contents of the first obtaining unit 101, the first sending unit 102, the second obtaining unit 103, and the creating unit 104 are not described herein again.
Optionally, the creating unit 104 is configured to, in response to the restart configuration instruction, execute a restart operation and create each bare device to be created based on the target configuration file in the restart process.
Optionally, the target electronic device further includes: a modification unit;
and the modification unit is used for responding to the attribute modification instruction of the bare device after each bare device to be created is created based on the target configuration file, and modifying the attribute of each created bare device to be created so as to set the user authority information matched with each created bare device to be created.
Optionally, as shown in fig. 5, in the second target electronic device proposed in this embodiment, the first sending unit 102 includes: an encryption unit 201, a third obtaining unit 202, a second sending unit 203; wherein:
an encryption unit 201 for encrypting the bare device creation information;
a third obtaining unit 202 configured to obtain encrypted bare device creation information;
a second sending unit 203, configured to send the encrypted bare device creation information to the configuration server;
a second obtaining unit 103, configured to obtain a target configuration file returned by the configuration server based on the encrypted bare device creation information; the target configuration file is generated by the configuration server based on the decrypted bare device creating information, and the decrypted bare device creating information is generated by the configuration server after decrypting the encrypted bare device creating information.
Optionally, as shown in fig. 6, in a third target electronic device proposed in this embodiment, the target electronic device further includes: a first determining unit 301, a second determining unit 302, and a verifying unit 303;
a first determining unit 301, configured to determine, on a target electronic device, device information of a currently created bare device as first device information before creating each bare device to be created based on a target configuration file;
a second determining unit 302, configured to determine, after creating each bare device to be created based on the target configuration file, device information of a target electronic device that has created the bare device currently as second device information;
a verifying unit 303, configured to verify whether the second device information is correct based on the first device information and the bare device creation information.
The target electronic device provided in this embodiment may send the bare device creation information to the configuration server by obtaining the bare device creation information, where the bare device creation information includes a device identifier of at least one bare device to be created, obtain a target configuration file returned by the configuration server based on the bare device creation information, and create each bare device to be created based on the target configuration file. The invention can realize the automatic creation of the bare equipment without manually executing commands one by one, thereby effectively reducing errors caused by human, reducing the consumption of human resources, reducing the cost of manpower and time and improving the creation efficiency of the bare equipment.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A bare device control method, applied to a target electronic device, includes:
obtaining bare device creating information, wherein the bare device creating information comprises at least one device identifier of a bare device to be created;
sending the bare equipment creating information to a configuration server;
obtaining a target configuration file returned by the configuration server based on the bare equipment creating information;
and creating each bare device to be created based on the target configuration file.
2. The bare device control method according to claim 1, wherein the sending the bare device creation information to a configuration server comprises:
encrypting the bare device creating information to obtain the encrypted bare device creating information;
sending the encrypted bare equipment creating information to the configuration server;
the obtaining of the target configuration file returned by the configuration server based on the bare device creation information includes:
obtaining the target configuration file returned by the configuration server based on the encrypted bare device creation information; the target configuration file is generated by the configuration server based on the decrypted bare device creation information, and the decrypted bare device creation information is generated by the configuration server after decrypting the encrypted bare device creation information.
3. The bare device control method according to claim 1, wherein the method further comprises:
before creating each bare device to be created based on the target configuration file, determining device information of the currently created bare device as first device information on the target electronic device;
after each bare device to be created is created based on the target configuration file, determining device information of the target electronic device, which is currently created with the bare device, as second device information;
and verifying whether the second equipment information is correct or not based on the first equipment information and the bare equipment creating information.
4. The bare device control method according to claim 1, wherein after the creating each bare device to be created based on the target profile, the method further comprises:
and in response to a bare device attribute modification instruction, modifying the attribute of each created bare device to be created to set user authority information matched with each created bare device to be created.
5. The bare device control method according to claim 1, wherein the creating each bare device to be created based on the target profile comprises:
and responding to a restart configuration instruction, executing a restart operation and creating each bare device to be created based on the target configuration file in the restart process.
6. A target electronic device, comprising: the device comprises a first obtaining unit, a first sending unit, a second obtaining unit and a creating unit; wherein:
the first obtaining unit is configured to obtain bare device creation information, where the bare device creation information includes a device identifier of at least one bare device to be created;
the first sending unit is used for sending the bare equipment creating information to a configuration server;
the second obtaining unit is configured to obtain a target configuration file returned by the configuration server based on the bare device creation information;
and the creating unit is used for creating each bare device to be created based on the target configuration file.
7. The target electronic device of claim 6, wherein the first sending unit comprises: the encryption unit, the third obtaining unit and the second sending unit; wherein:
the encryption unit is used for encrypting the bare equipment creating information;
the third obtaining unit is configured to obtain the encrypted bare device creation information;
the second sending unit is configured to send the encrypted bare device creation information to the configuration server;
the second obtaining unit is configured to obtain the target configuration file returned by the configuration server based on the encrypted bare device creation information; the target configuration file is generated by the configuration server based on the decrypted bare device creation information, and the decrypted bare device creation information is generated by the configuration server after decrypting the encrypted bare device creation information.
8. The target electronic device of claim 6, further comprising: a first determining unit, a second determining unit and a verifying unit;
the first determining unit is configured to determine, on the target electronic device, device information of a currently created bare device as first device information before creating each bare device to be created based on the target configuration file;
the second determining unit is configured to determine, after creating each bare device to be created based on the target configuration file, device information of the target electronic device that has created the bare device currently as second device information;
the verification unit is configured to verify whether the second device information is correct based on the first device information and the bare device creation information.
9. The target electronic device of claim 6, further comprising: a modification unit;
the modification unit is configured to, after creating each bare device to be created based on the target configuration file, modify, in response to a bare device attribute modification instruction, an attribute of each created bare device to be created to set user right information matching each created bare device to be created.
10. The target electronic device of claim 6, wherein the creating unit is configured to, in response to a restart configuration instruction, perform a restart operation and create each bare device to be created based on the target configuration file during a restart process.
CN202111470174.0A 2021-12-03 2021-12-03 Bare device control method and target electronic device Pending CN114115066A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111470174.0A CN114115066A (en) 2021-12-03 2021-12-03 Bare device control method and target electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111470174.0A CN114115066A (en) 2021-12-03 2021-12-03 Bare device control method and target electronic device

Publications (1)

Publication Number Publication Date
CN114115066A true CN114115066A (en) 2022-03-01

Family

ID=80366627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111470174.0A Pending CN114115066A (en) 2021-12-03 2021-12-03 Bare device control method and target electronic device

Country Status (1)

Country Link
CN (1) CN114115066A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080235479A1 (en) * 2007-03-22 2008-09-25 Vmware, Inc. Initializing File Data Blocks
US8898402B1 (en) * 2011-03-31 2014-11-25 Emc Corporation Assigning storage resources in a virtualization environment
CN105260233A (en) * 2015-09-30 2016-01-20 北京奇虎科技有限公司 Application container creating method and apparatus
CN105975297A (en) * 2016-04-27 2016-09-28 浪潮(北京)电子信息产业有限公司 Method and system for creating raw device in KDB database installation process
CN107547250A (en) * 2017-06-26 2018-01-05 新华三云计算技术有限公司 The method and apparatus that database is disposed in cloud computing management platform
CN109951318A (en) * 2019-02-22 2019-06-28 珠海天燕科技有限公司 The function configuration method and device of application
CN113656148A (en) * 2021-08-20 2021-11-16 北京天融信网络安全技术有限公司 Container management method and device, electronic equipment and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080235479A1 (en) * 2007-03-22 2008-09-25 Vmware, Inc. Initializing File Data Blocks
US8898402B1 (en) * 2011-03-31 2014-11-25 Emc Corporation Assigning storage resources in a virtualization environment
CN105260233A (en) * 2015-09-30 2016-01-20 北京奇虎科技有限公司 Application container creating method and apparatus
CN105975297A (en) * 2016-04-27 2016-09-28 浪潮(北京)电子信息产业有限公司 Method and system for creating raw device in KDB database installation process
CN107547250A (en) * 2017-06-26 2018-01-05 新华三云计算技术有限公司 The method and apparatus that database is disposed in cloud computing management platform
CN109951318A (en) * 2019-02-22 2019-06-28 珠海天燕科技有限公司 The function configuration method and device of application
CN113656148A (en) * 2021-08-20 2021-11-16 北京天融信网络安全技术有限公司 Container management method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
US8468328B2 (en) System and method for verifying compatibility of computer equipment with a software product
CN111930489B (en) Task scheduling method, device, equipment and storage medium
US7210123B2 (en) Software evaluation system having source code and function unit identification information in stored administration information
US9075994B2 (en) Processing attestation data associated with a plurality of data processing systems
US9122843B2 (en) Software license reconciliation facility
CN112558946A (en) Method, device and equipment for generating code and computer readable storage medium
US8561180B1 (en) Systems and methods for aiding in the elimination of false-positive malware detections within enterprises
CN108959059A (en) A kind of test method and test platform
CN110990335A (en) Log archiving method, apparatus, device, and computer-readable storage medium
CN104601617A (en) Peripheral access processing method and device in virtual desktop system
CN113760339A (en) Vulnerability repair method and device
US20240094938A1 (en) Electronic apparatus, system, and method for erasing data stored in storage device of electronic apparatus
US20070101328A1 (en) Sequencing a single task sequence across multiple operating environments
CN104036193A (en) Local cross-domain vulnerability detection method and device for application program
US9946853B1 (en) Techniques for application code obfuscation
CN113485755A (en) Device driver verification method, device and storage medium
CN114115066A (en) Bare device control method and target electronic device
JP2010541055A (en) Method, system, and computer program for scheduling execution of jobs driven by events
CN109669829A (en) A kind of diagnosis adjustment method, device and server based on BMC
CN112583890B (en) Message pushing method and device based on enterprise office system and computer equipment
CN111679846B (en) Application updating method and device
CN107506231A (en) A kind of method and system of VDI data protections
CN115544496A (en) Server-free computing method, device and equipment based on trusted execution environment
CN113553098A (en) Method and device for submitting Flink SQL (structured query language) operation and computer equipment
CN114610443A (en) Multi-service deployment method and device based on k8s container cluster and electronic equipment

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