Topological information updating processing method and device, equipment and storage medium
By receiving and processing the modification event log of topological information, timely update of topological information is achieved, the problem of low update efficiency in the existing technology is solved, and the efficiency of updating topological information is improved.
Patent Information
- Application Number
- CN202510392086.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2045-03-31
AI Technical Summary
In the prior art, when the topological information is updated in this cycle, the complete topological information needs to be reacquired in the next cycle, resulting in reducing the efficiency of the topological information update.
By receiving the modification event log of the topology information sent by the array controller, we judge whether the topology information needs to be updated, and update the topology information based on the modification event log, obtain the updated topology information and output it to the user.
By modifying the event log, the topology information is modified in a timely manner, and the complete topology information is not necessary to re-acquire the complete topology information in the next cycle, which improves the efficiency of the topology information update.
Smart Images

Figure CN119906641A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of server technology, and in particular to a method, device, equipment and storage medium for updating topology information. Background Art
[0002] Topology information refers to the connection relationship between the server and other devices in the network, as well as the physical or logical layout. It can help administrators better understand the server architecture, manage the server more effectively, and solve possible problems more quickly. Therefore, when the server has different operating requirements, its topology information needs to be updated in a timely manner.
[0003] In the related art, topology information is mainly obtained by periodic polling. When the topology information is updated in the current cycle, the complete topology information needs to be re-acquired in the next cycle to complete the update display of the topology information. However, in the related art, when the topology information is updated in the current cycle, the complete topology information needs to be re-acquired in the next cycle, which reduces the updating efficiency of the topology information. Summary of the invention
[0004] The present application provides a method, apparatus, device and storage medium for updating topology information, so as to at least solve the problem in the related art that when topology information is updated in the current cycle, it is necessary to re-acquire complete topology information in the next cycle, which reduces the updating efficiency of the topology information.
[0005] The present application provides a method for updating topology information, including:
[0006] Receive a modification event log of topology information sent by the array controller, wherein the modification event log is obtained by configuring the modification event log of the array controller, the modification event is obtained by modifying the topology information according to the received modification instruction, and the modification instruction is generated by the user end;
[0007] Determine whether the topology information needs to be updated based on the modification event log;
[0008] If the topology information needs to be updated, the topology information is updated according to the modification event log to obtain the updated topology information;
[0009] The updated topology information is output to the user end.
[0010] The present application also provides a method for updating topology information, including:
[0011] Receive the modification instruction sent by the user end, and modify the topology information according to the modification instruction to obtain the modification event;
[0012] Perform log configuration for modification events to obtain modification event logs;
[0013] The modification event log is sent to the controller. The modification event log is used to instruct the controller to determine whether the topology information needs to be updated based on the modification event log. If the topology information needs to be updated, the topology information is updated according to the modification event log to obtain the updated topology information, and the updated topology information is output to the user end.
[0014] The present application also provides a topology information update processing device, including:
[0015] A receiving module, used for receiving a modification event log of topology information sent by an array controller, wherein the modification event log is obtained by configuring the modification event log of the array controller, and the modification event is obtained by modifying the topology information by the array controller according to the received modification instruction, and the modification instruction is generated by the user end;
[0016] A judgment module is used to judge whether the topology information needs to be updated according to the modification event log;
[0017] An update module is used to update the topology information according to the modification event log if the topology information needs to be updated to obtain the updated topology information;
[0018] The output module is used to output the updated topology information to the user end.
[0019] The present application also provides a topology information update processing device, including:
[0020] A receiving module, used to receive a modification instruction sent by a user terminal, and modify the topology information according to the modification instruction to obtain a modification event;
[0021] A configuration module is used to configure the log of the modification event and obtain the modification event log;
[0022] The sending module is used to send the modification event log to the controller. The modification event log is used to instruct the controller to determine whether the topology information needs to be updated based on the modification event log. If the topology information needs to be updated, the topology information is updated according to the modification event log to obtain the updated topology information, and the updated topology information is output to the user end.
[0023] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-mentioned topology information update processing methods when executing the computer program.
[0024] The present application also provides a computer-readable storage medium, in which a computer program is stored, wherein when the computer program is executed by a processor, the steps of any of the above-mentioned topology information update processing methods are implemented.
[0025] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned topology information update processing methods when executed by a processor.
[0026] The present application provides a method, apparatus, device and storage medium for processing topology information update, which receives a modification event log of topology information sent by an array controller, wherein the modification event log is obtained by configuring the modification event log of the array controller, and the modification event is obtained by modifying the topology information by the array controller according to the received modification instruction, and the modification instruction is generated by the user end; determines whether the topology information needs to be updated according to the modification event log; if the topology information needs to be updated, updates the topology information according to the modification event log to obtain updated topology information; outputs the updated topology information to the user end, and only performs timely modification event updates on the topology information through the modification event log, without the need to re-acquire the complete topology information in the next cycle, thereby improving the updating efficiency of the topology information. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0028] Figure 1 A schematic diagram of an application scenario of the method for updating topology information provided in an embodiment of the present application;
[0029] Figure 2 Schematic diagram of the process of updating the topology information provided in the embodiment of the present application Figure 1 ;
[0030] Figure 3 A schematic diagram of adding and deleting a logical disk provided in an embodiment of the present application;
[0031] Figure 4 Schematic diagram of the process of updating the topology information provided in the embodiment of the present application Figure 2 ;
[0032] Figure 5 Schematic diagram of the process of updating the topology information provided in the embodiment of the present application Figure 3 ;
[0033] Figure 6 A schematic diagram of the structure of the topology information update processing device provided in the embodiment of the present application Figure 1 ;
[0034] Figure 7 A schematic diagram of the structure of the topology information update processing device provided in the embodiment of the present application Figure 2 ;
[0035] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0037] It should be noted that, in the description of this application, the terms "include", "comprise" or any other variant 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 includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence.
[0038] Topology information refers to the connection relationship between the server and other devices in the network, as well as the physical or logical layout, which can be a star topology, bus topology, ring topology, tree topology or mesh topology, etc. It can help administrators better understand the server architecture, manage the server more effectively, and solve possible problems more quickly. Therefore, when the server has different operating requirements, its topology information needs to be updated in a timely manner. In the related art, topology information is mainly obtained through periodic polling. When the topology information is updated in this cycle, it is necessary to re-acquire the complete topology information in the next cycle to complete the update and display of the topology information. However, in the related art, when the topology information is updated in this cycle, it is necessary to re-acquire the complete topology information in the next cycle, which reduces the efficiency of updating the topology information.
[0039] In order to solve the above-mentioned technical problems, the embodiments of the present application propose the following technical concepts: the inventor considers the received modification event log, uses the modification event log to determine that the topology information needs to be updated, updates the topology information according to the modification event log, obtains the updated topology information, and outputs the updated topology information to the user end, and performs timely modification event updates on the topology information through the modification event log, thereby improving the updating efficiency of the topology information.
[0040] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0041] In conjunction with the specific application environment architecture or specific hardware architecture on which the execution of the topology information update processing method depends, the specific application environment architecture or specific hardware architecture is described herein. Figure 1 , Figure 1 A schematic diagram of an application scenario of a method for updating topology information.
[0042] like Figure 1 As shown, the electronic device in the scenario includes: a server 10 and a client 20 .
[0043] The server 10 includes a controller 101 and an array controller 102 .
[0044] The user terminal 20 may be a display terminal or other user terminals.
[0045] The controller 101 receives the modification event log of the topology information sent by the array controller 102 through the wireless network, and determines whether the topology information needs to be updated according to the modification event log; if the topology information needs to be updated, the topology information is updated according to the modification event log to obtain the updated topology information; and the updated topology information is output to the user terminal 20.
[0046] Figure 2 Schematic diagram of the process of updating the topology information provided in the embodiment of the present application Figure 1 ,like Figure 2 As shown, an embodiment of the present application provides a method for updating topology information, and the method is described in detail as follows:
[0047] S201: receiving a modification event log of topology information sent by an array controller, wherein the modification event log is obtained by configuring the modification event log of the array controller, and the modification event is obtained by modifying the topology information according to a received modification instruction of the array controller, and the modification instruction is generated by a user end.
[0048] In this embodiment, the array controller may be a redundant disk array card or other controllers.
[0049] Among them, the redundant array of disks card can also be called a RAID card. It is a technology used to improve storage performance, data redundancy and system reliability. It is widely used in servers. Servers generally manage storage resources through redundant array of disks cards.
[0050] In this embodiment, the topology information includes one or more of the following information: a controller name list, a logical disk name list, a physical disk name list, controller detailed information, logical disk detailed information, physical disk detailed information, and a topology table.
[0051] Among them, the controller detailed information includes manufacturer, model, serial number, version number, speed, temperature and health status.
[0052] The detailed information of the logical disk includes name, capacity, RAID type, read / write policy, and health status.
[0053] The detailed information of the physical disk includes manufacturer, model, serial number, capacity, interface type, temperature, software version and health status.
[0054] The topology table includes at least the following information: a logical disk name list, a physical disk name list, a logical disk node, and a physical disk node.
[0055] Exemplarily, the logical disk name list, the physical disk name list, and the corresponding logical disk nodes and physical disk nodes in the topology table collected by the redundant disk array card are read.
[0056] In this embodiment, the topology information is obtained according to the topology unit, which includes an array controller, a logical disk, and a physical disk.
[0057] In this embodiment, the modification event may be an asynchronous event or other events.
[0058] In this embodiment, the modification instruction may be a logical disk creation instruction, a logical disk deletion instruction, or other instructions.
[0059] In this embodiment, the user terminal is a display terminal, and the corresponding browsing interface is displayed on the display terminal.
[0060] Among them, the browsing interface is obtained according to the Web UI service. The Web UI service refers to the service in the network product interface design, mainly involving the user interface design of websites and software.
[0061] Specifically, step S201 includes: receiving the modification event log sent by the array controller through a preconfigured event receiving tool.
[0062] In this embodiment, the event receiving tool may be an asynchronous event receiving tool or other receiving tools.
[0063] The configuration process of the event receiving tool includes steps a and b:
[0064] Step a: Obtain the corresponding target code according to the preset code repository.
[0065] In this embodiment, the preset code storage repository may be a Storelib repository or other storage repositories.
[0066] Step b: Configure the event receiving tool according to the target code.
[0067] S202: Determine whether topology information needs to be updated according to the modification event log.
[0068] Specifically, it is determined whether the modification event log belongs to the modification type, so as to determine whether the topology information needs to be updated.
[0069] S203: If the topology information needs to be updated, the topology information is updated according to the modification event log to obtain updated topology information.
[0070] In this embodiment, the modification event log includes multiple event codes; accordingly, step S203 specifically includes:
[0071] S2031: If the topology information needs to be updated, multiple event codes in the modification event log are extracted.
[0072] In this embodiment, each event code corresponds to each modification event one by one.
[0073] S2032: Determine one or more event codes from a plurality of event codes according to a preset update rule comparison table.
[0074] In this embodiment, a preset update rule comparison table is shown in Table 1:
[0075] Table 1 Preset update rule comparison table
[0076]
[0077] The computer languages corresponding to the modification events are: LD_CREATE for logical disk creation, LD_DELETE for logical disk deletion, PD_INSERTED for physical disk access, PD_REMOVED for physical disk deletion, and CFG_CLEARED for configuration clearing.
[0078] Exemplarily, according to the preset update rule comparison table, one or more event codes corresponding to 0x008A, 0x008B, 0x005B, 0x0070 or 0x0004 are determined from the multiple event codes.
[0079] S2033: Update the topology information according to one or more event codes to obtain updated topology information.
[0080] Specifically, step S2033 includes:
[0081] S20331: Divide the update scope of the topology information according to one or more event codes.
[0082] In this embodiment, the update range is the topology update range shown in Table 1.
[0083] Exemplarily, the update range of the topology information is divided into updating the logical disk topology according to 0x008A and 0x008B.
[0084] S20332: Read a list of multiple first device names in the update range.
[0085] Exemplarily, the first logical disk name list in the update range is read through SL_GET_LD_LIST; the first physical disk name list in the update range is read through SL_GET_PD_LIST.
[0086] S20333: Obtain a list of multiple second device names in pre-stored topology information.
[0087] In this embodiment, the storage process of the topology information is: storing the topology information in the local memory.
[0088] S20334: Compare the multiple first device name lists with the multiple second device name lists to obtain one or more newly added first device names and / or one or more deleted second device names.
[0089] Exemplarily, taking the logical disk list as an example, the first logical disk name list is compared with the second logical disk name list to obtain the newly added first logical disk name and the deleted second logical disk name.
[0090] The first logical disk name list may be 0x10000, 0x10001 and 0x10003; the second logical disk name list may be 0x10000, 0x10001 and 0x10002.
[0091] The name of the newly added first logical disk is 0x10003, and the name of the deleted second logical disk is 0x10002.
[0092] S20335: Update the topology information according to the newly added one or more first device names and / or the deleted one or more second device names to obtain updated topology information.
[0093] In this embodiment, the first device name includes the first logical disk name and the first physical disk name, and the second device name includes at least the second logical disk name; accordingly, step S20335 specifically includes:
[0094] S203351: Obtain the corresponding first physical disk name according to each newly added first logical disk name.
[0095] Specifically, detailed information of the corresponding logical disk is obtained according to each newly added first logical disk name, and the corresponding first physical disk name is obtained.
[0096] Exemplarily, taking any logical disk as an example, when the name of the newly added first logical disk is 0x10003, detailed information of the logical disk corresponding to 0x10003 needs to be obtained.
[0097] S203352: According to the names of the first physical disks, a corresponding first topology node is added to the topology information to obtain updated topology information; and / or,
[0098] Specifically, according to each first physical disk name and each first logical disk name, a corresponding first topology node is added to the topology information, and detailed information is written into the topology information to obtain updated topology information.
[0099] Exemplarily, according to the physical disk 5 and the first logical disk 0x10003, a corresponding first topology node is added to the topology information, and detailed information corresponding to 0x10003 is written into the topology information to obtain updated topology information.
[0100] S203353: Determine a corresponding second topology node in the topology information according to the name of each deleted second logical disk.
[0101] Exemplarily, when the name of the deleted second logical disk is 0x10002, the corresponding second topological node is determined in the topological information according to 0x10002.
[0102] S203354: Delete each second topology node in the topology information to obtain updated topology information.
[0103] Exemplarily, the second topology node corresponding to the second logical disk 0x10002 is deleted from the topology information to obtain updated topology information, wherein the updated topology information is as follows: Figure 3 The diagram shows the addition and deletion of logical disks.
[0104] In addition, if a new physical disk is added, the steps are the same as those for adding a new logical disk. If a physical disk is deleted, after deleting the physical disk, check in the topology information whether the associated logical disk still exists. If the physical disk exists, retain the associated logical disk. If the physical disk does not exist, delete the associated logical disk to obtain the updated topology information.
[0105] S204: Output the updated topology information to the user end.
[0106] Exemplarily, the updated topology information is output to a browsing interface of a display terminal.
[0107] In summary, the method for updating topology information provided in this embodiment receives a modification event log of topology information sent by an array controller, wherein the modification event log is obtained by configuring the modification event log of the array controller, and the modification event is obtained by the array controller modifying the topology information according to the received modification instruction, and the modification instruction is generated by the user end; determines whether the topology information needs to be updated according to the modification event log; if the topology information needs to be updated, updates the topology information according to the modification event log to obtain updated topology information; outputs the updated topology information to the user end, and only performs timely modification event updates on the topology information through the modification event log, without the need to re-acquire the complete topology information in the next cycle, thereby improving the updating efficiency of the topology information.
[0108] Figure 4 Schematic diagram of the process of updating the topology information provided in the embodiment of the present application Figure 2 In the embodiment of the present application, Figure 2 Based on the embodiment provided, a specific implementation method for determining whether the topology information needs to be updated according to the modification event log in step S202 is described in detail. Figure 4 As shown, the method includes:
[0109] S401: Parse the modification event log to obtain the log content.
[0110] S402: Identify key event content in the log content.
[0111] In this embodiment, the modification event log includes multiple event codes; accordingly, step S402 specifically includes: identifying key event content in the log content according to one or more event codes and event descriptions.
[0112] In this embodiment, the event code is EventCode, and the event description is Description.
[0113] S403: Compare the key event content with the preset key event to determine whether the topology information needs to be updated.
[0114] In this embodiment, the key event content includes one or more key events; accordingly, step S403 specifically includes:
[0115] S4031: Compare each key event in the key event content with a preset key event.
[0116] In this embodiment, the preset key events are one or more of the following events: logical disk creation, logical disk deletion, configuration clearing, physical disk access, and physical disk deletion.
[0117] S4032: If any key event hits a preset key event, it is determined that the topology information needs to be updated.
[0118] S4033: If each key event does not hit the preset key event, it is determined that the topology information does not need to be updated.
[0119] In summary, the topology information update processing method provided in this embodiment parses the modification event log to obtain the log content; identifies the key event content in the log content; compares the key event content with the preset key events to determine whether the topology information needs to be updated. By comparing the key event content with the preset key events, the modification event is determined, making the update of the topology information more accurate.
[0120] Figure 5 Schematic diagram of the process of updating the topology information provided in the embodiment of the present application Figure 3 ,like Figure 5 As shown, the embodiment of the present application provides another method for updating topology information, and the method is described in detail as follows:
[0121] S501: receiving a modification instruction sent by a user terminal, and modifying topology information according to the modification instruction to obtain a modification event.
[0122] In this embodiment, the discussion on the topology information and the modification instruction has been described in detail in step S201 and will not be repeated here.
[0123] S502: Perform log configuration on the modification event to obtain a modification event log.
[0124] Specifically, step S502 includes:
[0125] S5021: Configure the event code for the modification event to obtain the modification event with the accessory code.
[0126] In this embodiment, the discussion on the event code has been explained in detail in step S203 and will not be repeated here.
[0127] S5022: Perform log configuration for modification events with accessory codes to obtain modification event logs.
[0128] S503: Send the modification event log to the controller. The modification event log is used to instruct the controller to determine whether the topology information needs to be updated based on the modification event log. If the topology information needs to be updated, the topology information is updated based on the modification event log to obtain the updated topology information, and the updated topology information is output to the user end.
[0129] In this embodiment, the controller may be a basic management controller or other controllers.
[0130] In summary, the topology information update processing method provided in this embodiment receives the modification instruction sent by the user end, and modifies the topology information according to the modification instruction to obtain a modification event; configures the log of the modification event to obtain a modification event log; sends the modification event log to the controller, and the modification event log is used to instruct the controller to determine whether the topology information needs to be updated according to the modification event log. If the topology information needs to be updated, the topology information is updated according to the modification event log to obtain updated topology information, and the updated topology information is output to the user end. The topology information is only updated in a timely manner through the modification event log, and there is no need to re-acquire the complete topology information in the next cycle, thereby improving the updating efficiency of the topology information.
[0131] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.
[0132] Figure 6 A schematic diagram of the structure of the topology information update processing device provided in the embodiment of the present application Figure 1 .like Figure 6 As shown, an embodiment of the present application further provides a topology information update processing device, including: a receiving module 601, a determining module 602, an updating module 603 and an output module 604.
[0133] The receiving module 601 is used to receive a modification event log of topology information sent by the array controller, wherein the modification event log is obtained by the array controller configuring the modification event log, and the modification event is obtained by the array controller modifying the topology information according to the received modification instruction, and the modification instruction is generated by the user end;
[0134] A judgment module 602 is used to judge whether the topology information needs to be updated according to the modification event log;
[0135] An updating module 603 is used to update the topology information according to the modification event log if the topology information needs to be updated, so as to obtain the updated topology information;
[0136] The output module 604 is used to output the updated topology information to the user end.
[0137] In a possible implementation, the determination module 602 specifically includes:
[0138] A parsing unit, used for parsing the modification event log to obtain the log content;
[0139] An identification unit, used to identify key event content in the log content;
[0140] The comparison unit is used to compare the key event content with the preset key event to determine whether the topology information needs to be updated.
[0141] In a possible implementation, the key event content includes one or more key events; accordingly, the comparison unit specifically includes:
[0142] A comparison unit, used to compare each key event in the key event content with a preset key event;
[0143] A first determination unit, configured to determine that topology information needs to be updated if any key event hits a preset key event;
[0144] The second determination unit is configured to determine that the topology information does not need to be updated if each key event does not hit a preset key event.
[0145] In a possible implementation, the preset key events include one or more of the following events: logical disk creation, logical disk deletion, configuration clearing, physical disk access, and physical disk deletion.
[0146] In a possible implementation, the modification event log includes a plurality of event codes; accordingly, the identification unit is specifically configured to: identify key event content in the log content according to one or more event codes and event descriptions.
[0147] In a possible implementation, the modification event log includes multiple event codes; accordingly, the update module 603 specifically includes:
[0148] An extraction unit, used for extracting a plurality of event codes in a modification event log if the topology information needs to be updated;
[0149] A determination unit, configured to determine one or more event codes from a plurality of event codes according to a preset update rule comparison table;
[0150] The updating unit is used to update the topology information according to one or more event codes to obtain updated topology information.
[0151] In a possible implementation, the updating unit specifically includes:
[0152] A partitioning unit, used for partitioning the update range of the topology information according to one or more event codes;
[0153] A reading unit, used for reading a plurality of first device name lists in an update range;
[0154] An acquiring unit, configured to acquire a plurality of second device name lists in pre-stored topology information;
[0155] A comparing unit, used for comparing the multiple first device name lists with the multiple second device name lists to obtain one or more newly added first device names and / or one or more deleted second device names;
[0156] The updating unit is used to update the topology information according to one or more newly added first device names and / or one or more deleted second device names to obtain updated topology information.
[0157] In a possible implementation, the first device name includes a first logical disk name and a first physical disk name, and the second device name includes at least a second logical disk name; accordingly, the updating unit specifically includes:
[0158] An acquiring unit, configured to acquire a corresponding first physical disk name according to each newly added first logical disk name;
[0159] an adding unit, configured to add corresponding first topological nodes to the topological information according to the names of the first physical disks, to obtain updated topological information; and / or,
[0160] A determining unit, configured to determine, in the topology information, corresponding second topological nodes according to the names of the deleted second logical disks;
[0161] The deleting unit is used to delete each second topological node in the topological information to obtain updated topological information.
[0162] In a possible implementation, the process of storing the topology information includes: storing the topology information in a local memory.
[0163] In a possible implementation, the receiving module 601 is specifically configured to receive the modification event log sent by the array controller through a preconfigured event receiving tool.
[0164] In a possible implementation, the device further includes:
[0165] An acquisition module, used for acquiring corresponding target code according to a preset code repository;
[0166] A configuration module is used to configure the event receiving tool according to the target code.
[0167] In a possible implementation, the topology unit includes one or more of the following devices: a controller, a logical disk, and a physical disk.
[0168] In a possible implementation, the topology information includes one or more of the following information: a controller name list, a logical disk name list, a physical disk name list, controller detailed information, logical disk detailed information, physical disk detailed information, and a topology table.
[0169] In a possible implementation, the topology table includes at least the following information: a logical disk name list, a physical disk name list, a logical disk node, and a physical disk node.
[0170] For the description of the features in the embodiment corresponding to the apparatus for processing topology information update, reference may be made to the relevant description of the embodiment corresponding to the method for processing topology information update, which will not be described in detail here.
[0171] Figure 7 A schematic diagram of the structure of the topology information update processing device provided in the embodiment of the present application Figure 2 .like Figure 7 As shown, an embodiment of the present application further provides a topology information update processing device, including: a receiving module 701, a configuration module 702 and a sending module 703.
[0172] The receiving module 701 is used to receive a modification instruction sent by a user terminal, and modify the topology information according to the modification instruction to obtain a modification event;
[0173] Configuration module 702, used to perform log configuration for modification events to obtain modification event logs;
[0174] Sending module 703 is used to send the modification event log to the controller. The modification event log is used to instruct the controller to determine whether the topology information needs to be updated based on the modification event log. If the topology information needs to be updated, the topology information is updated according to the modification event log to obtain the updated topology information, and the updated topology information is output to the user end.
[0175] In a possible implementation, the configuration module 702 specifically includes:
[0176] A first configuration unit is used to configure an event code for the modification event to obtain a modification event with an accessory code;
[0177] The second configuration unit is used to configure the log of the modification event with the accessory code to obtain the modification event log.
[0178] For the description of the features in the embodiment corresponding to the apparatus for processing topology information update, reference may be made to the relevant description of the embodiment corresponding to the method for processing topology information update, which will not be described in detail here.
[0179] Figure 8 This is a schematic diagram of the structure of the electronic device provided in this application. Figure 8 As shown, the electronic device provided in this embodiment includes: at least one processor 801 and a memory 802. Optionally, the electronic device further includes a communication component 803. The processor 801, the memory 802 and the communication component 803 are connected via a bus.
[0180] In a specific implementation process, at least one processor 801 executes the computer execution instructions stored in the memory 802, so that at least one processor 801 executes the above-mentioned topology information update processing method embodiment.
[0181] The specific implementation process of the processor 801 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0182] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the application may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0183] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.
[0184] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.
[0185] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above-mentioned topology information update processing method embodiments when running.
[0186] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0187] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above-mentioned topology information update processing method embodiments are implemented.
[0188] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium, the non-volatile computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps in any of the above-mentioned topology information update processing method embodiments are implemented.
[0189] 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.
[0190] The above is a detailed introduction to a method, device, equipment and storage medium for updating topology information provided by the present application. Specific examples are used herein 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 and core idea of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A method for updating topology information, characterized in that: include: Receive a modification event log of topology information sent by an array controller, wherein the modification event log is obtained by configuring the modification event log by the array controller, the modification event is obtained by modifying the topology information by the array controller according to a received modification instruction, and the modification instruction is generated by a user terminal; Determine whether the topology information needs to be updated according to the modification event log; If the topology information needs to be updated, the topology information is updated according to the modification event log to obtain updated topology information; The updated topology information is output to the user terminal.
2. The method for updating topology information according to claim 1, characterized in that: The determining whether the topology information needs to be updated according to the modification event log includes: Parsing the modification event log to obtain log content; Identify key event content in the log content; The key event content is compared with the preset key event to determine whether the topology information needs to be updated.
3. The method for updating topology information according to claim 2, characterized in that: The key event content includes one or more key events; Accordingly, comparing the key event content with a preset key event to determine whether the topology information needs to be updated includes: Comparing each key event in the key event content with the preset key event; If any key event hits the preset key event, it is determined that the topology information needs to be updated; If the key events do not match the preset key events, it is determined that the topology information does not need to be updated.
4. The method for updating topology information according to claim 3, characterized in that: The preset key events include one or more of the following events: logical disk creation, logical disk deletion, configuration clearing, physical disk access, and physical disk deletion.
5. The method for updating topology information according to claim 2, characterized in that: The modification event log includes a plurality of event codes; Accordingly, the identifying key event content in the log content includes: Key event content in the log content is identified according to one or more event codes and event descriptions.
6. The method for updating topology information according to claim 1, characterized in that: The modification event log includes a plurality of event codes; Correspondingly, if the topology information needs to be updated, the topology information is updated according to the modification event log to obtain the updated topology information, including: If the topology information needs to be updated, extracting multiple event codes from the modification event log; Determine one or more event codes from the plurality of event codes according to a preset update rule comparison table; The topology information is updated according to the one or more event codes to obtain updated topology information.
7. The method for updating topology information according to claim 6, characterized in that: The updating of the topology information according to the one or more event codes to obtain updated topology information includes: said dividing the update range of the topology information according to said one or more event codes; Reading a list of multiple first device names in the update range; Obtain a list of multiple second device names in pre-stored topology information; Comparing the multiple first device name lists with the multiple second device name lists to obtain one or more newly added first device names and / or one or more deleted second device names; The topology information is updated according to the newly added one or more first device names and / or the deleted one or more second device names to obtain updated topology information.
8. The method for updating topology information according to claim 7, characterized in that: The first device name includes a first logical disk name and a first physical disk name, and the second device name includes at least a second logical disk name; Accordingly, the updating of the topology information according to the newly added one or more first device names and / or the deleted one or more second device names to obtain updated topology information includes: Obtain the corresponding first physical disk name according to each newly added first logical disk name; According to the names of the first physical disks, a corresponding first topological node is added to the topological information to obtain updated topological information; and / or, According to the names of the deleted second logical disks, determining corresponding second topological nodes in the topological information; Each second topological node is deleted from the topological information to obtain updated topological information.
9. The method for updating topology information according to claim 7, characterized in that: The storage process of the topology information includes: storing the topology information in a local memory.
10. The method for updating topology information according to claim 1, characterized in that: The receiving the modification event log of the topology information sent by the array controller includes: The preconfigured event receiving tool receives the topology information modification event log sent by the array controller.
11. The method for updating topology information according to claim 10, characterized in that: The configuration process of the event receiving tool includes: Obtain corresponding target code according to a preset code repository; The event receiving tool is configured according to the target code.
12. The method for updating topology information according to claim 1, characterized in that: The topology information includes one or more of the following information: Controller name list, logical disk name list, physical disk name list, controller detailed information, logical disk detailed information, physical disk detailed information, and topology table.
13. The method for updating topology information according to claim 12, characterized in that: The topology table includes at least the following information: Logical disk name list, physical disk name list, logical disk nodes, and physical disk nodes.
14. A method for updating topology information, characterized in that: include: Receive a modification instruction sent by a user terminal, and modify the topology information according to the modification instruction to obtain a modification event; Performing log configuration on the modification event to obtain a modification event log; The modification event log is sent to the controller, and the modification event log is used to instruct the controller to determine whether the topology information needs to be updated based on the modification event log. If the topology information needs to be updated, the topology information is updated according to the modification event log to obtain the updated topology information, and the updated topology information is output to the user end.
15. The method for updating topology information according to claim 14, characterized in that: The step of performing log configuration on the modification event to obtain a modification event log includes: Performing event code configuration on the modification event to obtain a modification event with an accessory code; The modification event with the accessory code is configured to have a log, thereby obtaining a modification event log.
16. A topology information update processing device, characterized in that: include: A receiving module, configured to receive a modification event log of topology information sent by an array controller, wherein the modification event log is obtained by configuring the modification event log by the array controller, the modification event is obtained by modifying the topology information by the array controller according to a received modification instruction, and the modification instruction is generated by a user terminal; A judgment module, used to judge whether the topology information needs to be updated according to the modification event log; An updating module, configured to update the topology information according to the modification event log to obtain updated topology information if the topology information needs to be updated; An output module is used to output the updated topology information to the user end.
17. A topology information update processing device, characterized in that: include: A receiving module, used for receiving a modification instruction sent by a user terminal, and modifying the topology information according to the modification instruction to obtain a modification event; A configuration module, used for performing log configuration on the modification event to obtain a modification event log; A sending module is used to send the modification event log to the controller, and the modification event log is used to instruct the controller to determine whether the topology information needs to be updated based on the modification event log. If the topology information needs to be updated, the topology information is updated according to the modification event log to obtain the updated topology information, and the updated topology information is output to the user end.
18. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the method for updating topology information as claimed in any one of claims 1 to 13, or the method for updating topology information as claimed in claim 14 or 15, when executing the computer program.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the method for updating topology information according to any one of claims 1 to 13, or the method for updating topology information according to claim 14 or 15.
20. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method for updating topology information according to any one of claims 1 to 13 or the method for updating topology information according to claim 14 or 15 is implemented.
Citation Information
Patent Citations
Full-flow-based industrial control network topological graph generation method
CN111130859A
PCIE topology transmission method and device, electronic equipment and storage medium
CN115640076A
Data leakage detection method and device, equipment and storage medium
CN117540368A
Hierarchical protection method and system based on intelligent power plant network topology structure
CN119520298A
Determining topology using log messages
US20180091359A1