Disclosure of Invention
The invention aims to provide a method, a system and a preset management platform for configuring a zone of a switch, wherein the preset management platform is arranged, a user does not need to manually input instructions to acquire the port connection information respectively, and the configuration of the zone on the switch is not needed to be manually realized, so that the method, the system and the system are high in automation degree, simple and convenient, manpower resources are saved, and practical application is convenient.
In order to solve the technical problems, the invention provides a method for configuring a switch zone, which is applied to a preset management platform, and comprises the following steps:
Sending a first acquisition instruction to a managed device to determine port connection information of the managed device, wherein the managed device comprises switches, storage devices and hosts;
sending a second acquisition instruction to a target host to determine a target storage device and a corresponding target storage port which have service transmission with a target host port, wherein the target host port is any host port in a connected state on the target host;
And controlling to create a first zone on a target switch for service transmission so as to configure target identification information corresponding to each of the target host port, the target switch port and the target storage port in the first zone, wherein the target identification information is determined based on the corresponding port connection information.
Preferably, before sending the first acquisition instruction to the managed device, the method further includes:
based on all the pre-stored information of the managed equipment, determining the IP address and pre-stored login information of the managed equipment to be accessed currently;
Accessing the IP address and logging in on the managed device to be accessed currently according to the pre-stored login information so as to establish communication connection corresponding to a preset communication protocol with the managed device.
Preferably, the port connection information includes a port number-unique identifier correspondence of each first port in a connected state and a unique identifier of an opposite port connected to each first port.
Preferably, after determining the port connection information of the managed device, the method further includes:
Determining, for each storage device, a first switch that is physically connected to a first storage port based on port connection information of the storage device and port connection information of each switch; the first storage port is a storage port of any one of the storage devices in a connected state, and the first switch is one of the switches;
Controlling to create a second zone on the first switch so as to configure the first storage port and identification information corresponding to each of the first switch ports on the first switch, which are physically connected with the first storage port, in the second zone, wherein the identification information is determined based on port connection information corresponding to the first storage port;
Determining, for each of the hosts, a second switch that is physically connected to a first host port based on port connection information of the host and port connection information of each of the switches; wherein the first host port is a host port of any one of the hosts in a connected state, and the second switch is one of the switches;
Controlling to create a third zone on the second switch so as to configure the first host port and identification information corresponding to each of the second switch ports on the second switch, which are physically connected with the first host port, in the third zone, wherein the identification information is determined based on port connection information corresponding to the first host port;
controlling creation of a first zone on a target switch for the traffic transfer, comprising:
determining a third zone corresponding to the target host port;
Determining a second zone corresponding to the target storage port;
Determining a switch simultaneously comprising the second zone and the third zone as a target switch;
Controlling to create a first zone on the target switch;
and controlling the information configured in the second zone and the third zone to be configured in the first zone as target identification information.
Preferably, after the second zone is created on the first switch, the control further includes:
After determining that the physical connection between the first storage port and the first switch port is broken, sending a first deletion signal representing deletion of the second zone to the first switch;
After the third zone is created on the second switch, the control further comprises:
and after judging that the physical connection between the first host port and the second switch port is interrupted, sending a second deleting signal representing deleting the third zone to the second switch.
Preferably, after the information configured in the second zone and the third zone is configured in the first zone as the target identification information, the control further includes:
After determining that the traffic transmission is interrupted, controlling to create a fourth zone and a fifth zone on the target switch; the fourth zone comprises target identification information corresponding to the target storage port and target identification information of a target switch port which is physically connected with the target storage port; the fifth zone comprises target identification information of a target switch port which is physically connected with the target host port;
and controlling to delete the first zone.
Preferably, after the first zone is created on the target switch for the traffic transmission, the control further includes:
respectively aiming at each switch, acquiring the data throughput of each switch port of the switch;
determining the correlation of a port group based on the data throughput, wherein the port group comprises any two different switch ports;
Judging whether a first target port group with the correlation larger than a first preset threshold exists or not, wherein first zones corresponding to two switch ports in the first target port group are not identical;
If yes, the control prompt module outputs first prompt information, wherein the first prompt information represents merging of the two first zones corresponding to the first target port group.
Preferably, after determining the correlation of the port group based on the data throughput, the method further includes:
Judging whether a second target port group with the correlation smaller than a second preset threshold exists or not, wherein first zones corresponding to two switch ports in the second target port group are not identical;
if yes, recording second prompt information so as to control the prompt module to output the second prompt information when receiving a merging signal representing that two first zones corresponding to the second target port group are merged, wherein the second prompt information represents that the two first zones corresponding to the second target port group are kept separated.
In order to solve the technical problem, the invention also provides a switch zone configuration system, which is applied to a preset management platform and comprises:
the first acquisition unit is used for sending a first acquisition instruction to the managed equipment to determine port connection information of the managed equipment, wherein the managed equipment comprises switches, storage equipment and hosts;
The second acquisition unit is used for sending a second acquisition instruction to the target host to determine target storage equipment with traffic transmission with a target host port and a corresponding target storage port, wherein the target host port is any host port in a connected state on the target host;
And the zone creation unit is used for controlling the creation of a first zone on a target switch for service transmission so as to configure target identification information corresponding to each of the target host port, the target switch port and the target storage port in the first zone, wherein the target identification information is determined based on the corresponding port connection information.
In order to solve the technical problem, the invention also provides a preset management platform, which comprises:
A memory for storing a computer program;
a processor for performing the steps of the switch zone configuration method as described above.
The application provides a switch zone configuration method, a system and a preset management platform, which are applied to the preset management platform, and are used for sending a first acquisition instruction to managed equipment comprising all switches, all storage equipment and all hosts so as to determine port connection information of the managed equipment, sending a second acquisition instruction to a target host so as to determine target storage equipment and a corresponding target storage port for service transmission with a target host port, and further controlling to establish a first zone on the target switch for service transmission so as to configure target identification information corresponding to each of the target host port, the target switch port and the target storage port in the first zone, wherein the target identification information is determined based on the corresponding port connection information. Compared with the prior art, the scheme is provided with the preset management platform, a user does not need to manually input instructions to acquire the port connection information, the configuration of the zone on the switch is not needed to be manually realized, the automation degree is high, simplicity and convenience are realized, the manpower resources are saved, and the practical application is convenient.
Detailed Description
The core of the invention is to provide a method, a system and a preset management platform for configuring a zone of a switch, wherein the preset management platform is arranged, a user does not need to manually input instructions to acquire the port connection information respectively, and the configuration of the zone on the switch is not needed to be manually realized, so that the method, the system and the system are high in automation degree, simple and convenient, manpower resources are saved, and practical application is convenient.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of a switch zone configuration method provided by the present invention.
In this embodiment, considering the zone configuration problem for the switch, the method adopted in the prior art is: after the physical connection among the switch, the host and the storage device is established, a technician manually inputs inquiry commands on the switch, the host and the storage device respectively to acquire the information of the ports and the opposite ports on the switch, and manually inputs configuration instructions on the switch to realize the configuration of the zone. In order to solve the technical problems, the application provides a switch zone configuration method which has high automation degree and saves manpower.
The switch zone configuration method is applied to a preset management platform and comprises the following steps:
s11: sending a first acquisition instruction to a managed device to determine port connection information of the managed device, wherein the managed device comprises switches, storage devices and hosts;
Specifically, the preset management platform is essentially a preset computer device for managing each managed device, where the computer device includes, but is not limited to, a server; the storage device may be understood as a storage server for providing storage for the host. Step S11 may be more specifically executed by periodically sending a first acquisition instruction to the managed device according to a first preset period, so as to timely master the port connection condition of the managed device, if there is a port connection interruption, a new managed device and a corresponding new physical connection, etc., the first preset period is set according to the actual requirement. It should be further noted that, the preset management platform and the managed device all follow the same preset communication protocol to send instructions and receive information, where the preset communication protocol includes, but is not limited to, SSH protocol (Secure Shell protocol).
It will be appreciated that before step S11, physical connection lines between each switch, each storage device and each host are already established (e.g. they are connected by optical fibers) according to actual service needs, for example, the a port of the storage device is connected to the B port of the switch, and the C port of the switch is connected to the D port of the host, so that the physical connection is completed, and the switch must be the same switch or the same switch group, for example, the above physical connection is described.
Further, the port connection information essentially includes: information of a port of the managed device itself in a connected state, and information of an opposite port connected to the port.
It should be further noted that, in the present application, the switch may be a single switch (the type of the switch includes but is not limited to a fiber switch), or may be a switch group formed by cascading a plurality of switches, and when the switch group is a switch group, the port connection information between the switch group as a whole and the storage device, and between the switch group as a whole and the host is determined in step S11, so as to how to implement cascading in the switch group, which is not limited herein.
S12: sending a second acquisition instruction to a target host to determine a target storage device with traffic transmission with a target host port and a corresponding target storage port, wherein the target host port is any host port in a connected state on the target host;
Specifically, there is information to be stored in the host to the storage device, and the transmission of the information is the service transmission described in the present application. The target host is any one of the hosts, and the hosts can be sequentially used as the target hosts according to the application. The step S12 may specifically be sending a second acquisition instruction according to the foregoing preset communication protocol, so as to determine a target storage device having traffic transmission with a target host port and a corresponding target storage port, where it is understood that the target storage port is a storage port on the target storage device, physically connected to the target host port, and corresponding to the traffic transmission.
In addition, the step S12 may be more specifically to periodically send the second acquisition instruction to the target host according to the second preset period, so as to timely grasp the service transmission situation of the target host, if there is a service transmission interruption, a new service transmission, and the like. The second preset period is set according to actual requirements.
S13: and controlling to create a first zone on a target switch for service transmission so as to configure target identification information corresponding to each of a target host port, a target switch port and a target storage port in the first zone, wherein the target identification information is determined based on the corresponding port connection information.
Specifically, the target identification information of the target host port and the target identification information of the target switch port physically connected with the target host port can be determined based on the port connection information of the corresponding target host port; the target identification information of the target storage port and the target identification information of the target switch port which is physically connected with the target storage port can be determined based on the port connection information of the corresponding target storage port; the determination modes of the target switch include, but are not limited to: and determining by means of the target identification information of the target switch port and the port connection information of each switch.
The target identification information is essentially unique identification information, such as WWN identification (World Wide Name), more specifically, WWPN identification (World Wide Port Name, world unique port Name).
It should be further noted that, when the target switch is a target switch group including a plurality of cascaded target switch groups, the configuration of the first zone may be specifically configured on a main switch on the target switch group.
Of course, the determining step of the target switch in the step S13 includes, but is not limited to: the method of determining the destination switch for the traffic transmission according to the port connection information corresponding to the destination host port and the port connection information of each switch, or determining the destination switch for the traffic transmission according to the port connection information corresponding to the destination storage port and the port connection information of each switch, is known on the basis of the description of the above embodiment, and therefore, it is possible to determine in which manner the destination switches determined by the above two methods are necessarily the same.
For example, still taking the connection of the port a of the storage device with the port B of the switch, and the connection of the port C of the switch with the port D of the host as an example, assuming that there is traffic transmission between the port D of the host and the port a of the storage device, the port a is a target storage port, the port D is a target host port, the port B and the port C are both target switch ports, and executing step S13, where the identification information of the port a, the port B, the port C and the port D are all target identification information and are configured in the same first zone.
In summary, the present application provides a method for configuring a switch zone, which controls to create a first zone on a target switch for service transmission, so as to configure target identification information corresponding to each of a target host port, a target switch port and a target storage port in the first zone. Compared with the prior art, the scheme is provided with the preset management platform, a user does not need to manually input instructions to acquire the port connection information, the configuration of the zone on the switch is not needed to be manually realized, the automation degree is high, simplicity and convenience are realized, the manpower resources are saved, and the practical application is convenient.
Based on the above embodiments:
as a preferred embodiment, before sending the first acquisition instruction to the managed device, the method further includes:
based on all the pre-stored information of the managed equipment, determining the IP address and pre-stored login information of the managed equipment to be accessed currently;
Accessing the IP address and logging in on the currently to-be-accessed managed device according to the pre-stored login information so as to establish communication connection corresponding to the preset communication protocol with the managed device.
In this embodiment, a step of establishing communication connection between a preset management platform and a managed device is provided, where the preset management platform stores all pre-stored information of the managed device corresponding to the managed device in advance (specifically including an IP address of each host and pre-stored login information, an IP address of each switch and pre-stored login information, an IP address of each storage device and pre-stored login information, where the pre-stored login information corresponds to a preset communication protocol, for example, when the preset communication protocol is an SSH protocol, the pre-stored login information is an SSH user name and login password information).
Each host, each exchanger and each storage device are sequentially used as the managed device to be accessed currently, so that before a first acquisition instruction is sent to the managed device, a preset management platform determines the IP address and the pre-stored login information of the managed device to be accessed currently, accesses the IP address further, logs in on the managed device to be accessed currently according to the pre-stored login information, and establishes communication connection corresponding to a preset communication protocol with the managed device to be accessed currently.
It can be seen that the communication connection between the preset management platform and the managed device can be simply, reliably and safely realized through the setting of the execution logic.
As a preferred embodiment, the port connection information includes a port number-unique identification correspondence of each first port in the connected state and a unique identification of the opposite port connected to each first port.
In this embodiment, specific content of the port connection information is given, and it should be noted that the unique identifiers may be WWN identifiers specifically, and more specifically, WWPN identifiers. The first port refers to a storage port when the managed device is a storage device, refers to a host port when the managed device is a host, and refers to a switch port when the managed device is a switch.
Here, the connection of the a port of the storage device with the B port of the switch, and the connection of the C port of the switch with the D port of the host will be described as an example:
Assuming that only the a port is a port in a connected state for the storage device, the port connection information of the storage device includes: port number-unique identification correspondence (i.e., unique identification of an a port-a port), and unique identification of an opposite port (i.e., a B port of a switch) connected to the a port (specifically, WWN identification of the B port, or more specifically, WWPN identification).
Assuming that only the B port and the C port are ports in a connected state, the port connection information of the switch includes: corresponding to the B port is: port number-unique identification correspondence (unique identification of B port-B port), and unique identification of the opposite port (i.e., a port of a storage device) connected to the B port (specifically, WWN identification of the a port, or more specifically, WWPN identification); corresponding to the C port is: port index-unique identification correspondence (unique identifications of C-ports and C-ports), and unique identification of an opposite port (i.e., D-port of a host) connected to the C-port (specifically, WWN identification of the D-port, or more specifically, WWPN identification).
Assuming that only the D port is a port in a connected state for the host, the port connection information of the host includes: port index-unique identification correspondence (i.e., unique identification of D port-D port), and unique identification of the opposite port (i.e., C port of the switch) to which the D port is connected (specifically, WWN identification of C port, or more specifically, WWPN identification).
As a preferred embodiment, after determining the port connection information of the managed device, it further includes:
Determining, for each storage device, a first switch that is physically connected to a first storage port based on port connection information of the storage device and port connection information of each switch; the first storage port is a storage port of any one of the storage devices in a connected state, and the first switch is one of the switches;
controlling to create a second zone on the first switch so as to configure the first storage port and identification information corresponding to each of the first switch ports on the first switch which are physically connected with the first storage port in the second zone, wherein the identification information is determined based on the port connection information corresponding to the first storage port;
determining, for each host, a second switch that is physically connected to the first host port based on port connection information of the host and port connection information of each switch; the first host port is a host port of which any one of hosts is in a connected state, and the second switch is one of the switches;
Controlling to create a third zone on the second switch so as to configure the first host port and identification information corresponding to each of the second switch ports on the second switch which are physically connected with the first host port in the third zone, wherein the identification information is determined based on port connection information corresponding to the first host port;
controlling creation of a first zone on a target switch for traffic transport, comprising:
Determining a third zone corresponding to the target host port;
determining a second zone corresponding to the target storage port;
Determining a switch which simultaneously comprises a second zone and a third zone as a target switch;
Controlling to create a first zone on a target switch;
and controlling to arrange information arranged in the second zone and the third zone in the first zone as target identification information.
In this embodiment, the execution logic for creating the first zone on the target switch for traffic transmission is provided by creating the smallest granule zone (i.e. the second zone and the third zone), which is specifically described above.
First, for each storage device, the port information of the storage device includes a corresponding relationship between a port number and a unique identifier of each storage port in a connected state and a unique identifier of an opposite port connected to the storage port, but the preset management platform may manage a plurality of switches at the same time, and based on the port connection information of the storage device, only the unique identifier of the opposite port connected to the storage port can be grasped, and it is impossible to grasp which switch the unique identifier of the opposite port belongs to. The port connection information of the switch includes a corresponding relationship between a port label and a unique identifier of each switch port in a connected state and a unique identifier of an opposite port connected to the switch port, which are combined to determine that the switch for establishing the second zone, that is, the first switch physically connected to the first storage port is determined based on the port connection information of the storage device and the port connection information of each switch in this embodiment.
The port connection information corresponding to the first storage port of the storage device comprises the corresponding relation between the port label and the identification information of the first storage port and the identification information of the first switch port physically connected with the first storage port, and further sends a control instruction for representing and creating the second zone to the first switch, so that the second zone is created on the control instruction, and the identification information of the first storage port and the identification information of the first switch port are configured, so that the establishment of the minimum particle zone is realized. It should be further noted that, for more visual display on the preset management platform, the first storage port may be connected with the corresponding first switch port by a solid line, so as to indicate that the corresponding second zone is controlled to be established on the first switch.
For each host, the port information of the host includes a corresponding relationship between a port label and a unique identifier of each host port in a connected state and a unique identifier of an opposite port connected to the host port, but similarly, the preset management platform may manage multiple switches at the same time, and based on the port connection information of the host, only the unique identifier of the opposite port connected to the host port can be grasped, and it is impossible to grasp which switch the unique identifier of the opposite port belongs to. The port connection information of the switch includes a corresponding relationship between a port label and a unique identifier of each switch port in a connected state and a unique identifier of an opposite port connected to the switch port, where the two are combined to determine that the switch for establishing the third zone can be determined, that is, the second switch having physical connection with the first host port is determined based on the port connection information of the host and the port connection information of each switch described in this embodiment.
The port connection information corresponding to the first host port of the host includes the corresponding relationship between the port label and the identification information of the first host port and the identification information of the second switch port physically connected with the first host port, and further sends a control instruction for representing creation of the third zone to the second switch, so as to create the third zone thereon, and the identification information of the first host port and the identification information of the second switch port are configured, thereby realizing establishment of the minimum particle zone.
It will be appreciated that the examples in the above embodiments are: according to the logic in this embodiment, corresponding to the above example, the first switch and the second switch are essentially the same switch, the a port of the storage device is the first storage port, the B port of the switch is the first switch port, the C port of the switch is the second switch port, and the D port of the host is the first host port.
Then, the preset management platform is used for respectively and correspondingly determining the third zone and the second zone aiming at the target host port and the target storage port, and further determining that the switch comprising the second zone and the third zone is the target switch, so that the first zone is created in the target switch, and the information which is configured in the second zone and the third zone is configured in the first zone as the target identification information.
It should be further noted that, for more visual display on the preset management platform, the target switch port connected to the target host port and the target switch port connected to the target storage port may be connected by a dotted line, so as to characterize that the first zone corresponding to the target switch is controlled to be established on the target switch.
In addition, since the transmission of the first acquisition signal is specifically periodic, whether a new switch and/or a storage device and/or a host is added or a physical connection between the switch and the host and/or between the switch and the storage device is added, the above situation can be determined by the first acquisition signal, and thus, the update can be realized by the creation process of the second zone and the third zone.
Therefore, the establishment of the minimum particle zone and the subsequent first zone can be realized through the setting of the execution logic, and the reliable realization of service transmission is ensured.
As a preferred embodiment, after the second zone is created on the first switch, the control further includes:
after determining that the physical connection between the first storage port and the first switch port is interrupted, sending a first deletion signal representing deletion of the second zone to the first switch;
After the third zone is created on the second switch, the control further comprises:
after determining that the physical connection between the first host port and the second switch port is broken, a second delete signal is sent to the second switch that characterizes deleting the third zone.
In this embodiment, the inventor further considers that a technician may have a situation of interrupting the physical connection between the first storage port and the first switch port, and at this time, the first deletion information may be sent to the first switch to delete the second zone on the first switch, and the deletion control of the third zone is the same, which is specifically described above and will not be repeated here.
As a preferred embodiment, after the information configured in the second zone and the third zone is configured in the first zone as the target identification information, the control further includes:
After determining that the traffic transmission is interrupted, controlling to create a fourth zone and a fifth zone on the target switch; the fourth zone comprises target identification information corresponding to the target storage port and target identification information of a target switch port which is physically connected with the target storage port; the fifth zone comprises target identification information of a target switch port which is physically connected with the target host port;
and controlling to delete the first zone.
In this embodiment, the inventor further considers that the service transmission may be interrupted after a period of time, but the original physical connection line still remains at this time, so the above steps may be performed after determining that the service transmission is interrupted, where the steps essentially are splitting the first zone into the fourth zone and the fifth zone, and then controlling to delete the first zone. In addition, after the transmission of the follow-up service is resumed, the split fourth zone and fifth zone can be recombined into the first zone, and the control logic in the application can be implemented.
As a preferred embodiment, after the first zone is created on the target switch for traffic transmission, the control further includes:
Respectively aiming at each switch, acquiring the data throughput of each switch port of the switch;
Determining the correlation of a port group based on the data throughput, wherein the port group comprises any two different switch ports;
judging whether a first target port group with the correlation larger than a first preset threshold exists or not, wherein first zones corresponding to two switch ports in the first target port group are not identical;
If yes, the control prompt module outputs first prompt information, and the first prompt information represents that two first zones corresponding to the first target port group are combined.
In this embodiment, the inventor further considers that for any switch, first zones for multiple traffic transmissions may be created simultaneously, but the technician is likely to have a need for further merging of these first zones, so that advice may be further given.
Specifically, considering that the data throughput of the ports of the switch related to the service transmission is approximately the same or similar, then, for each switch, the data throughput of each port of the switch is obtained, and then, the correlation of the port group is determined based on the data throughput, specifically, the data throughput may be periodically obtained in a third preset period, where the third preset period is set according to the actual requirement, and includes but is not limited to 1 hour; furthermore, the specific manner in which the correlation is determined is not particularly limited herein, including but not limited to being implemented by means of a covariance matrix; the first preset threshold is set according to actual requirements.
Then, executing the judgment logic to determine whether a first target port group exists, and for the first target port group, first prompt information can be recorded first, and when a merging signal representing that two first zones corresponding to the first target port group are merged is received, the prompt module is controlled to output the first prompt information so as to represent suggestion that the two first zones are merged; of course, the prompt module may also be directly controlled to output the first prompt information, so as to prompt the technician to combine the first prompt information as soon as possible, which is not limited in particular herein, and is determined according to actual requirements.
In addition, the prompting module includes, but is not limited to, a man-machine interaction display interface, so that a manner of outputting the first prompting information may be specifically expressed as: and connecting two switch ports in the first target port group on the display interface in the form of double-dashed lines.
As a further explanation, taking the switch including 4 ports, i.e., an a port, a B port, a C port, and a D port as an example, assuming that there is one first zone (including the target identifier information corresponding to each of the a port and the B port) and another first zone (including the target identifier information corresponding to each of the C port and the D port) on the switch, if it is determined that the correlation between the port group formed by the B port and the C port is greater than the first preset threshold and the two ports are in different first zones, it is determined that the port group is the first target port group, the prompt module may be controlled to output first prompt information representing merging of the first zone corresponding to the B port and the first zone corresponding to the C port.
Therefore, through the judgment of the port group correlation, a more accurate switch zone configuration scheme can be provided for a user, and the practical application is facilitated.
As a preferred embodiment, after determining the correlation of the port group based on the data throughput, further comprising:
Judging whether a second target port group with the correlation smaller than a second preset threshold exists or not, wherein the first zone corresponding to two switch ports in the second target port group is not the same;
if yes, the second prompt information is recorded, so that when the combined signals representing that the two first zones corresponding to the second target port group are combined are received, the control prompt module outputs the second prompt information, and the second prompt information represents that the two first zones corresponding to the second target port group are kept separate.
In this embodiment, further considering that the correlation of the second target port group to the port group is smaller than the second preset threshold, a suggestion for keeping separation may be given to a technician facing the combining requirement of the second target port group, specifically, the above steps are described, and will not be repeated here.
It can be understood that, with the third preset period, the data throughput of each switch port of the switch is periodically obtained, and both the first prompt information and the second prompt information are updated in the third preset period; in addition, the second preset threshold value is smaller than the first preset threshold value, and the second preset threshold value is set according to actual requirements.
In addition, the prompting module includes but is not limited to a man-machine interaction display interface, so the manner of outputting the second prompting information includes but is not limited to the following specific steps: and connecting the two switch ports in the second target port group in a cross form on the display interface.
Further, taking the switch including 4 ports, namely an a port, a B port, a C port and a D port as an example, assuming that there is one first zone (including the target identification information corresponding to each of the a port and the B port) and another first zone (including the target identification information corresponding to each of the C port and the D port) on the switch, if it is determined that the correlation between the B port and the C port is less than the second preset threshold and the two ports are in different first zones, it is determined that the port group is the second target port group, and then second prompt information indicating that the first zones corresponding to the B port and the first zone corresponding to the C port remain separated may be recorded for prompt.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a switch zone configuration system according to the present invention.
The switch zone configuration system is applied to a preset management platform, and comprises:
a first acquiring unit 21, configured to send a first acquiring instruction to a managed device to determine port connection information of the managed device, where the managed device includes switches, storage devices, and hosts;
a second obtaining unit 22, configured to send a second obtaining instruction to a target host, so as to determine a target storage device and a corresponding target storage port that have traffic transmission with a target host port, where the target host port is any host port on the target host that is in a connected state;
The zone creation unit 23 is configured to control creation of a first zone on the target switch for traffic transmission, so as to configure target identification information corresponding to each of the target host port, the target switch port, and the target storage port in the first zone, where the target identification information is determined based on the corresponding port connection information.
For the description of the switch zone configuration system provided in the present invention, reference is made to the embodiment of the switch zone configuration method described above, and the description thereof is omitted herein.
As a preferred embodiment, the switch zone configuration system further includes:
A first determining unit, configured to determine, before the first obtaining unit 21, an IP address and pre-stored login information of a managed device to be accessed currently, based on pre-stored all information of the managed device;
and the communication connection establishment unit is used for accessing the IP address and logging in on the managed equipment to be accessed currently according to the pre-stored login information so as to establish communication connection corresponding to a preset communication protocol with the managed equipment.
As a preferred embodiment, the switch zone configuration system further includes:
A second determining unit configured to determine, for each of the storage devices, a first switch having a physical connection with a first storage port based on port connection information of the storage device and port connection information of each of the switches, respectively, after the first acquiring unit 21; the first storage port is a storage port of any one of the storage devices in a connected state, and the first switch is one of the switches;
A second zone creation unit, configured to control creation of a second zone on the first switch, so as to configure the first storage port and identification information corresponding to each of first switch ports on the first switch, which are physically connected with the first storage port, in the second zone, where the identification information is determined based on port connection information corresponding to the first storage port;
A third determining unit configured to determine, for each of the hosts, a second switch that is physically connected to the first host port based on port connection information of the host and port connection information of each of the switches, respectively; wherein the first host port is a host port of any one of the hosts in a connected state, and the second switch is one of the switches;
A third zone creation unit, configured to control creation of a third zone on the second switch, so as to configure, in the third zone, identification information corresponding to each of the first host port and a second switch port on the second switch that is physically connected to the first host port, where the identification information is determined based on port connection information corresponding to the first host port;
the zone creation unit 23 specifically includes:
a fourth determining unit, configured to determine a third zone corresponding to the target host port;
A fifth determining unit, configured to determine a second zone corresponding to the target storage port;
a target switch determining unit, configured to determine a switch that includes both the second zone and the third zone as a target switch;
a first control unit for controlling creation of a first zone on the target switch;
And the second control unit is used for controlling the information configured in the second zone and the third zone to be configured in the first zone as target identification information.
As a preferred embodiment, the switch zone configuration system further includes:
A first deleting unit, configured to send, after the second zone creating unit determines that the physical connection between the first storage port and the first switch port is broken, a first deleting signal that characterizes deleting the second zone to the first switch;
And the second deleting unit is used for sending a second deleting signal representing deleting the third zone to the second switch after judging that the physical connection between the first host port and the second switch port is interrupted after the third zone creating unit.
As a preferred embodiment, the switch zone configuration system further includes:
a third control unit, configured to control creation of a fourth zone and a fifth zone on the target switch after determining that the service transmission is interrupted; the fourth zone comprises target identification information corresponding to the target storage port and target identification information of a target switch port which is physically connected with the target storage port; the fifth zone comprises target identification information of a target switch port which is physically connected with the target host port;
and the third deleting unit is used for controlling the deletion of the first zone.
As a preferred embodiment, the switch zone configuration system further includes:
A data throughput obtaining unit configured to obtain, for each switch, data throughput of each switch port of the switch, respectively, after the zone creating unit 23;
A correlation determining unit, configured to determine a correlation of a port group based on the data throughput, where the port group includes any two different switch ports;
A first judging unit, configured to judge whether a first target port group with the correlation greater than a first preset threshold exists, where first zones corresponding to two switch ports in the first target port group are not the same; if yes, triggering a first prompting unit;
the first prompt unit is used for controlling the prompt module to output first prompt information, and the first prompt information characterizes the merging of the two first zones corresponding to the first target port group.
As a preferred embodiment, the switch zone configuration system further includes:
a second judging unit, configured to judge whether a second target port group with the correlation smaller than a second preset threshold exists after the correlation determining unit, where first zones corresponding to two switch ports in the second target port group are not the same; if yes, triggering a second prompting unit;
the second prompt unit is configured to record a second prompt message, so as to control the prompt module to output the second prompt message when receiving a combined signal representing that two first zones corresponding to the second target port group are combined, where the second prompt message represents that two first zones corresponding to the second target port group are kept separate.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a preset management platform according to the present invention.
The preset management platform comprises:
a memory 31 for storing a computer program;
a processor 32 for performing the steps of the switch zone configuration method as described above.
For the description of the preset management platform provided in the present invention, refer to the embodiment of the switch zone configuration method, and will not be described herein.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. Relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.