Device networking method, apparatus, storage medium, and electronic device
By obtaining the identifier of the person in charge of the device and a preset information table, the approval sequence is automatically determined and the target script is generated, which solves the problem of low network efficiency for devices that cannot install network access software and realizes the automated device network connection process.
Patent Information
- Application Number
- CN202410443480.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-12
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2044-04-12
AI Technical Summary
Electronic devices that cannot install network access software in the current technology need to go through an offline approval process with signatures at each level, resulting in low network efficiency and high labor and time costs.
By obtaining the identifier of the person in charge of the equipment, the approval sequence is automatically determined using a preset information table, and a target script is generated after multiple approvers have approved it, which automatically adds the equipment to the designated network.
It improves the efficiency of network access for devices that cannot install network access software, reduces manual approval steps, and increases the automation of device network access.
Smart Images

Figure CN118264478B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of operation and maintenance, the technical field of financial technology and other related technical fields, in particular, relates to a device networking method and device, storage medium and electronic equipment. BACKGROUND
[0002] With the increasing emphasis on network security, before the electronic device is networked, the network access means adopted by the financial institution for the networked electronic device is mainly to install client network access software to implement network access verification control, that is, to install client network access software for the to-be-networked device, to check the to-be-networked device through the client network access software, and to add the to-be-networked device to the specified local area network in the case of passing the check.
[0003] However, in the prior art, the user of the electronic device that cannot install the network access software needs to apply for networking through an offline step-by-step signature approval process, and after the networking application is approved, the networking operation of the device is completed by manual configuration by the operation and maintenance personnel. The offline step-by-step signature approval process involves high labor cost and time cost, and the offline approval procedure takes a long time, thus resulting in the problem of low networking efficiency of the to-be-networked device that cannot install the network access software.
[0004] At present, there is no effective solution to the above problem. SUMMARY
[0005] The present application provides a device networking method, device, storage medium and electronic equipment to at least solve the technical problem of low networking efficiency of the to-be-networked device caused by manual approval of the to-be-networked device in the prior art when the to-be-networked device that cannot install the network access software applies for networking.
[0006] According to one aspect of the present application, a device networking method is provided, comprising: obtaining a first identifier of a target application form, wherein the target application form at least includes device information of a to-be-networked device, and the first identifier is an identifier of a person in charge of the to-be-networked device; determining an approval sequence of the target application form according to the first identifier and a preset information table, wherein the preset information table is used to store the corresponding relationship between the person in charge and the approvers of the target application form, and the approval sequence at least includes L approvers, L being a positive integer; in the case that the L approvers included in the approval sequence all approve the target application form, generating a target script corresponding to the to-be-networked device according to the target application form, and adding the to-be-networked device to the network specified by the target application form by running the target script.
[0007] Optionally, the device networking method further comprises: obtaining the network address and the device type of the device to be networked according to the identifier of the device to be networked; determining the network access requirement and the security policy of the device to be networked according to the device type and the business information of the department to which the person in charge belongs, wherein the network access requirement is used to represent the permission information that the device to be networked needs to obtain after being networked, and the security policy is used to represent the configuration information that the device to be networked needs to set after being networked; and generating the target application form according to the identifier, the network address, the network access requirement and the security policy of the device to be networked.
[0008] Optionally, the device networking method further comprises: generating first prompt information, wherein the first prompt information is used to prompt the person in charge to input the first identifier and the login password of the person in charge on the login page; querying the preset login password of the person in charge in the preset information table according to the first identifier, and determining whether the preset login password is the same as the login password; in the case that the preset login password is not the same as the login password, generating second prompt information, wherein the second prompt information is used to prompt the person in charge to re-input the login password; in the case that the preset login password is the same as the login password, querying the L approvers corresponding to the person in charge in the preset information table according to the first identifier; and sorting the L approvers according to the level of the department to which each of the L approvers belongs, to obtain the approval sequence corresponding to the target application form.
[0009] Optionally, the device networking method further comprises: collecting the approval opinions of each of the L approvers on the target application form, to obtain L approval opinions; in the case that the L approval opinions include at least one opposing approval opinion, reverting the approval process corresponding to the target application form to the person in charge, and transmitting the opposing approval opinion to the person in charge, wherein the semantic information corresponding to the opposing approval opinion represents that the approver corresponding to the opposing approval opinion disagrees with the approval of the target application form; in the case that the L approval opinions do not include the opposing approval opinion, determining that the L approvers all approve the target application form.
[0010] Optionally, the device networking method further comprises: after the target script is executed, obtaining the running log of the target script, wherein the running log at least includes the permission information and the configuration information actually taken effect by the device to be networked; determining whether the permission information in the running log is consistent with the permission information in the network access requirement; in the case that the permission information in the running log is not consistent with the permission information in the network access requirement, determining that the networking result of the device to be networked is a failure result; in the case that the permission information in the running log is consistent with the permission information in the network access requirement, determining the networking result according to the configuration information included in the running log and the configuration information in the network access requirement.
[0011] Optionally, the device networking method further comprises: determining whether the configuration information in the running log is consistent with the configuration information in the network access requirement; in the case that the configuration information in the running log is inconsistent with the configuration information in the network access requirement, determining that the networking result of the device to be networked is a failure result, and generating third prompt information, wherein the third prompt information is used to prompt the person in charge that the device to be networked fails to access the network; in the case that the configuration information in the running log is consistent with the configuration information in the network access requirement, determining that the networking result of the device to be networked is a success result, and generating fourth prompt information, wherein the fourth prompt information is used to prompt the person in charge that the device to be networked successfully accesses the network.
[0012] Optionally, the device networking method further comprises: monitoring the M devices in the network in real time to obtain a target device log, wherein M is a positive integer, and the target device log is used to record running information corresponding to each of the M devices; determining a health coefficient of each device according to the target device log, wherein the health coefficient of each device is used to represent a probability of failure of the device; taking a device with a health coefficient less than a preset threshold value in the M devices as a device to be offline to obtain N devices to be offline, wherein N is a positive integer less than or equal to M; obtaining N standby networking devices corresponding to the N devices to be offline, wherein the N standby networking devices correspond one-to-one to the N devices to be offline, and a device type of each of the N standby networking devices is the same as a device type of the device to be offline corresponding to the standby networking device; and running a target script corresponding to each of the N standby networking devices.
[0013] According to an aspect of the present application, a device networking apparatus is also provided, comprising: a first obtaining unit configured to obtain a first identifier of a target application form, wherein the target application form comprises at least device information of a device to be networked, and the first identifier is an identifier of a person in charge of the device to be networked; a first determining unit configured to determine an approval sequence of the target application form according to the first identifier and a preset information table, wherein the preset information table is used to store a correspondence between the person in charge and an approver of the target application form, and the approval sequence comprises at least L approvers, L being a positive integer; a first generating unit configured to generate a target script corresponding to the device to be networked according to the target application form in the case that the L approvers included in the approval sequence all approve the target application form; and an adding unit configured to add the device to be networked to a network designated by the target application form by running the target script.
[0014] According to another aspect of the present application, a computer readable storage medium is also provided, and the computer readable storage medium stores a computer program, wherein the computer program controls a device where the computer readable storage medium is located to perform the device networking method of any one of the above aspects when the computer program is run.
[0015] According to another aspect of the present application, an electronic device is also provided, which includes one or more processors and a memory storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the device networking method of any of the above.
[0016] In the present application, first, a first identifier of a target application form is acquired, wherein the target application form includes at least device information of a device to be networked, and the first identifier is an identifier of a person in charge of the device to be networked, then, an approval sequence of the target application form is determined according to the first identifier and a preset information table, wherein the preset information table is used to store a corresponding relationship between the person in charge and approvers of the target application form, and the approval sequence includes at least L approvers, L being a positive integer, then, in the case that the L approvers included in the approval sequence all approve the target application form, a target script corresponding to the device to be networked is generated according to the target application form, and the device to be networked is added to a network designated by the target application form by running the target script.
[0017] From the above, it can be seen that, according to the present application, the multiple approvers corresponding to the device to be networked and the approval order between the multiple approvers (i.e., the approval sequence) are automatically queried from the preset information table by the identifier of the person in charge (i.e., the first identifier), and in the case that the multiple approvers all approve the target application form, the device to be networked is automatically added to the network designated by the target application form by running the target script corresponding to the device to be networked, thereby omitting the operation step of manually setting the device to be networked by the operation and maintenance personnel to add the device to be networked to the designated network in the prior art.
[0018] Therefore, the technical solution of the present application adopts the mode of automatically determining the approval sequence of the device to be networked according to the first identifier and the preset information table, thereby achieving the purpose of improving the efficiency of approving the device to be networked, and the present application further automatically adds the device to be networked to the network designated by the target application form by running the target script corresponding to the device to be networked, thereby achieving the technical effect of improving the networking efficiency of the device to be networked which cannot install network access software, and further solving the technical problem of low networking efficiency of the device to be networked caused by the manual approval of the device to be networked in the prior art when the device to be networked which cannot install network access software applies for networking. BRIEF DESCRIPTION OF DRAWINGS
[0019] The accompanying drawings, which are included to provide a further understanding of the present application and are incorporated in and constitute a part of this application, illustrate embodiments of the present application and serve to explain the present application. In the drawings:
[0020] Figure 1is a flowchart of an optional device networking method according to an embodiment of the application;
[0021] Figure 2 is a flowchart of a working method of an optional device networking system according to an embodiment of the application;
[0022] Figure 3 is a flowchart of an optional device replacement method according to an embodiment of the application;
[0023] Figure 4 is a schematic diagram of an optional device networking apparatus according to an embodiment of the application;
[0024] Figure 5 is a schematic diagram of an optional electronic device according to an embodiment of the application. DETAILED DESCRIPTION
[0025] In order to enable persons skilled in the art to better understand the scheme of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by persons skilled in the art without creative labor should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not have to be limited to only those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to the process, method, product or device.
[0027] It should also be noted that the relevant information (including requirement document information) and data (including but not limited to data for display and analyzed data) involved in the present application are all information and data authorized by the user or authorized by all parties. For example, an interface is provided between the system and the relevant user or institution. Before obtaining the relevant information, the interface needs to send a request for obtaining to the aforementioned user or institution, and after receiving the consent information fed back by the aforementioned user or institution, the relevant information is obtained.
[0028] In addition, the collection, storage, use, processing, transmission, provision, disclosure and application of the related information and related data involved in the present application comply with the relevant laws, regulations and standards of the relevant regions, and necessary security measures are taken, without violating public order and good customs. In addition, the present application provides a corresponding operation portal for users to choose to authorize or refuse to authorize. If the user chooses to refuse to authorize, the corresponding expert decision-making process is entered.
[0029] According to an embodiment of the present application, an embodiment of a device networking method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described herein can be executed in an order different from that shown herein.
[0030] The present application provides a device networking system for executing the device networking method in the present application, Figure 1 is a flowchart of an optional device networking method according to an embodiment of the present application, as Figure 1 shown, the method comprises the following steps:
[0031] Step S101, obtaining a first identifier of a target application form.
[0032] In step S101, the target application form at least includes device information of a device to be networked, and the first identifier is an identifier of a person in charge of the device to be networked.
[0033] Optionally, the device information of the device to be networked includes IP address, MAC address, device type and device purpose of the device to be networked.
[0034] Step S102, determining an approval sequence of the target application form according to the first identifier and a preset information table.
[0035] In step S102, the preset information table is used to store the correspondence between the person in charge and the approvers of the target application form, and the approval sequence at least includes L approvers, L being a positive integer.
[0036] Optionally, the department level of each of the L approvers is greater than the department level of the department of the person in charge.
[0037] Optionally, the device networking system sorts the L approvers according to the department level of the department of each of the L approvers, thereby obtaining the approval sequence of the target application form.
[0038] Optionally, the device networking system automatically determines the approval sequence of the target application form according to the first identifier and the preset information table, thereby avoiding the operation step of the person in charge of the to-be-networked device needing to offline interface each of the L approvers one by one for approval, and thereby improving the efficiency of approving the target application form.
[0039] Step S103, in the case that the L approvers included in the approval sequence all approve the target application form, generating a target script corresponding to the to-be-networked device according to the target application form.
[0040] Optionally, in the case that at least one of the L approvers does not agree to the approval of the target application form, the device networking system rejects the approval process corresponding to the target application form, that is, the approval process corresponding to the target application form is rolled back to the person in charge of the to-be-networked device.
[0041] Step S104, adding the to-be-networked device to the network designated by the target application form by running the target script.
[0042] Optionally, the device networking system adds the to-be-networked device to the network designated by the target application form by running the target script, thereby avoiding the operation step of manually configuring the to-be-networked device according to an operation and maintenance personnel in the prior art after the multiple approvers approve the target application form, and thereby adding the to-be-networked device to the designated network according to a manual manner, and thereby improving the networking efficiency of the to-be-networked device.
[0043] From the above, it can be seen that the present application automatically queries the multiple approvers corresponding to the to-be-networked device and the approval order (i.e., the approval sequence) between the multiple approvers from the preset information table through the identifier of the device owner (i.e., the first identifier), and in the case that the multiple approvers all approve the target application form, the present application automatically adds the to-be-networked device to the network designated by the target application form by running the target script corresponding to the to-be-networked device, thereby omitting the operation step of manually setting the to-be-networked device by an operation and maintenance personnel in the prior art to add the to-be-networked device to the designated network.
[0044] Therefore, the technical solution of the present application adopts the mode of automatically determining the approval sequence of the to-be-networked device according to the first identifier and the preset information table, thereby achieving the purpose of improving the efficiency of approving the to-be-networked device, and at the same time, the present application also automatically adds the to-be-networked device to the network designated by the target application form by running the target script corresponding to the to-be-networked device, thereby achieving the technical effect of improving the networking efficiency of the to-be-networked device that cannot install network access software, and thereby solving the technical problem of low networking efficiency of the to-be-networked device caused by the need for manual approval of the to-be-networked device in the prior art when the to-be-networked device that cannot install network access software applies for networking.
[0045] In an optional embodiment, the device networking system first acquires the network address and the device type of the to-be-networked device according to the identifier of the to-be-networked device, and then determines the network access requirement and the security policy of the to-be-networked device according to the device type and the business information of the department to which the person in charge belongs, wherein the network access requirement is used to represent the permission information that the to-be-networked device needs to acquire after being networked, and the security policy is used to represent the configuration information that the to-be-networked device needs to set after being networked, and then the device networking system generates the target application form according to the identifier, the network address, the network access requirement and the security policy of the to-be-networked device.
[0046] Optionally, the target application form further includes the contact information of the person in charge of the to-be-networked device, the device application network access time and the network access duration of the device application.
[0047] Optionally, the target application form is shown in Table 1.
[0048] Table 1
[0049]
[0050] In an optional embodiment, the device networking system first generates first prompt information, wherein the first prompt information is used to prompt the person in charge to input the first identifier and the login password of the person in charge on the login page, and then the device networking system queries the preset login password of the person in charge in the preset information table according to the first identifier, and judges whether the preset login password is the same as the login password, and then the device networking system generates second prompt information in the case that the preset login password is not the same as the login password, wherein the second prompt information is used to prompt the person in charge to re-input the login password, and then the device networking system queries the L approvers corresponding to the person in charge in the preset information table according to the first identifier in the case that the preset login password is the same as the login password, and finally, the device networking system sorts the L approvers according to the level of the department to which each of the L approvers belongs, and obtains the approval sequence corresponding to the target application form.
[0051] Optionally, in the above Table 1, the first-level approver, the second-level approver and the third-level approver are the L approvers corresponding to the target application form of the to-be-networked device.
[0052] Optionally, in the case that the number of times that the person in charge of the to-be-networked device inputs the password on the login page is greater than the preset number of times, the person in charge of the to-be-networked device is prohibited from accessing the login page again within a specified time period.
[0053] Optionally, in the case that the preset login password is the same as the login password, the device networking system acquires the device usage right of the person in charge of the to-be-networked device according to the first identifier, and in the case that the device usage right of the person in charge includes the usage right corresponding to the device type of the to-be-networked device, the L approvers corresponding to the person in charge are obtained by querying the preset information table according to the first identifier.
[0054] In an optional embodiment, the device networking system first acquires the approval opinions of each of the L approvers on the target application form, and obtains L approval opinions. Then, the device networking system determines whether the L approval opinions include an opposing approval opinion. In the case that the L approval opinions include at least one opposing approval opinion, the device networking system reverts the approval process of the target application form to the person in charge, and transmits the opposing approval opinion to the person in charge. The semantic information corresponding to the opposing approval opinion represents that the approver corresponding to the opposing approval opinion disagrees with the approval of the target application form. In the case that the L approval opinions do not include an opposing approval opinion, the device networking system determines that the L approvers all approve the target application form.
[0055] Optionally, after the device networking system obtains the L approvers corresponding to the person in charge, the device networking system sends the target application form to each of the L approvers according to the approval order, and reminds each of the L approvers to process the target application form.
[0056] In an optional embodiment, after the target script is executed, the device networking system first acquires the running log of the target script, wherein the running log includes at least the actual effective permission information and configuration information of the to-be-networked device. Then, the device networking system determines whether the permission information in the running log is consistent with the permission information in the network access demand. In the case that the permission information in the running log is not consistent with the permission information in the network access demand, the device networking system determines that the networking result of the to-be-networked device is a failure result. In the case that the permission information in the running log is consistent with the permission information in the network access demand, the device networking system determines the networking result according to the configuration information included in the running log and the configuration information in the network access demand.
[0057] Optionally, before the target script is executed, the device networking system also needs to acquire the IP address and MAC address of each of the M devices included in the specified network, and compare the IP address and MAC address of the to-be-networked device with the IP address and MAC address of each of the M devices. In the case that the IP address or the MAC address of the to-be-networked device is the same as that of any one of the M devices, the execution of the target script is prohibited.
[0058] In an optional embodiment, the device networking system first determines whether the configuration information in the running log is consistent with the configuration information in the network access requirement. If the configuration information in the running log is inconsistent with the configuration information in the network access requirement, the device networking system determines that the networking result of the device to be networked is a failure result, and generates third prompt information, wherein the third prompt information is used to prompt the person in charge that the device to be networked fails to access the network. In addition, if the configuration information in the running log is consistent with the configuration information in the network access requirement, the device networking system determines that the networking result of the device to be networked is a success result, and generates fourth prompt information, wherein the fourth prompt information is used to prompt the person in charge that the device to be networked successfully accesses the network.
[0059] Optionally, after obtaining the networking result corresponding to the device to be networked, the device networking system sends the networking result to the person in charge of the device to be networked for confirmation.
[0060] In an optional embodiment, the device networking system first performs real-time monitoring on M devices in the network to obtain a target device log, wherein M is a positive integer, and the target device log is used to record running information corresponding to each device in the M devices. Then, the device networking system determines a health coefficient of each device according to the target device log, wherein the health coefficient of each device is used to represent a probability of failure of the device. The device networking system obtains N devices with a health coefficient less than a preset threshold value from the M devices as devices to be offline, to obtain N devices to be offline, wherein N is a positive integer less than or equal to M. Then, the device networking system obtains N standby networking devices corresponding to the N devices to be offline, wherein the N standby networking devices correspond to the N devices to be offline one by one, and a device type of each standby networking device in the N standby networking devices is the same as a device type of the device to be offline corresponding to the standby networking device. Finally, the device networking system runs a target script corresponding to each standby networking device in the N standby networking devices.
[0061] Optionally, the device networking system comprises a network access approval subsystem, an identity authentication subsystem, a network management subsystem, and a mail distribution subsystem. Figure 2 FIG. 1 is a flowchart of a working method of an optional device networking system according to an embodiment of the present application.
[0062] Optionally, as shown in FIG. 2, the interaction process between the network access approval subsystem and the identity authentication subsystem comprises user login and user role management. Figure 2
[0063] Optionally, the user login process comprises: when the person in charge of the device to be connected enters the personnel number (i.e., the first identifier) and the password information (i.e., the login password) to log in the network access approval subsystem, the person in charge first obtains the personnel number and the password information corresponding to the person in charge in the identity authentication subsystem, compares the data input by the person in charge with the data stored in the identity authentication subsystem, thereby realizing the authentication of the identity of the person in charge, and the person in charge who passes the authentication can log in the network access approval system to perform corresponding operations.
[0064] Optionally, the user role management process comprises: the network access approval subsystem can periodically apply to the identity authentication subsystem to obtain personnel information (i.e., the person in charge information and the approver information) and department information to which the personnel belong, and establish an internal agency account (i.e., a preset information table) according to the personnel information and the department information to which the personnel belong, so as to quickly respond to the needs of users, identify all authorized personnel information (i.e., the person in charge information and the corresponding L approver information) corresponding to the target application form, complete the customization of the approval process, and in addition, the operation and maintenance personnel can customize the approvers in the network access approval subsystem, thereby ensuring that the overall approval process will not be interrupted due to the absence of personnel information in the identity authentication subsystem.
[0065] Optionally, Figure 2 The process of the network access approval subsystem in the network access approval system interacting with the mail distribution subsystem further comprises a mail reminder, wherein the mail reminder process comprises: after the network access approval system completes the customization process of the target application form, it sequentially initiates a mail sending request to the mail distribution subsystem according to the approval sequence, and the mail sending request is used to send the target application form to the corresponding multiple approvers and remind each approver to perform the approval process.
[0066] For example, after the person in charge of the device to be connected submits the target application form, the target application form is circulated among the L approvers according to the approval sequence, and after each approver receives the target application form, the mail distribution subsystem automatically sends a mail reminder to the mailbox of the approver, the mail indicates that it is a work to be done reminder of the network access approval subsystem, and the mail information at least contains the number of the target application form. In the case where the approval is not passed, the target application form will be returned to the person in charge of the device to be connected, and the mail distribution subsystem will also send a mail reminder to the mailbox of the person in charge of the device to be connected, and indicate the number of the target application form which fails to pass the approval.
[0067] Optionally, Figure 2 The process of the network access approval subsystem in the network access approval system interacting with the network management subsystem further comprises verifying the application information and generating a script.
[0068] Optionally, the verifying the application information process comprises: when the person in charge of the device to be networked submits the target application form, the network access approval subsystem sends a verification requirement to the network management subsystem, and the verification requirement is used to call the network management subsystem to verify the IP address and MAC address information of the device to be networked in the target application form.
[0069] Optionally, the generating the script process comprises: after the target application form is approved by the L approvers, the network access approval subsystem links the network management subsystem, so as to determine the switch related configuration information corresponding to the device to be networked, and generate the target script according to the target application form and the switch related configuration information, and then, the network access approval subsystem links the network management subsystem to perform network automatic deployment, after that, the network management subsystem verifies the related configuration of the device to be networked, and finally, the verification result is fed back to the person in charge of the device to be networked.
[0070] Optionally, Figure 3 is a flowchart of an optional device replacement method according to an embodiment of the present application, as shown in the figure, the method comprises the following processes: Figure 3
[0071] Optionally, in the use process of the M devices included in the specified network, some of the M devices have device faults, at this time, the device networking system takes the device with the fault as a device to be offline, then, the device networking system generates a device replacement application form corresponding to the device to be offline, and sends the device replacement application form to the L approvers corresponding to the device to be offline for approval, in the case that the L approvers all approve, the device replacement application form is transmitted to the person in charge corresponding to the device to be offline, and the standby networking device corresponding to the device to be offline is determined according to the identifier of the person in charge and the device replacement application form, and the standby networking device is added to the specified network by running the target script corresponding to the standby networking device.
[0072] Optionally, after the standby networking device corresponding to the device to be offline is added to the specified network, first, the target application form corresponding to the device to be offline is queried, and in the subsequent maintenance option in the target application form corresponding to the device to be offline, the offline reason and offline time of the device to be offline are noted, then, the offline application form corresponding to the device to be offline is generated, and the offline application form is submitted to the L approvers corresponding to the device to be offline, after the L approvers all approve the offline application form, the offline operation of the device to be offline is realized by running the offline script corresponding to the device to be offline.
[0073] In the present application, first, the first identifier of the target application form is acquired, wherein the target application form at least includes the device information of the device to be networked, and the first identifier is the identifier of the person in charge of the device to be networked; then, the approval sequence of the target application form is determined according to the first identifier and the preset information table, wherein the preset information table is used to store the corresponding relationship between the person in charge and the approvers of the target application form, and the approval sequence at least includes L approvers, L being a positive integer; then, in the case that the L approvers included in the approval sequence all approve the target application form, the target script corresponding to the device to be networked is generated according to the target application form, and the device to be networked is added to the network designated by the target application form by running the target script.
[0074] From the above, it can be seen that the present application automatically queries the multiple approvers corresponding to the device to be networked and the approval order (i.e. the approval sequence) between the multiple approvers from the preset information table through the identifier of the person in charge of the device (i.e. the first identifier), and in the case that the multiple approvers all approve the target application form, the present application automatically adds the device to be networked to the network designated by the target application form by running the target script corresponding to the device to be networked, thereby omitting the operation step of manually setting the device to be networked by the operation and maintenance personnel to add the device to be networked to the designated network in the prior art.
[0075] Therefore, the technical scheme of the present application adopts the mode of automatically determining the approval sequence of the device to be networked according to the first identifier and the preset information table, thereby achieving the purpose of improving the efficiency of approving the device to be networked, and the present application further automatically adds the device to be networked to the network designated by the target application form by running the target script corresponding to the device to be networked, thereby realizing the technical effect of improving the networking efficiency of the device to be networked which cannot install network access software, and further solving the technical problem of low networking efficiency of the device to be networked caused by the need for manual approval of the device to be networked in the prior art when the device to be networked which cannot install network access software applies for networking.
[0076] According to another aspect of the embodiment of the present application, a device networking apparatus is also provided, Figure 4 is a schematic diagram of an optional device networking apparatus according to an embodiment of the present application, as Figure 4 shown, the device networking apparatus includes a first acquisition unit 401, a first determination unit 402, a first generation unit 403 and an adding unit 404.
[0077] Optionally, the first obtaining unit is configured to obtain a first identifier of a target application form, wherein the target application form comprises at least device information of the device to be connected to a network, and the first identifier is an identifier of a person in charge of the device to be connected to the network; the first determining unit is configured to determine an approval sequence of the target application form according to the first identifier and a preset information table, wherein the preset information table is configured to store a corresponding relationship between the person in charge and approvers of the target application form, and the approval sequence comprises at least L approvers, L being a positive integer; the first generating unit is configured to generate a target script corresponding to the device to be connected to the network according to the target application form, in a case where the L approvers included in the approval sequence all approve the target application form; and the adding unit is configured to add the device to be connected to the network to a network designated by the target application form by running the target script.
[0078] In an optional embodiment, the device networking apparatus further comprises a second obtaining unit, a second determining unit, and a second generating unit.
[0079] Optionally, the second obtaining unit is configured to obtain a network address and a device type of the device to be connected to the network according to an identifier of the device to be connected to the network; the second determining unit is configured to determine a network access requirement and a security policy of the device to be connected to the network according to the device type and business information of a department to which the person in charge belongs, wherein the network access requirement is configured to represent permission information that the device to be connected to the network needs to obtain after being connected to the network, and the security policy is configured to represent configuration information that the device to be connected to the network needs to set after being connected to the network; and the second generating unit is configured to generate the target application form according to the identifier of the device to be connected to the network, the network address, the network access requirement, and the security policy.
[0080] In an optional embodiment, the first determining unit comprises a first generating subunit, a first querying subunit, a second generating subunit, a second querying subunit, and a sorting subunit.
[0081] Optionally, the first generating subunit is configured to generate first prompt information, wherein the first prompt information is configured to prompt the person in charge to input the first identifier and a login password of the person in charge on a login page; the first querying subunit is configured to query a preset login password of the person in charge in the preset information table according to the first identifier, and determine whether the preset login password is same as the login password; the second generating subunit is configured to generate second prompt information in a case where the preset login password is not same as the login password, wherein the second prompt information is configured to prompt the person in charge to re-input the login password; the second querying subunit is configured to query L approvers corresponding to the person in charge in the preset information table according to the first identifier in a case where the preset login password is same as the login password; and the sorting subunit is configured to sort the L approvers according to a level of a department to which each of the L approvers belongs, to obtain the approval sequence of the target application form.
[0082] In an optional embodiment, the device networking apparatus further comprises an acquisition unit, a rollback unit, and a third determining unit.
[0083] Optionally, the collection unit is configured to collect the approval opinions of each of the L approvers on the target application form, to obtain L approval opinions; the rollback unit is configured to, in a case where the L approval opinions include at least one opposing approval opinion, rollback the approval process corresponding to the target application form to the person in charge, and transmit the opposing approval opinion to the person in charge, wherein the semantic information corresponding to the opposing approval opinion represents that the approval person corresponding to the opposing approval opinion disagrees with the approval of the target application form; and the third determination unit is configured to, in a case where the L approval opinions do not include the opposing approval opinion, determine that the L approvers all approve the target application form.
[0084] In an optional embodiment, the device networking apparatus further includes a third acquisition unit, a first judgment unit, a fourth determination unit, and a fifth determination unit.
[0085] Optionally, the third acquisition unit is configured to, after the target script is executed, acquire a running log of the target script, wherein the running log at least includes actual effective permission information and configuration information of the to-be-networked device; the first judgment unit is configured to judge whether the permission information in the running log is consistent with the permission information in the networking demand; the fourth determination unit is configured to, in a case where the permission information in the running log is not consistent with the permission information in the networking demand, determine that the networking result of the to-be-networked device is a failure result; and the fifth determination unit is configured to, in a case where the permission information in the running log is consistent with the permission information in the networking demand, determine the networking result according to the configuration information included in the running log and the configuration information in the networking demand.
[0086] In an optional embodiment, the fifth determination unit further includes a judgment subunit, a first determination subunit, and a second determination subunit.
[0087] Optionally, the judgment subunit is configured to judge whether the configuration information in the running log is consistent with the configuration information in the networking demand; the first determination subunit is configured to, in a case where the configuration information in the running log is not consistent with the configuration information in the networking demand, determine that the networking result of the to-be-networked device is a failure result, and generate third prompt information, wherein the third prompt information is used to prompt the person in charge that the to-be-networked device fails to be networked; and the second determination subunit is configured to, in a case where the configuration information in the running log is consistent with the configuration information in the networking demand, determine that the networking result of the to-be-networked device is a success result, and generate fourth prompt information, wherein the fourth prompt information is used to prompt the person in charge that the to-be-networked device is successfully networked.
[0088] In an optional embodiment, the device networking apparatus further includes a monitoring unit, a sixth determination unit, a seventh determination unit, a fourth acquisition unit, and a running unit.
[0089] Optionally, a monitoring unit is configured to monitor M devices in the network in real time to obtain a target device log, wherein M is a positive integer, and the target device log is configured to record running information corresponding to each of the M devices; a sixth determination unit is configured to determine a health coefficient of each device according to the target device log, wherein the health coefficient of each device is configured to represent a probability of failure of the device; a seventh determination unit is configured to determine devices with health coefficients less than a preset threshold in the M devices as N devices to be offline, wherein N is a positive integer less than or equal to M; a fourth acquisition unit is configured to acquire N standby networking devices corresponding to the N devices to be offline, wherein the N standby networking devices correspond to the N devices to be offline one by one, and a device type of each of the N standby networking devices is the same as a device type of a device to be offline corresponding to the standby networking device; and a running unit is configured to run a target script corresponding to each of the N standby networking devices.
[0090] In the present application, first, a first identifier of a target application form is acquired, wherein the target application form at least includes device information of a device to be networked, and the first identifier is an identifier of a person in charge of the device to be networked; then, an approval sequence of the target application form is determined according to the first identifier and a preset information table, wherein the preset information table is configured to store a corresponding relationship between the person in charge and approvers of the target application form, and the approval sequence at least includes L approvers, L being a positive integer; and then, under the condition that the L approvers in the approval sequence all approve the target application form, a target script corresponding to the device to be networked is generated according to the target application form, and the device to be networked is added to a network designated by the target application form by running the target script.
[0091] From the above, it can be seen that, by the identifier of the person in charge (i.e., the first identifier), the present application automatically queries a plurality of approvers corresponding to the device to be networked and an approval order (i.e., the approval sequence) between the plurality of approvers from the preset information table, and under the condition that the plurality of approvers all approve the target application form, the present application automatically adds the device to be networked to the network designated by the target application form by running the target script corresponding to the device to be networked, thereby omitting the operation step of manually setting the device to be networked by the operation and maintenance personnel to add the device to be networked to the designated network in the prior art.
[0092] It can be seen that the technical scheme of the present application adopts the mode of automatically determining the approval sequence of the to-be-networked device according to the first identifier and the preset information table, thereby achieving the purpose of improving the efficiency of approving the to-be-networked device. Meanwhile, the present application also automatically adds the to-be-networked device to the network designated by the target application table through running the target script corresponding to the to-be-networked device, thereby realizing the technical effect of improving the networking efficiency of the to-be-networked device that cannot install network access software, and further solving the technical problem of low networking efficiency of the to-be-networked device caused by the need for manual approval of the to-be-networked device in the prior art when the to-be-networked device that cannot install network access software applies for networking.
[0093] According to another aspect of the embodiments of the present application, a computer readable storage medium is also provided, which includes a stored computer program, wherein the computer readable storage medium controls the device where the computer readable storage medium is located to perform the device networking method of any one of the above when the computer program is running.
[0094] According to another aspect of the embodiments of the present application, an electronic device is also provided, which includes a processor and a memory for storing executable instructions of the processor, wherein the processor is configured to perform the device networking method of any one of the above via executing the executable instructions.
[0095] Optionally, Figure 5 is a schematic diagram of an optional electronic device according to an embodiment of the present application, as Figure 5 shown, the present application provides an electronic device, which includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the device networking method of any one of the above when executing the program.
[0096] In the above embodiments of the present application, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0097] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices produce a device that implements the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in one flow or multiple flows and / or blocks Figure 1 The functions specified in one flow or multiple flows and / or blocks
[0098] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the Figure 1 function specified in the flow or flows and / or blocks Figure 1 of the block or blocks.
[0099] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the Figure 1 function specified in the flow or flows and / or blocks Figure 1 of the block or blocks.
[0100] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory. The memory can include non-persistent memory, random access memory (RAM), and / or non-volatile memory, such as read only memory (ROM) or flash memory, in a computer readable medium. The memory is an example of computer readable media.
[0101] Computer readable media includes permanent and non-permanent, movable and non-movable media that can be implemented by any method or technology to store information. The information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible by a computing device. According to the definition herein, computer readable media does not include transitory media, such as modulated data signals and carrier waves.
[0102] It is also to be noted that the terms "comprising", "including", and 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 can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises a... " does not, without more constraints, exclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.
[0103] Those skilled in the art will appreciate that embodiments of the present application can be devised for a method, a system, or a computer program product. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) embodying computer-readable program code.
[0104] The embodiments of the present application are only illustrative and are not intended to limit the present application. Various modifications and changes can be made by those skilled in the art without departing from the spirit and scope of the present application. 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
1. A method of device networking, the method comprising: The method comprises the following steps: obtaining a first identifier of a target application form, wherein the target application form comprises at least device information of a device to be connected to a network, and the first identifier is an identifier of a person in charge of the device to be connected to the network; determining an approval sequence of the target application form according to the first identifier and a preset information table, wherein the preset information table is used to store a corresponding relationship between the person in charge and approvers of the target application form, and the approval sequence comprises at least L approvers, L being a positive integer; generating a target script corresponding to the device to be connected to the network according to the target application form when the L approvers in the approval sequence all approve the target application form; adding the device to be connected to the network to a network designated by the target application form by running the target script.
2. The device networking method according to claim 1, wherein, Before obtaining the first identifier of the target application form, the device networking method further comprises: obtaining a network address and a device type of the device to be connected to the network according to an identifier of the device to be connected to the network; determining a network access requirement and a security policy of the device to be connected to the network according to the device type and business information of a department to which the person in charge belongs, wherein the network access requirement is used to represent permission information that the device to be connected to the network needs to obtain after being connected to the network, and the security policy is used to represent configuration information that the device to be connected to the network needs to set after being connected to the network; generating the target application form according to the identifier, the network address, the network access requirement and the security policy of the device to be connected to the network.
3. The device networking method of claim 1, wherein, The preset information table is further used to store a preset login password of the person in charge, and determining the approval sequence of the target application form according to the first identifier and the preset information table comprises: generating first prompt information, wherein the first prompt information is used to prompt the person in charge to input the first identifier and the login password of the person in charge on a login page; querying the preset login password of the person in charge in the preset information table according to the first identifier, and determining whether the preset login password is the same as the login password; generating second prompt information when the preset login password is not the same as the login password, wherein the second prompt information is used to prompt the person in charge to input the login password again; querying L approvers corresponding to the person in charge in the preset information table according to the first identifier when the preset login password is the same as the login password; sorting the L approvers according to a level of a department to which each of the L approvers belongs, to obtain the approval sequence corresponding to the target application form.
4. The device networking method of claim 1, wherein, After determining the approval sequence corresponding to the target application form according to the first identifier and the preset information table, the device networking method further comprises: collecting an approval opinion of each of the L approvers on the target application form to obtain L approval opinions; when the L approval opinions comprise at least one opposing approval opinion, reverting an approval process corresponding to the target application form to the person in charge, and transmitting the opposing approval opinion to the person in charge, wherein semantic information corresponding to the opposing approval opinion represents that an approver corresponding to the opposing approval opinion disagrees with the approval of the target application form. In a case where the L pieces of review opinions do not include the opposing review opinion, it is determined that the L reviewers all pass the target application form.
5. The device networking method according to claim 2, wherein, After the target script corresponding to the device to be networked is generated according to the target application form, the device networking method further includes: After the target script is run to the end, a running log of the target script is obtained, wherein the running log at least includes actual effective permission information and configuration information of the device to be networked; It is judged whether the permission information in the running log is consistent with the permission information in the network access demand; In a case where the permission information in the running log is not consistent with the permission information in the network access demand, it is determined that the networking result of the device to be networked is a failure result; In a case where the permission information in the running log is consistent with the permission information in the network access demand, it is determined that the networking result is according to the configuration information included in the running log and the configuration information in the network access demand.
6. The device networking method according to claim 5, wherein, According to the configuration information included in the running log and the configuration information in the network access demand, the networking result is determined, including: It is judged whether the configuration information in the running log is consistent with the configuration information in the network access demand; In a case where the configuration information in the running log is not consistent with the configuration information in the network access demand, it is determined that the networking result of the device to be networked is the failure result, and third prompt information is generated, wherein the third prompt information is used to prompt the person in charge that the device to be networked fails to access the network; In a case where the configuration information in the running log is consistent with the configuration information in the network access demand, it is determined that the networking result of the device to be networked is a success result, and fourth prompt information is generated, wherein the fourth prompt information is used to prompt the person in charge that the device to be networked accesses the network successfully.
7. The device networking method according to claim 1, wherein, After the device to be networked is added to the network specified by the target application form by running the target script, the device networking method further includes: Real-time monitoring is performed on M devices in the network to obtain target device logs, wherein M is a positive integer, and the target device logs are used to record running information corresponding to each device of the M devices; According to the target device logs, a health coefficient of each device is determined, wherein the health coefficient of each device is used to represent a probability of failure of the device; Devices with a health coefficient less than a preset threshold value in the M devices are taken as devices to be offline, to obtain N devices to be offline, wherein N is a positive integer less than or equal to M; N standby networking devices corresponding to the N devices to be offline are obtained, wherein the N standby networking devices correspond one-to-one to the N devices to be offline, and a device type of each standby networking device in the N standby networking devices is the same as a device type of the device to be offline corresponding to the standby networking device; A target script corresponding to each standby networking device in the N standby networking devices is run.
8. A device networking apparatus, comprising: including: A first obtaining unit is configured to obtain a first identifier of a target application form, wherein the target application form comprises at least device information of a device to be connected to a network, and the first identifier is an identifier of a person in charge of the device to be connected to the network; A first determining unit is configured to determine an approval sequence of the target application form according to the first identifier and a preset information table, wherein the preset information table is configured to store a corresponding relationship between the person in charge and an approver of the target application form, and the approval sequence comprises at least L approvers, L being a positive integer; A first generating unit is configured to generate a target script corresponding to the device to be connected to the network according to the target application form, in a case where the L approvers included in the approval sequence all approve the target application form; An adding unit is configured to add the device to be connected to the network to a network designated by the target application form by running the target script.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program controls a device in which the computer readable storage medium is located to perform the device networking method in any one of claims 1 to 7 when the computer program is run.
10. An electronic device, comprising: The device comprises one or more processors and a memory, and the memory is configured to store one or more programs, and the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the device networking method in any one of claims 1 to 7.
Citation Information
Patent Citations
Data approving method, device, computer equipment and storage medium
CN108573371A
Internet of Things equipment network access method and device, electronic equipment and storage medium
CN117424805A