A method for obtaining the WWPN of an HBA card and related components.
By utilizing the Open Firmware Prompt interface of the terminal console during the server partitioning startup phase to output the HBA card's WWPN number and related information, the problem of not being able to obtain the WWPN in existing technologies is solved, improving project efficiency and user experience.
Patent Information
- Application Number
- CN202310314781.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2043-03-24
AI Technical Summary
During the server partitioning startup phase, existing technologies cannot effectively obtain the WWPN number of the HBA card, resulting in the inability to identify and configure the disk, which affects project progress and user experience.
During the server's partitioning boot phase, the Open Firmware Prompt interface is used to receive and display commands via the terminal console. The HBA card's WWPN number, including location information and physical connection status, is output in a preset format, avoiding reliance on the operating system and fiber optic cables.
It enables the rapid and controllable acquisition of HBA card WWPN without the need for an operating system or external devices, improving project progress and user experience, and simplifying the planning, zone division, and mapping creation process.
Smart Images

Figure CN116302139B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computers, and in particular to a method for obtaining the WWPN of an HBA card. This invention also relates to related components of the method for obtaining the WWPN of an HBA card. Background Technology
[0002] With the increasing storage demands of servers, the use of storage disks as operating system disks has become widely adopted for some customers' business systems. This approach typically requires an HBA (Host Bus Adapter) card. The HBA card is usually inserted into a pre-designated expansion slot on the server. The disks are connected to a switch via the HBA card, and the switch establishes the connection between the server and the disks, serving as external storage for the server. This facilitates subsequent server partitioning of the storage. Following the partitioning process, after creating partitions, the server needs to identify the disks in each partition. Before this identification, the server must first use the WWPN (World Wide Port Number) of the HBA card to identify each disk used as external storage. After identification, the WWPN of the corresponding HBA card needs to be provided to the server via the switch so that the server and switch can perform the appropriate disk association configuration. Therefore, after a new server is installed and powered on, the process of obtaining the WWPN of the planned slot's HBA card is usually required. Since the process of installing the operating system on the server occurs after the partitioning process, the operating system has not yet been installed on the server, making it impossible to obtain the WWPN of the HBA card through the operating system. In the current technology, there is no effective method for obtaining the WWPN of the HBA card. Summary of the Invention
[0003] The purpose of this invention is to provide a method and related components for obtaining the WWPN of an HBA card. During the server partitioning and startup phase, without the need for an operating system or the connection of fiber optic cables and other external devices, the WWPN number of the server's HBA card can be obtained using a terminal console. The entire process is simple, controllable, flexible, and fast, which can help users in various aspects such as implementation planning, zone division, and mapping creation, greatly improving project progress and efficiency, enhancing user experience, and improving product competitiveness.
[0004] To address the aforementioned technical problems, this invention provides a method for obtaining the WWPN of an HBA card, applied to a server. The method includes:
[0005] Upon receiving a successful login command from the server's terminal console, the user is redirected to the terminal console interface.
[0006] After receiving the start command, the terminal console interface will redirect to the Open Firmware Prompt interface.
[0007] After receiving a display command in the Open Firmware Prompt interface, the control output interface displays the WWPN of the HBA card based on a preset format.
[0008] Preferably, after the Open Firmware Prompt interface receives the display command, it further includes:
[0009] The control output interface displays the location information and physical connection status of the HBA card based on a preset format.
[0010] Preferably, the control output interface displays the HBA card's location information, physical connection status, and WWPN based on a preset format, including:
[0011] The location information, physical connection status, and WWPN of the HBA card are output in a cyclical manner with newlines.
[0012] Preferably, before the control output interface displays the HBA card's WWPN based on a preset format, the following is also included:
[0013] The location code of the HBA card is received in the Open Firmware Prompt interface;
[0014] Correspondingly, the control output interface displays the HBA card's WWPN based on a preset format, including:
[0015] The control output interface displays the WWPN of the HBA card corresponding to the location code based on a preset format.
[0016] Preferably, the control output interface displays the HBA card's WWPN based on a preset format, including:
[0017] The control output interface displays the WWPN of all HBA cards connected to the server based on a preset format.
[0018] Preferably, before redirecting to the terminal console interface after receiving the login success command from the server's terminal console, the method further includes:
[0019] Create logical partitions based on HMC;
[0020] Receive information from the HBA card of the logical partition;
[0021] The steps involve starting the partition, and then, after receiving a successful login command from the server's terminal console, being redirected to the terminal console interface.
[0022] To address the aforementioned technical problems, the present invention also provides a server, comprising:
[0023] Memory, used to store computer programs;
[0024] A processor, configured to execute the computer program to implement the steps of the method for obtaining the WWPN of the HBA card as described above.
[0025] To address the aforementioned technical problems, the present invention also provides a server system, including an HBA card, a switch, and a server as described above, wherein the HBA card is connected to the server via the switch.
[0026] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method for obtaining the WWPN of an HBA card as described above.
[0027] To address the aforementioned technical problems, this invention also provides a system for obtaining the WWPN of an HBA card, applied to a server. This system includes:
[0028] The login unit is used to jump to the interface of the terminal console after receiving a successful login command from the terminal console of the server;
[0029] The startup unit is used to jump to the OpenFirmware Prompt interface after receiving a startup command on the interface of the terminal console.
[0030] The output unit is used to control the output interface to display the HBA card's WWPN based on a preset format after receiving a display command from the Open Firmware Prompt interface.
[0031] This invention provides a method for obtaining the WWPN of an HBA card, applied to a server. After logging into the server's terminal console, staff can enter the Open Firmware Prompt interface in the terminal console via a startup command and input a display command. Upon receiving the display command, the server will output the WWPN of the HBA card in a preset format. During the server's partitioning and startup phase, without the need for an operating system or connections to fiber optic cables and other external devices, the WWPN number of the server's HBA card can be obtained using the terminal console. The entire process is simple, controllable, flexible, and fast, providing convenience for users in various aspects such as implementation planning, zone division, and mapping creation, greatly improving project progress and efficiency, enhancing user experience, and increasing product competitiveness.
[0032] The present invention also provides a system for obtaining the WWPN of a server, a business system, a computer-readable storage medium, and an HBA card, which has the same beneficial effects as the above-mentioned method for obtaining the WWPN of an HBA card. Attached Figure Description
[0033] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the prior art and embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0034] Figure 1 A flowchart illustrating a method for obtaining the WWPN of an HBA card provided by the present invention;
[0035] Figure 2 An interface for a terminal console provided by the present invention;
[0036] Figure 3 An interface for creating partitions is provided for this invention;
[0037] Figure 4 This invention provides an interface for selecting partition resources during the partition creation process;
[0038] Figure 5 This invention provides an interface for a check-in terminal console after starting the partition;
[0039] Figure 6 A flowchart illustrating another method for obtaining the WWPN of an HBA card provided by the present invention;
[0040] Figure 7 A flowchart illustrating another method for obtaining the WWPN of an HBA card provided by the present invention;
[0041] Figure 8 A schematic diagram of the structure of a server provided by the present invention;
[0042] Figure 9 A schematic diagram of the structure of a server system provided by the present invention;
[0043] Figure 10 This is a schematic diagram of the structure of an HBA card WWPN acquisition system provided by the present invention. Detailed Implementation
[0044] The core of this invention is to provide a method and related components for obtaining the WWPN of an HBA card. During the server partitioning and startup phase, without the need for an operating system or the connection of fiber optic cables and other external devices, the WWPN number of the server's HBA card can be obtained using a terminal console. The entire process is simple, controllable, flexible, and fast, which can help users in various aspects such as implementation planning, zone division, and mapping creation, greatly improving project progress and efficiency, enhancing user experience, and improving product competitiveness.
[0045] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0046] This invention provides a method for obtaining the WWPN of an HBA card, applicable to servers, particularly K1Power servers. The HBA card used in the server can be of various types, but in practical applications, fiber optic connected HBA cards are generally selected. This method primarily addresses the process of obtaining the WWPN of the HBA card in servers operating without an operating system, fiber optic cables, or other external devices, improving customer implementation efficiency and enhancing brand experience. The operating system used by the server can be AIX (Advanced Interactive eXecutive) or similar systems; this application does not impose any specific limitations. Detailed implementation methods are described below.
[0047] Please refer to Figure 1 , Figure 1 A flowchart illustrating a method for obtaining the WWPN of an HBA card provided by the present invention;
[0048] To solve the above-mentioned technical problems, the present invention provides a method for obtaining the WWPN of an HBA card, applied to server 21, the method comprising:
[0049] S11: After receiving the login success command from the terminal console of server 21, the user is redirected to the terminal console interface.
[0050] It is understandable that when the process of obtaining the WWPN of the HBA card is required, the staff logs in through the terminal console. After receiving the login success command from the terminal console, the server 21 will automatically jump to the operation interface of the terminal console. This application does not make any special restrictions on the specific permission requirements and specific implementation methods for logging into the terminal console. These can be adjusted according to the different types of server 21 used in the application or other factors in the actual application.
[0051] S12: After receiving the startup command in the terminal console interface, the system will jump to the Open Firmware Prompt interface.
[0052] Specifically, please refer to Figure 2 , Figure 2 The present invention provides a terminal console interface; after entering the terminal console interface, the staff can select to enter 9 according to the relevant prompts on the screen. 9 corresponds to Restricted OpenFirmware Prompt. After receiving the start command corresponding to entering 9, the server 21 will start to the Open FirmwarePrompt interface.
[0053] S13: After receiving a display command in the Open Firmware Prompt interface, control the output interface to display the HBA card's WWPN based on a preset format.
[0054] Understandably, after entering the Open Firmware Prompt interface, the staff will type the display command DISPLAY_ADAPTER_WWPN in the command line. After receiving the display command, the server 21 controls the output interface to display the WWPN of the HBA card in a preset format so that the staff can perform subsequent sorting and analysis operations.
[0055] Specifically, this application does not impose any particular limitations on the output format of the HBA card's WWPN. It can be continuous single-line output, or outputting a preset number of lines followed by a newline. It is understood that the preset format is pre-set in the processor. This application does not impose any particular limitations on the setting method and specific implementation of the preset format; adjustments can be made according to the actual application environment. The output interface can directly use the current Open Firmware Prompt interface, or other interfaces can be used for output operations. This application does not impose any particular limitations on the specific selection and implementation method of the output interface; adjustments can be made according to the specific type of server 21 or other factors.
[0056] It is understood that the output WWPN of the HBA card can be the WWPN of all HBA cards connected to the server 21, or it can be a portion of the WWPN of the required HBA cards. For operators such as staff or users, the output of all or part of the WWPN can be controlled according to different input commands, or the two methods can be used in combination. This application does not make any special restrictions here. The specific operation process depends on the user's needs and other factors.
[0057] Specifically, a WWN (World Wide Name) is a unique identifier for devices in a fiber optic network. Its function is similar to a MAC address (Media Access Control Address) in Ethernet, ensuring data transmission from the intended source node to the destination node. In a SAN (Storage Area Network) environment, there are two types of WWNs: WWNN (World Wide Node Number) and WWPN. As the names suggest, WWNN is generally for storage devices or storage controllers, while WWPN is for each port. Because actual communication is port-based, WWPN is commonly used in practical applications, such as SAN partitioning and storage device LUN (Logical Unit Number) mapping, all of which involve operations on the WWPN.
[0058] It should be noted that after the server 21 outputs and displays the WWPN of the HBA card, the staff usually organizes it into a table, as shown in Table 1. Table 1 shows the organized results of the WWPN and the corresponding HBA card slot. It can also be organized into other forms. Based on the organized information, the HBA card and its corresponding partition can be clearly obtained. Then, by comparing the connection information between the disk and the HBA card, the association between the disk and the partition can be further realized. Subsequently, the staff or users can directly perform subsequent partition planning operations based on the organized data. Alternatively, the organized results can be sent to the switch 22 connected to the server 21 so that the switch 22 can complete the zone creation process, zone division operation, and mapping creation process to realize the identity association between the HBA card and the disk.
[0059] Table 1. Results of compiling WWPN and corresponding HBA card slots
[0060]
[0061]
[0062] This invention provides a method for obtaining the WWPN of an HBA card, applied to server 21. After logging into the terminal console of server 21, staff can enter the Open Firmware Prompt interface in the terminal console via a startup command and input a display command. Upon receiving the display command, server 21 will output the WWPN of the HBA card in a preset format. During the partitioning startup phase of server 21, without the need for an operating system, fiber optic cables, or other external devices, the WWPN number of the HBA card of server 21 can be obtained using the terminal console. The entire process is simple, controllable, flexible, and fast, providing convenience for users in various aspects such as implementation planning, zone division, and mapping creation, greatly improving project progress and efficiency, enhancing user experience, and increasing product competitiveness.
[0063] Based on the above embodiments,
[0064] As a preferred embodiment, after the Open Firmware Prompt interface receives the display command, it further includes:
[0065] The control output interface displays the location information and physical connection status of the HBA card based on a preset format.
[0066] Considering the need for further association configuration between the HBA's WWPN and the corresponding disk, after receiving the display command in the Open FirmwarePrompt interface, in addition to outputting the HBA card's WWPN, the location information and physical connection status of the HBA card are also output. This allows staff or users to simultaneously obtain the WWPN and the current status of the HBA card corresponding to the WWPN. This application does not impose any special restrictions on the format of the output HBA card's location information and physical connection status; they can be output together with the WWPN or in a different format.
[0067] Considering the need for further association configuration between the HBA's WWPN and the corresponding disk, the location information and physical connection status of the HBA card are output after the Open FirmwarePrompt interface receives the display command. This is helpful for subsequent association configuration operations between the server 21 and the disk. Staff or users can also obtain the current status of the HBA card corresponding to the WWPN, which is more conducive to subsequent partitioning and other operations of the server 21, improving the efficiency of subsequent work of the server 21, and further enhancing the user experience and product competitiveness.
[0068] As a preferred embodiment, the control output interface displays the HBA card's location information, physical connection status, and WWPN based on a preset format, including:
[0069] Output the HBA card's location information, physical connection status, and WWPN in a cyclical manner with newlines.
[0070] It is understandable that when it is necessary to output the location information, physical connection status, and WWPN of the HBA card, in order to facilitate identification, the location information, physical connection status, and WWPN of the HBA card can be output in a loop with new lines. The specific order can be referred to the example in this embodiment. Other methods can also be used. This embodiment is only a specific implementation method for the output method of the location information, physical connection status, and WWPN of the HBA card. Other output formats can also be used, such as outputting the location information, physical connection status, and WWPN of the HBA card on the same line. This application does not make any special limitation here.
[0071] The following is a specific implementation format for outputting the HBA card's location information, physical connection status, and WWPN cyclic newline output;
[0072] DISPLAY_ADAPTER_WWPN default output format:
[0073] HBA card location
[0074] HBA card physical connection status
[0075] WWPN:PORT-WWN
[0076] It is understandable that the location of the HBA card is the location code of the HBA card. The physical connection status of the HBA card includes the physical connection status and the logical connection status of the HBA card. The physical connection status refers to whether the HBA card is connected to the server 21 in terms of hardware through fiber optic or other means; the logical connection status refers to whether the HBA card has performed the initial connection process in the physical connection status.
[0077] Specifically, when it is necessary to output the location information, physical connection status, and WWPN of the HBA card, in order to facilitate identification, the location information, physical connection status, and WWPN of the HBA card can be output in a loop with line breaks. The output method is clear and easy to understand, making it easy to distinguish. This is beneficial to the subsequent sorting process of staff or users, reducing errors in the sorting process, improving the accuracy of subsequent server 21 work, and enhancing user experience and product competitiveness.
[0078] As a preferred embodiment, before the control output interface displays the HBA card's WWPN based on a preset format, the method further includes:
[0079] The location code of the HBA card is received in the Open Firmware Prompt interface;
[0080] Correspondingly, the control output interface displays the HBA card's WWPN based on a preset format, including:
[0081] The control output interface displays the WWPN of the HBA card corresponding to the location code based on a preset format.
[0082] Considering that during the partitioning process, only some of the HBA card's WWPN information may be needed to complete subsequent operations, after entering the display command DISPLAY_ADAPTER_WWPN, the required HBA card's location code can also be directly entered. When the server 21 receives the display command DISPLAY_ADAPTER_WWPN and the location code, it will control the output interface to only display the WWPN of the HBA card corresponding to the location code. Operators can enter the location codes of different HBA cards according to their needs to adjust the WWPN to be output.
[0083] It is understood that this application does not impose any special restrictions on the output format of the HBA card's WWPN at this time. It can be a continuous single-line output or a preset number of outputs per line followed by a line break. It is understood that the preset format is set in the processor in advance. This application does not impose any special restrictions on the setting method and specific implementation of the preset format, and it can be adjusted according to the actual application environment.
[0084] Specifically, the following is a specific output method of the control output interface to display the WWPN of the HBA card corresponding to the position code based on a preset format;
[0085] 0>DISPLAY_ADAPTER_WWPN U78CD.001.FZHDE89-P2-C5-T1
[0086] Link down
[0087] Cannot enter link.
[0088] PORT-WWN:100000109be19f33
[0089] Considering that during the partitioning process, only some of the HBA card's WWPN information may be needed to complete subsequent operations, by adding the required HBA card's location code after the display command, server 21 will control the output interface to only display the WWPN of the HBA card corresponding to the location code. This eliminates the need to display the WWPN of all HBA cards in every output, greatly saving output time, improving work efficiency, and reducing power consumption. Outputting only the required WWPN also makes the output interface clearer and more concise, eliminating the need for repeated searching and verification, reducing the possibility of errors by staff or users, ensuring the accuracy of subsequent work, and enhancing user experience and product competitiveness.
[0090] As a preferred embodiment, the control output interface displays the HBA card's WWPN based on a preset format, including:
[0091] The control output interface displays the WWPN of all HBA cards connected to server 21 based on a preset format.
[0092] To ensure the integrity of the output information and avoid repetitive operations for other needs in the future, the WWPN of all HBA cards connected to server 21 can be directly output in a single display command. It is understood that if server 21 only receives the display command DISPLAY_ADAPTER_WWPN, it will output the WWPN of all HBA cards connected to server 21 by default.
[0093] It is understood that this application does not impose any special restrictions on the output format of the HBA card's WWPN at this time. It can be a continuous single-line output or a preset number of outputs per line followed by a line break. It is understood that the preset format is set in the processor in advance. This application does not impose any special restrictions on the setting method and specific implementation of the preset format, and it can be adjusted according to the actual application environment.
[0094] Specifically, the following is a specific output method for the control output interface to display the WWPN of all HBA cards connected to server 21 based on a preset format;
[0095] 0>DISPLAY_ADAPTER_WWPN
[0096] U78CD.001.FZHDG19-P1-C5-T1
[0097] Link down
[0098] Cannot initiate link.
[0099] PORT-WWN:100000109be28800
[0100] U78CD.001.FZHDG19-P1-C5-T2
[0101] Link down
[0102] Cannot Init Link.
[0103] PORT-WWN:100000109be28801
[0104] U78CD.001.FZHDE89-P1-C5-T1
[0105] Link down
[0106] Cannot Init Link.
[0107] PORT-WWN:100000109be19f33
[0108] U78CD.001.FZHDE89-P1-C5-T2
[0109] Link down
[0110] Cannot Init Link.
[0111] PORT-WWN:100000109be19f34
[0112] U78CD.001.FZHDE89-P2-C5-T1
[0113] Link down
[0114] Cannot Init Link.
[0115] PORT-WWN:100000109be28909
[0116] U78CD.001.FZHDE89-P2-C5-T2
[0117] Link down
[0118] Cannot Init Link.
[0119] PORT-WWN:100000109be2890a
[0120] U78CD.001.FZHDG19-P2-C5-T1
[0121] Link down
[0122] Cannot initiate link.
[0123] PORT-WWN:100000109be19f21
[0124] To ensure the integrity of the output information and avoid repetitive operations for subsequent needs, the WWPN of all HBA cards connected to server 21 can be directly output in a single display command. By default, server 21 will display the WWPN of all HBA cards connected to server 21 upon receiving the display command. Outputting the WWPN of all HBA cards connected to server 21 at once ensures the integrity of the output information and avoids repeated command input and output operations when staff or users have different needs, thereby improving user experience and product competitiveness.
[0125] As a preferred embodiment, before redirecting to the terminal console interface after receiving the login success command from the server 21's terminal console, the method further includes:
[0126] Create logical partitions based on HMC;
[0127] Receive information from the HBA card of the logical partition;
[0128] The steps are as follows: start the partition, and after starting the partition, proceed to the terminal console interface after receiving the login success command from the terminal console of server 21.
[0129] Understandably, after the partition creation process, the operator typically controls the server 21 through the HMC (Hardware Management Console) to first create the logical partition. After the logical partition is created, the operator selects the partition resources according to actual needs. By selecting the HBA card's location code, the operator determines the HBA card required for the logical partition. The determined HBA card is the one whose WWPN number needs to be obtained in the subsequent process. After the determination, the server 21 receives the corresponding HBA card information and starts the partition based on the operator's control. After starting the partition, the above-mentioned process of obtaining the HBA card's WWPN needs to be performed to further complete subsequent partition planning and other operations.
[0130] It should be noted that the selection process for the HBA card in the logical partition can be carried out in various ways. Operators can directly select the location code through the window interface during partition creation, or the processor can randomly select or select according to a preset method. This application does not impose any particular limitation on this method; operators can adjust the specific selection method according to actual application needs and other factors. Logical partition creation is generally completed through the HMC, but it is not limited to this method, and this application does not impose any particular limitation on this method.
[0131] Specifically, please refer to Figure 3 , Figure 3 This invention provides an interface for creating partitions; the operation interface for creating logical partitions based on HMC is as follows: Figure 3 As shown, staff or users can enter the corresponding information according to the prompts on the operation interface to complete the creation of logical partitions; please refer to... Figure 4 , Figure 4 This invention provides an interface for selecting partition resources during the partition creation process; operators can, for example... Figure 4 In the operation interface, directly check the corresponding HBA card location code to complete the partition resource selection process; please refer to... Figure 5 , Figure 5 This invention provides an interface for a check-in terminal console after partitioning is started; the interface of the check-in terminal console after partitioning is started is as follows: Figure 5 As shown.
[0132] In practical applications, after the partition creation process, the process of obtaining the WWPN of the HBA card adds a specific implementation method for creating logical partitions. The implementation method is simple and easy to understand, easy to implement, and highly adjustable. It improves the entire creation process of server 21, making the entire operation process clearer and more explicit. This is conducive to the subsequent implementation of the WWPN acquisition process of the HBA card, enhancing user experience and product competitiveness.
[0133] Please refer to Figure 6 , Figure 6This is a flowchart illustrating another method for obtaining the WWPN of an HBA card provided by the present invention. Taking K1 Power Server 21 as an example, User / Administrator in the diagram refers to the user or staff operating server 21. Operation with HMC refers to the operator creating logical partitions on the K1 Power Server through the HMC, such as partition 1, partition 2, and partition 3 as shown in the diagram. Each partition corresponds to a different HBA card, and the HBA is connected to Storage through SANSWITCH. After the partitions are created, the operator logs into the Terminal console with the user information of the authorized user, then enters the Open Firmware Prompt interface, and further completes subsequent operations such as entering commands and outputting information.
[0134] Please refer to Figure 7 , Figure 7 This is a flowchart illustrating another method for obtaining the WWPN of an HBA card provided by the present invention. This flowchart describes a specific implementation of this method. First, the operator creates a new partition, selects the corresponding HBA according to the plan, and saves the configuration information, then starts the partition. After starting the partition, the operator logs in through the console port. Upon installation, selecting option 9 enters the Open Firmware Prompt interface. If entry fails, the partition is closed, and the operator attempts to start the partition again. Upon successful entry, the operator enters the display command `DISPLAY_ADAPTER_WWPN` as needed. This can display the WWPN of all HBA cards, or the slot location information can be added when entering the `DISPLAY_ADAPTER_WWPN` command to display the WWPN of a specific HBA card. Finally, the obtained WWPN is submitted to the customer or used for other subsequent processing.
[0135] Please refer to Figure 8 , Figure 8 A schematic diagram of the structure of a server provided by the present invention;
[0136] To address the aforementioned technical problems, the present invention also provides a server 21, comprising:
[0137] Memory 1 is used to store computer programs;
[0138] Processor 2 is used to execute computer programs to implement the steps of the above-described method for obtaining the WWPN of the HBA card.
[0139] The processor 2 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 2 may be implemented using at least one hardware form selected from DSP (Digital Signal Processor), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 2 may also include a main processor and a coprocessor. The main processor, also known as the central processing unit, is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 2 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 2 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0140] The memory 1 may include one or more computer-readable storage media, which may be non-transitory. The memory 1 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 1 is used to store at least the following computer program, which, after being loaded and executed by the processor 2, is capable of implementing the relevant steps of the HBA card WWPN acquisition method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 1 may also include an operating system and data, and the storage method may be temporary or permanent storage. The operating system may include Windows, Unix, Linux, etc. The data may include, but is not limited to, data related to the HBA card WWPN acquisition method.
[0141] In some embodiments, server 21 may further include a display screen, input / output interfaces, communication interfaces, a power supply, and a communication bus.
[0142] It will be understood by those skilled in the art that Figure 8 The structure shown does not constitute a limitation on server 21 and may include more or fewer components than illustrated.
[0143] For an introduction to the server 21 provided by the present invention, please refer to the above method embodiments; the present invention will not be described again here.
[0144] Please refer to Figure 9 , Figure 9A schematic diagram of the structure of a server system provided by the present invention;
[0145] To solve the above-mentioned technical problems, the present invention also provides a server system, including an HBA card, a switch 22 and a server 21 as described above, wherein the HBA card is connected to the server 21 through the switch 22.
[0146] Specifically, this application does not impose any particular restrictions on the specific types and implementation methods of the HBA card, switch 22 and server 21, nor does it impose any particular restrictions on the connection methods between the HBA card, switch 22 and server 21.
[0147] In practical applications, one HBA card will be associated with multiple disks to ensure a certain amount of data redundancy. One disk can also correspond to multiple HBA cards. This application does not make any special restrictions on the relationship between disks and HBA cards, and can be adjusted according to actual application requirements and other factors.
[0148] For a description of the server system provided by this invention, please refer to the above method embodiments; the invention itself will not be described in detail here.
[0149] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method for obtaining the WWPN of an HBA card as described above.
[0150] It is understood that if the methods in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of this application. Specifically, the computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, and portable hard drives, or any type of media or device suitable for storing instructions or data, etc., and this application does not make any special limitations here.
[0151] For a description of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments; the present invention will not be described again here.
[0152] Please refer to Figure 10 , Figure 10 A schematic diagram of the structure of an HBA card WWPN acquisition system provided by the present invention;
[0153] To address the aforementioned technical problems, this invention also provides a system for obtaining the WWPN of an HBA card, applied to server 21. This system includes:
[0154] Login unit 31 is used to jump to the terminal console interface after receiving a successful login command from the terminal console of server 21;
[0155] The startup unit 32 is used to jump to the Open FirmwarePrompt interface after receiving a startup command in the terminal console interface;
[0156] The output unit 33 is used to control the output interface to display the WWPN of the HBA card based on a preset format after receiving a display command in the Open Firmware Prompt interface.
[0157] Output unit 33 includes a command receiving unit and a first display unit. The command receiving unit is used to receive a display command in the OpenFirmware Prompt interface and trigger the first display unit.
[0158] The first display unit is used to control the output interface to display the WWPN of the HBA card based on a preset format.
[0159] As a preferred embodiment, it further includes:
[0160] The second display unit is used to control the output interface to display the location information and physical connection status of the HBA card based on a preset format.
[0161] As a preferred embodiment, it further includes:
[0162] The receiving unit is used to receive the location code of the HBA card in the Open Firmware Prompt interface;
[0163] Correspondingly, the first display unit includes:
[0164] The first display subunit is used to control the output interface to display the WWPN of the HBA card corresponding to the position code based on a preset format.
[0165] In a preferred embodiment, the output unit 33 includes:
[0166] The second display subunit is used to control the output interface to display the WWPN of all HBA cards connected to the server 21 based on a preset format.
[0167] As a preferred embodiment, it further includes:
[0168] Partition unit, used to create logical partitions based on HMC;
[0169] The information acquisition unit is used to receive information from the HBA card of the logical partition;
[0170] The startup partition unit is used to start the partition and triggers the login unit 31 after starting the partition.
[0171] For a description of the WWPN acquisition system for an HBA card provided by this invention, please refer to the above method embodiments; the invention itself will not be described in detail here.
[0172] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0173] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not 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.
Claims
1. A method for obtaining the WWPN of an HBA card, characterized in that, Applied to a server, the method includes: During the server's partitioning startup phase and before the server has an operating system installed, upon receiving a successful login command from the server's terminal console, the user is redirected to the terminal console interface. After receiving the startup command, the terminal console interface redirects to the Open Firmware Prompt interface; the startup command is entered by the operator following the on-screen prompts. After receiving a display command in the Open Firmware Prompt interface, the control output interface displays the WWPN of the HBA card based on a preset format. After the Open Firmware Prompt interface receives the display command, it also includes: The control output interface displays the location information and physical connection status of the HBA card based on a preset format.
2. The method for obtaining the WWPN of an HBA card as described in claim 1, characterized in that, The control output interface displays the HBA card's location information, physical connection status, and WWPN in a preset format, including: The location information, physical connection status, and WWPN of the HBA card are output in a cyclical manner with newlines.
3. The method for obtaining the WWPN of an HBA card as described in claim 1, characterized in that, Before the control output interface displays the HBA card's WWPN in a preset format, it also includes: The location code of the HBA card is received in the Open Firmware Prompt interface; Correspondingly, the control output interface displays the HBA card's WWPN based on a preset format, including: The control output interface displays the WWPN of the HBA card corresponding to the location code based on a preset format.
4. The method for obtaining the WWPN of an HBA card as described in claim 1, characterized in that, The control output interface displays the HBA card's WWPN based on a preset format, including: The control output interface displays the WWPN of all HBA cards connected to the server based on a preset format.
5. The method for obtaining the WWPN of an HBA card as described in any one of claims 1 to 4, characterized in that, Before redirecting to the terminal console interface after receiving the login success command from the server's terminal console, the process also includes: Create logical partitions based on HMC; Receive information from the HBA card of the logical partition; The steps involve starting the partition, and then, after receiving a successful login command from the server's terminal console, being redirected to the terminal console interface.
6. A server, characterized in that, include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the steps of the method for obtaining the WWPN of an HBA card as described in any one of claims 1 to 5.
7. A server system, characterized in that, It includes an HBA card, a switch, and a server as described in claim 6, wherein the HBA card is connected to the server via the switch.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the method for obtaining the WWPN of an HBA card as described in any one of claims 1 to 5.
9. A system for obtaining the WWPN of an HBA card, characterized in that, This system, applied to servers, includes: The login unit is used to jump to the interface of the terminal console after receiving a login success command from the terminal console of the server during the partition boot phase of the server and before the operating system is installed on the server. The startup unit is used to jump to the Open FirmwarePrompt interface after receiving a startup command on the interface of the terminal console; the startup command is entered by the operator according to the relevant prompts on the screen. The output unit is used to control the output interface to display the HBA card's WWPN according to a preset format after receiving a display command from the Open Firmware Prompt interface; The HBA card's WWPN acquisition system also includes: The second display unit is used to control the output interface to display the location information and physical connection status of the HBA card based on a preset format after receiving the display command from the Open Firmware Prompt interface.
Citation Information
Patent Citations
Console implementation method based on Unity engine and terminal
CN111240658A
Storage area network configuration of virtual fibre channel ports prior to client creation
US20130097295A1
