Automatic configuration method, device and system for equipment
By obtaining device information and sending instruction sets according to preset conditions, automatic configuration of the device is realized, which solves the problem of insufficiently targeted device configuration in the existing technology, improves the repair efficiency of the device after a power outage or restart, and ensures business Continuity.
Patent Information
- Application Number
- CN202210252932.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-15
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-03-15
AI Technical Summary
Existing device configuration methods are mainly manual or unified initialization, which cannot achieve targeted automatic configuration, resulting in problems such as time errors that may occur after the device is powered off or restarted, affecting business continuity.
By obtaining device information, it determines whether the device meets the execution conditions according to the preset judgment conditions, and sends the corresponding instruction set for automatic configuration, including matching the device manufacturer, model and version, to achieve targeted and automated device configuration.
It realizes automated and targeted configuration of equipment, reduces manual intervention, improves business continuity, and ensures that equipment can promptly repair problems such as time errors after power outage or restart.
Smart Images

Figure CN114640578B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of device configuration, and in particular to a method, device and system for automatic configuration of a device. Background Art
[0002] Hardware and software factors may cause problems during the use of the device. For example, some devices may have incorrect time after each power outage or restart due to hardware factors; for another example, some devices may have defects in certain specific versions and need to be repaired.
[0003] There are two solutions in the related art: device upgrade and device configuration. Since device upgrade will cause service interruption, in order to avoid service interruption, device configuration is used to configure the problematic device to achieve repair. Summary of the invention
[0004] The inventors have noticed that the device configuration in the related art is either performed manually or all devices are initialized uniformly, and targeted automatic configuration cannot be achieved.
[0005] In order to solve the above problems, the embodiments of the present disclosure propose the following solutions.
[0006] According to one aspect of an embodiment of the present disclosure, there is provided a method for automatic configuration of a device, comprising: acquiring device information of the device; in a case where it is determined that a judgment needs to be performed on the device information according to a preset judgment condition, judging whether the device information meets the preset execution condition, the preset judgment condition comprising one or more preset device information types; and in a case where the device information meets the preset execution condition, sending a first instruction set corresponding to the preset execution condition to the device, so that the device executes the first instruction set to realize automatic configuration.
[0007] In some embodiments, without having to perform judgment on the device information, a second instruction set is sent to the device, so that the device executes the second instruction set to achieve automatic configuration.
[0008] In some embodiments, the device information includes a device manufacturer, and the preset execution condition includes one or more preset device manufacturers; when the device manufacturer is the same as a preset device manufacturer, it is determined that the device information meets the preset execution condition.
[0009] In some embodiments, the device information also includes a device model, and the preset execution condition also includes one or more preset device models; when the device model is the same as a preset device model, it is determined that the device information meets the preset execution condition.
[0010] In some embodiments, when it is determined that a judgment needs to be performed on the device information according to a preset judgment condition, judging whether the device information meets the preset execution condition includes: judging whether it is necessary to perform a judgment on the device manufacturer according to whether the device manufacturer matches a preset device information type; when it is necessary to perform a judgment on the device manufacturer, judging whether the device manufacturer meets the preset execution condition; when the device manufacturer is the same as a preset device manufacturer, or when it is not necessary to perform a judgment on the device manufacturer, judging whether it is necessary to perform a judgment on the device model according to whether the device model matches a preset device information type; and when it is necessary to perform a judgment on the device model, judging whether the device model meets the preset execution condition.
[0011] In some embodiments, the device information also includes a device version, and the preset execution condition also includes one or more preset device versions; when the device version is the same as a preset device version, it is determined that the device information meets the preset execution condition.
[0012] In some embodiments, when it is determined that a judgment needs to be performed on the device information according to a preset judgment condition, judging whether the device information meets the preset execution condition further includes: when the device model is the same as a preset device model, or when there is no need to perform a judgment on the device model, judging whether it is necessary to perform a judgment on the device version according to whether the device version matches a preset device information type; when it is necessary to perform a judgment on the device version, judging whether the device version meets the preset execution condition.
[0013] In some embodiments, the device information is obtained in response to each time a connection is established with the device; and / or the device information is obtained in response to each time a failure occurs in the device; and / or the device information is obtained periodically.
[0014] In some embodiments, in response to establishing a connection with the device, obtaining the device information includes: in response to establishing a connection with the device for the first time, obtaining the device information from the device; after obtaining the device information from the device, saving the correspondence between the device information and the identification information of the device to a local information library; and in response to not establishing a connection with the device for the first time, obtaining the device information from the local information library based on the identification information.
[0015] In some embodiments, the first instruction set includes a plurality of instructions having an order, and the plurality of instructions are executed by the device in the order.
[0016] In some embodiments, the device comprises an access-type optical transport network device.
[0017] In some embodiments, the first instruction set is extensible.
[0018] According to another aspect of an embodiment of the present disclosure, there is provided an automatic configuration apparatus for a device, comprising: an acquisition module, configured to acquire device information of the device; a judgment module, configured to judge whether the device information meets a preset execution condition when it is determined that a judgment needs to be performed on the device information according to a preset judgment condition, the preset judgment condition comprising one or more preset device information types; and a sending module, configured to send a first instruction set corresponding to the preset execution condition to the device when the device information meets the preset execution condition, so that the device executes the first instruction set to realize automatic configuration.
[0019] According to another aspect of an embodiment of the present disclosure, there is provided an automatic configuration apparatus for a device, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the method described in any one of the above embodiments based on instructions stored in the memory.
[0020] According to another aspect of the embodiments of the present disclosure, there is provided an automatic configuration system for a device, comprising: the automatic configuration apparatus described in any one of the above embodiments; and a device configured to execute the first instruction set to implement automatic configuration.
[0021] According to another aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, comprising computer program instructions, wherein when the computer program instructions are executed by a processor, the method described in any one of the above embodiments is implemented.
[0022] According to another aspect of the embodiments of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the method described in any one of the above embodiments is implemented.
[0023] In the embodiment of the present disclosure, by setting preset judgment conditions and preset execution conditions, devices that meet the conditions are screened, and instruction sets are automatically sent when the devices meet the conditions. This allows for automated and targeted operations on devices that meet the conditions, thereby achieving automated and targeted device configuration.
[0024] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0026] Figure 1 It is a flowchart of a method for automatically configuring a device according to some embodiments of the present disclosure.
[0027] Figure 2 It is a flowchart of a method for automatically configuring a device according to some other embodiments of the present disclosure.
[0028] Figure 3 It is a flowchart of a method for automatically configuring a device according to some other embodiments of the present disclosure.
[0029] Figure 4 It is a flowchart of a method for automatically configuring a device according to some embodiments of the present disclosure.
[0030] Figure 5 It is a flowchart of the execution process of the first instruction set according to some embodiments of the present disclosure.
[0031] Figure 6 It is a structural diagram of an automatic configuration apparatus of a device according to some embodiments of the present disclosure.
[0032] Figure 7 It is a structural schematic diagram of an automatic configuration device of a device according to some other embodiments of the present disclosure.
[0033] Figure 8 It is a structural diagram of an automatic configuration system of a device according to some embodiments of the present disclosure. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.
[0035] Unless specifically stated otherwise, the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure.
[0036] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0037] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.
[0038] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0039] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0040] Figure 1 It is a flowchart of a method for automatically configuring a device according to some embodiments of the present disclosure.
[0041] In step 102, device information of the device is obtained.
[0042] In some embodiments, the device is an access optical transport network (OTN) device. The device information includes, for example, one or more information of a device manufacturer, a device model, and a device version.
[0043] In step 104, when it is determined that the device information needs to be judged according to the preset judgment condition, it is judged whether the device information meets the preset execution condition, and the preset judgment condition includes one or more preset device information types.
[0044] For example, preset judgment conditions and preset execution conditions can be pre-set according to known device defects. The following text will introduce how to judge whether it is necessary to perform judgment on device information and how to judge whether the device information meets the preset execution conditions in conjunction with some embodiments.
[0045] In step 106, when the device information meets the preset execution condition, a first instruction set corresponding to the preset execution condition is sent to the device, so that the device executes the first instruction set to realize automatic configuration. The execution process of the first instruction set will be further described in conjunction with some embodiments below.
[0046] The above embodiment sets preset judgment conditions and preset execution conditions to screen devices that meet the conditions, and automatically sends instruction sets when the devices meet the conditions. It can automatically and specifically operate the devices that meet the conditions, thereby realizing automatic and targeted device configuration.
[0047] The following describes how to determine whether it is necessary to perform a judgment on device information and how to determine whether the device information meets a preset execution condition in conjunction with some embodiments.
[0048] Figure 2 It is a flowchart of a method for automatically configuring a device according to some other embodiments of the present disclosure.
[0049] like Figure 2 As shown, in step 202, device information is obtained. Here, the device information includes the device manufacturer.
[0050] In step 204, it is determined whether it is necessary to perform a determination on the device manufacturer according to a preset determination condition.
[0051] For example, the preset judgment condition includes one or more preset device information types. When the preset device information type includes "device manufacturer", the judgment result is that the judgment needs to be performed on the device manufacturer.
[0052] If it is determined according to the preset judgment condition that the device manufacturer needs to be judged, step 206 is executed.
[0053] In step 206, it is determined whether the device manufacturer meets the preset execution conditions. For example, the preset execution conditions include one or more preset device manufacturers.
[0054] In the case that the device manufacturer is the same as a preset device manufacturer, it is determined that the device information meets the preset execution condition, and step 208 is subsequently executed.
[0055] In other embodiments, the device information includes not only the device manufacturer but also the device model; the preset execution condition includes not only one or more preset device manufacturers but also one or more preset device models. In this case, if the device model is the same as a preset device model, it is determined that the device information meets the preset execution condition.
[0056] In some other embodiments, the device information includes not only the device manufacturer and the device model but also the device version; the preset execution condition includes not only one or more preset device manufacturers and one or more preset device models but also one or more preset device versions. In this case, if the device version is the same as a preset device version, it is determined that the device information meets the preset execution condition.
[0057] As some implementations, if the device information does not meet the preset execution condition, step 208 is not executed.
[0058] In step 208, a first instruction set corresponding to the preset execution condition is sent to the device, so that the device executes the first instruction set to realize automatic configuration.
[0059] In the above embodiment, by setting the device manufacturer as the preset device information type, it is convenient to screen and judge devices from different device manufacturers, to screen out devices with problems at the device manufacturer level, and to configure devices from certain specific device manufacturers in a targeted manner.
[0060] Combine the following Figure 3 The implementation process of the automatic configuration method of the device in some embodiments of the present disclosure is introduced when the device information includes the device manufacturer and the device model.
[0061] Figure 3 It is a flowchart of a method for automatically configuring a device according to some other embodiments of the present disclosure.
[0062] In step 302, device information is obtained, where the device information includes the device manufacturer and the device model.
[0063] In step 304, it is determined whether the device manufacturer needs to be determined based on whether the device manufacturer matches a preset device information type. For example, the preset device information type includes the device manufacturer and the device model. If there is a preset device information type that is the device manufacturer, the determination result is that the device manufacturer needs to be determined; if the device manufacturer does not match any of the preset device information types, the determination result is that the device manufacturer does not need to be determined.
[0064] If it is necessary to determine the device manufacturer, execute step 306 ; if it is not necessary to determine the device manufacturer, execute step 308 .
[0065] In step 306, it is determined whether the device manufacturer meets the preset execution conditions. The preset execution conditions include one or more preset device manufacturers and one or more preset device models.
[0066] When the device manufacturer is the same as a preset device manufacturer, step 308 is executed.
[0067] In step 308, it is determined whether it is necessary to perform a determination on the device model according to whether the device model matches a preset device information type. For example, if there is a preset device information type that is a device model, the determination result is that it is necessary to perform a determination on the device model; if the device model does not match any preset device information type, the determination result is that it is not necessary to perform a determination on the device model.
[0068] If it is necessary to determine the device model, execute step 310 ; if it is not necessary to determine the device model, execute step 312 .
[0069] In step 310, it is determined whether the device model meets the preset execution condition. If the device model is the same as a preset device model, it is determined that the device information meets the preset execution condition, and then step 312 is performed.
[0070] In step 312, a first instruction set corresponding to the preset execution condition is sent to the device, so that the device executes the first instruction set to realize automatic configuration.
[0071] In the above embodiment, the judgment is first made at the granularity of the device manufacturer, and then refined to the granularity of the device model, which further refines the screening and judgment of the devices. The devices with problems can be screened out at the granularity of the device model, making it easier to operate on devices of certain specific device models and more comprehensively meet business needs.
[0072] Combine the following Figure 4 The implementation process of the automatic configuration method of the device in some embodiments of the present disclosure is introduced when the device information includes the device manufacturer, device model and device version.
[0073] Figure 4 It is a flowchart of a method for automatically configuring a device according to some embodiments of the present disclosure.
[0074] In step 402, device information is obtained, where the device information includes the device manufacturer, device model, and device version.
[0075] Figure 4 The specific implementation of steps 404 to 410 in the embodiment shown can be referred to above regarding Figure 3 The description of steps 304 to 310 in the embodiment shown in the figure is only for the description of steps 304 to 310 in the following. Figure 3 The different steps are introduced.
[0076] When the device model is the same as a preset device model, or when there is no need to determine the device model, step 412 is executed.
[0077] In step 412, it is determined whether the device version needs to be determined based on whether the device version matches a preset device information type. If one of the preset device information types is the device version, the determination result is that the device version needs to be determined; if the device version does not match any of the preset device information types, the determination result is that the device version does not need to be determined.
[0078] If it is necessary to determine the device version, execute step 414 ; if it is not necessary to determine the device version, execute step 416 .
[0079] In step 414, it is determined whether the device version meets the preset execution condition. The preset execution condition may also include one or more preset device versions.
[0080] When the device version is the same as a preset device version, it is determined that the device information meets the preset execution condition, and step 416 is subsequently executed.
[0081] In step 416, a first instruction set corresponding to the preset execution condition is sent to the device, so that the device executes the first instruction set to realize automatic configuration.
[0082] In the above embodiment, the judgment is first made at the granularity of the device manufacturer, then refined to the granularity of the device model, and finally further refined to the granularity of the device version. This further refines the screening and judgment of the devices, which is conducive to screening out devices with problems at the granularity of the device version, facilitating targeted operations on devices of certain specific device versions, and more comprehensively meeting business needs.
[0083] The execution process of the first instruction set is introduced below.
[0084] Figure 5 is a flowchart of the execution process of the first instruction set according to some embodiments of the present disclosure. Table 1 is a table of the first instruction set according to some embodiments of the present disclosure.
[0085] Table 1
[0086]
[0087]
[0088] exist Figure 5 In the embodiment shown in Table 1, the first instruction set includes multiple instructions with a sequence, and the multiple instructions are executed by the device in sequence. As some implementations, the first instruction set can be customized and extended according to business needs, for example, including one or more instructions in Table 1.
[0089] Furthermore, the execution of the instruction by the device is completed through the operable objects in the device. The operable objects include: network element (ME), board (EQ), physical port (PTP), virtual port (CTP) and underlying cross (connection). Different operable objects can execute different instructions. For example, the getTime instruction to query and synchronize time can be executed by the network element (ME).
[0090] In step 502, an instruction in the first instruction set is executed. For example, when step 502 is executed for the first time, the first instruction is executed, and when step 502 is not executed for the first time, other instructions are executed in sequence.
[0091] In step 504, it is determined whether the instruction is executed successfully.
[0092] If the instruction is executed successfully, step 506 is executed; if the instruction is executed unsuccessfully, step 508 is executed.
[0093] In step 506, it is determined whether it is necessary to continue executing other instructions.
[0094] If it is determined that other instructions need to be continued to be executed, step 502 is executed. If it is determined that other instructions do not need to be continued to be executed, the execution is terminated.
[0095] In step 508, it is determined whether all instructions in the first instruction set have been executed.
[0096] If it is determined that there are unexecuted instructions in all the instructions in the first instruction set, step 502 is executed. If it is determined whether all the instructions in the first instruction set have been executed, the execution is terminated.
[0097] In the above embodiment, instructions can be executed in sequence, and after each instruction fails to execute, it can be decided whether to continue to execute other instructions, which is conducive to fully adapting to business needs.
[0098] In some embodiments, without the need to determine the device information, the second instruction set is sent to the device so that the device executes the second instruction set to achieve automatic configuration. For example, without the need to determine the device manufacturer, device model, and device version, the second instruction set is sent to the device. The second instruction set can be set according to business needs. In some embodiments, the second instruction set can be the same as the first instruction set or different from the first instruction set.
[0099] The following describes how to obtain device information in conjunction with some embodiments.
[0100] In some embodiments, device information is obtained in response to each time a connection is established with a device.
[0101] As some implementations, in response to establishing a connection with the device for the first time, device information of the device is obtained from the device. For example, before establishing a connection with the device for the first time, the IP address of the device is manually registered in a local information database so that a connection can be established with the device based on the IP address. After the connection is established, for example, the device information can be obtained by issuing a device information acquisition instruction.
[0102] After obtaining device information from the device, the corresponding relationship between the device information and the identification information of the device is saved in the local information database. For example, the identification information includes an IP address.
[0103] Thereafter, in response to establishing a connection with the device not for the first time, the device information is obtained from the local information base based on the identification information. For example, the device information can be obtained through the IP address when a subsequent connection is established.
[0104] In the above embodiment, each time a connection is established with a device, device information is obtained, which is beneficial for checking when the device is online and realizing targeted automatic configuration.
[0105] In other embodiments, in response to each failure of a device, device information of the device is obtained. For example, when a time error of a device is found, device information is obtained, and a corresponding instruction is sent.
[0106] In some other embodiments, the device information of the device is obtained periodically, for example, once every hour.
[0107] The above-mentioned embodiments may be combined with each other.
[0108] For example, device information is obtained each time a connection is established with the device, and information is obtained each time a device fails. This allows for timely inspections when the device is online and when it fails, allowing for targeted automatic configuration and reducing the occurrence of device failures.
[0109] For example, device information is obtained not only each time a connection is established with a device and each time a device fails, but also periodically. This allows inspections to be performed when the device is online, running, and failing, allowing for targeted automatic configuration and further reducing the occurrence of device failures.
[0110] Next, an example of an automatic device configuration method is introduced by taking an access OTN device as an example.
[0111] Due to hardware problems, the access OTN equipment of manufacturer A will change the equipment time to 1970 in the event of power failure or restart. As a result, the time field in all upstream information of the equipment is incorrect and can only be modified manually.
[0112] Since all devices of this manufacturer have this problem, the preset judgment condition is set to include only one preset device information type of the device manufacturer, which means that only the device manufacturer needs to be judged, and the preset execution condition is set so that if the device manufacturer in the device information is consistent with the preset device manufacturer, and there is no preset execution condition for the device model and device version, then the device information meets the preset execution condition.
[0113] The contents of the preset execution conditions include:
[0114] Identifier: unique digital identifier;
[0115] Name: VENDOR_A_TIME_UPDATE;
[0116] Equipment manufacturer: A;
[0117] Device Model: empty;
[0118] Device version: null.
[0119] Next, according to the preset execution condition, a first instruction set is set to establish an instruction setTime for modifying the configuration time.
[0120] Thus, when the device reconnects after restart or power failure, the device is checked based on the device information obtained from the local information base. If the device information of the device meets the preset execution conditions, the command setTime is sent to the device, thereby realizing the function of automatically updating the device time.
[0121] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0122] Figure 6 It is a structural diagram of an automatic configuration apparatus of a device according to some embodiments of the present disclosure.
[0123] like Figure 6 As shown, the automatic configuration device 600 of a device includes an acquisition module 601 , a determination module 602 and a sending module 603 .
[0124] The acquisition module 601 is configured to acquire device information of a device.
[0125] The judgment module 602 is configured to judge whether the device information meets the preset execution condition when it is determined that the device information needs to be judged according to the preset judgment condition.
[0126] The sending module 603 is configured to send a first instruction set corresponding to the preset execution condition to the device when the device information meets the preset execution condition, so that the device executes the first instruction set to realize automatic configuration.
[0127] Figure 7 It is a structural schematic diagram of an automatic configuration device of a device according to some other embodiments of the present disclosure.
[0128] like Figure 7As shown, the automatic configuration apparatus 700 of a device includes a memory 701 and a processor 702 coupled to the memory 701 , and the processor 702 is configured to execute a method of any one of the aforementioned embodiments based on instructions stored in the memory 701 .
[0129] The memory 701 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, and other programs.
[0130] The device 700 may also include an input / output interface 703, a network interface 704, a storage interface 705, etc. These interfaces 703, 704, 705, and the memory 701 and the processor 702 may be connected, for example, via a bus 506. The input / output interface 703 provides a connection interface for input / output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 704 provides a connection interface for various networked devices. The storage interface 705 provides a connection interface for external storage devices such as an SD card and a USB flash drive.
[0131] Figure 8 It is a structural diagram of an automatic configuration system of a device according to some embodiments of the present disclosure.
[0132] like Figure 8 As shown, the automatic configuration system 800 includes an automatic configuration device 801 and a device 802. The automatic configuration device 801 may include the automatic configuration device of any of the above embodiments, such as the automatic configuration device 600 or the automatic configuration device 700. The device 802 is configured to execute a first instruction set to implement automatic configuration. In some embodiments, the device 802 may also be configured to execute a second instruction set to implement automatic configuration.
[0133] The embodiments of the present disclosure further provide a computer-readable storage medium, comprising computer program instructions, which implement the method of any one of the above embodiments when executed by a processor.
[0134] The embodiment of the present disclosure further provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, any one of the above-mentioned methods is implemented.
[0135] So far, various embodiments of the present disclosure have been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.
[0136] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0137] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present disclosure. It should be understood that the functions specified in one or more processes in the flowchart and / or one or more blocks in the block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the functions specified in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0138] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0140] Although some specific embodiments of the present disclosure have been described in detail by way of examples, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified or some technical features may be replaced by equivalents without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A method for automatic configuration of a device, comprising: Obtaining device information of the device, wherein the device information includes the device manufacturer and device model; In the case where it is determined that the device information needs to be judged according to the preset judgment condition, judging whether the device information meets the preset execution condition, wherein the preset judgment condition includes multiple preset device information types, and the preset execution condition includes one or more preset device manufacturers and one or more preset device models; as well as When the device information meets the preset execution condition, sending a first instruction set corresponding to the preset execution condition to the device, so that the device executes the first instruction set to realize automatic configuration; Wherein, when it is determined according to the preset judgment condition that the device information needs to be judged, judging whether the device information meets the preset execution condition includes: Determining whether it is necessary to perform a determination on the device manufacturer according to whether the device manufacturer matches a preset device information type; In the case where it is necessary to perform a judgment on the device manufacturer, judging whether the device manufacturer meets the preset execution condition; When the device manufacturer is the same as a preset device manufacturer, or when the device manufacturer does not need to be determined, determining whether the device model needs to be determined based on whether the device model matches a preset device information type; and In the case where it is necessary to perform a judgment on the device model, judging whether the device model meets the preset execution condition; Wherein, when the device model is the same as a preset device model, it is determined that the device information meets the preset execution condition.
2. The method according to claim 1, further comprising: In the case where it is not necessary to judge the device information, a second instruction set is sent to the device, so that the device executes the second instruction set to realize automatic configuration.
3. The method according to claim 1, wherein: The device information also includes a device version, and the preset execution condition also includes one or more preset device versions.
4. The method according to claim 3, wherein: In the case where it is determined according to the preset judgment condition that the device information needs to be judged, judging whether the device information meets the preset execution condition further includes: When the device model is the same as a preset device model, or when it is not necessary to determine the device model, determining whether it is necessary to determine the device version according to whether the device version matches a preset device information type; In the case where it is necessary to perform a judgment on the device version, judging whether the device version meets the preset execution condition; In a case where the device version is the same as a preset device version, it is determined that the device information meets the preset execution condition.
5. The method according to any one of claims 1 to 4, wherein: In response to each time a connection is established with the device, acquiring the device information; and / or In response to each failure of the device, obtaining the device information; and / or The device information is periodically acquired.
6. The method according to claim 5, wherein: In response to establishing a connection with the device, acquiring the device information includes: In response to establishing a connection with the device for the first time, acquiring the device information from the device; After acquiring the device information from the device, saving the correspondence between the device information and the identification information of the device to a local information database; and In response to establishing a connection with the device not for the first time, acquiring the device information from the local information database based on the identification information.
7. The method according to claim 1, wherein: The first instruction set includes a plurality of instructions having an order, and the plurality of instructions are executed by the device in the order.
8. The method according to claim 1, wherein: The device comprises an access-type optical transmission network device.
9. The method according to claim 1, wherein: The first instruction set is extensible.
10. An automatic configuration device for a device, comprising: An acquisition module is configured to acquire device information of the device, wherein the device information includes a device manufacturer and a device model; a judgment module configured to judge whether the device information meets a preset execution condition when it is determined that the device information needs to be judged according to a preset judgment condition, wherein the preset judgment condition includes a plurality of preset device information types, and the preset execution condition includes one or more preset device manufacturers and one or more preset device models; and a sending module, configured to send a first instruction set corresponding to the preset execution condition to the device when the device information meets the preset execution condition, so that the device executes the first instruction set to realize automatic configuration; Wherein, the judging module is further configured to: Determining whether it is necessary to perform a determination on the device manufacturer according to whether the device manufacturer matches a preset device information type; In the case where it is necessary to perform a judgment on the device manufacturer, judging whether the device manufacturer meets the preset execution condition; When the device manufacturer is the same as a preset device manufacturer, or when the device manufacturer does not need to be determined, determining whether the device model needs to be determined based on whether the device model matches a preset device information type; In the case where it is necessary to perform a judgment on the device model, judging whether the device model meets the preset execution condition; and In a case where the device model is the same as a preset device model, it is determined that the device information meets the preset execution condition.
11. An automatic configuration device for a device, comprising: Memory; as well as A processor coupled to the memory, configured to execute the method according to any one of claims 1 to 9 based on instructions stored in the memory.
12. An automatic configuration system for a device, comprising: The automatic configuration device according to claim 10 or 11; as well as The device is configured to execute the first instruction set to achieve automatic configuration.
13. A computer-readable storage medium comprising computer program instructions, wherein: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 9 is implemented.
14. A computer program product comprising a computer program, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Techniques for automatic software provisioning
CN101690029A
Customized test method, device and system
CN112685322A
Equipment connection method, system, equipment and computer readable storage medium
CN112929188A
Comparison method and device for equipment configuration files
CN112948329A
Method and device for verifying instructions of diagnostic equipment, and lower computer
US20190205570A1
