CN114443150A - Method, system, terminal and storage medium for synchronizing switch delivery information - Google Patents

Method, system, terminal and storage medium for synchronizing switch delivery information Download PDF

Info

Publication number
CN114443150A
CN114443150A CN202111669211.0A CN202111669211A CN114443150A CN 114443150 A CN114443150 A CN 114443150A CN 202111669211 A CN202111669211 A CN 202111669211A CN 114443150 A CN114443150 A CN 114443150A
Authority
CN
China
Prior art keywords
information
management file
searching
factory
switch
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.)
Granted
Application number
CN202111669211.0A
Other languages
Chinese (zh)
Other versions
CN114443150B (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 CN202111669211.0A priority Critical patent/CN114443150B/en
Publication of CN114443150A publication Critical patent/CN114443150A/en
Application granted granted Critical
Publication of CN114443150B publication Critical patent/CN114443150B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of switches, in particular to a method, a system, a terminal and a storage medium for synchronizing factory information of a switch, which comprises the following steps: creating an information management file at a starting stage through a basic input and output system; filling predefined static character string information in the code into the information management file; and searching a field replaceable unit of the open network installation environment, reading factory information from the field replaceable unit, and covering static character string information in the information management file by using the factory information. When the equipment information is changed, the DMI can synchronize the information in the ONIE FRU in time, the phenomenon of asynchronous information is avoided, the equipment information can be synchronized without modifying a BIOS code, and the research and development and debugging costs are reduced.

Description

Method, system, terminal and storage medium for synchronizing switch delivery information
Technical Field
The invention relates to the technical field of switches, in particular to a method, a system, a terminal and a storage medium for synchronizing factory information of a switch.
Background
The DMI is a management system that helps collect computer system information, and is mainly used for storing relevant data of the system itself and peripheral devices, where the data includes system configuration information such as CPU, memory, I/O expansion slot, and the like. SMBIOS is a unified specification that a motherboard or system manufacturer needs to follow to display product management information in a standard format. The collection of DMI information must be done with strict compliance with the SMBIOS specification, with the collected data being stored in the SMBIOS table. DMI plays a role of an interface between a management tool and an operating system, establishes a standard manageability system, and facilitates computer manufacturers and users to manage and view relevant information of the system. The FRU is an important facility for recording device configuration information, and generally, devices that are large or small can have their own FRU, such as power supply, fan, BMC, and the like. The ONIE is a small operating system for a bare metal network switch, and mainly provides an automatic configuration environment for installing an image file of an operating system provided by a manufacturer. ONIE has its own FRU, which is stored in EEPROM of ONIE, and it stores important product information provided by manufacturer, and is not easy to lose when power is off. Through the FRU of the ONIE, vendors and users can view asset information, MAC addresses, serial numbers, manufacturers, etc. of switch devices. Usually, when the switch device is shipped from a factory, the information of the corresponding fields of the DMI and the FRU should be kept consistent, i.e. synchronous update of the information of the DMI and the FRU is required. If the two information updates are asynchronous, when the relevant field information of the FRU is changed and a certain device is replaced or updated, the phenomenon that the system configuration information of the DMI and the system configuration information of the FRU are inconsistent occurs, so that the BIOS code needs to be modified again, a new version is published, and the research and development investment is increased.
The existing information synchronization methods are of two types, respectively: the method comprises the steps that information in the DMI is updated through a static character string set in a BIOS source code, the BIOS uses a static character string which is written in advance to construct a DMI table in a starting stage, and when a certain accessory in an exchanger is replaced or updated, synchronous updating of the DMI information is guaranteed through the static character string in an updating code; generally, a scheme of DMI synchronization to BMC FRU is adopted in a server, an IPMI command is sent to BMC to obtain FRU information, and a DMI table is constructed according to the FRU information. The scheme can ensure the synchronous update between the DMI information and the BMC FRU information.
However, updating the DMI information through the static character string is cumbersome and complicated, and once the information of the relevant device of the switch product is changed, the BIOS source code needs to be modified and the version needs to be reissued, which wastes time and labor and delays the development progress of the product. By adopting the scheme of synchronizing the BMC FRU by the DMI, although synchronous updating between the DMI information and the BMC FRU information can be ensured, the switch equipment is not necessarily provided with the BMC, so that the scheme needs to be changed according to the research and development requirements of an actual switch.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, the present invention provides a method, a system, a terminal and a storage medium for synchronizing factory information of a switch, so as to solve the above-mentioned technical problems.
In a first aspect, the present invention provides a method for synchronizing factory information of a switch, including:
creating an information management file at a starting stage through a basic input and output system;
filling predefined static character string information in the code into the information management file;
and searching a field replaceable unit of the open network installation environment, reading factory information from the field replaceable unit, and covering static character string information in the information management file by using the factory information.
Further, the information management file is created in the starting stage through the basic input and output system, and the method comprises the following steps:
in the starting stage of the switch, a structural body for storing desktop management interface data is created by using a basic input and output system, and a data storage space of a desktop management interface storage field of the structural body is defined.
Further, searching for a field replaceable unit of an open network installation environment, reading factory information from the field replaceable unit, and covering static string information in the information management file with the factory information, including:
searching an I2C conversion routing chip in an I2C bus, and searching a memory address mounted by the chip;
searching a field replaceable unit of the open network installation environment according to the memory address;
and restarting the switch after the static character string information in the information management file is covered by the factory information.
In a second aspect, the present invention provides a factory information synchronization system for a switch, including:
the storage creating unit is used for creating an information management file in a starting stage through a basic input and output system;
the information filling unit is used for filling the static character string information defined in advance in the code into the information management file;
and the information covering unit is used for searching the field replaceable unit of the open network installation environment, reading factory information from the field replaceable unit and covering the static character string information in the information management file by using the factory information.
Further, the storage creating unit includes:
and the storage creating module is used for creating a structural body for storing desktop management interface data by using the basic input and output system at the starting stage of the switch and defining a data storage space of a desktop management interface storage field of the structural body.
Further, the information covering unit includes:
the memory searching module is used for searching the I2C conversion routing chip in the I2C bus and searching the memory address mounted by the chip;
the target searching module is used for searching the field replaceable unit of the open network installation environment according to the memory address;
and the information covering module is used for restarting the switch after the static character string information in the information management file is covered by the factory information.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The method, the system, the terminal and the storage medium for synchronizing the outgoing information of the switch have the advantages that when the equipment information changes, the DMI can timely synchronize the information in the ONIE FRU, the phenomenon of information asynchronization is avoided, the equipment information can be synchronized without modifying a BIOS code, and research, development and debugging costs are reduced.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or prior art solutions of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the present invention.
FIG. 2 is another schematic flow 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 those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following explains key terms appearing in the present invention.
The I2C bus is a simple, bi-directional two-wire synchronous serial bus developed by Philips. 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 to generate a clock to open up the transferred devices, when any addressed device is considered a slave device. If the host wants to send data to the slave device, the host addresses the slave device first, then actively sends the data to the slave device, and finally the host terminates the data transmission; the master device addresses the slave device first if the master device is to receive data from the slave device. The host is responsible for generating the timing clock and terminating the data transfer.
BIOS: basic Input Output System
UEFI: unified Extensible Firmware Interface for a Unifieldextensible Firmware Interface
ONIE: open Network InstallEnvironment Open Network installation Environment, a Linux-based small operating system
An EEPROM: electrically Erasable Programmable Read-Only Memory (EEPROM) with Programmable Read Only Memory (EEPROM)
DMI: desktop Management Interface for Desktop Management Interface
FRU: field Replace Unit Field replaceable Unit
SMBIOS: system Management BIOS
BMC: basebard Management Controller substrate Management Controller
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. The execution main body in fig. 1 may be a factory information synchronization system of a switch.
As shown in fig. 1, the method includes:
step 110, creating an information management file in a starting stage through a basic input and output system;
step 120, filling predefined static character string information in the code into the information management file;
step 130, searching for a field replaceable unit of an open network installation environment, reading factory information from the field replaceable unit, and covering static character string information in the information management file by using the factory information.
In order to facilitate understanding of the present invention, the principle of the factory information synchronization method of the switch of the present invention is combined with the process of synchronizing the factory information of the switch in the embodiment, and the factory information synchronization method of the switch provided by the present invention is further described below.
Specifically, referring to fig. 2, the method for synchronizing factory information of the switch includes:
s1, creating an information management file at the start-up stage through the bios.
The method comprises the steps that equipment is started, the BIOS creates a DMI table structure body in the DXE stage, and the structure body defines data storage spaces of corresponding fields while being built.
And S2, filling the static character string information defined in advance in the code into the information management file.
And the BIOS fills the predefined static character string information in the code into the corresponding field of the DMI table.
S3, searching for a field replaceable unit of the open network installation environment, reading factory information from the field replaceable unit, and covering static character string information in the information management file by using the factory information.
An I2C Switch routing chip (such as pca9548) is found in the I2C bus, and the address of the EEPROM device mounted under the chip is further found. The ONIE FRU is found by the EEPROM and is accessed by the code. And reading the TlvInfoData in the ONIEFRU, and further acquiring the data of the corresponding field. And if the data acquisition is successful, covering the data of the corresponding field in the DMI table by using the acquired data. And restarting the equipment to complete the synchronization of the DMI and ONIE FRU information.
By adopting the embodiment, when the equipment information changes, the switch equipment is restarted to complete the information synchronization of the DMI and the ONIR FRU without revising the BIOS code or releasing the BIOS new version, thereby reducing the research and development input cost of the BIOS engineer.
As shown in fig. 3, the system 300 includes:
a storage creating unit 310 for creating an information management file at a start-up stage through a basic input output system;
an information filling unit 320, configured to fill predefined static string information in the code into the information management file;
the information covering unit 330 is configured to search for a field replaceable unit in an open network installation environment, read factory information from the field replaceable unit, and cover static string information in the information management file with the factory information.
Optionally, as an embodiment of the present invention, the storage creating unit includes:
and the storage creating module is used for creating a structural body for storing desktop management interface data by using the basic input and output system at the starting stage of the switch and defining a data storage space of a desktop management interface storage field of the structural body.
Optionally, as an embodiment of the present invention, the information covering unit includes:
the memory searching module is used for searching the I2C conversion routing chip in the I2C bus and searching the memory address mounted by the chip;
the target searching module is used for searching the field replaceable unit of the open network installation environment according to the memory address;
and the information covering module is used for restarting the switch after the static character string information in the information management file is covered by the factory information.
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 configured to execute a method for synchronizing factory information of an exchange according to the embodiment of the present invention.
Among them, the terminal 400 may include: a processor 410, a memory 420, and a communication unit 430. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 420 may be used for storing instructions executed by the processor 410, and the memory 420 may be implemented by any type of volatile or non-volatile storage 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 executable instructions in memory 420, when executed by processor 410, enable 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 operating or executing software programs and/or modules stored in the memory 420 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 410 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 430, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the 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) or a Random Access Memory (RAM).
Therefore, when the device information changes, the DMI can synchronize the information in the ONIE FRU in time, thereby avoiding the occurrence of asynchronous information, and can complete the synchronization of the device information without modifying the BIOS code, thereby reducing the research and development and debugging costs.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A method for synchronizing factory information of a switch is characterized by comprising the following steps:
creating an information management file at a starting stage through a basic input and output system;
filling predefined static character string information in the code into the information management file;
and searching a field replaceable unit of the open network installation environment, reading factory information from the field replaceable unit, and covering static character string information in the information management file by using the factory information.
2. The method of claim 1, wherein creating the information management file during the boot phase via the bios comprises:
in the starting stage of the switch, a structural body for storing desktop management interface data is created by using a basic input and output system, and a data storage space of a desktop management interface storage field of the structural body is defined.
3. The method of claim 1, wherein locating a field replaceable unit of an open network installation environment, reading factory information from the field replaceable unit and overriding static string information in the information management file with the factory information, comprises:
searching an I2C conversion routing chip in an I2C bus, and searching a memory address mounted by the chip;
searching a field replaceable unit of the open network installation environment according to the memory address;
and restarting the switch after the static character string information in the information management file is covered by the factory information.
4. A factory information synchronization system for a switch, comprising:
the storage creating unit is used for creating an information management file in a starting stage through a basic input and output system;
the information filling unit is used for filling the static character string information defined in advance in the code into the information management file;
and the information covering unit is used for searching the field replaceable unit of the open network installation environment, reading factory information from the field replaceable unit and covering the static character string information in the information management file by using the factory information.
5. The system of claim 4, wherein the storage creation unit comprises:
and the storage creating module is used for creating a structural body for storing desktop management interface data by using the basic input and output system at the starting stage of the switch and defining a data storage space of a desktop management interface storage field of the structural body.
6. The system of claim 4, wherein the information overlay unit comprises:
the memory searching module is used for searching the I2C conversion routing chip in the I2C bus and searching the memory address mounted by the chip;
the target searching module is used for searching the field replaceable unit of the open network installation environment according to the memory address;
and the information covering module is used for restarting the switch after the static character string information in the information management file is covered by the factory information.
7. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-3.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-3.
CN202111669211.0A 2021-12-30 2021-12-30 Method, system, terminal and storage medium for synchronizing factory information of switch Active CN114443150B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111669211.0A CN114443150B (en) 2021-12-30 2021-12-30 Method, system, terminal and storage medium for synchronizing factory information of switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111669211.0A CN114443150B (en) 2021-12-30 2021-12-30 Method, system, terminal and storage medium for synchronizing factory information of switch

Publications (2)

Publication Number Publication Date
CN114443150A true CN114443150A (en) 2022-05-06
CN114443150B CN114443150B (en) 2023-07-18

Family

ID=81366478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111669211.0A Active CN114443150B (en) 2021-12-30 2021-12-30 Method, system, terminal and storage medium for synchronizing factory information of switch

Country Status (1)

Country Link
CN (1) CN114443150B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317667A (en) * 2014-10-27 2015-01-28 浪潮电子信息产业股份有限公司 Method for synchronizing DMI (desktop management interface) and FRU (field replace unit)
US20150046761A1 (en) * 2013-08-09 2015-02-12 American Megatrends, Inc. System and method for generating field replaceable unit information files
CN111177043A (en) * 2019-12-26 2020-05-19 苏州浪潮智能科技有限公司 Method, system, device and medium for accelerating reading of field replaceable unit information
CN111736906A (en) * 2020-06-12 2020-10-02 苏州浪潮智能科技有限公司 BIOS-based boot entry synchronous storage method, system, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150046761A1 (en) * 2013-08-09 2015-02-12 American Megatrends, Inc. System and method for generating field replaceable unit information files
CN104317667A (en) * 2014-10-27 2015-01-28 浪潮电子信息产业股份有限公司 Method for synchronizing DMI (desktop management interface) and FRU (field replace unit)
CN111177043A (en) * 2019-12-26 2020-05-19 苏州浪潮智能科技有限公司 Method, system, device and medium for accelerating reading of field replaceable unit information
CN111736906A (en) * 2020-06-12 2020-10-02 苏州浪潮智能科技有限公司 BIOS-based boot entry synchronous storage method, system, terminal and storage medium

Also Published As

Publication number Publication date
CN114443150B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
US8601466B2 (en) Software deployment method and system, software deployment server and user server
CN102855146A (en) Firmware updating system and method
CN112328440B (en) Hard disk physical position determining method and device
WO2017185954A1 (en) Method, host, and system for implementing usb device management
CN110520844A (en) Cloud management platform, virtual machine management method and its system
CN111506331A (en) Server BMC refreshing method, system, terminal and storage medium
CN114020340B (en) Server system and data processing method thereof
JP2009193453A (en) Blade system, enclosure manager, blade, bios management method and bios management program
CN104679566A (en) Method and terminal equipment for updating SMBIOS (System Management Basic Input/Output System)
CN112099902A (en) Network adapter configuration method and device of virtual machine, electronic device and storage medium
CN114443150A (en) Method, system, terminal and storage medium for synchronizing switch delivery information
CN116701285A (en) Remote access control apparatus, remote access control method, remote access control device, and computer readable medium
CN107911816B (en) Starting method for multi-mode IoT device, multi-mode IoT device and storage medium
CN114281890B (en) BIOS out-of-band management system and method
CN103389909A (en) Rendering farm node virtualization deployment system and application thereof
CN109117167A (en) A kind of starting Oftware updating method based on ZYNQ chip
CN101727333A (en) Method for updating firmware in microprocessor and firmware updating system
CN115794132A (en) Operating system deployment method, device, equipment and storage medium
CN113448417A (en) Dynamic setting method, system, terminal and storage medium for voltage regulator set value
WO2020000957A1 (en) Single mainboard multi-version program adaptation method, system, and device, and storage medium
CN113835762B (en) Method and system for updating default configuration of hard disk backboard
JP2014021540A (en) Digital signal processing system, digital signal processing system booting device and booting method of digital signal processing system
CN111949278B (en) Method, system, terminal and storage medium for automatically installing MCS system
CN114726719B (en) Network element operating system deployment method and device, electronic equipment and storage medium
CN117234544B (en) Method and device for recovering system of server equipment

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