CN116302757A - Information determining method, device and computer readable storage medium - Google Patents

Information determining method, device and computer readable storage medium Download PDF

Info

Publication number
CN116302757A
CN116302757A CN202310313174.2A CN202310313174A CN116302757A CN 116302757 A CN116302757 A CN 116302757A CN 202310313174 A CN202310313174 A CN 202310313174A CN 116302757 A CN116302757 A CN 116302757A
Authority
CN
China
Prior art keywords
target
information
processed
chassis
slot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310313174.2A
Other languages
Chinese (zh)
Inventor
吴志伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Enterprise Solutions Singapore Pte Ltd
Original Assignee
Taiwan Lenovo Global Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Taiwan Lenovo Global Technology Co ltd filed Critical Taiwan Lenovo Global Technology Co ltd
Priority to CN202310313174.2A priority Critical patent/CN116302757A/en
Publication of CN116302757A publication Critical patent/CN116302757A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the application discloses an information determining method, which comprises the following steps: determining slot position information of a target slot position with a node tray in a to-be-processed case under the condition that the node tray is inserted into the to-be-processed case is monitored; determining the target type of the to-be-processed case and the combined information of the node trays in the to-be-processed case based on the groove position information of the target groove position; and determining target interface information corresponding to the to-be-processed chassis based on the target type of the to-be-processed chassis. The embodiment of the application also discloses electronic equipment and a computer readable storage medium.

Description

Information determining method, device and computer readable storage medium
Technical Field
The present application relates to information determination technology in the field of computers, and in particular, to an information determination method, apparatus, and computer-readable storage medium.
Background
Currently, in a 2U4N chassis mixed with 1U and 2U node trays, the 1U node tray and the 2U node tray are mixed in an arbitrary combination. And, typically, the combination of trays for different nodes in one chassis is a common back plane, software and graphical user interface (Graphical User Interface, GUI). However, in practice, the combination of the corresponding node trays is different, which results in a problem that the graphical user interface is disordered when the node trays are dynamically replaced.
Disclosure of Invention
In order to solve the technical problems, it is desirable in the embodiments of the present application to provide an information determining method, an apparatus, and a computer readable storage medium, which solve the problem that a graphical user interface is disordered when a node tray is dynamically replaced for a 2U4N chassis in the related art.
The technical scheme of the application is realized as follows:
an information determination method, the method comprising:
determining slot position information of a target slot position with a node tray in a to-be-processed case under the condition that the node tray is inserted into the to-be-processed case is monitored;
determining the target type of the to-be-processed case and the combined information of the node trays in the to-be-processed case based on the groove position information of the target groove position;
and determining target interface information corresponding to the to-be-processed chassis based on the target type of the to-be-processed chassis.
In the above scheme, before determining the slot information of the target slot with the node tray in the to-be-processed chassis under the condition that the node tray is inserted into the to-be-processed chassis is monitored, the method further includes:
monitoring pin information of a first pin of the target slot in the to-be-processed chassis;
and determining whether a node tray is inserted into the target slot based on the pin information of the first pin of the target slot.
In the above scheme, the determining, under the condition that the node tray is inserted into the to-be-processed chassis is monitored, the slot information of the target slot with the node tray in the to-be-processed chassis includes:
determining that a node tray is inserted into the target slot under the condition that the pin information of the first pin of the target slot is first target information;
determining pin information of a second pin of the target slot; the slot information comprises pin information of the second pin.
In the above solution, the determining the pin information of the second pin of the target slot includes:
reading the value of a second pin of each target slot in the to-be-processed chassis;
correspondingly, the determining, based on the slot position information of the target slot position, the combination information of the target type of the to-be-processed chassis and the node tray in the to-be-processed chassis includes:
determining the target type of the to-be-processed chassis based on the value of the second pin of each target slot and the slot identification of each target slot; wherein the slot identification is used for uniquely identifying the target slot;
and determining the combination information of the node trays in the to-be-processed chassis based on the value of the second pin of each target slot.
In the above solution, the determining, based on the value of the second pin of each target slot, the combination information of the node trays in the to-be-processed chassis includes:
determining, for each target slot, a type of node tray into which the target slot is currently inserted based on a value of a second pin of the target slot;
and determining the combination information of the node trays in the to-be-processed chassis based on the type of the node tray currently inserted by each target slot.
In the above solution, the determining, based on the target type of the to-be-processed chassis, target interface information corresponding to the to-be-processed chassis includes:
determining a target corresponding relation between the type of the case and the interface information;
determining target interface information corresponding to the to-be-processed chassis based on the target corresponding relation and the target type of the to-be-processed chassis;
correspondingly, the method further comprises the steps of:
and switching the interface information of the to-be-processed chassis to the target interface information.
In the above scheme, the method further comprises:
and under the condition that the node tray in the target slot position of the to-be-processed case is pulled out, controlling the type of the to-be-processed case to be the target type.
In the above solution, after the controlling the type of the to-be-processed chassis is the target type, the method further includes:
under the condition that a new node tray is inserted into the target slot position of the to-be-processed chassis, determining that the target slot position is currently inserted with new slot position information under the new node tray;
and determining new target type of the to-be-processed case under the new node tray and combined information of the new node tray in the to-be-processed case, which are currently inserted into the target slot, based on the new slot information of the target slot.
An electronic device, the device comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute the information determining program in the memory to implement the steps of the information determining method described above.
A computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of the information determining method described above.
According to the information determining method, the information determining device and the computer readable storage medium, under the condition that the fact that the node tray is inserted into the to-be-processed chassis is monitored, the slot information of the target slot position of the node tray in the to-be-processed chassis is determined, the target type of the to-be-processed chassis and the combined information of the node tray in the to-be-processed chassis are determined based on the slot information of the target slot position, and the target interface information corresponding to the to-be-processed chassis is determined based on the target type of the to-be-processed chassis, so that the combined information of the node tray in the chassis and the interface information corresponding to the chassis under the current node tray combination can be determined according to the slot information of the slot position of the node tray, namely, the interface information of the chassis under the current node tray combination is accurate and clear, and the problem that a graphical user interface is disordered when the node tray is dynamically replaced for the 2U4N chassis in the related technology is solved.
Drawings
Fig. 1 is a flow chart of an information determining method according to an embodiment of the present application;
FIG. 2 is a flow chart of another information determining method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a pin of a target slot of a to-be-processed chassis in an information determining method according to an embodiment of the present application;
FIG. 4 is a flowchart of another information determining method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a node tray on a target slot position of a to-be-processed chassis in an information determining method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an information determining apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
An embodiment of the present application provides an information determining method, which is applied to an electronic device, and referring to fig. 1, the method includes the following steps:
and step 101, determining slot position information of a target slot position with the node tray in the to-be-processed case under the condition that the node tray is inserted into the to-be-processed case is monitored.
In the embodiment of the present application, the chassis to be processed may refer to a chassis capable of accommodating a plurality of node trays and needing management of the node trays; wherein, whether the node tray is inserted into the case to be processed can be determined according to the information of the pins of the slots in the case to be processed. It should be noted that, the slot information of the target slot may refer to information of a pin on the target slot; of course, the information of the pins on the target slots is different from the information of the pins of the slots in the chassis to be processed; that is, the pins used to determine whether the node tray is inserted into the enclosure to be processed are different from the pins of the slot information of the acquired target slot.
In one possible implementation manner, the pin used for determining whether the node tray is inserted into the chassis to be processed may be a first pin, and the pin of the target slot position obtained after the node tray is inserted into the chassis to be processed may be a second pin; and the first pin is different from the second pin. If the node tray is inserted into the to-be-processed case, the electronic equipment can acquire the pin information of the second pin of the target slot position of the node tray inserted into the to-be-processed case. Wherein, the node tray can be represented by tray, and the chassis can be represented by Chassis.
Step 102, determining the target type of the to-be-processed chassis and the combined information of the node trays in the to-be-processed chassis based on the slot position information of the target slot position.
In the embodiment of the application, the electronic device may determine, according to the pin information of the second pin in the target slot of the to-be-processed chassis, a type of the to-be-processed chassis and the combination information of the node tray in the to-be-processed chassis; it should be noted that, the pin information of the second pin in the target slot of the to-be-processed chassis may be analyzed to determine the information of the node tray in the target slot, so as to determine the target type of the to-be-processed chassis and the combined information of the node tray in the to-be-processed chassis.
The combination information of the node trays can represent the basic condition of the node tray currently inserted in the to-be-processed case; in one possible implementation manner, the combined information of the node trays may refer to information such as which node trays currently inserted in the to-be-processed chassis are all, and which slot positions inserted in the to-be-processed chassis;
step 103, determining target interface information corresponding to the to-be-processed chassis based on the target type of the to-be-processed chassis.
In this embodiment of the present application, after determining the type of the to-be-processed chassis, the electronic device may directly determine, according to the type of the to-be-processed chassis, target interface information corresponding to the to-be-processed chassis. In one possible implementation manner, the electronic device may directly search the target interface information corresponding to the to-be-processed chassis according to the target type of the to-be-processed chassis. The interface information of the chassis to be processed may refer to a graphical user interface (Graphical User Interface, GUI) of the chassis to be processed.
It should be noted that, in the present application, as long as a track is inserted into a train, the type of the train and the combined information of the track inserted into the train can be determined by analyzing the pin information of the target slot where the determined track is located, so as to determine the GUI of the train; thus, no matter what type of tray is inserted into the chasis, even if a plurality of types are mixed, the combination of the current tray and the GUI of the chasis can be automatically determined, and the disorder of the GUI of the chasis is not caused.
According to the information determining method provided by the embodiment of the invention, under the condition that the situation that the node tray is inserted into the to-be-processed chassis is monitored, the slot position information of the target slot position of the node tray in the to-be-processed chassis is determined, the target type of the to-be-processed chassis and the combined information of the node tray in the to-be-processed chassis are determined based on the slot position information of the target slot position, and the target interface information corresponding to the to-be-processed chassis is determined based on the target type of the to-be-processed chassis, so that the combined information of the node tray in the chassis and the interface information corresponding to the chassis under the current node tray combination can be determined according to the slot position information of the slot position of the node tray, namely, the interface information of the chassis under the current node tray combination is accurate and clear, and the problem that a graphical user interface is disordered when the node tray is dynamically replaced for the 2U4N chassis in the related technology is solved.
Based on the foregoing embodiments, embodiments of the present application provide an information determining method, as shown with reference to fig. 2, which may include the steps of:
step 201, the electronic device monitors pin information of a first pin of a target slot in the to-be-processed chassis.
In the embodiment of the present application, the first pin may refer to a pin in the chassis to be processed, where the pin is used to determine whether the node tray is currently inserted into the chassis to be processed. In one possible implementation, the first pin may refer to pin prnt_n of the target slot in pass. The pin information of the first pin may refer to a value of the first pin.
It should be noted that, if the to-be-processed chassis has four slots, i.e., slot0, slot1, slot2, and Slot3, as shown in fig. 3, the first pin may refer to a prnt_n pin indicated in each Slot, i.e., may refer to prnt_n_0, prnt_n_1, prnt_n_2, and prnt_n_3 in pins corresponding to Slot0, slot1, slot2, and Slot3 respectively; the pin information of the first pin may refer to the values of pins prnt_n_0, prnt_n_1, prnt_n_2, and/or prnt_n_3.
Step 202, the electronic device determines whether a node tray is inserted into the target slot based on the pin information of the first pin of the target slot.
The electronic device may determine whether the node tray is inserted into the target slot according to the value of the pin prnt_n in the target slot. It should be noted that the value of the first pin prnt_n may be directly read.
In one possible implementation, it may be determined whether a node tray is currently inserted in Slot0, slot1, slot2, and/or Slot3 according to the read values of pins prnt_n_0, prnt_n_1, prnt_n_2, and/or prnt_n_3; it should be noted that for which slot, the pin information of the first pin is the value of pin prnt_n of that slot.
In step 203, the electronic device determines that the node tray is inserted into the target slot when the pin information of the first pin of the target slot is the first target information.
In the embodiment of the present application, if the value of the pin prnt_n is the first target value, it may be determined that the node tray is currently inserted in the target slot. It should be noted that, based on the history data, the first target value may be determined to be 1; that is, if the value of pin prnt_n is 1, then the target slot may be considered to have a node tray inserted therein; if the value of pin Prnt_n is 0, then it can be considered that no node tray is inserted in the target slot.
In one possible implementation, if the target Slot refers to Slot0, when the value of pin prnt_n_0 of Slot0 is 1, then the Slot0 is considered to be currently inserted into the node tray.
Step 204, the electronic device determines pin information of the second pin of the target slot.
The slot information comprises pin information of the second pin.
In the embodiment of the present application, the second pin may refer to a pin in the chassis to be processed, where the pin is used to determine information of a node tray inserted in the chassis to be processed. In one possible implementation, the second pin may refer to a pin Form Factor (FF) of the target slot in the pass.
It should be noted that, if the to-be-processed chassis has four slots, i.e., slot0, slot1, slot2, and Slot3, as shown in fig. 3, the second pin may refer to the FF pin indicated in each Slot, i.e., may refer to ff_0, ff_1, ff_2, and ff_3 in the pins corresponding to Slot0, slot1, slot2, and Slot3, respectively.
In the embodiment of the present application, step 204 may be implemented by:
in step 204a, the electronic device reads the value of the second pin of each target slot in the to-be-processed chassis.
The pin information of the second pin may refer to a value of the second pin. The value of the second pin may be read directly. In one possible implementation, the pin information of the second pin may refer to the values of pins ff_0, ff_1, ff_2, and/or ff_3. If the target Slot includes slots 0, slot1, slot2, and Slot3, then the pin information for the second pin is the values of pins FF_0, FF_1, FF_2, and FF_3.
Step 205, the electronic device determines a target type of the to-be-processed chassis based on the value of the second pin of each target slot and the slot identifier of each target slot.
Wherein the slot identification is used to uniquely identify the target slot.
In the embodiment of the application, after determining the value of the pin FF of each target slot, the electronic device may determine the slot identifier of each target slot, so as to obtain what the value of the pin FF of which slot in the target slots is; furthermore, the type of the to-be-processed chassis can be determined according to the values of pins FF of different slots. Note that, if the target Slot includes Slot0, slot1, slot2, and Slot3, the relationship between the value of pin FF and the type of the chassis and the type of the GUI may be as shown in table 1 below.
Figure BDA0004150393920000081
Figure BDA0004150393920000091
TABLE 1
In one possible implementation, if the target slots include Slot0, slot1, slot2, and Slot3, then the target type of the pending enclosure may be determined from the values of pins FF_0, FF_1, FF_2, and FF_3. As shown in table 1, if the identifiers of the slots are Slot0, slot1, slot2, and Slot3 in sequence, and the corresponding values of pins ff_0, ff_1, ff_2, and ff_3 are 0, 1, 0, and 0 in sequence, then the determined target Type of the to-be-processed enclosure is the third Type (i.e., type 3). When the pin Prnt has a signal, that is, the value of the pin Prnt is 0, it is indicated that the current node tray is inserted into the slot of the chassis to be processed, and the combined information of the pin FF and the node tray is detected.
Step 206, the electronic device determines the combination information of the node trays in the to-be-processed chassis based on the value of the second pin of each target slot.
In the embodiment of the application, the combination condition of the node trays in the to-be-processed chassis can be determined according to the value of the pin FF of each target slot. After determining the value of the pin FF of each target slot, the electronic device may further determine information of the node tray, and further determine a combination condition of the node trays in the to-be-processed chassis according to the information of the node tray. In one possible implementation, the target slots include Slot0, slot1, slot2, and Slot3, and then the information of the node trays can be determined according to the values of pins ff_0, ff_1, ff_2, and ff_3, thereby determining the combination of the node trays according to the information of the node trays.
Step 207, the electronic device determines a target correspondence between the chassis type and the interface information.
The target corresponding relation between the case type and the interface information can be preset and stored in the electronic equipment; that is, the enclosure type and the interface information have a correspondence relationship, and the correspondence relationship may be predetermined according to the history data. In one possible implementation, the target correspondence may be in the form of a table.
Step 208, the electronic device determines target interface information corresponding to the to-be-processed chassis based on the target correspondence and the target type of the to-be-processed chassis.
In the embodiment of the application, the electronic device may substitute the determined target type of the to-be-processed chassis into the target corresponding relationship to obtain the target interface information of the to-be-processed chassis. The electronic device may search interface information of the GUI of the to-be-processed chassis from a correspondence table of the target correspondence according to the target type of the to-be-processed chassis. The GUI may refer to a GUI of a web page, and is a GUI of a web page for managing a chassis.
In a possible implementation manner, as shown in table 1 above, if the determined target Type of the to-be-processed chassis is Type3, then the Type of the interface information of the GUI of the corresponding to-be-processed chassis is Type3, that is, the target interface information of the to-be-processed chassis is the interface information corresponding to Type 3.
Step 209, the electronic device switches the interface information of the to-be-processed chassis to the target interface information.
After determining the current corresponding interface information of the to-be-processed chassis, the electronic device can switch the current interface information of the to-be-processed chassis into target interface information, so that the current interface information of the to-be-processed chassis is matched with information of a node tray inserted into the to-be-processed chassis, and the accuracy of the GUI of the to-be-processed chassis is further ensured.
It should be noted that, in this embodiment, the descriptions of the same steps and the same content as those in other embodiments may refer to the descriptions in other embodiments, and are not repeated here.
According to the information determining method provided by the embodiment of the invention, the combination information of the node trays in the chassis and the interface information corresponding to the chassis under the current node tray combination can be determined according to the slot information of the slot positions of the node trays, namely, the interface information of the chassis under the current node tray combination is accurate and clear, so that the problem that graphical user interfaces are disordered when the node trays are dynamically replaced aiming at the 2U4N chassis in the related technology is solved.
Based on the foregoing embodiments, embodiments of the present application provide an information determining method, as shown with reference to fig. 4, which may include the steps of:
step 301, the electronic device monitors pin information of a first pin of a target slot in the to-be-processed chassis.
Step 302, the electronic device determines whether a node tray is inserted into the target slot based on the pin information of the first pin of the target slot.
Step 303, in the case that the pin information of the first pin of the target slot is the first target information, the electronic device determines that the node tray is inserted into the target slot.
Step 304, the electronic device reads the value of the second pin of each target slot in the to-be-processed chassis.
In step 305, the electronic device determines, based on the value of the second pin of each target slot and the slot identifier of each target slot, a target type of the chassis to be processed.
Wherein the slot identification is used to uniquely identify the target slot.
Step 306, the electronic device determines, for each target slot, a type of node tray into which each target slot is currently inserted based on a value of the second pin of each target slot.
In the embodiment of the present application, for each target slot, the electronic device may determine, according to the value of the pin FF corresponding to the target slot, a type of the node tray into which the target slot is currently inserted; that is, it is necessary to determine which node tray is currently inserted according to the value of the pin FF.
In one possible implementation, if the value of pin FF is 0, then the currently inserted node tray is 1U; if the value of pin FF is 1, then the currently inserted node tray is 2U. It should be noted that, if the target Slot includes Slot0, slot1, slot2, and Slot3, and the values of the pins ff_0, ff_1, ff_2, and ff_3, which are sequentially corresponding to the second pins, are sequentially 1, 0, and 0, it may be stated that the node tray in the target Slot0 is a tray of 2U, the node tray in the target Slot1 is a tray of 1U, the node tray in the target Slot2 is a tray of 1U, and the node tray in the target Slot3 is a tray of 1U.
In other embodiments of the present application, it is preferable to insert 2U trays into slots Slot0 and Slot 1.
Step 307, the electronic device determines the combination information of the node trays in the to-be-processed chassis based on the type of the node tray currently inserted by each target slot.
In the embodiment of the application, after determining the type of the node tray currently inserted in each target slot, the combination condition of the node trays in the to-be-processed chassis can be determined; that is, it is possible to know which type of node tray is inserted in which target slot, and which node trays are included in the processing box.
In one possible implementation, an example of a node tray with different target slots is shown in FIG. 5; the left side of FIG. 5 shows which node tray is currently inserted on the target slot, and the right side of FIG. 5 is an example of a physical chassis and node tray that has the same relationship as the left side of FIG. 5; the first row in fig. 5 shows that all of the node trays 1U are currently inserted into the four target slots Slot0, slot1, slot2, and Slot 3; the second row indicates that all of the node trays 2U, 1U and empty are currently inserted into the four target slots Slot0, slot1, slot2 and Slot 3; the third row shows that all of the node trays 1U, 2U, 1U and empty are currently inserted into the four target slots Slot0, slot1, slot2 and Slot 3; the third row indicates that all of the node trays 2U, empty and empty are currently inserted on the four target slots Slot0, slot1, slot2 and Slot 3. It should be noted that, the Node number corresponding to the target slot may be already determined, and may be read by the system, so as to assign a pin Node ID in each target slot.
Step 308, the electronic device determines a target correspondence between the chassis type and the interface information.
Step 309, the electronic device determines target interface information corresponding to the to-be-processed chassis based on the target correspondence and the target type of the to-be-processed chassis.
Step 310, the electronic device switches the interface information of the to-be-processed chassis to the target interface information.
Step 311, the electronic device controls the type of the to-be-processed chassis to be the target type under the condition that the node tray in the target slot of the to-be-processed chassis is pulled out.
In the embodiment of the application, after the type of the node tray of the target slot position in the to-be-processed chassis and the values of the pins are determined, when the node tray in the target slot position is pulled out, the type of the to-be-processed chassis at the current moment is not changed; that is, the operation of re-detecting the type of the node tray and the node tray combination information is not triggered before the insertion of the new node tray, and the type of the to-be-processed chassis is kept unchanged.
Based on the foregoing embodiment, in other embodiments of the present application, the method may further include the steps of:
in step 312, in the case that the new node tray is inserted into the target slot of the to-be-processed chassis, the electronic device determines that the target slot is currently inserted with new slot information under the new node tray.
Step 313, the electronic device determines, based on the new slot information of the target slot, that the target slot is currently inserted into a new target type of the chassis to be processed under the new node tray and combined information of the new node tray in the chassis to be processed.
In the embodiment of the application, when the node tray inserted in the target slot is changed, that is, the previous node tray is pulled out and a new node tray is inserted, then the operation of redefining the value of the second pin of the node of the target slot is triggered; further, the combination information of the new target type of the chassis to be processed and the new node tray in the chassis to be processed is determined according to the newly determined value of the new second pin. It should be noted that, the determining process of determining the new target type of the chassis to be processed and the combined information of the new node tray in the chassis to be processed is the same as the previous process of determining the target type of the chassis to be processed and the combined information of the node tray in the chassis to be processed. That is, in the embodiment of the application, no matter what type of the node tray is, the information of the type of the chassis and the GUI can be determined in real time even if the existence of the nodes changes.
It should be noted that, in this embodiment, the descriptions of the same steps and the same content as those in other embodiments may refer to the descriptions in other embodiments, and are not repeated here.
According to the information determining method provided by the embodiment of the invention, the combination information of the node trays in the chassis and the interface information corresponding to the chassis under the current node tray combination can be determined according to the slot information of the slot positions of the node trays, namely, the interface information of the chassis under the current node tray combination is accurate and clear, so that the problem that graphical user interfaces are disordered when the node trays are dynamically replaced aiming at the 2U4N chassis in the related technology is solved.
Based on the foregoing embodiments, the present embodiment provides an information determining apparatus, which may be applied to the information determining methods provided in the embodiments corresponding to fig. 1, 2 and 4, and referring to fig. 6, the information processing apparatus 4 may include: a first determination unit 41, a second determination unit 42, and a processing unit 43, wherein:
a first determining unit 41, configured to determine slot information of a target slot having a node tray in a chassis to be processed, when it is monitored that the node tray is inserted into the chassis to be processed;
a second determining unit 42, configured to determine, based on slot information of the target slot, a target type of the chassis to be processed and combined information of the node trays in the chassis to be processed;
the processing unit 43 is configured to determine target interface information corresponding to the to-be-processed chassis based on the target type of the to-be-processed chassis.
In other embodiments of the present application, the first determining unit 41 is further configured to implement the following steps:
the method comprises the steps of monitoring pin information of a first pin of a target slot position in a to-be-processed case;
based on the pin information of the first pin of the target slot, it is determined whether a node tray is inserted into the target slot.
In other embodiments of the present application, the first determining unit 41 is further configured to implement the following steps:
under the condition that the pin information of the first pin of the target slot is first target information, determining that a node tray is inserted into the target slot;
determining pin information of a second pin of the target slot; the slot information comprises pin information of the second pin.
In other embodiments of the present application, the first determining unit 41 is further configured to read a value of the second pin of each target slot in the chassis to be processed;
in other embodiments of the present application, the second determining unit 42 is further configured to implement the following steps:
determining the target type of the to-be-processed chassis based on the value of the second pin of each target slot and the slot identification of each target slot;
the slot position identifier is used for uniquely identifying the target slot position;
and determining the combination information of the node trays in the to-be-processed chassis based on the value of the second pin of each target slot.
In other embodiments of the present application, the second determining unit 42 is further configured to implement the following steps:
determining, for each target slot, a type of node tray into which each target slot is currently inserted based on a value of a second pin of each target slot;
and determining the combination information of the node trays in the to-be-processed chassis based on the type of the node tray currently inserted by each target slot.
In other embodiments of the present application, the processing unit 43 is further configured to implement the following steps:
determining a target corresponding relation between the type of the case and the interface information;
determining target interface information corresponding to the to-be-processed chassis based on the target corresponding relation and the target type of the to-be-processed chassis;
in other embodiments of the present application, the processing unit 43 is further configured to switch the interface information of the to-be-processed chassis to the target interface information.
In other embodiments of the present application, the processing unit 43 is further configured to control the type of the chassis to be processed to be the target type if the node tray in the target slot of the chassis to be processed is pulled out.
In other embodiments of the present application, the processing unit 43 is further configured to implement the following steps:
under the condition that a new node tray is inserted into a target slot position of the to-be-processed chassis, determining that the target slot position is currently inserted with new slot position information under the new node tray;
and determining the new target type of the to-be-processed chassis under the new node tray and the combined information of the new node tray in the to-be-processed chassis based on the new slot information of the target slot.
It should be noted that, in the information determining method provided by the embodiments corresponding to fig. 1, 2 and 4, specific descriptions of steps performed by each unit may be omitted here.
The information determining device provided by the embodiment of the application can determine the combination information of the node trays in the chassis and the interface information corresponding to the chassis under the current node tray combination according to the slot information of the slot positions of the node trays, namely, the interface information of the chassis under the current node tray combination is accurate and clear, so that the problem that graphical user interfaces are disordered when the node trays are dynamically replaced aiming at the 2U4N chassis in the related technology is solved.
Based on the foregoing embodiments, embodiments of the present application provide an electronic device, which may be applied to the information determining methods provided in the corresponding embodiments of fig. 1, 2 and 4, and referring to fig. 7, the electronic device 5 may include: a processor 51, a memory 52 and a communication bus 53, wherein:
a communication bus 53 for enabling communication connection between the processor 51 and the memory 52;
the processor 51 is configured to execute an information processing program in the memory 52 to realize the steps of:
determining slot position information of a target slot position with a node tray in the to-be-processed machine case under the condition that the node tray is inserted into the to-be-processed machine case is monitored;
determining the target type of the machine case to be processed and the combined information of the node trays in the machine case to be processed based on the slot position information of the target slot position;
and determining target interface information corresponding to the to-be-processed chassis based on the target type of the to-be-processed chassis.
In other embodiments of the present application, the processor 51 is configured to execute the information determining program in the memory 52, and the following steps may be implemented:
the method comprises the steps of monitoring pin information of a first pin of a target slot position in a to-be-processed case;
based on the pin information of the first pin of the target slot, it is determined whether a node tray is inserted into the target slot.
In other embodiments of the present application, the processor 51 is configured to execute the information determining program in the memory 52, and determine, when it is monitored that the node tray is inserted into the to-be-processed chassis, slot information of a target slot having the node tray in the to-be-processed chassis, so as to implement the following steps:
under the condition that the pin information of the first pin of the target slot is first target information, determining that a node tray is inserted into the target slot;
determining pin information of a second pin of the target slot; the slot information comprises pin information of the second pin.
In other embodiments of the present application, the processor 51 is configured to execute the pin information of the second pin of the determining target slot of the information determining program in the memory 52, so as to implement the following steps:
reading the value of a second pin of each target slot in the to-be-processed chassis;
in other embodiments of the present application, the processor 51 is configured to execute the target slot-based slot information of the information determining program in the memory 52, determine the target type of the enclosure to be processed and the combined information of the node trays in the enclosure to be processed, so as to implement the following steps:
determining the target type of the to-be-processed chassis based on the value of the second pin of each target slot and the slot identification of each target slot;
the slot position identifier is used for uniquely identifying the target slot position;
and determining the combination information of the node trays in the to-be-processed chassis based on the value of the second pin of each target slot.
In other embodiments of the present application, the processor 51 is configured to execute the information determining program in the memory 52 to determine the combined information of the node trays in the to-be-processed chassis based on the value of the second pin of each target slot, so as to implement the following steps:
determining, for each target slot, a type of node tray into which each target slot is currently inserted based on a value of a second pin of each target slot;
and determining the combination information of the node trays in the to-be-processed chassis based on the type of the node tray currently inserted by each target slot.
In other embodiments of the present application, the processor 51 is configured to execute the information determining program in the memory 52 to determine target interface information corresponding to the to-be-processed chassis based on the target type of the to-be-processed chassis, so as to implement the following steps:
determining a target corresponding relation between the type of the case and the interface information;
and determining target interface information corresponding to the to-be-processed chassis based on the target corresponding relation and the target type of the to-be-processed chassis.
In other embodiments of the present application, the processor 51 is configured to execute the information determining program in the memory 52, and the following steps may be implemented:
and switching the interface information of the to-be-processed chassis to be target interface information.
In other embodiments of the present application, the processor 51 is configured to execute the information determining program in the memory 52, and the following steps may be implemented:
and under the condition that the node tray in the target slot position of the to-be-processed case is pulled out, controlling the type of the to-be-processed case to be a target type.
In other embodiments of the present application, the processor 51 is configured to execute the information determining program in the memory 52, and the following steps may be implemented:
under the condition that a new node tray is inserted into a target slot position of the to-be-processed chassis, determining that the target slot position is currently inserted with new slot position information under the new node tray;
and determining the new target type of the to-be-processed chassis under the new node tray and the combined information of the new node tray in the to-be-processed chassis based on the new slot information of the target slot.
It should be noted that, in the specific implementation process of the steps executed by the processor in this embodiment, reference may be made to the implementation process in the information determining method provided in the corresponding embodiment of fig. 1, 2 and 4, which is not described herein again.
According to the electronic equipment provided by the embodiment of the application, the combination information of the node trays in the chassis and the interface information corresponding to the chassis under the current node tray combination can be determined according to the slot position information of the slot positions of the node trays, namely, the interface information of the chassis under the current node tray combination is accurate and clear, so that the problem that graphical user interfaces are disordered when the node trays are dynamically replaced aiming at the 2U4N chassis in the related technology is solved.
Based on the foregoing embodiments, embodiments of the present application provide a computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of the information determination method provided by the corresponding embodiments of fig. 1, 2, and 4.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application.

Claims (10)

1. An information determination method, the method comprising:
determining slot position information of a target slot position with a node tray in a to-be-processed case under the condition that the node tray is inserted into the to-be-processed case is monitored;
determining the target type of the to-be-processed case and the combined information of the node trays in the to-be-processed case based on the groove position information of the target groove position;
and determining target interface information corresponding to the to-be-processed chassis based on the target type of the to-be-processed chassis.
2. The method of claim 1, wherein, before determining the slot information of the target slot with the node tray in the chassis to be processed if it is detected that the node tray is inserted into the chassis to be processed, further comprises:
monitoring pin information of a first pin of the target slot in the to-be-processed chassis;
and determining whether a node tray is inserted into the target slot based on the pin information of the first pin of the target slot.
3. The method of claim 2, wherein the determining slot information for the target slot with the node tray in the chassis to be processed if it is detected that the node tray is inserted in the chassis to be processed comprises:
determining that a node tray is inserted into the target slot under the condition that the pin information of the first pin of the target slot is first target information;
determining pin information of a second pin of the target slot; the slot information comprises pin information of the second pin.
4. The method of claim 3, wherein the determining pin information for the second pin of the target slot comprises:
reading the value of a second pin of each target slot in the to-be-processed chassis;
correspondingly, the determining, based on the slot position information of the target slot position, the combination information of the target type of the to-be-processed chassis and the node tray in the to-be-processed chassis includes:
determining the target type of the to-be-processed chassis based on the value of the second pin of each target slot and the slot identification of each target slot; wherein the slot identification is used for uniquely identifying the target slot;
and determining the combination information of the node trays in the to-be-processed chassis based on the value of the second pin of each target slot.
5. The method of claim 4, wherein the determining the combined information of the node trays in the chassis to be processed based on the value of the second pin of each target slot comprises:
determining, for each target slot, a type of node tray into which the target slot is currently inserted based on a value of a second pin of the target slot;
and determining the combination information of the node trays in the to-be-processed chassis based on the type of the node tray currently inserted by each target slot.
6. The method of claim 1, wherein the determining, based on the target type of the to-be-processed chassis, target interface information corresponding to the to-be-processed chassis comprises:
determining a target corresponding relation between the type of the case and the interface information;
determining target interface information corresponding to the to-be-processed chassis based on the target corresponding relation and the target type of the to-be-processed chassis;
correspondingly, the method further comprises the steps of:
and switching the interface information of the to-be-processed chassis to the target interface information.
7. The method of claim 1, wherein the method further comprises:
and under the condition that the node tray in the target slot position of the to-be-processed case is pulled out, controlling the type of the to-be-processed case to be the target type.
8. The method of claim 7, wherein after the controlling the type of the pending enclosure to be the target type, further comprises:
under the condition that a new node tray is inserted into the target slot position of the to-be-processed chassis, determining that the target slot position is currently inserted with new slot position information under the new node tray;
and determining new target type of the to-be-processed case under the new node tray and combined information of the new node tray in the to-be-processed case, which are currently inserted into the target slot, based on the new slot information of the target slot.
9. An electronic device, the device comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute an information determining program in a memory to implement the steps of the information determining method according to any one of claims 1 to 8.
10. A computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of the information determination method of any of claims 1-8.
CN202310313174.2A 2023-03-28 2023-03-28 Information determining method, device and computer readable storage medium Pending CN116302757A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310313174.2A CN116302757A (en) 2023-03-28 2023-03-28 Information determining method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310313174.2A CN116302757A (en) 2023-03-28 2023-03-28 Information determining method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116302757A true CN116302757A (en) 2023-06-23

Family

ID=86790308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310313174.2A Pending CN116302757A (en) 2023-03-28 2023-03-28 Information determining method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116302757A (en)

Similar Documents

Publication Publication Date Title
US10255476B2 (en) Fingerprint registration method and device and terminal thereof
US20070073907A1 (en) Device, method and computer program product readable medium for determining the identity of a component
CN105989059A (en) Data record checking method and device
CN111026080A (en) Hardware-in-loop test method and device for controller
CN110275992B (en) Emergency processing method, device, server and computer readable storage medium
CN116302757A (en) Information determining method, device and computer readable storage medium
CN113407973A (en) Software function authority management method, system, server and storage medium
US20190020548A1 (en) Method and apparatus for setting location information
CN109558249B (en) Control method and device for concurrent operation
US20190129713A1 (en) Information processing device, information processing method, and storage medium
CN115203697A (en) File detection method, device and equipment and readable storage medium
CN111552608B (en) Drive memory monitoring method and system
CN110932884B (en) Method and device for adding multiple networks to cloud physical machine
CN111371818B (en) Data request verification method, device and equipment
CN113743552A (en) File box shelf-mounting and shelf-dismounting identification method, computer device and storage medium
CN109241027B (en) Data migration method, device, electronic equipment and computer readable storage medium
CN107797915B (en) Fault repairing method, device and system
CN110781115B (en) Modification method and device for field replaceable unit and storage medium
US20240143474A1 (en) System and method for dynamic sensors support in ipmi stack
CN113032333B (en) Sensor file adding method, device and equipment for server monitoring project
CN108599981A (en) Management method, service card and the communication equipment of service card
CN114237719B (en) USB flash disk identification method, system, computer equipment and storage medium
CN115103020B (en) Data migration processing method and device
CN114756440B (en) Data writing method, device and equipment of smart card and storage medium
CN117873823A (en) Log management method, device, system, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20230727

Address after: 151 Luolongquan # 02-01, Singapore New Technology Park

Applicant after: Lenovo Enterprise Solutions (Singapore) Pte. Ltd.

Address before: 8th Floor, No. 66, Sanzhong Road, Nangang District, Taipei, Taiwan, China, China

Applicant before: Taiwan Lenovo Global Technology Co.,Ltd.

TA01 Transfer of patent application right