Network equipment management method and device, equipment and storage medium

By implementing configuration file polling, monitoring policy configuration and device monitoring methods in the server management controller, the problems of low server management efficiency and complex hardware adaptation in the prior art are solved, and dynamic automatic adaptation and efficient management of hardware devices are realized.

CN119728423AInactive Publication Date: 2025-03-28INSPUR SUZHOU INTELLIGENT TECH CO LTD

Patent Information

Application Number
CN202412000285.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-03-28
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing server management architecture has problems such as low communication efficiency, slow speed, high maintenance cost and long time to transmit large files in complex business scenarios, resulting in low management efficiency and hardware adaptation requires secondary development, which increases the introduction cycle and risks.

Method used

By implementing methods of polling configuration files, configuring monitoring policies and device monitoring in the management controller, combining the processing of configuration update instructions and parameter validity judgment, dynamically and automatically adapting to hardware devices to avoid secondary development and improve device management efficiency.

Benefits of technology

It realizes dynamic automatic adaptation of hardware devices, improves the degree of automation of servers, improves the deployment and monitoring efficiency of hardware configurations, shortens the hardware device adaptation cycle, and ensures effective monitoring of new devices, ensuring the reliability and security of servers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728423A_ABST
    Figure CN119728423A_ABST
Patent Text Reader

Abstract

The invention discloses a network equipment management method and device, equipment and a storage medium, and relates to the technical field of computers, and the method comprises the steps: polling each local configuration file, configuring corresponding monitoring strategies for network equipment of different network equipment types based on the configuration files, and carrying out the equipment monitoring according to the monitoring strategies; if the configuration updating instruction is received, exporting a to-be-updated configuration file of the target network equipment corresponding to the configuration updating instruction, and after an updated configuration file corresponding to the to-be-updated configuration file is received, determining whether configuration parameters in the updated configuration file are valid or not; if the configuration parameters are located in the preset parameter threshold interval, equipment monitoring is conducted on the target network equipment based on the updated configuration file, and if the configuration parameters are not located in the preset parameter threshold interval, the updated configuration file is deleted, and equipment monitoring is conducted based on the latest historical configuration file of the target network equipment. Therefore, secondary development and testing are not needed, and dynamic automatic adaptation of hardware equipment can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a network device management method, device, equipment and storage medium. Background Art

[0002] Servers are the key to data storage, network management, and computing, and stable operation is the prerequisite for the smooth operation of the overall system. With the rapid development of emerging technologies such as artificial intelligence and cloud computing, the business scenarios that servers need to cover are becoming more and more complex, and the management requirements are becoming increasingly diverse. In the past, the management architecture of a single management controller was not enough to meet the current diverse management needs. In the past, most devices communicated through I2C (Inter-Integrated Circuit, a two-way two-wire synchronous serial bus) links. In the current server management needs, there are problems such as low communication efficiency, slow speed, high maintenance cost, and long time to transfer large files. This method will reduce the management efficiency of the server in the current complex business scenarios. At the same time, the introduction of modifications and new equipment requires secondary development, which increases the introduction cycle and introduction risk of equipment.

[0003] It can be seen that how to avoid secondary development during hardware adaptation and improve equipment management efficiency is a problem that technical personnel in this field need to solve. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a network device management method, apparatus, device and storage medium, which can realize dynamic automatic adaptation of hardware devices without secondary development and testing, improve the automation of the entire server, and enhance the deployment and monitoring efficiency of hardware configuration. The specific scheme is as follows:

[0005] In a first aspect, the present application discloses a network device management method, which is applied to a management controller, comprising:

[0006] Poll local configuration files, configure corresponding monitoring policies for network devices of different types based on the configuration files, and monitor the devices according to the monitoring policies;

[0007] If a configuration update instruction is received, exporting the configuration file to be updated of the target network device corresponding to the configuration update instruction, and after receiving an updated configuration file corresponding to the configuration file to be updated, determining whether the configuration parameters in the updated configuration file are valid;

[0008] If the configuration parameter is within the preset parameter threshold range, the target network device is monitored accordingly based on the updated configuration file. If the configuration parameter is not within the preset parameter threshold range, the updated configuration file is deleted and the device is monitored based on the latest historical configuration file of the target network device.

[0009] Optionally, poll each local configuration file, configure corresponding monitoring policies for network devices of different network device types based on the configuration files, and monitor the devices according to the monitoring policies, including:

[0010] Poll each local configuration file and read the device type field in the configuration file to determine the device type of each device;

[0011] Read the monitoring strategy and preset parameter threshold range corresponding to each device from the configuration file based on the device type;

[0012] The hardware parameters of each device are monitored in real time based on the monitoring strategy. If the hardware parameters are not within the preset parameter threshold range, an alarm message is generated and fed back to the user end through the preset network interface.

[0013] Optionally, if a configuration update instruction is received, the configuration file to be updated of the target network device corresponding to the configuration update instruction is exported, and after receiving an updated configuration file corresponding to the configuration file to be updated, before determining whether the configuration parameters in the updated configuration file are valid, the method further includes:

[0014] Establish a communication connection with each device based on the communication links respectively configured in the configuration file. If there is an unconnected device for which the communication connection establishment fails, retry the connection based on the target link corresponding to the unconnected device.

[0015] If a communication connection is not successfully established with the unconnected device within a preset time range, the target link is regarded as an abnormal link, and a link abnormality alarm corresponding to the target link is issued.

[0016] Optionally, if a configuration update instruction is received, exporting a configuration file to be updated of the target network device corresponding to the configuration update instruction, and after receiving an updated configuration file corresponding to the configuration file to be updated, determining whether configuration parameters in the updated configuration file are valid, including:

[0017] If a configuration update instruction is received, the configuration update instruction is parsed to determine a target network device corresponding to the configuration update instruction;

[0018] Determine the configuration file to be updated corresponding to the target network device, and export the configuration file to be updated;

[0019] It is determined whether an updated configuration file corresponding to the configuration file to be updated is received. If the updated configuration file is received, the validity of the configuration parameters in the updated configuration file is checked.

[0020] Optionally, determining whether an updated configuration file corresponding to the configuration file to be updated is received, and if the updated configuration file is received, performing validity detection on configuration parameters in the updated configuration file, including:

[0021] Determine whether a new configuration file is received. If a new configuration file is received, detect the modification confirmation flag of the new configuration file to confirm whether the new configuration file is an updated configuration file corresponding to the configuration file to be updated according to the field corresponding to the modification confirmation flag;

[0022] If the newly added configuration file is an updated configuration file corresponding to the configuration file to be updated, the validity of each configuration parameter in the updated configuration file is checked.

[0023] Optionally, if the configuration parameter is within a preset parameter threshold range, corresponding device monitoring is performed on the target network device based on the updated configuration file; if the configuration parameter is not within the preset parameter threshold range, the updated configuration file is deleted, and device monitoring is performed based on the latest historical configuration file of the target network device, including:

[0024] If there is no parameter in the configuration parameters that is greater than the maximum parameter value in the preset parameter threshold interval or less than the minimum parameter value in the preset parameter threshold interval, then corresponding device monitoring is performed on the target network device based on the updated configuration file;

[0025] If there are parameters in the configuration parameters that are greater than the maximum parameter value and / or parameters that are less than the minimum parameter value, the parameters in the configuration parameters that are greater than the maximum parameter value and the parameters that are less than the minimum parameter value are regarded as abnormal parameters, and a parameter setting abnormality notification is generated based on the abnormal parameters, and the latest historical configuration file corresponding to the target network device is obtained, and corresponding device monitoring is performed on the target network device based on the latest historical configuration file.

[0026] Optionally, the network device management method of the present application further includes:

[0027] If a new device instruction is received, a new device configuration file corresponding to the new device is generated and the new device configuration file is exported;

[0028] Determine whether a target new device configuration file corresponding to the new device configuration file is received, and if the target new device configuration file corresponding to the new configuration file is received, determine whether the new device configuration parameter in the target new device configuration file is within a preset parameter threshold range;

[0029] If the configuration parameters of the newly added device are within the preset parameter threshold range, the newly added device is monitored based on the target newly added device configuration file;

[0030] If the newly added device configuration parameter is not within the preset parameter threshold range, an adaptation fault notification is generated and sent to the user end.

[0031] In a second aspect, the present application discloses a network device management apparatus, which is applied to a management controller, comprising:

[0032] The configuration file polling module is used to poll local configuration files, configure corresponding monitoring strategies for network devices of different network device types based on the configuration files, and monitor the devices according to the monitoring strategies;

[0033] A parameter validity judgment module is used to export the configuration file to be updated of the target network device corresponding to the configuration update instruction if a configuration update instruction is received, and after receiving the updated configuration file corresponding to the configuration file to be updated, determine whether the configuration parameters in the updated configuration file are valid;

[0034] The device monitoring module is used to perform corresponding device monitoring on the target network device based on the updated configuration file if the configuration parameters are within the preset parameter threshold range; if the configuration parameters are not within the preset parameter threshold range, the updated configuration file is deleted and the device monitoring is performed based on the latest historical configuration file of the target network device.

[0035] In a third aspect, the present application discloses an electronic device, including:

[0036] Memory for storing computer programs;

[0037] The processor is used to execute a computer program to implement the steps of the aforementioned network device management method.

[0038] In a fourth aspect, the present application discloses a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the aforementioned network device management method are implemented.

[0039] In the present application, firstly, each local configuration file is polled, and corresponding monitoring strategies are configured for network devices of different network device types based on the configuration files, and the devices are monitored according to the monitoring strategies; if a configuration update instruction is received, the configuration file to be updated of the target network device corresponding to the configuration update instruction is exported, and after receiving the updated configuration file corresponding to the configuration file to be updated, it is determined whether the configuration parameters in the updated configuration file are valid; if the configuration parameters are within the preset parameter threshold range, the target network device is monitored accordingly based on the updated configuration file; if the configuration parameters are not within the preset parameter threshold range, the updated configuration file is deleted, and the device is monitored based on the latest historical configuration file of the target network device.

[0040] Beneficial effect: It can be seen that the method of the present application needs to poll each local configuration file, and then configure monitoring strategies for different types of network devices according to each configuration file to monitor according to the configured monitoring strategy, and after receiving the configuration update instruction, the configuration file to be updated corresponding to the configuration update instruction can be exported, so that the user can adjust the parameters of the configuration file to be updated. After receiving the updated configuration file, the validity of the updated configuration file can be judged by whether the parameters therein are in the preset parameter threshold interval. If the configuration parameters are in the preset parameter threshold interval, the corresponding target network device can be monitored according to the updated configuration file. If the configuration parameters are not in the preset parameter threshold interval, the updated configuration file needs to be deleted, and the device is monitored according to the latest historical configuration file of the target network device. In this way, dynamic and automatic adaptation of hardware devices can be realized without secondary development and testing, the automation of the entire server can be improved, the deployment and monitoring efficiency of hardware configuration can be improved, and the cycle of repeated development and introduction of testing brought about by hardware device adaptation can be shortened. At the same time, effective monitoring of new devices can be guaranteed, thereby ensuring reliable and safe operation of the server. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 A flow chart of a network device management method provided by an embodiment of the present invention;

[0043] Figure 2 A flowchart of another network device management method provided by an embodiment of the present invention;

[0044] Figure 3 A schematic diagram of the structure of a network device management device provided by an embodiment of the present invention;

[0045] Figure 4 A structural diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] As server coverage scenarios become more and more complex, the management architecture of a single management controller in the past is not enough to meet the current diverse management needs. In the past, most devices communicated through I2C links. In the current server management needs, there are problems such as low communication efficiency, slow speed, high maintenance cost, and long time to transfer large files. This approach will reduce the management efficiency of the server in the current complex business scenarios. At the same time, the introduction of modifications and new devices requires secondary development, which increases the introduction cycle and risk of equipment.

[0048] In order to overcome the above technical problems, the present application discloses a network equipment management method, apparatus, device and storage medium, which can realize dynamic and automatic adaptation of hardware equipment without secondary development and testing, improve the automation of the entire server, and enhance the deployment and monitoring efficiency of hardware configuration.

[0049] The terms "including" and "having" in the specification of the present invention and the above-mentioned drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.

[0050] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0051] See also Figure 1 As shown, the embodiment of the present application discloses a network device management method, which is applied to a management controller, including:

[0052] Step S11: poll each local configuration file, configure corresponding monitoring strategies for network devices of different network device types based on the configuration files, and perform device monitoring according to the monitoring strategies.

[0053] In this embodiment, the management controller needs to poll the local configuration files, and configure corresponding monitoring strategies for network devices of different network device types according to different configuration files, and perform device monitoring according to the corresponding monitoring strategies. Specifically, the management controller will save all the monitored hardware devices in the form of configuration files, wherein hardware devices of different hardware device types are distinguished by different Type fields in the configuration files. Therefore, after the management controller is powered on, it will poll each local configuration file, and then read and read the device type field in the configuration file, that is, the Type field, to determine the device type of each device.

[0054] It should be noted that after the management controller has identified the device type, it needs to read the monitoring strategy and preset parameter threshold interval corresponding to each device from the configuration file based on the device type, and monitor the hardware of the hardware according to the monitoring strategy. If the hardware parameter of the device is not within the preset parameter threshold interval corresponding to the parameter, an alarm message needs to be generated, and then the alarm message is fed back to the user end through the preset network interface for alarm. Taking temperature control as an example, the management controller reads the device file and identifies that the currently monitored device is a network card device. It will obtain the network card temperature, network card optical module, etc. according to the reading method configured in the configuration file, and obtain the thresholds of these parameters through the configuration file for setting. If the specified threshold is exceeded, an alarm message is generated and reported to the user.

[0055] It should be further explained that the management controller includes but is not limited to management controllers with server management functions such as BMC (Blade Management Controller) or iLO (Integrated Light-out). When the management controller is BMC, the BMC management network interface is connected to a port of the Lan Switch chip, and other network terminal devices also need to connect the management network interface to the corresponding port of the Lan Switch for hardware connection. In addition, BMC can deploy and enable the NAT (Network Address Translation) function to enable the network data terminal to connect to the user through the BMC's NAT, and can also hide the IP of the network data terminal, thereby improving the security of the network. In this way, since the network transmission rate is much higher than I2C, network management can be used to improve server management efficiency and realize distributed management of different devices.

[0056] Step S12: if a configuration update instruction is received, the configuration file to be updated of the target network device corresponding to the configuration update instruction is exported, and after receiving an updated configuration file corresponding to the configuration file to be updated, it is determined whether the configuration parameters in the updated configuration file are valid.

[0057] In this embodiment, before judging the validity of the parameters of the updated configuration file, it is necessary to establish a communication connection with each device through the communication links respectively configured in the configuration file. The BMC will monitor whether the network communication channel between the BMC and the node is normal. If there is an unconnected device that fails to establish a communication connection, it is necessary to retry the connection based on the target link corresponding to the unconnected device. If a communication connection is not established with the unconnected device within a preset time range, it is considered that a channel link abnormality has occurred. The target link needs to be treated as an abnormal link and an abnormal alarm is issued for the target link. It should be noted that the preset time range can be set by the user. In this embodiment, it is set to 3 minutes.

[0058] Furthermore, if a configuration update instruction is received, the configuration file to be updated corresponding to the corresponding target network device can be exported according to the configuration update instruction, and then after receiving the updated configuration file corresponding to the configuration file to be updated, the validity of the configuration parameters in the updated configuration file can be judged. Specifically, if the user needs to perform a configuration update on a hardware device of the server, such as a reading method, a temperature threshold, etc., then only the configuration update instruction of the hardware device to be updated needs to be sent to the server. After receiving the configuration update instruction, the management controller in the server can parse the configuration update instruction to determine the target network device corresponding to the configuration update instruction, and then export the configuration file to be updated corresponding to the target network device.

[0059] It should be noted that BMC will continuously poll to detect changes in configuration files. If it detects that a file has been modified, BMC will first detect the modification confirmation field of the file, that is, whether the modified parameters are valid. After receiving the updated configuration file corresponding to the configuration file to be updated, it is necessary to perform validity checks on the configuration parameters in the updated configuration file. Therefore, after receiving the newly added configuration file, it is necessary to test the modification confirmation flag of the newly added configuration file to confirm whether the newly added configuration file is the updated configuration file corresponding to the configuration file to be updated according to the field corresponding to the flag modification confirmation flag. If the newly added configuration file is the updated configuration file corresponding to the configuration file to be updated, the validity of each configuration parameter in the updated configuration file is tested. In this way, when configuration updates or parameter modifications are required, only the corresponding configuration file needs to be exported for modification, without the need for secondary development and testing. Dynamic and automatic adaptation of hardware devices can be achieved, improving the automation of the entire server.

[0060] Step S13: If the configuration parameter is within the preset parameter threshold range, the target network device is monitored accordingly based on the updated configuration file; if the configuration parameter is not within the preset parameter threshold range, the updated configuration file is deleted, and the device is monitored based on the latest historical configuration file of the target network device.

[0061] In this embodiment, when judging the validity of the configuration parameters in the updated configuration file, it is necessary to judge whether the configuration parameters are within the preset parameter threshold interval. Specifically, the updated configuration file needs to be parsed to determine whether the parameters in the updated configuration file are within the preset parameter threshold interval. In the first case, if there is no parameter in the configuration parameters that is greater than the maximum parameter value in the preset parameter threshold interval or less than the minimum parameter value in the preset parameter threshold interval, it indicates that all the parameters in the updated configuration file are valid, and the target network device can be monitored according to the updated configuration file.

[0062] In another case, if there are parameters greater than the maximum parameter value and / or less than the minimum parameter value in the configuration parameters in the updated configuration file, the parameters greater than the maximum parameter value and the parameters less than the minimum parameter value in the configuration parameters need to be treated as abnormal parameters, and then a corresponding abnormal parameter notification is generated, and the abnormal parameter notification is fed back to the client to remind the abnormal parameters. Then the current updated configuration file needs to be deleted, and the latest historical configuration file corresponding to the target network device is obtained, so as to perform corresponding device monitoring on the target network device according to the latest historical configuration file. In this way, the compatibility and adaptability of the server can be guaranteed to the greatest extent.

[0063] It should be noted that generating an abnormal parameter notification can remind the user that there are unreasonable parameters that are too large or too small in the current parameters. However, in order to ensure the efficiency of parameter modification, when generating an abnormal parameter notification, an abnormal parameter notification can be generated for all current abnormal parameters, and the abnormal parameter types and abnormal parameter values ​​corresponding to all abnormal parameters are added to the abnormal parameter notification. In another case, in order to avoid the loss of the notification during transmission, an abnormal parameter notification can be generated for each abnormal parameter, and the type of abnormal parameter and the current abnormal parameter value are added to the abnormal parameter notification. The above two methods of generating abnormal parameter notifications can be selected by the user. In this way, after receiving the abnormal parameter notification, the user can quickly understand which parameters are abnormal and make corresponding modifications, which effectively ensures the efficiency and stability of network device management.

[0064] It should be further explained that network devices can also monitor and manage themselves. Network devices can directly manage devices through the network forwarding function of BMC. Users can configure the monitoring logic of terminal devices, configure alarm reporting logic, configure device fault log collection logic, configure which key components the device needs to monitor, etc., and then send the above configuration information to the network device through the network forwarding function of BMC. After receiving the user's configuration description, the network device implements the corresponding configuration of itself. The network device can monitor its own health status in real time. If a fault occurs, it can be reported directly to the user end through the network forwarding of BMC according to the configured network address, so that the user can directly understand the operation status of the terminal device.

[0065] It can be seen that the method of the present application needs to poll each local configuration file, and then configure monitoring strategies for different types of network devices according to each configuration file to monitor according to the configured monitoring strategy, and after receiving the configuration update instruction, the configuration file to be updated corresponding to the configuration update instruction can be exported so that the user can adjust the parameters of the configuration file to be updated. After receiving the updated configuration file, the validity of the updated configuration file can be judged by whether the parameters therein are in the preset parameter threshold interval. If the configuration parameters are in the preset parameter threshold interval, the corresponding target network device can be monitored according to the updated configuration file. If the configuration parameters are not in the preset parameter threshold interval, the updated configuration file needs to be deleted and the device is monitored according to the latest historical configuration file of the target network device. In this way, on the one hand, the device management of the server can be carried out by network transmission to improve the server management efficiency; on the other hand, when the configuration update or parameter modification is required, only the corresponding configuration file needs to be exported for modification, which can realize the dynamic automatic adaptation of the hardware device without secondary development and testing, improve the automation of the entire server, improve the deployment and monitoring efficiency of the hardware configuration, shorten the repeated development and introduction test cycle brought by the hardware device adaptation, and at the same time ensure the effective monitoring of the new device, thereby ensuring the reliable and safe operation of the server.

[0066] Based on the above embodiments, it can be known that when it is necessary to modify the device parameters, the configuration file corresponding to the device can be exported to modify the parameters. Based on this method, when a new device is added, a new configuration file can be added to adapt the new device. Therefore, this embodiment describes in detail how to implement the adaptation of the new device. Figure 2 As shown, the embodiment of the present application discloses a network device management method, which is applied to a management controller, including:

[0067] Step S21: If a new device instruction is received, a new device configuration file corresponding to the new device is generated and the new device configuration file is exported.

[0068] In this embodiment, if a new device needs to be added to the server, the user can initiate a new device instruction. After receiving the new device instruction, the server can generate a new device file corresponding to the new device, and then export the new device file so that after the user receives the new configuration file, he can fill in the corresponding device type field Type according to the content in the new configuration file and fill in the corresponding parameters.

[0069] Step S22: determine whether a target newly added device configuration file corresponding to the newly added device configuration file is received; if the target newly added device configuration file corresponding to the newly added configuration file is received, determine whether the newly added device configuration parameters in the target newly added device configuration file are within a preset parameter threshold range.

[0070] In this embodiment, it is necessary to determine whether a target newly added configuration file corresponding to the newly added device configuration file is received, wherein the target newly added configuration file is a file after the user adds configuration parameters to the newly added configuration file after receiving the newly added configuration file. If the newly added device configuration file is received, it is necessary to parse the newly added device configuration file to determine the newly added device configuration parameters therein, and then perform validity judgment on the newly added device configuration parameters to determine whether the newly added device configuration parameters are within the preset parameter threshold range.

[0071] Step S23: If the configuration parameter of the newly added device is within the preset parameter threshold range, the newly added device is monitored based on the target newly added device configuration file.

[0072] In this embodiment, if all the newly added device configuration parameters are within the preset parameter threshold range, it indicates that there are no abnormal parameters in the target newly added device configuration file, and the newly added device can be monitored based on the target newly added device configuration file.

[0073] Step S24: If the newly added device configuration parameter is not within the preset parameter threshold range, an adaptation fault notification is generated and sent to the user end.

[0074] In this embodiment, if there are parameters greater than the maximum parameter value and / or parameters less than the minimum parameter value in the newly added device configuration parameters, it is necessary to treat the parameters greater than the maximum parameter value and the parameters less than the minimum parameter value in the configuration parameters as abnormal parameters, and then generate an adaptation fault notification corresponding to the abnormal parameters, and feed back the adaptation fault notification to the user end so that the user can adjust the parameters after receiving the adaptation fault notification.

[0075] In this way, if a new device instruction is received in this embodiment, a new device configuration file corresponding to the new device can be generated, and the new device configuration file can be exported so that the user can fill in the parameters in the new device configuration file, and after receiving the target new device configuration file corresponding to the new device configuration file, it can be determined whether the new device configuration parameters in the target new device configuration file are within the preset parameter threshold interval. If they are within the preset parameter threshold interval, the new device is monitored based on the target new device configuration file. If there are abnormal parameters in the parameters that are not within the preset parameter threshold interval, an adaptation fault notification is generated and sent to the user end. In this way, when a new device is added to the server, it is only necessary to export the corresponding configuration file to add parameters, so as to realize dynamic and automatic adaptation of the hardware device and avoid the situation where the new device needs to be developed secondary.

[0076] See also Figure 3 As shown, the embodiment of the present application discloses a network device management device, which is applied to a management controller, including:

[0077] The configuration file polling module 11 is used to poll each local configuration file, configure corresponding monitoring strategies for network devices of different network device types based on the configuration files, and perform device monitoring according to the monitoring strategies;

[0078] The parameter validity judgment module 12 is used to export the configuration file to be updated of the target network device corresponding to the configuration update instruction if a configuration update instruction is received, and after receiving the updated configuration file corresponding to the configuration file to be updated, determine whether the configuration parameters in the updated configuration file are valid;

[0079] The device monitoring module 13 is used to perform corresponding device monitoring on the target network device based on the updated configuration file if the configuration parameter is within the preset parameter threshold range; if the configuration parameter is not within the preset parameter threshold range, delete the updated configuration file and perform device monitoring based on the latest historical configuration file of the target network device.

[0080] In the present application, firstly, each local configuration file is polled, and corresponding monitoring strategies are configured for network devices of different network device types based on the configuration files, and the devices are monitored according to the monitoring strategies; if a configuration update instruction is received, the configuration file to be updated of the target network device corresponding to the configuration update instruction is exported, and after receiving the updated configuration file corresponding to the configuration file to be updated, it is determined whether the configuration parameters in the updated configuration file are valid; if the configuration parameters are within the preset parameter threshold range, the target network device is monitored accordingly based on the updated configuration file; if the configuration parameters are not within the preset parameter threshold range, the updated configuration file is deleted, and the device is monitored based on the latest historical configuration file of the target network device. It can be seen that the method of the present application needs to poll each local configuration file, and then configure monitoring strategies for different types of network devices according to each configuration file to monitor according to the configured monitoring strategy, and after receiving the configuration update instruction, the configuration file to be updated corresponding to the configuration update instruction can be exported, so that the user can adjust the parameters of the configuration file to be updated. After receiving the updated configuration file, the validity of the updated configuration file can be judged by whether the parameters therein are in the preset parameter threshold interval. If the configuration parameters are in the preset parameter threshold interval, the corresponding target network device can be monitored according to the updated configuration file. If the configuration parameters are not in the preset parameter threshold interval, the updated configuration file needs to be deleted, and the device is monitored according to the latest historical configuration file of the target network device. In this way, dynamic and automatic adaptation of hardware devices can be realized without secondary development and testing, the automation of the entire server can be improved, the deployment and monitoring efficiency of hardware configuration can be improved, and the repeated development and introduction test cycle brought about by hardware device adaptation can be shortened. At the same time, effective monitoring of new devices can be guaranteed, thereby ensuring reliable and safe operation of the server.

[0081] In some embodiments, the configuration file polling module 11 may specifically include:

[0082] The device type confirmation unit is used to poll each local configuration file and read the device type field in the configuration file to determine the device type of each device;

[0083] A data reading unit, used to read the monitoring strategy and preset parameter threshold interval corresponding to each device from the configuration file based on the device type;

[0084] The first alarm unit is used to monitor the hardware parameters of each device in real time based on the monitoring strategy. If the hardware parameters are not within the preset parameter threshold range, an alarm message is generated and the alarm message is fed back to the user end through a preset network interface.

[0085] In some embodiments, the network device management apparatus may further include:

[0086] A connection establishing unit, configured to establish a communication connection with each device based on the communication links respectively configured in the configuration file, and if there is an unconnected device for which the communication connection establishment fails, retry the connection based on the target link corresponding to the unconnected device;

[0087] The second alarm unit is used to regard the target link as an abnormal link and issue a link abnormality alarm corresponding to the target link if a communication connection is not successfully established with the unconnected device within a preset time range.

[0088] In some embodiments, the parameter validity judgment module 12 may specifically include:

[0089] The instruction parsing submodule is used to parse the configuration update instruction if a configuration update instruction is received to determine the target network device corresponding to the configuration update instruction;

[0090] The file export submodule is used to determine the configuration file to be updated corresponding to the target network device and export the configuration file to be updated;

[0091] The parameter detection submodule is used to determine whether an updated configuration file corresponding to the configuration file to be updated is received, and if the updated configuration file is received, perform validity detection on the configuration parameters in the updated configuration file.

[0092] In some embodiments, the parameter detection submodule may specifically include:

[0093] A file confirmation unit, used to determine whether a new configuration file is received, and if a new configuration file is received, to detect a modification confirmation flag of the new configuration file, so as to confirm whether the new configuration file is an updated configuration file corresponding to the configuration file to be updated according to a field corresponding to the modification confirmation flag;

[0094] The parameter detection unit is used to detect the validity of each configuration parameter in the updated configuration file if the newly added configuration file is an updated configuration file corresponding to the configuration file to be updated.

[0095] In some embodiments, the device monitoring module 13 may specifically include:

[0096] A first device monitoring unit, configured to perform corresponding device monitoring on the target network device based on the updated configuration file if there is no parameter in the configuration parameters that is greater than a maximum parameter value in a preset parameter threshold interval or less than a minimum parameter value in a preset parameter threshold interval;

[0097] The second device monitoring unit is used to treat the parameters greater than the maximum parameter value and the parameters less than the minimum parameter value in the configuration parameters as abnormal parameters if there are parameters greater than the maximum parameter value and / or parameters less than the minimum parameter value in the configuration parameters, and generate a parameter setting abnormality notification based on the abnormal parameters, and obtain the latest historical configuration file corresponding to the target network device, and perform corresponding device monitoring on the target network device based on the latest historical configuration file.

[0098] In some embodiments, the network device management method apparatus may further include:

[0099] A file export unit, configured to generate a new device configuration file corresponding to the new device if a new device instruction is received, and export the new device configuration file;

[0100] a parameter determination unit, configured to determine whether a target newly added device configuration file corresponding to the newly added device configuration file is received, and if the target newly added device configuration file corresponding to the newly added configuration file is received, determine whether the newly added device configuration parameter in the target newly added device configuration file is within a preset parameter threshold interval;

[0101] A third device monitoring unit, configured to perform device monitoring on the newly added device based on a target newly added device configuration file if the newly added device configuration parameter is within a preset parameter threshold range;

[0102] The fault notification unit is used to generate an adaptation fault notification if the newly added device configuration parameter is not within a preset parameter threshold range, and send the adaptation fault notification to the user end.

[0103] Furthermore, the present application also discloses an electronic device. Figure 4 This is a structural diagram of an electronic device according to an exemplary embodiment, and the content in the diagram cannot be regarded as any limitation on the scope of use of this application. The electronic device may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. Among them, the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the network device management method disclosed in any of the aforementioned embodiments. In addition, the electronic device in this embodiment may specifically be an electronic computer.

[0104] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device; the communication interface 24 can create a data transmission channel between the electronic device and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0105] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0106] The operating system 221 is used to manage and control various hardware devices on the electronic device and the computer program 222, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the network device management method performed by the electronic device disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0107] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the aforementioned disclosed network device management method. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the aforementioned embodiments, and no further description will be given here.

[0108] In this specification, each embodiment 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 disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0109] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0110] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0111] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0112] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A network device management method, characterized in that: Applicable to management controllers, including: Polling each local configuration file, configuring corresponding monitoring strategies for network devices of different network device types based on the configuration files, and performing device monitoring according to the monitoring strategies; If a configuration update instruction is received, exporting the configuration file to be updated of the target network device corresponding to the configuration update instruction, and after receiving an updated configuration file corresponding to the configuration file to be updated, determining whether the configuration parameters in the updated configuration file are valid; If the configuration parameter is within the preset parameter threshold range, the target network device is monitored accordingly based on the updated configuration file; if the configuration parameter is not within the preset parameter threshold range, the updated configuration file is deleted, and the target network device is monitored based on the latest historical configuration file.

2. The network device management method according to claim 1, characterized in that: The polling of local configuration files, configuring corresponding monitoring strategies for network devices of different network device types based on the configuration files, and performing device monitoring according to the monitoring strategies, includes: Poll each local configuration file and read the device type field in the configuration file to determine the device type of each device; Reading the monitoring strategy and the preset parameter threshold interval corresponding to each device from the configuration file based on the device type; The hardware parameters of each device are monitored in real time based on the monitoring strategy. If the hardware parameters are not within the preset parameter threshold range, an alarm message is generated and the alarm message is fed back to the user end through a preset network interface.

3. The network device management method according to claim 1, characterized in that: If a configuration update instruction is received, the configuration file to be updated of the target network device corresponding to the configuration update instruction is exported, and after receiving an updated configuration file corresponding to the configuration file to be updated, before determining whether the configuration parameters in the updated configuration file are valid, the method further includes: Establishing a communication connection with each device based on the communication links respectively configured in the configuration file, and if there is an unconnected device for which the communication connection establishment fails, retrying the connection based on the target link corresponding to the unconnected device; If a communication connection is not successfully established with the unconnected device within a preset time range, the target link is regarded as an abnormal link, and a link abnormality alarm corresponding to the target link is issued.

4. The network device management method according to claim 1, characterized in that: If a configuration update instruction is received, exporting a configuration file to be updated of the target network device corresponding to the configuration update instruction, and after receiving an updated configuration file corresponding to the configuration file to be updated, determining whether the configuration parameters in the updated configuration file are valid, including: If a configuration update instruction is received, the configuration update instruction is parsed to determine a target network device corresponding to the configuration update instruction; Determine the configuration file to be updated corresponding to the target network device, and export the configuration file to be updated; It is determined whether an updated configuration file corresponding to the configuration file to be updated is received; if the updated configuration file is received, validity detection is performed on configuration parameters in the updated configuration file.

5. The network device management method according to claim 4, characterized in that: The determining whether an updated configuration file corresponding to the configuration file to be updated is received, and if the updated configuration file is received, performing validity detection on configuration parameters in the updated configuration file, comprises: Determine whether a newly added configuration file is received, and if the newly added configuration file is received, detect a modification confirmation flag of the newly added configuration file to confirm whether the newly added configuration file is an updated configuration file corresponding to the configuration file to be updated according to a field corresponding to the modification confirmation flag; If the newly added configuration file is an updated configuration file corresponding to the configuration file to be updated, a validity check is performed on each configuration parameter in the updated configuration file.

6. The network device management method according to claim 1, characterized in that: If the configuration parameter is within the preset parameter threshold interval, the target network device is monitored accordingly based on the updated configuration file; if the configuration parameter is not within the preset parameter threshold interval, the updated configuration file is deleted, and the target network device is monitored based on the latest historical configuration file, including: If there is no parameter in the configuration parameters that is greater than the maximum parameter value in the preset parameter threshold interval or less than the minimum parameter value in the preset parameter threshold interval, performing corresponding device monitoring on the target network device based on the updated configuration file; If there are parameters in the configuration parameters that are greater than the maximum parameter value and / or parameters that are less than the minimum parameter value, the parameters in the configuration parameters that are greater than the maximum parameter value and the parameters that are less than the minimum parameter value are taken as abnormal parameters, and a parameter setting abnormality notification is generated based on the abnormal parameters, and the latest historical configuration file corresponding to the target network device is obtained, and corresponding device monitoring is performed on the target network device based on the latest historical configuration file.

7. The network device management method according to any one of claims 1 to 6, characterized in that: Also includes: If a new device instruction is received, a new device configuration file corresponding to the new device is generated, and the new device configuration file is exported; Determine whether a target new device configuration file corresponding to the new device configuration file is received, and if the target new device configuration file corresponding to the new device configuration file is received, determine whether a new device configuration parameter in the target new device configuration file is within the preset parameter threshold interval; If the configuration parameter of the newly added device is within the preset parameter threshold range, performing device monitoring on the newly added device based on the target newly added device configuration file; If the newly added device configuration parameter is not within the preset parameter threshold range, an adaptation fault notification is generated and sent to the user end.

8. A network equipment management device, characterized in that: Applicable to management controllers, including: A configuration file polling module, used to poll each local configuration file, configure corresponding monitoring strategies for network devices of different network device types based on the configuration files, and perform device monitoring according to the monitoring strategies; a parameter validity judgment module, configured to, if a configuration update instruction is received, export a configuration file to be updated of a target network device corresponding to the configuration update instruction, and after receiving an updated configuration file corresponding to the configuration file to be updated, determine whether the configuration parameters in the updated configuration file are valid; The device monitoring module is used to perform corresponding device monitoring on the target network device based on the updated configuration file if the configuration parameter is within the preset parameter threshold interval; if the configuration parameter is not within the preset parameter threshold interval, delete the updated configuration file and perform device monitoring based on the latest historical configuration file of the target network device.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the steps of the network device management method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the network device management method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Hardware adaptation method and device, computer equipment and readable storage medium

    CN115599632A

  • Parameter configuration method, system and device for application service and medium

    CN118689529A

Cited By

  • Network device configuration method, system, device and storage medium

    CN120498987A