CN115102843B - Method and device for obtaining server serial number and computer equipment - Google Patents

Method and device for obtaining server serial number and computer equipment Download PDF

Info

Publication number
CN115102843B
CN115102843B CN202210590302.3A CN202210590302A CN115102843B CN 115102843 B CN115102843 B CN 115102843B CN 202210590302 A CN202210590302 A CN 202210590302A CN 115102843 B CN115102843 B CN 115102843B
Authority
CN
China
Prior art keywords
backboard
information
server
information identification
serial number
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.)
Active
Application number
CN202210590302.3A
Other languages
Chinese (zh)
Other versions
CN115102843A (en
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210590302.3A priority Critical patent/CN115102843B/en
Publication of CN115102843A publication Critical patent/CN115102843A/en
Application granted granted Critical
Publication of CN115102843B publication Critical patent/CN115102843B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3005Mechanisms for avoiding name conflicts
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3015Name registration, generation or assignment
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The application relates to a server serial number acquisition method, a server serial number acquisition device and computer equipment, wherein the method comprises the steps of storing information identification of a backboard into a backboard data flash memory area; when the server serial number needs to be acquired, reading the information identification of the backboard from the backboard data flash memory area, wherein the backboard is installed on the server; and acquiring the server serial numbers from a preset relation mapping table based on the information identification of the backboard, wherein the relation mapping table stores the server serial numbers and the information identification of the backboard in one-to-one correspondence. After the server is electrified, the server can automatically acquire the server serial number without waiting for manual input of the server serial number, and the method has the advantages of reducing manual intervention, reducing human error probability and improving the serial number acquisition efficiency and accuracy.

Description

Method and device for obtaining server serial number and computer equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, and a computer device for obtaining a server serial number.
Background
At present, the demand of society for servers is larger and larger, the delivery of servers is larger and larger, and the demand of production lines for automatic diagnosis of servers and internal hardware equipment thereof is more and more urgent. In the process of selling the server, some servers are sold by a distributor agent, some servers are sold by manufacturers directly, after the clients purchase the servers, if the hardware equipment on the servers fails and needs to be returned to the factories for maintenance or replacement, the manufacturers of the servers usually confirm whether the servers needing to be maintained or replaced belong to the manufacturers or not based on the serial numbers of the servers, and the manufacturers of the servers confirm the information of the servers based on the serial numbers of the servers.
However, in the prior art, when performing fault diagnosis and information confirmation on a server, an operation and maintenance person is required to manually or scan the server serial number into a fault diagnosis system and an information confirmation system. On the one hand, when the server serial number is manually input into the server fault diagnosis system and the information confirmation system, the situation that the server serial number is wrongly input is unavoidable; on the other hand, manual input of the server serial number is low in efficiency, and the overall efficiency of server fault detection and information confirmation is affected; on the other hand, as the service life of the server increases, the difficulty in acquiring the serial number of the server increases.
Therefore, it is highly desirable to provide a server serial number acquisition method, device and computer equipment that can reduce human intervention, avoid human error, and improve the server serial number acquisition efficiency.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a server serial number acquisition method, apparatus, and computer device that can reduce human intervention, avoid human error, and improve server serial number acquisition efficiency.
In one aspect, a method for obtaining a server serial number is provided, the method includes:
storing the information identification of the backboard into a backboard data flash memory area;
when the server serial number needs to be acquired, reading the information identification of the backboard from the backboard data flash memory area, wherein the backboard is installed on the server;
and acquiring the server serial numbers from a preset relation mapping table based on the information identification of the backboard, wherein the relation mapping table stores the server serial numbers and the information identification of the backboard in one-to-one correspondence.
In one embodiment, before storing the information identifier of the backplane in the backplane data flash memory area, the method further includes: generating an information identifier corresponding to the backboard based on a preset coding rule; when the back plate is installed on the server, the method further comprises: and acquiring the information identification of the backboard and the serial number of the server provided with the backboard, generating the relation mapping table based on the information identification of the backboard and the serial number of the server, and storing the relation mapping table into a server data storage area.
In one embodiment, after generating the information identifier corresponding to the back board, the method further includes: carrying out uniqueness verification based on the information identification of the backboard so as to judge whether the information identification of the backboard meets uniqueness requirements; if the information identification of the backboard meets the uniqueness requirement, storing the information identification of the backboard into a backboard data flash memory area, generating a backboard two-dimensional code information label based on the information identification of the backboard, and pasting the backboard two-dimensional code information label on the backboard; and if the information identification of the backboard does not meet the uniqueness requirement, sending an alarm, and pushing the information identification of the backboard to an operation and maintenance end.
In one embodiment, generating the relationship mapping table based on the information identification of the backplane and the server serial number includes:
generating a server two-dimension code information label based on the server serial number, and pasting the server two-dimension code information label on the server; and when the backboard is installed on the server, correspondingly scanning the server two-dimensional code information tag and the backboard two-dimensional code information tag to generate the relation mapping table.
In one embodiment, generating the information identifier corresponding to the back plate based on a preset encoding rule includes:
The method comprises the steps of obtaining a board card type of the backboard, and generating a first information code, wherein the first information code occupies two code bits; acquiring the production date of the backboard, and generating a second information code, wherein the second information code occupies four coding bits; the production year and the production month of the backboard occupy one coding position respectively, and the production day of the backboard occupies two coding positions; acquiring a manufacturer code of the backboard, and generating a third information code, wherein the third information code occupies two coding bits; acquiring a product serial number of the backboard, and generating a fourth information code, wherein the fourth information code occupies four coding bits; obtaining a production batch of the backboard, and generating a fifth information code, wherein the fifth information code occupies three code bits; and generating an information identifier corresponding to the backboard according to the sequence of the first information code, the second information code, the third information code, the fourth information code and the fifth information code.
In one embodiment, the unique verification based on the information identification of the backboard includes:
storing the information identification of each backboard to a storage unit; traversing the information identification in the storage unit based on the information identification of the current backboard, and judging whether the information identification consistent with the information identification of the current backboard exists in the storage unit or not; if the storage unit area does not have the information identification consistent with the information identification of the current backboard, judging that the information identification of the current backboard meets the uniqueness requirement; if the information identification consistent with the information identification of the current backboard exists in the storage unit, judging that the information identification of the current backboard does not meet the uniqueness requirement.
In one embodiment, before reading the information identifier of the back plate from the back plate data flash area, the method further includes: acquiring the type of the board card of the backboard; acquiring an acquisition mode of the information identifier of the backboard from a preset configuration file based on the board card type of the backboard, wherein the configuration file stores the acquisition modes of the information identifiers corresponding to the backboard of different board card types; and acquiring the information identification of the backboard based on the information identification acquisition mode.
In one embodiment, after obtaining the information identifier of the back plane installed on the server, the method further includes:
and carrying out fault diagnosis on each hardware device in the server based on the server serial number.
In yet another aspect, a server serial number acquisition apparatus includes:
the information identification storage unit is used for storing the information identification of the backboard to the backboard data flash memory area;
the information identification acquisition unit is used for reading the information identification of the backboard from the backboard data flash memory area when the server serial number needs to be acquired, and the backboard is installed on the server;
the serial number acquisition unit is in communication connection with the information identification acquisition unit, and is used for acquiring the server serial number from a preset relation mapping table based on the information identification of the backboard, wherein the relation mapping table stores the server serial number and the information identification of the backboard in a one-to-one correspondence.
In yet another aspect, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of:
storing the information identification of the backboard into a backboard data flash memory area;
when the server serial number needs to be acquired, reading the information identification of the backboard from the backboard data flash memory area, wherein the backboard is installed on the server;
and acquiring the server serial numbers from a preset relation mapping table based on the information identification of the backboard, wherein the relation mapping table stores the server serial numbers and the information identification of the backboard in one-to-one correspondence.
The method comprises the steps of storing information identification of a backboard into a backboard data flash memory area; when the server serial number needs to be acquired, reading the information identification of the backboard from the backboard data flash memory area, wherein the backboard is installed on the server; and acquiring the server serial numbers from a preset relation mapping table based on the information identification of the backboard, wherein the relation mapping table stores the server serial numbers and the information identification of the backboard in one-to-one correspondence. After the server is electrified, the server can automatically acquire the server serial number without waiting for manual input of the server serial number, and the method has the advantages of reducing manual intervention, reducing human error probability and improving the serial number acquisition efficiency and accuracy.
Drawings
FIG. 1 is an application environment diagram of a server serial number acquisition method in one embodiment;
FIG. 2 is a flow chart of a server serial number acquisition method in one embodiment;
FIG. 3 is a flow diagram of server serial number acquisition in one embodiment;
FIG. 4 is a flow diagram of unique verification of information identification of a backplane in one embodiment;
FIG. 5 is a flowchart of a server serial number acquisition method according to an embodiment;
FIG. 6 is a block diagram of a server serial number acquisition device in one embodiment;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Example 1
The server serial number acquisition method provided by the application can be applied to an application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. After the server 104 is powered on, the server fault diagnosis system starts to perform fault detection operation, that is, as long as the server 104 is in the powered-on state, the server fault diagnosis system is always in the fault detection state. The terminal 102 monitors the working state of the server 104 in real time, and preferably, the server 104 can send its own working state to the terminal 102 periodically, so as to enable the operation and maintenance personnel to know the working state of the server 104 in real time through the terminal 102. The terminal 102 may be, but not limited to, various personal computers, notebook computers, and smart phones, and the server 104 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a server serial number obtaining method is provided, and the method is applied to the server in fig. 1 for illustration, and includes the following steps:
step A: storing the information identification of the backboard into a backboard data flash memory area;
and (B) step (B): when the server serial number needs to be acquired, reading the information identification of the backboard from the backboard data flash memory area, wherein the backboard is installed on the server;
step C: and acquiring the server serial numbers from a preset relation mapping table based on the information identification of the backboard, wherein the relation mapping table stores the server serial numbers and the information identification of the backboard in one-to-one correspondence.
It should be understood that when the backboard is installed inside the server, after the server is powered on, the server fault diagnosis system will automatically operate, when the server fault diagnosis system diagnoses that the server and the internal hardware equipment thereof have problems, a fault alarm or a fault prompt will be correspondingly sent to operation and maintenance personnel. In short, the server is composed of various hardware devices, and the mechanical devices formed by the various hardware devices are called servers, and when each hardware device is installed, an installation base similar to a computer case is required, that is, the server needs a server installation base. When a server fails, an operator needs to identify the server with the failure based on the information of the server installation matrix, and then determine the failure source of the server based on the failure alarm information. In the prior art, a person skilled in the art usually adopts a manual scanning or manual input mode to input the server serial number to a server fault diagnosis system, but in this way, on one hand, the working intensity of operation and maintenance personnel is increased, and the working efficiency is reduced; on the other hand, when the server serial number is manually input, the server serial number input error is inevitably generated.
Before the backboard is installed in the server, namely, during the backboard production stage, the information identification of any backboard is subjected to unique coding, the server fault diagnosis system can perform fault detection on the backboard installed in the server in the operation process, the information of the backboard can be directly read, the server and the backboard installed in the server are in one-to-one correspondence, namely, one backboard corresponds to one server, or a plurality of backboard corresponds to one server, namely, the corresponding server information identification can be obtained as long as the information identification of the backboard is obtained, and further, the server serial number is the server information identification, so that the server serial number can be correspondingly obtained as long as the information identification of the backboard is obtained, and the server serial number is not required to be manually input into the server fault diagnosis system. It should be understood that a flash memory area for storing data is provided on any server, and when the back board is used for being installed on a storage server, in a factory processing stage of the back board, an important product data writing script is used to write information identification information of the back board into an important product data flash memory area corresponding to the back board. The storage of important data can be realized based on inherent hardware equipment of the server without adding a new storage unit, so that the resource consumption is reduced, and the cost is saved.
The server serial number obtaining method comprises the steps of storing information identification of a backboard into a backboard data flash memory area; when the server serial number needs to be acquired, reading the information identification of the backboard from the backboard data flash memory area, wherein the backboard is installed on the server; and acquiring the server serial numbers from a preset relation mapping table based on the information identification of the backboard, wherein the relation mapping table stores the server serial numbers and the information identification of the backboard in one-to-one correspondence. After the server is electrified, the server can automatically acquire the server serial number without waiting for manual input of the server serial number, and the method has the advantages of reducing manual intervention, reducing human error probability and improving the serial number acquisition efficiency and accuracy.
In one embodiment, as shown in fig. 3, before storing the information identifier of the backplane to the backplane data flash memory area, the method further includes: generating an information identifier corresponding to the backboard based on a preset coding rule; when the back plate is installed on the server, the method further comprises: and acquiring the information identification of the backboard and the serial number of the server provided with the backboard, generating the relation mapping table based on the information identification of the backboard and the serial number of the server, and storing the relation mapping table into a server data storage area.
In one embodiment, as shown in fig. 4, after generating the information identifier corresponding to the back plane, the method further includes:
carrying out uniqueness verification based on the information identification of the backboard so as to judge whether the information identification of the backboard meets uniqueness requirements; if the information identification of the backboard meets the uniqueness requirement, storing the information identification of the backboard into a backboard data flash memory area, generating a backboard two-dimensional code information label based on the information identification of the backboard, and pasting the backboard two-dimensional code information label on the backboard; and if the information identification of the backboard does not meet the uniqueness requirement, sending an alarm, and pushing the information identification of the backboard to an operation and maintenance end. And pushing the information identification of the backboard to an operation and maintenance end. If the information identification of the back plate does not meet the uniqueness requirement, that is, if two or more back plates are identical in information identification, when the server fault diagnosis system obtains the serial numbers of the servers based on the information identification of the back plates, the situation of locking the plurality of servers is likely to happen, so that operation and maintenance personnel cannot accurately lock the servers with abnormal running states at the first time.
In one embodiment, generating the relationship mapping table based on the information identification of the backplane and the server serial number includes: generating a server two-dimension code information label based on the server serial number, and pasting the server two-dimension code information label on the server; and when the backboard is installed on the server, correspondingly scanning the server two-dimensional code information tag and the backboard two-dimensional code information tag to generate the relation mapping table.
Specifically, in the whole machine assembly production stage, when the backboard is installed in the server, the server two-dimensional code information tag and the backboard two-dimensional code information tag are correspondingly scanned, and the relation mapping table is generated.
In one embodiment, the generating the relationship mapping table includes: the method comprises the steps of infrared code scanning, camera code scanning, radio frequency scanning and manual input.
Specifically, when the number of the servers in each cubic meter of space exceeds a first threshold value, acquiring the server serial number and the information identification of the backboard according to the scanning mode of the radio frequency scanning, and generating the relation mapping table; when the number of the servers in each cubic meter of space is lower than a first threshold value, correspondingly scanning the server two-dimensional code information tag and the backboard two-dimensional code information tag according to the scanning mode of the infrared scanning code scanning, and generating the relation mapping table.
In one embodiment, generating the information identifier corresponding to the back plate based on a preset encoding rule includes: the method comprises the steps of obtaining a board card type of the backboard, and generating a first information code, wherein the first information code occupies two code bits; acquiring the production date of the backboard, and generating a second information code, wherein the second information code occupies four coding bits; the production year and the production month of the backboard occupy one coding position respectively, and the production day of the backboard occupies two coding positions; acquiring a manufacturer code of the backboard, and generating a third information code, wherein the third information code occupies two coding bits; acquiring a product serial number of the backboard, and generating a fourth information code, wherein the fourth information code occupies four coding bits; obtaining a production batch of the backboard, and generating a fifth information code, wherein the fifth information code occupies three code bits; and generating an information identifier corresponding to the backboard according to the sequence of the first information code, the second information code, the third information code, the fourth information code and the fifth information code.
In one embodiment, the unique verification based on the information identification of the backboard comprises: storing the information identification of each backboard to a storage unit; traversing the information identification in the storage unit based on the information identification of the current backboard, and judging whether the information identification consistent with the information identification of the current backboard exists in the storage unit or not; if the storage unit area does not have the information identification consistent with the information identification of the current backboard, judging that the information identification of the current backboard meets the uniqueness requirement; if the information identification consistent with the information identification of the current backboard exists in the storage unit, judging that the information identification of the current backboard does not meet the uniqueness requirement.
In one embodiment, before reading the information identifier of the backplane from the backplane data flash region, the method further comprises: acquiring the type of the board card of the backboard; acquiring an acquisition mode of the information identifier of the backboard from a preset configuration file based on the board card type of the backboard, wherein the configuration file stores the acquisition modes of the information identifiers corresponding to the backboard of different board card types; and acquiring the information identification of the backboard based on the information identification acquisition mode.
In one embodiment, as shown in fig. 5, after obtaining the server serial number, the method includes: and carrying out fault diagnosis on each hardware device in the server based on the server serial number.
Specifically, after the server is powered on or when operation and maintenance personnel need to acquire the server serial number, the server can automatically acquire the server serial number, automatically perform fault detection on the server and internal hardware equipment thereof, and the server serial number does not need to be input manually, so that on one hand, the manpower consumption can be reduced, on the other hand, the server fault diagnosis system can automatically acquire the server serial number, and the technical defect of low accuracy when the server serial number is input manually can be effectively avoided, and the server fault diagnosis system has the beneficial effect of improving the efficiency of the server fault diagnosis system.
It should be understood by those skilled in the art that the method for obtaining the server serial number is not limited to generating the relationship mapping table based on the information identification of the backboard installed on the server and the server serial number, but may also be generating the relationship mapping table based on the server serial number corresponding to the information identification of other hardware devices in the server, and only needs to ensure that the information identification based on other hardware devices can be automatically obtained, and the information identification based on other hardware devices can uniquely correspond to the server serial number and lock the target server.
It should be understood that, although the steps in the flowcharts of fig. 2-5 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-5 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or steps.
Example two
The server serial number acquisition method provided by the application comprises the following steps:
step A, storing information identification of a backboard to a backboard data flash memory area;
and (B) step (B): when the server serial number needs to be acquired, reading the information identification of the backboard from the backboard data flash memory area, wherein the backboard is installed on the server;
step C: and acquiring the server serial numbers from a preset relation mapping table based on the information identification of the backboard, wherein the relation mapping table stores the server serial numbers and the information identification of the backboard in one-to-one correspondence.
In one embodiment, before storing the information identification of the backplane in the backplane data flash region, the method further comprises: generating an information identifier corresponding to the backboard based on a preset coding rule; when the back plate is installed on the server, the method further comprises: and acquiring the information identification of the backboard and the serial number of the server provided with the backboard, generating the relation mapping table based on the information identification of the backboard and the serial number of the server, and storing the relation mapping table into a server data storage area.
In one embodiment, after generating the information identifier corresponding to the back plane, the method further includes: carrying out uniqueness verification based on the information identification of the backboard so as to judge whether the information identification of the backboard meets uniqueness requirements; if the information identification of the backboard meets the uniqueness requirement, storing the information identification of the backboard into a backboard data flash memory area, generating a backboard two-dimensional code information label based on the information identification of the backboard, and pasting the backboard two-dimensional code information label on the backboard; and if the information identification of the backboard does not meet the uniqueness requirement, sending an alarm, and pushing the information identification of the backboard to an operation and maintenance end.
In one embodiment, generating the relationship mapping table based on the information identification of the backplane and the server serial number includes: generating a server two-dimension code information label based on the server serial number, and pasting the server two-dimension code information label on the server; and when the backboard is installed on the server, correspondingly scanning the server two-dimensional code information tag and the backboard two-dimensional code information tag to generate the relation mapping table.
In one embodiment, the generating the relationship mapping table includes: the method comprises the steps of infrared code scanning, camera code scanning, radio frequency scanning and manual input.
In one embodiment, generating the information identifier corresponding to the back plate based on a preset encoding rule includes: the method comprises the steps of obtaining a board card type of the backboard, and generating a first information code, wherein the first information code occupies two code bits; acquiring the production date of the backboard, and generating a second information code, wherein the second information code occupies four coding bits; the production year and the production month of the backboard occupy one coding position respectively, and the production day of the backboard occupies two coding positions; acquiring a manufacturer code of the backboard, and generating a third information code, wherein the third information code occupies two coding bits; acquiring a product serial number of the backboard, and generating a fourth information code, wherein the fourth information code occupies four coding bits; obtaining a production batch of the backboard, and generating a fifth information code, wherein the fifth information code occupies three code bits; and generating an information identifier corresponding to the backboard according to the sequence of the first information code, the second information code, the third information code, the fourth information code and the fifth information code.
In one embodiment, the unique verification based on the information identification of the backboard comprises: storing the information identification of each backboard to a storage unit; traversing the information identification in the storage unit based on the information identification of the current backboard, and judging whether the information identification consistent with the information identification of the current backboard exists in the storage unit or not; if the storage unit area does not have the information identification consistent with the information identification of the current backboard, judging that the information identification of the current backboard meets the uniqueness requirement; if the information identification consistent with the information identification of the current backboard exists in the storage unit, judging that the information identification of the current backboard does not meet the uniqueness requirement.
In one embodiment, before reading the information identifier of the backplane from the backplane data flash region, the method further comprises: acquiring the type of the board card of the backboard; acquiring an acquisition mode of the information identifier of the backboard from a preset configuration file based on the board card type of the backboard, wherein the configuration file stores the acquisition modes of the information identifiers corresponding to the backboard of different board card types; and acquiring the information identification of the backboard based on the information identification acquisition mode.
In one embodiment, after obtaining the server serial number, the method includes: and carrying out fault diagnosis on each hardware device in the server based on the server serial number.
Example III
In one embodiment, as shown in fig. 6, there is provided a server serial number acquisition apparatus, the apparatus including:
the information identification storage unit is used for storing the information identification of the backboard to the backboard data flash memory area;
an information identifier obtaining unit, configured to read an information identifier of the back plate from the back plate data flash memory area when the server serial number needs to be obtained;
the serial number acquisition unit is in communication connection with the information identification acquisition unit, and is used for acquiring the server serial number from a preset relation mapping table based on the information identification of the backboard, wherein the relation mapping table stores the server serial number and the information identification of the backboard in a one-to-one correspondence.
In one embodiment, the apparatus further comprises: the information identification generating unit is used for generating an information identification corresponding to the backboard based on a preset coding rule;
And the relation mapping table generating unit is in communication connection with the information identification generating unit and is used for acquiring the information identification of the backboard and the server serial number provided with the backboard, generating the relation mapping table based on the information identification of the backboard and the server serial number, and storing the relation mapping table into a server data storage area.
In one embodiment, the apparatus further comprises: the uniqueness verification unit is used for carrying out uniqueness verification based on the information identification of the backboard so as to judge whether the information identification of the backboard meets the uniqueness requirement; if the information identification of the backboard meets the uniqueness requirement, storing the information identification of the backboard into a backboard data flash memory area, generating a backboard two-dimensional code information label based on the information identification of the backboard, and pasting the backboard two-dimensional code information label on the backboard; and if the information identification of the backboard does not meet the uniqueness requirement, sending an alarm, and pushing the information identification of the backboard to an operation and maintenance end.
In one embodiment, the uniqueness verification unit is further configured to traverse the information identifier in the backboard data flash memory area based on the information identifier of the current backboard, and determine whether an information identifier consistent with the information identifier of the current backboard exists in the backboard data flash memory area; if the information identification consistent with the information identification of the current backboard does not exist in the backboard data flash memory area, judging that the information identification of the current backboard meets the uniqueness requirement; if the information identification consistent with the information identification of the current backboard exists in the backboard data flash memory area, judging that the information identification of the current backboard does not meet the uniqueness requirement.
In one embodiment, the apparatus further comprises: the information identification generating unit is also used for acquiring the type of the board card of the backboard and generating a first information code, and the first information code occupies two code bits; acquiring the production date of the backboard, and generating a second information code, wherein the second information code occupies four coding bits; the production year and the production month of the backboard occupy one coding position respectively, and the production day of the backboard occupies two coding positions; acquiring a manufacturer code of the backboard, and generating a third information code, wherein the third information code occupies two coding bits; acquiring a product serial number of the backboard, and generating a fourth information code, wherein the fourth information code occupies four coding bits; obtaining a production batch of the backboard, and generating a fifth information code, wherein the fifth information code occupies three code bits; and generating an information identifier corresponding to the backboard according to the sequence of the first information code, the second information code, the third information code, the fourth information code and the fifth information code.
In one embodiment, the information identifier obtaining unit is further configured to obtain a board type of the backplane; acquiring an acquisition mode of the information identifier of the backboard from a preset configuration file based on the board card type of the backboard, wherein the configuration file stores the acquisition modes of the information identifiers corresponding to the backboard of different board card types; and acquiring the information identification of the backboard based on the information identification acquisition mode.
In one embodiment, the apparatus further comprises: and the fault diagnosis unit is used for carrying out fault diagnosis on the server and each hardware device in the server based on the server serial number.
The specific limitation of the server serial number acquisition device may be referred to the limitation of the server serial number acquisition method hereinabove, and will not be described herein. It should be understood that the server serial number obtaining device includes a server serial number obtaining device, and the specific limitation of the server serial number obtaining device can be referred to the limitation of the server serial number obtaining method hereinabove, which is not repeated herein. The respective modules in the server serial number acquisition device described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
Example IV
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a server serial number acquisition method and a server serial number acquisition method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of when executing the computer program:
step A: storing the information identification of the backboard into a backboard data flash memory area;
and (B) step (B): when the server serial number needs to be acquired, reading the information identification of the backboard from the backboard data flash memory area, wherein the backboard is installed on the server;
step C: and acquiring the server serial numbers from a preset relation mapping table based on the information identification of the backboard, wherein the relation mapping table stores the server serial numbers and the information identification of the backboard in one-to-one correspondence.
In one embodiment, the processor when executing the computer program further performs the steps of:
And carrying out fault diagnosis on each hardware device in the server based on the server serial number.
In one embodiment, the processor when executing the computer program further performs the steps of:
generating an information identifier corresponding to the backboard based on a preset coding rule; and acquiring the information identification of the backboard and the serial number of the server provided with the backboard, generating the relation mapping table based on the information identification of the backboard and the serial number of the server, and storing the relation mapping table into a server data storage area.
In one embodiment, the processor when executing the computer program further performs the steps of: carrying out uniqueness verification based on the information identification of the backboard so as to judge whether the information identification of the backboard meets uniqueness requirements; if the information identification of the backboard meets the uniqueness requirement, storing the information identification of the backboard into a backboard data flash memory area, generating a backboard two-dimensional code information label based on the information identification of the backboard, and pasting the backboard two-dimensional code information label on the backboard; and if the information identification of the backboard does not meet the uniqueness requirement, sending an alarm, and pushing the information identification of the backboard to an operation and maintenance end.
In one embodiment, the processor when executing the computer program further performs the steps of:
generating a server two-dimension code information label based on the server serial number, and pasting the server two-dimension code information label on the server; and when the backboard is installed on the server, correspondingly scanning the server two-dimensional code information tag and the backboard two-dimensional code information tag to generate the relation mapping table.
In one embodiment, the processor when executing the computer program further performs the steps of:
the method comprises the steps of obtaining a board card type of the backboard, and generating a first information code, wherein the first information code occupies two code bits; acquiring the production date of the backboard, and generating a second information code, wherein the second information code occupies four coding bits; the production year and the production month of the backboard occupy one coding position respectively, and the production day of the backboard occupies two coding positions; acquiring a manufacturer code of the backboard, and generating a third information code, wherein the third information code occupies two coding bits; acquiring a product serial number of the backboard, and generating a fourth information code, wherein the fourth information code occupies four coding bits; obtaining a production batch of the backboard, and generating a fifth information code, wherein the fifth information code occupies three code bits; and generating an information identifier corresponding to the backboard according to the sequence of the first information code, the second information code, the third information code, the fourth information code and the fifth information code.
In one embodiment, the processor when executing the computer program further performs the steps of:
storing the information identification of each backboard to a storage unit; traversing the information identification in the storage unit based on the information identification of the current backboard, and judging whether the information identification consistent with the information identification of the current backboard exists in the storage unit or not; if the storage unit area does not have the information identification consistent with the information identification of the current backboard, judging that the information identification of the current backboard meets the uniqueness requirement; if the information identification consistent with the information identification of the current backboard exists in the storage unit, judging that the information identification of the current backboard does not meet the uniqueness requirement.
In one embodiment, the processor when executing the computer program further performs the steps of:
acquiring the type of the board card of the backboard; acquiring an acquisition mode of the information identifier of the backboard from a preset configuration file based on the board card type of the backboard, wherein the configuration file stores the acquisition modes of the information identifiers corresponding to the backboard of different board card types; and acquiring the information identification of the backboard based on the information identification acquisition mode.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (8)

1. A server serial number acquisition method, the method comprising:
storing the information identification of the backboard into a backboard data flash memory area;
when the server serial number needs to be acquired, reading the information identification of the backboard from the backboard data flash memory area, wherein the backboard is installed on the server;
based on the information identification of the backboard, the server serial number is obtained from a preset relation mapping table, and the relation mapping table stores the server serial number and the information identification of the backboard in one-to-one correspondence;
Before the information identification of the backboard is stored in the backboard data flash memory area, the method further comprises the steps of: generating an information identifier corresponding to the backboard based on a preset coding rule;
when the back plate is installed on the server, the method further comprises: acquiring an information identifier of the backboard and a server serial number provided with the backboard, generating the relation mapping table based on the information identifier of the backboard and the server serial number, and storing the relation mapping table into a server data storage area;
after generating the information identifier corresponding to the backboard, the method further comprises the following steps:
carrying out uniqueness verification based on the information identification of the backboard so as to judge whether the information identification of the backboard meets uniqueness requirements;
if the information identification of the backboard meets the uniqueness requirement, storing the information identification of the backboard into a backboard data flash memory area, generating a backboard two-dimensional code information label based on the information identification of the backboard, and pasting the backboard two-dimensional code information label on the backboard;
generating the relationship mapping table based on the information identification of the backboard and the server serial number comprises the following steps:
generating a server two-dimension code information label based on the server serial number, and pasting the server two-dimension code information label on the server;
And when the backboard is installed on the server, correspondingly scanning the server two-dimensional code information tag and the backboard two-dimensional code information tag to generate the relation mapping table.
2. The method for obtaining a serial number of a server according to claim 1, wherein after generating an information identifier corresponding to the back plane, the method further comprises:
and if the information identification of the backboard does not meet the uniqueness requirement, sending an alarm, and pushing the information identification of the backboard to an operation and maintenance end.
3. The method for obtaining a serial number of a server according to claim 1, wherein generating an information identifier corresponding to the back plane based on a preset encoding rule includes:
the method comprises the steps of obtaining a board card type of the backboard, and generating a first information code, wherein the first information code occupies two code bits;
acquiring the production date of the backboard, and generating a second information code, wherein the second information code occupies four coding bits; the production year and the production month of the backboard occupy one coding position respectively, and the production day of the backboard occupies two coding positions;
acquiring a manufacturer code of the backboard, and generating a third information code, wherein the third information code occupies two coding bits;
Acquiring a product serial number of the backboard, and generating a fourth information code, wherein the fourth information code occupies four coding bits;
obtaining a production batch of the backboard, and generating a fifth information code, wherein the fifth information code occupies three code bits;
and generating an information identifier corresponding to the backboard according to the sequence of the first information code, the second information code, the third information code, the fourth information code and the fifth information code.
4. The server serial number acquisition method according to claim 3, wherein the uniqueness verification based on the information identification of the back plane includes:
storing the information identification of each backboard to a storage unit;
traversing the information identification in the storage unit based on the information identification of the current backboard, and judging whether the information identification consistent with the information identification of the current backboard exists in the storage unit or not;
if the storage unit area does not have the information identification consistent with the information identification of the current backboard, judging that the information identification of the current backboard meets the uniqueness requirement;
if the information identification consistent with the information identification of the current backboard exists in the storage unit, judging that the information identification of the current backboard does not meet the uniqueness requirement.
5. The method of claim 4, wherein before reading the information identifier of the backplane from the backplane data flash memory area, the method further comprises:
acquiring the type of the board card of the backboard;
acquiring an acquisition mode of the information identifier of the backboard from a preset configuration file based on the board card type of the backboard, wherein the configuration file stores the acquisition modes of the information identifiers corresponding to the backboard of different board card types;
and acquiring the information identification of the backboard based on the information identification acquisition mode.
6. The method for obtaining a server serial number according to any one of claims 1 to 5, wherein after obtaining the server serial number, the method includes:
and carrying out fault diagnosis on each hardware device in the server based on the server serial number.
7. A server serial number acquisition apparatus, characterized in that the apparatus comprises:
the information identification storage unit is used for storing the information identification of the backboard to the backboard data flash memory area;
the information identification acquisition unit is used for reading the information identification of the backboard from the backboard data flash memory area when the server serial number needs to be acquired, and the backboard is installed on the server;
The serial number acquisition unit is in communication connection with the information identification acquisition unit and is used for acquiring the server serial number from a preset relation mapping table based on the information identification of the backboard, and the relation mapping table stores the server serial number and the information identification of the backboard in a one-to-one correspondence;
wherein the apparatus further comprises: the information identification generating unit is used for generating an information identification corresponding to the backboard based on a preset coding rule;
the relation mapping table generating unit is in communication connection with the information identification generating unit and is used for acquiring the information identification of the backboard and a server serial number provided with the backboard, generating the relation mapping table based on the information identification of the backboard and the server serial number, and storing the relation mapping table into a server data storage area;
the apparatus further comprises: the uniqueness verification unit is used for carrying out uniqueness verification based on the information identification of the backboard so as to judge whether the information identification of the backboard meets the uniqueness requirement; if the information identification of the backboard meets the uniqueness requirement, storing the information identification of the backboard into a backboard data flash memory area, generating a backboard two-dimensional code information label based on the information identification of the backboard, and pasting the backboard two-dimensional code information label on the backboard;
The relation mapping table generating unit is further configured to:
generating a server two-dimension code information label based on the server serial number, and pasting the server two-dimension code information label on the server;
and when the backboard is installed on the server, correspondingly scanning the server two-dimensional code information tag and the backboard two-dimensional code information tag to generate the relation mapping table.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 6 when the computer program is executed by the processor.
CN202210590302.3A 2022-05-26 2022-05-26 Method and device for obtaining server serial number and computer equipment Active CN115102843B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210590302.3A CN115102843B (en) 2022-05-26 2022-05-26 Method and device for obtaining server serial number and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210590302.3A CN115102843B (en) 2022-05-26 2022-05-26 Method and device for obtaining server serial number and computer equipment

Publications (2)

Publication Number Publication Date
CN115102843A CN115102843A (en) 2022-09-23
CN115102843B true CN115102843B (en) 2023-07-14

Family

ID=83288597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210590302.3A Active CN115102843B (en) 2022-05-26 2022-05-26 Method and device for obtaining server serial number and computer equipment

Country Status (1)

Country Link
CN (1) CN115102843B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107402720A (en) * 2017-06-30 2017-11-28 郑州云海信息技术有限公司 A kind of processing method of hard disk, device and terminal
CN110096685A (en) * 2019-04-28 2019-08-06 新华三信息安全技术有限公司 A kind of device identification generation method and device
CN110659165A (en) * 2019-08-30 2020-01-07 苏州浪潮智能科技有限公司 Multi-node server automatic testing method and device
CN112214384A (en) * 2020-09-18 2021-01-12 苏州浪潮智能科技有限公司 Hard disk serial number management method, system, terminal and storage medium
CN112415358A (en) * 2019-08-22 2021-02-26 上海为彪汽配制造有限公司 Fault tracing method, storage medium, electronic device and system
CN112948902A (en) * 2021-01-26 2021-06-11 苏州浪潮智能科技有限公司 Asset information confirmation method, system and medium
CN113127486A (en) * 2021-04-13 2021-07-16 山东英信计算机技术有限公司 Information collection and storage method, device, equipment and storage medium
CN113238916A (en) * 2021-05-14 2021-08-10 山东英信计算机技术有限公司 Server asset management method, BMC, management background and terminal
CN113853824A (en) * 2019-10-26 2021-12-28 华为技术有限公司 Communication method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107402720A (en) * 2017-06-30 2017-11-28 郑州云海信息技术有限公司 A kind of processing method of hard disk, device and terminal
CN110096685A (en) * 2019-04-28 2019-08-06 新华三信息安全技术有限公司 A kind of device identification generation method and device
CN112415358A (en) * 2019-08-22 2021-02-26 上海为彪汽配制造有限公司 Fault tracing method, storage medium, electronic device and system
CN110659165A (en) * 2019-08-30 2020-01-07 苏州浪潮智能科技有限公司 Multi-node server automatic testing method and device
CN113853824A (en) * 2019-10-26 2021-12-28 华为技术有限公司 Communication method and device
CN112214384A (en) * 2020-09-18 2021-01-12 苏州浪潮智能科技有限公司 Hard disk serial number management method, system, terminal and storage medium
CN112948902A (en) * 2021-01-26 2021-06-11 苏州浪潮智能科技有限公司 Asset information confirmation method, system and medium
CN113127486A (en) * 2021-04-13 2021-07-16 山东英信计算机技术有限公司 Information collection and storage method, device, equipment and storage medium
CN113238916A (en) * 2021-05-14 2021-08-10 山东英信计算机技术有限公司 Server asset management method, BMC, management background and terminal

Also Published As

Publication number Publication date
CN115102843A (en) 2022-09-23

Similar Documents

Publication Publication Date Title
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN111626443A (en) Operation and maintenance method, system, device, equipment and storage medium of power equipment
CN111709794A (en) Abnormal order processing method and device, computer equipment and storage medium
CN109784502B (en) On-site maintenance processing method and system based on fault equipment
CN113220540B (en) Service management method, device, computer equipment and storage medium
CN111767173A (en) Network equipment data processing method and device, computer equipment and storage medium
CN111626895B (en) Power equipment monitoring information recording method, system, device and computer equipment
CN103424683A (en) Mainboard test system and method
CN111199353A (en) Test method and test system
CN110674145B (en) Data consistency detection method, device, computer equipment and storage medium
CN112083882A (en) SRAM (static random Access memory) dead point processing method, system and device and computer equipment
CN115102843B (en) Method and device for obtaining server serial number and computer equipment
CN112003901B (en) Leasing process information importing method and device, computer equipment and storage medium
CN113836575A (en) Equipment information write-in control method and system thereof
CN110930075B (en) Power equipment fault positioning method, device, computer equipment and storage medium
CN111177488B (en) Metering equipment maintenance processing method and device, computer equipment and storage medium
CN110866834B (en) Execution method and system of batch processing program
CN112579571B (en) Monitoring data configuration, data monitoring method, device, equipment and storage medium
CN112231159B (en) Memory installation position testing method, system, terminal and storage medium
CN110879757B (en) Restarting method and device for abnormal operation of client and computer equipment
CN109145022B (en) Writing method, device and storage medium for network identity of mobile equipment
CN113570083A (en) Operation and maintenance flow determination method and device for equipment, electronic equipment and storage medium
CN113486222A (en) Display method of power data display interface, user terminal, server and system
CN112488325A (en) Operation and maintenance work order processing method and device, computer equipment and storage medium
CN110795406A (en) Service file transmission method, device, system 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
GR01 Patent grant
GR01 Patent grant