CN113626821B - Method, system, terminal and storage medium for wireless refreshing of server MAC address - Google Patents

Method, system, terminal and storage medium for wireless refreshing of server MAC address Download PDF

Info

Publication number
CN113626821B
CN113626821B CN202110720783.0A CN202110720783A CN113626821B CN 113626821 B CN113626821 B CN 113626821B CN 202110720783 A CN202110720783 A CN 202110720783A CN 113626821 B CN113626821 B CN 113626821B
Authority
CN
China
Prior art keywords
mac address
bmc
server
serial port
path
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
CN202110720783.0A
Other languages
Chinese (zh)
Other versions
CN113626821A (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 CN202110720783.0A priority Critical patent/CN113626821B/en
Publication of CN113626821A publication Critical patent/CN113626821A/en
Application granted granted Critical
Publication of CN113626821B publication Critical patent/CN113626821B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • G06F21/572Secure firmware programming, e.g. of basic input output system [BIOS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Abstract

The invention provides a wireless refreshing method, a system, a terminal and a storage medium for a server MAC address, which comprise the following steps: acquiring a server MAC address bar code image, and decoding an MAC address from the MAC address bar code image; the server BMC is connected through the Bluetooth module; the MAC address and the flushing instruction are sent to the BMC, and the MAC address is flushed to the BMC; and collecting the actual MAC address after the BMC is completely brushed, and checking the consistency of the actual MAC address and the MAC address. The invention can realize wireless brushing of the server MAC addresses, has simpler brushing command, greatly improves the brushing efficiency of the batch server MAC addresses, and avoids the problems of serial port lines, complexity of logging in and brushing, error rate, operation and maintenance cost needing support of research personnel and the like when the batch server MAC addresses are brushed.

Description

Method, system, terminal and storage medium for wireless refreshing of server MAC address
Technical Field
The invention belongs to the technical field of big data service platforms, and particularly relates to a wireless server MAC address flushing method, a system, a terminal and a storage medium.
Background
With the rapid development of the information technology in the society today, wireless communication has been widely used in various industries. But in the server field wireless communication applications are not widespread. Each device in the network has a unique network identification, called a MAC address or network card address, which is written inside the hardware when produced by the manufacturer of the network device.
Most of the current server MAC addresses need to be printed with the latest format by a burner for BMC, then the BMC is checked by unpacking, and after recording, the BMC is logged in by using a serial port line, and the account password and the MAC address information are manually input.
When the prior method is adopted for batch brushing in factories, after MAC address information is required to be recorded in an unpacking way, serial lines are sequentially connected with login serial ports for brushing, and time and labor are wasted. Manual flushing also has a certain error rate and risks address flushing errors. Meanwhile, the fact that the serial port is not used for brushing exists in the production line colleagues, the problem of brushing needs to be solved by contacting research and development personnel to the scene, a large amount of manpower is consumed, and even the shipment time can be influenced.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a wireless server MAC address brushing method, a system, a terminal and a storage medium, which are used for solving the technical problems that the production line is used for brushing the server MAC addresses in batches for a long time, a certain error rate exists and even research and development personnel are required to support.
In a first aspect, the present invention provides a method for wireless flushing of a server MAC address, including:
acquiring a server MAC address bar code image, and decoding an MAC address from the MAC address bar code image;
the server BMC is connected through the Bluetooth module;
the MAC address and the flushing instruction are sent to the BMC, and the MAC address is flushed to the BMC;
and collecting the actual MAC address after the BMC is completely brushed, and checking the consistency of the actual MAC address and the MAC address.
Further, the server BMC is connected through the Bluetooth module, and the server BMC comprises:
the server BMC is connected through a Bluetooth path in a data selector of the server CPLD;
pre-storing BMC login information;
after receiving a connection success prompt returned by the BMC, encapsulating the BMC login information into a login request, and sending the login request to the BMC.
Further, the data selector of the server CPLD comprises a Bluetooth path and a serial port path, and the serial port path is connected with a server serial port; the CPLD is connected with the BMC, monitors the in-place state of the serial port, and switches the in-place path of the data selector into a serial port path if the serial port is in the connection state; and if the serial port is in an unconnected state, switching the bit path of the data selector to a Bluetooth path.
Further, sending the MAC address and the swiping instruction to the BMC, and swiping the MAC address to the BMC includes:
sending an MAC address swiping instruction to the BMC and writing a target MAC address in the MAC address swiping instruction;
executing the MAC address flushing instruction in the BMC, and flushing the target MAC address to the BMC.
In a second aspect, the present invention provides a server MAC address wireless flushing system, including:
the address acquisition unit is used for acquiring the MAC address bar code image of the server and decoding the MAC address from the MAC address bar code image;
the communication connection unit is used for connecting the server BMC through the Bluetooth module;
the address brushing unit is used for sending the MAC address and the brushing instruction to the BMC and brushing the MAC address to the BMC;
the address verification unit is used for collecting the actual MAC address after the BMC is brushed, and verifying the consistency of the actual MAC address and the MAC address.
Further, the communication connection unit includes:
the target connection module is used for connecting the server BMC through a Bluetooth path in a data selector of the server CPLD;
the information pre-storing module is used for pre-storing BMC login information;
and the target login module is used for packaging the BMC login information into a login request after receiving a connection success prompt returned by the BMC and sending the login request to the BMC.
Further, the data selector of the server CPLD comprises a Bluetooth path and a serial port path, and the serial port path is connected with a server serial port; the CPLD is connected with the BMC, monitors the in-place state of the serial port, and switches the in-place path of the data selector into a serial port path if the serial port is in the connection state; and if the serial port is in an unconnected state, switching the bit path of the data selector to a Bluetooth path.
Further, the address swiping unit includes:
the instruction sending module is used for sending an MAC address swiping instruction to the BMC and writing a target MAC address in the MAC address swiping instruction;
and the instruction execution module is used for executing the MAC address brushing instruction in the BMC and brushing the target MAC address to the BMC.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program,
the processor is configured to call and run the computer program from the memory, so that the terminal performs the method of the terminal as described above.
In a fourth aspect, there is provided a computer storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of the above aspects.
The invention has the advantages that,
according to the wireless refreshing method for the server MAC address, the MAC address bar code image of the server is acquired, the MAC address of the server is decoded from the image, then the Bluetooth module is connected with the server BMC, the MAC address is burned to the server BMC, automatic burning of the server MAC address is achieved, the MAC address of the BMC is acquired again through the Bluetooth module after the burning, verification is carried out on the burned MAC address, and accuracy of the burning of the MAC address is guaranteed. The invention can realize wireless brushing of the server MAC addresses, has simpler brushing command, greatly improves the brushing efficiency of the batch server MAC addresses, and avoids the problems of serial port lines, complexity of logging in and brushing, error rate, operation and maintenance cost needing support of research personnel and the like when the batch server MAC addresses are brushed.
According to the wireless server MAC address refreshing system provided by the invention, the address acquisition unit acquires the MAC address bar code image of the server and decodes the MAC address of the server from the image, then the communication connection unit is connected with the server BMC through the Bluetooth module, and the address refreshing unit fuses the MAC address to the server BMC, so that the automatic programming of the server MAC address is realized, and the address verification unit acquires the MAC address of the BMC through the Bluetooth module again after the programming, so that the verification of the programmed MAC address is performed, and the accuracy of the programming of the MAC address is ensured. The invention can realize wireless brushing of the server MAC addresses, has simpler brushing command, greatly improves the brushing efficiency of the batch server MAC addresses, and avoids the problems of serial port lines, complexity of logging in and brushing, error rate, operation and maintenance cost needing support of research personnel and the like when the batch server MAC addresses are brushed.
The terminal provided by the invention comprises a processor, wherein the processor executes a wireless server MAC address flushing method, acquires an MAC address bar code image of a server, decodes the MAC address of the server from the image, and then connects with a server BMC through a Bluetooth module to flush the MAC address to the server BMC, thereby realizing automatic flush of the server MAC address, acquiring the MAC address of the BMC through the Bluetooth module again after flush, checking the flush MAC address, and ensuring the accuracy of the flush of the MAC address. The invention can realize wireless brushing of the server MAC addresses, has simpler brushing command, greatly improves the brushing efficiency of the batch server MAC addresses, and avoids the problems of serial port lines, complexity of logging in and brushing, error rate, operation and maintenance cost needing support of research personnel and the like when the batch server MAC addresses are brushed.
The storage medium provided by the invention stores a program capable of executing a wireless refreshing method of the MAC address of the server, acquires the MAC address bar code image of the server, decodes the MAC address of the server from the image, and then is connected with the server BMC through the Bluetooth module to burn the MAC address to the server BMC, thereby realizing automatic burning of the MAC address of the server, acquiring the MAC address of the BMC through the Bluetooth module again after burning, checking the burned MAC address, and ensuring the accuracy of burning the MAC address. The invention can realize wireless brushing of the server MAC addresses, has simpler brushing command, greatly improves the brushing efficiency of the batch server MAC addresses, and avoids the problems of serial port lines, complexity of logging in and brushing, error rate, operation and maintenance cost needing support of research personnel and the like when the batch server MAC addresses are brushed.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic flow chart of a method of one embodiment of the invention.
Fig. 2 is a schematic diagram of a method of one embodiment of the invention.
FIG. 3 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solution of the present invention better understood by those skilled in the art, the technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
The following explains key terms appearing in the present invention.
BMC, execution server remote management controller, english name Baseboard Management controller. The method can perform firmware upgrade, check machine equipment and other operations on the machine in a state that the machine is not started. Fully implementing IPMI functionality in a BMC requires a powerful 16-bit or 32-bit microcontroller and RAM for data storage, flash memory for non-volatile data storage, and firmware to provide basic remote manageability in terms of secure remote reboot, secure re-power-up, LAN alerting, and system health monitoring. In addition to the basic IPMI and system operation monitoring functions, the mBMC can also enable BIOS flash element selection and protection by storing the previous BIOS using one of the 2 flash memories. For example, when the system fails to boot after a remote BIOS upgrade, the remote administrator may switch back to the previously-working BIOS image to boot the system. Once BIOS is upgraded, the BIOS image can be locked, so as to effectively prevent virus from invading it.
The I2C bus is a simple, bi-directional two-wire synchronous serial bus developed by Philips corporation. It requires only two wires to transfer information between devices connected to the bus. The master device is used to initiate the bus transfer of data and generate a clock to open the transfer device, where any addressed device is considered a slave device. If the host computer is to send data to the slave device, the host computer firstly addresses the slave device, then actively sends the data to the slave device, and finally the host computer terminates the data transmission; if the host is to receive data from the slave, the slave is addressed by the master first, then the host receives data sent by the slave, and finally the host terminates the receiving process. In this case, the host is responsible for generating the timing clock and terminating the data transfer.
The CPLD adopts programming technologies such as CMOS EPROM, EEPROM, flash memory, SRAM and the like, thereby forming a programmable logic device with high density, high speed and low power consumption. The logic blocks in a CPLD are similar to a small-scale PLD, and typically a logic block contains 4-20 macro-cells, each macro-cell typically consisting of an array of product terms, product term assignments, and programmable registers. Each macro unit has a plurality of configuration modes, and each macro unit can be used in cascade connection, so that more complex combinational logic and sequential logic functions can be realized. For higher integration CPLDs, embedded array blocks with on-chip RAM/ROM are also typically provided. The programmable interconnect channels mainly provide an interconnect network between logic blocks, macro cells, and input/output pins. An input/output block (I/O block) provides an interface between internal logic to the device I/O pins.
FIG. 1 is a schematic flow chart of a method of one embodiment of the invention. The execution body of fig. 1 may be a server MAC address wireless flushing system.
As shown in fig. 1, the method includes:
step 110, collecting a server MAC address bar code image, and decoding an MAC address from the MAC address bar code image;
step 120, connecting a server BMC through a Bluetooth module;
step 130, sending the MAC address and the flushing instruction to the BMC, and flushing the MAC address to the BMC;
and 140, collecting the actual MAC address after the BMC is completely brushed, and checking the consistency of the actual MAC address and the MAC address.
In order to facilitate understanding of the present invention, the following describes the wireless flushing method of the server MAC address according to the principles of the wireless flushing method of the present invention, in combination with the wireless flushing process of the server MAC address in the embodiment.
Specifically, the wireless refreshing method of the server MAC address comprises the following steps:
s1, acquiring a server MAC address bar code image, and decoding an MAC address from the MAC address bar code image.
And scanning an MAC address bar code image in the server case by a camera, and decoding an MAC address from the MAC address bar code image by a bar code identification module.
In other embodiments of the present invention, a pre-acquired MAC address barcode photograph may be imported, and then the barcode recognition module performs barcode recognition on the imported photograph, thereby acquiring the MAC address.
S2, connecting the server BMC through a Bluetooth module.
The server BMC is connected through a Bluetooth path in a data selector of the server CPLD; the data selector of the server CPLD comprises a Bluetooth path and a serial port path, and the serial port path is connected with a server serial port; the CPLD is connected with the BMC, monitors the in-place state of the serial port, and switches the in-place path of the data selector into a serial port path if the serial port is in the connected state; and if the serial port is in an unconnected state, switching the bit path of the data selector to a Bluetooth path.
Firstly, the Bluetooth module is opened, so that the mobile phone is connected with the server point to point. The BMC login information is stored in advance in the refreshing terminal (such as a mobile phone), and the server BMC login information for batch test is an initial account, so that only the initial account is needed to be stored. After receiving a connection success prompt returned by the BMC (such as a login page returned by the BMC), packaging the BMC login information into a login request, and sending the login request to the BMC, namely automatically importing the pre-stored login information into a login interface, and then sending the login interface to the BMC, so that the automatic login of the BMC can be completed.
Specifically, please refer to fig. 2, the BMC of the server is connected to the CPLD through an I2C link, the CPLD includes two paths of data selectors MUX, the two paths of the data selectors are respectively a bluetooth path and a serial port path, the bluetooth path is connected to the bluetooth module, and the serial port path is connected to the serial port of the server. This enables the server to be compatible with both MAC address swiping schemes.
The embodiment further sets priorities of two brushing modes, specifically, the CPLD collects the electric potential of the serial port special for brushing in real time, and if the electric potential is monitored to be changed into a high level, the serial port is judged to be in butt joint with the controller. At this time, the CPLD controls the data selector to enable the serial path to support the MAC address to be refreshed through the serial. The enabling path of the CPLD default data selector is a Bluetooth path.
In other embodiments of the present invention, the bluetooth path is set to be a high priority path, and after the bluetooth path fails and MAC address flushing cannot be performed, the CPLD is controlled to change the enabling path of the data selector to a serial path, and MAC address flushing is performed on the server through the serial port.
And S3, sending the MAC address and the flushing instruction to the BMC, and flushing the MAC address to the BMC.
Sending an MAC address swiping instruction to the BMC and writing a target MAC address in the MAC address swiping instruction; executing the MAC address flushing instruction in the BMC, and flushing the target MAC address to the BMC.
Specifically, after the login is completed, the decoded MAC address may be flushed through a flush command, for example, i2c-test-b 5 (bus number is based on actual item) -s 50-w-d 0x0 0x0 MAC0 MAC1 MAC2 MAC3 MAC4 MAC5, an eth0MAC address is configured, i2c-test-b 5-s 50-w-d 0x0 0x8 MAC0 MAC1 MAC2 MAC3 MAC4 MAC5, and finally, the addition of the bit MAC5 to eth0 is 1, so that the flush is completed inside the software.
S4, acquiring the actual MAC address after the BMC is brushed, and checking the consistency of the actual MAC address and the MAC address.
And sending an MAC address verification command to the BMC, for example, i2c-test-b 5-s 50-m 1-rc 16-d 00, comparing the fed back MAC address information with a decoded MAC address, ending the process if the fed back MAC address information is consistent with the decoded MAC address, and re-shooting, decoding and uploading to avoid a flushing error if the fed back MAC address information is inconsistent with the decoded MAC address.
According to the wireless refreshing method for the server MAC address, the MAC address bar code image of the server is acquired, the MAC address of the server is decoded from the image, then the Bluetooth module is connected with the server BMC, the MAC address is burned to the server BMC, automatic burning of the server MAC address is achieved, the MAC address of the BMC is acquired again through the Bluetooth module after the burning, verification is carried out on the burned MAC address, and accuracy of the burning of the MAC address is guaranteed. The invention can realize wireless brushing of the server MAC addresses, has simpler brushing command, greatly improves the brushing efficiency of the batch server MAC addresses, and avoids the problems of serial port lines, complexity of logging in and brushing, error rate, operation and maintenance cost needing support of research personnel and the like when the batch server MAC addresses are brushed.
As shown in fig. 3, the system 300 includes:
the address acquisition unit 310 is configured to acquire a server MAC address barcode image, and decode a MAC address from the MAC address barcode image;
and scanning an MAC address bar code image in the server case by a camera, and decoding an MAC address from the MAC address bar code image by a bar code identification module. This can avoid MAC address transcription errors that may be caused by an operator transcribing the MAC address in the chassis.
The communication connection unit 320 is configured to connect to the server BMC through the bluetooth module;
the address swiping unit 330 is configured to send the MAC address and a swiping instruction to the BMC, and swish the MAC address to the BMC;
the address checking unit 340 is configured to collect the actual MAC address after the BMC is completed, and check the consistency between the actual MAC address and the MAC address.
Optionally, as an embodiment of the present invention, the communication connection unit includes:
the target connection module is used for connecting the server BMC through a Bluetooth path in a data selector of the server CPLD;
the information pre-storing module is used for pre-storing BMC login information;
and the target login module is used for packaging the BMC login information into a login request after receiving a connection success prompt returned by the BMC and sending the login request to the BMC.
The target login module firstly opens the Bluetooth module to enable the mobile phone to be in point-to-point connection with the server. The BMC login information is stored in advance in the refreshing terminal (such as a mobile phone), and the server BMC login information for batch test is an initial account, so that only the initial account is needed to be stored. After receiving a connection success prompt returned by the BMC (such as a login page returned by the BMC), packaging the BMC login information into a login request, and sending the login request to the BMC, namely automatically importing the pre-stored login information into a login interface, and then sending the login interface to the BMC, so that the automatic login of the BMC can be completed. Therefore, the BMC can be logged in quickly, personnel are not required to input BMC login information, and the login efficiency of the BMC is greatly improved.
Optionally, as an embodiment of the present invention, the data selector of the server CPLD includes a bluetooth path and a serial port path, and the serial port path is connected to a server serial port; the CPLD is connected with the BMC, monitors the in-place state of the serial port, and switches the in-place path of the data selector into a serial port path if the serial port is in the connection state; and if the serial port is in an unconnected state, switching the bit path of the data selector to a Bluetooth path.
The server BMC is connected through a Bluetooth path in a data selector of the server CPLD; the data selector of the server CPLD comprises a Bluetooth path and a serial port path, and the serial port path is connected with a server serial port; the CPLD is connected with the BMC, monitors the in-place state of the serial port, and switches the in-place path of the data selector into a serial port path if the serial port is in the connected state; and if the serial port is in an unconnected state, switching the bit path of the data selector to a Bluetooth path. Therefore, the compatibility of the MAC address refreshing mode of the server can be met, and the MAC address refreshing convenience of the server is further improved.
Optionally, as an embodiment of the present invention, the address brushing unit includes:
the instruction sending module is used for sending an MAC address swiping instruction to the BMC and writing a target MAC address in the MAC address swiping instruction;
and the instruction execution module is used for executing the MAC address brushing instruction in the BMC and brushing the target MAC address to the BMC.
And sending an MAC address verification command to the BMC, for example, i2c-test-b 5-s 50-m 1-rc 16-d 00, comparing the fed back MAC address information with a decoded MAC address, ending the process if the fed back MAC address information is consistent with the decoded MAC address, and re-shooting, decoding and uploading to avoid a flushing error if the fed back MAC address information is inconsistent with the decoded MAC address. The accuracy of MAC address brushing is greatly improved.
According to the wireless server MAC address flushing system provided by the embodiment, the address acquisition unit acquires the MAC address bar code image of the server and decodes the MAC address of the server from the image, then the communication connection unit is connected with the server BMC through the Bluetooth module, the address flushing unit is used for flushing the MAC address to the server BMC, so that automatic flushing of the server MAC address is realized, the address verification unit is used for obtaining the MAC address of the BMC through the Bluetooth module after flushing, verification is carried out on the flushing MAC address, and the accuracy of the flushing of the MAC address is guaranteed. The invention can realize wireless brushing of the server MAC addresses, has simpler brushing command, greatly improves the brushing efficiency of the batch server MAC addresses, and avoids the problems of serial port lines, complexity of logging in and brushing, error rate, operation and maintenance cost needing support of research personnel and the like when the batch server MAC addresses are brushed.
Fig. 4 is a schematic structural diagram of a terminal 400 according to an embodiment of the present invention, where the terminal 400 may be used to execute the method for wireless flushing of a server MAC address according to the embodiment of the present invention.
The terminal 400 may include: processor 410, memory 420, and communication unit 430. The components may communicate via one or more buses, and it will be appreciated by those skilled in the art that the configuration of the server as shown in the drawings is not limiting of the invention, as it may be a bus-like structure, a star-like structure, or include more or fewer components than shown, or may be a combination of certain components or a different arrangement of components.
The memory 420 may be used to store instructions for execution by the processor 410, and the memory 420 may be implemented by any type of volatile or nonvolatile memory terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk. The execution of the instructions in memory 420, when executed by processor 410, enables terminal 400 to perform some or all of the steps in the method embodiments described below.
The processor 410 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by running or executing software programs and/or modules stored in the memory 420, and invoking data stored in the memory. The processor may be comprised of an integrated circuit (Integrated Circuit, simply referred to as an IC), for example, a single packaged IC, or may be comprised of a plurality of packaged ICs connected to the same function or different functions. For example, the processor 410 may include only a central processing unit (Central Processing Unit, simply CPU). In the embodiment of the invention, the CPU can be a single operation core or can comprise multiple operation cores.
And a communication unit 430 for establishing a communication channel so that the storage terminal can communicate with other terminals. Receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium in which a program may be stored, which program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (random access memory, RAM), or the like.
Therefore, the invention acquires the MAC address bar code image of the server, decodes the MAC address of the server from the image, and then connects the server BMC through the Bluetooth module to burn the MAC address to the server BMC, thereby realizing automatic burning of the MAC address of the server, acquiring the MAC address of the BMC through the Bluetooth module again after burning, checking the burned MAC address, and ensuring the accuracy of burning the MAC address. The invention can realize wireless brushing of the server MAC addresses, has simpler brushing command, greatly improves the brushing efficiency of the batch server MAC addresses, avoids the problems of serial port line connection, complexity of logging in brushing, error rate, operation and maintenance cost needing support of research personnel and the like when the batch server MAC addresses are brushed, and the technical effects achieved by the embodiment can be seen from the description above and are not repeated here.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solution in the embodiments of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium such as a U-disc, a mobile hard disc, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, etc. various media capable of storing program codes, including several instructions for causing a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the method described in the embodiments of the present invention.
The same or similar parts between the various embodiments in this specification are referred to each other. In particular, for the terminal embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference should be made to the description in the method embodiment for relevant points.
In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods may be implemented in other ways. For example, the system embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, system or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
Although the present invention has been described in detail by way of preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Various equivalent modifications and substitutions may be made in the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and it is intended that all such modifications and substitutions be within the scope of the present invention/be within the scope of the present invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A method for wireless flushing of a server MAC address, comprising:
acquiring a server MAC address bar code image, and decoding an MAC address from the MAC address bar code image;
the server BMC is connected through the Bluetooth module;
the MAC address and the flushing instruction are sent to the BMC, and the MAC address is flushed to the BMC;
the method comprises the steps of collecting an actual MAC address after BMC (baseboard management controller) is subjected to brushing, and checking the consistency of the actual MAC address and the MAC address;
the server BMC connected with the Bluetooth module comprises: the server BMC is connected through a Bluetooth path in a data selector of the server CPLD; the data selector of the CPLD comprises a Bluetooth path and a serial port path, and the serial port path is connected with a serial port of the server; the CPLD is connected with the BMC, monitors the in-place state of the serial port, and switches the in-place path of the data selector into a serial port path if the serial port is in the connection state; and if the serial port is in an unconnected state, switching the bit path of the data selector to a Bluetooth path.
2. The method of claim 1, wherein connecting the server BMC via the bluetooth module comprises:
pre-storing BMC login information;
after receiving a connection success prompt returned by the BMC, encapsulating the BMC login information into a login request, and sending the login request to the BMC.
3. The method of claim 1, wherein sending the MAC address and the flush instruction to the BMC, flushing the MAC address to the BMC, comprises:
sending an MAC address swiping instruction to the BMC and writing a target MAC address in the MAC address swiping instruction;
executing the MAC address flushing instruction in the BMC, and flushing the target MAC address to the BMC.
4. A server MAC address wireless flushing system, comprising:
the address acquisition unit is used for acquiring the MAC address bar code image of the server and decoding the MAC address from the MAC address bar code image;
the communication connection unit is used for connecting the server BMC through the Bluetooth module;
the address brushing unit is used for sending the MAC address and the brushing instruction to the BMC and brushing the MAC address to the BMC;
the address verification unit is used for collecting the actual MAC address after the BMC is brushed, and verifying the consistency of the actual MAC address and the MAC address;
the communication connection unit includes: the target connection module is used for connecting the server BMC through a Bluetooth path in a data selector of the server CPLD; the data selector of the CPLD comprises a Bluetooth path and a serial port path, and the serial port path is connected with a serial port of the server; the CPLD is connected with the BMC, monitors the in-place state of the serial port, and switches the in-place path of the data selector into a serial port path if the serial port is in the connection state; and if the serial port is in an unconnected state, switching the bit path of the data selector to a Bluetooth path.
5. The system of claim 4, wherein the communication connection unit comprises:
the information pre-storing module is used for pre-storing BMC login information;
and the target login module is used for packaging the BMC login information into a login request after receiving a connection success prompt returned by the BMC and sending the login request to the BMC.
6. The system of claim 4, wherein the address swiping unit comprises:
the instruction sending module is used for sending an MAC address swiping instruction to the BMC and writing a target MAC address in the MAC address swiping instruction;
and the instruction execution module is used for executing the MAC address brushing instruction in the BMC and brushing the target MAC address to the BMC.
7. A terminal, comprising:
a processor;
a memory for storing execution instructions of the processor;
wherein the processor is configured to implement the method of any of claims 1-3 when executing instructions.
8. A computer readable storage medium storing a computer program, which when executed by a processor implements the method of any one of claims 1-3.
CN202110720783.0A 2021-06-28 2021-06-28 Method, system, terminal and storage medium for wireless refreshing of server MAC address Active CN113626821B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110720783.0A CN113626821B (en) 2021-06-28 2021-06-28 Method, system, terminal and storage medium for wireless refreshing of server MAC address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110720783.0A CN113626821B (en) 2021-06-28 2021-06-28 Method, system, terminal and storage medium for wireless refreshing of server MAC address

Publications (2)

Publication Number Publication Date
CN113626821A CN113626821A (en) 2021-11-09
CN113626821B true CN113626821B (en) 2023-07-21

Family

ID=78378562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110720783.0A Active CN113626821B (en) 2021-06-28 2021-06-28 Method, system, terminal and storage medium for wireless refreshing of server MAC address

Country Status (1)

Country Link
CN (1) CN113626821B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954502A (en) * 2014-03-31 2015-09-30 研祥智能科技股份有限公司 MAC address updating method in production line and system thereof
CN107770299A (en) * 2017-10-24 2018-03-06 郑州云海信息技术有限公司 A kind of MAC Address writes with a brush dipped in Chinese ink method, system, device and storage medium
CN108306762A (en) * 2018-01-03 2018-07-20 郑州云海信息技术有限公司 A kind of MAC Address management system and method based on interface
CN109451098A (en) * 2019-01-16 2019-03-08 郑州云海信息技术有限公司 FPGA accelerator card MAC Address configuration method, device and accelerator card
CN109639847A (en) * 2018-12-18 2019-04-16 浪潮电子信息产业股份有限公司 A kind of equipment that writing with a brush dipped in Chinese ink MAC Address, method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954502A (en) * 2014-03-31 2015-09-30 研祥智能科技股份有限公司 MAC address updating method in production line and system thereof
CN107770299A (en) * 2017-10-24 2018-03-06 郑州云海信息技术有限公司 A kind of MAC Address writes with a brush dipped in Chinese ink method, system, device and storage medium
CN108306762A (en) * 2018-01-03 2018-07-20 郑州云海信息技术有限公司 A kind of MAC Address management system and method based on interface
CN109639847A (en) * 2018-12-18 2019-04-16 浪潮电子信息产业股份有限公司 A kind of equipment that writing with a brush dipped in Chinese ink MAC Address, method and system
CN109451098A (en) * 2019-01-16 2019-03-08 郑州云海信息技术有限公司 FPGA accelerator card MAC Address configuration method, device and accelerator card

Also Published As

Publication number Publication date
CN113626821A (en) 2021-11-09

Similar Documents

Publication Publication Date Title
CN100511148C (en) CPU system starting method and system
US20180357193A1 (en) Computing device and operation method
CN111274077A (en) Disk array reliability testing method, system, terminal and storage medium
US20220358270A1 (en) Chip verification system and verification method therefor
CN109800029A (en) Batch sets method, apparatus, terminal and the storage medium of server B IOS parameter
CN104679685A (en) Access method of baseboard management controller
CN115496018A (en) Multi-version verification method, device and equipment for SoC (System on chip)
CN114003445B (en) BMC I2C monitoring function test method, system, terminal and storage medium
US10922150B2 (en) Deep hardware access and policy engine
CN113626821B (en) Method, system, terminal and storage medium for wireless refreshing of server MAC address
US10564218B2 (en) Systems and methods for debugging access
CN110096291A (en) Power management chip upgrades circuit, method and the network equipment
CN109491909A (en) A kind of CPLD refreshes verification method, device, terminal and storage medium
CN110459260B (en) Automatic test switching device, method and system
CN107908418B (en) Method for upgrading logic program of fiber channel node card and fiber channel bus equipment
CN108021476B (en) Test method and device of interconnection interface and computing equipment
CN113760800A (en) Serial port path selection method, system, terminal and storage medium based on BMC
EP3848807A1 (en) Data processing system and method for configuring and operating a data processing system
CN214751393U (en) Microcontroller and computing system
CN204302961U (en) Embedded device and the diagnostic card for embedded device
CN113835762B (en) Method and system for updating default configuration of hard disk backboard
CN114385379B (en) Method, system, terminal and storage medium for detecting on-board information refreshing
CN113765827B (en) Switch firmware protection system
CN116959546B (en) JTAG interface control method, interface control module, chip and electronic equipment
CN114253375B (en) Server heat dissipation mode control method, system, terminal 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