CN111694998A - Character library customizing method and system for BMC (baseboard management controller) configuration parameters - Google Patents

Character library customizing method and system for BMC (baseboard management controller) configuration parameters Download PDF

Info

Publication number
CN111694998A
CN111694998A CN202010468743.7A CN202010468743A CN111694998A CN 111694998 A CN111694998 A CN 111694998A CN 202010468743 A CN202010468743 A CN 202010468743A CN 111694998 A CN111694998 A CN 111694998A
Authority
CN
China
Prior art keywords
character
characters
bmc
scheme
available
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
CN202010468743.7A
Other languages
Chinese (zh)
Other versions
CN111694998B (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 CN202010468743.7A priority Critical patent/CN111694998B/en
Publication of CN111694998A publication Critical patent/CN111694998A/en
Application granted granted Critical
Publication of CN111694998B publication Critical patent/CN111694998B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding

Abstract

The invention provides a method and a system for customizing a character library of BMC (baseboard management controller) configuration parameters, which comprise the following steps: designing a plurality of character scheme groups according to various configuration parameters of the BMC, and establishing a mapping relation between the character scheme groups and BMC configuration parameter items; storing all characters and marking each character with a corresponding available character scheme group; acquiring a matched character scheme group of the BMC configuration parameter item according to the mapping relation; and screening the available character set of the matched character scheme group from all characters according to the available character scheme group marks of the characters, and outputting the available character set as a special character library of the BMC configuration parameter item. The method greatly improves the flexibility and the uniformity of the character library, enables a client to flexibly configure the character library according to the self requirement, stores the scheme group information of the character library in the eeprom, and avoids the defect that the scheme adopted by the character library configured by the user is changed possibly in the upgrading and updating process of the bmc mirror image.

Description

Character library customizing method and system for BMC (baseboard management controller) configuration parameters
Technical Field
The invention relates to the technical field of server BMC configuration, in particular to a method and a system for customizing a character library of BMC configuration parameters.
Background
In order to realize the powerful server monitoring and management functions of the BMC, a whole set of support for configuration parameters of different functions and different applications is required, such as a group name, an engini id, a system name, an authentication password, an encryption password and the like for supporting a snmp function, a user name, a password, a user group, kcs, sol and other related parameters for supporting an IPMI protocol, an encryption algorithm for supporting security enhancement and the like. When a user configures the parameters, the support conditions of the configuration parameters for the characters input by the user are different, some support only upper and lower case letters and numbers, and some support need to support some special characters or all special characters, so when the user configures the parameters, different character libraries need to be called according to certain rules to determine the characters input by the user, and currently common determination methods include the following steps:
1. when a character library calling request exists in a certain parameter, a character library specially aiming at the character is temporarily established aiming at the parameter, and character judgment is carried out according to the character library. And when the input accords with the characters in the current character library, judging that the input of the configuration parameters is legal, otherwise, judging that the input of the configuration parameters is illegal, and prompting the user to input errors and input again. The method is relatively flexible, and can meet different judgment requirements on characters under various conditions, but the method has the following defects:
(1) cannot be flexibly configured according to customer requirements. The finally compiled and generated image file is determined for the character library called by any configuration parameter, and when a field client needs to adjust the characters in the character library aiming at a certain parameter according to the self requirement, the field client looks catch the elbow;
(2) multiple definitions, character library and decision rule adjustment and correction become complicated. Under the condition that webui exists or the code architecture level is relatively complex, the character library and the judgment rule aiming at the same configuration parameter may need to be defined for many times, so that when the character library aiming at the current configuration parameter needs to be adjusted, the condition of modification omission exists, the stability of the code is reduced, and the maintainability is reduced;
(3) the character libraries are various and cannot form a unified rule and character library table which can be integrally managed.
2. A complete character library calling library is formed in a BMC in a dynamic link library mode, and a certain configuration parameter corresponds to one character library in the link library.
In consideration of the defects existing in the calling scheme of different configuration parameters aiming at the character library in the BMC, the method for realizing dynamic customization of different configuration parameters of the BMC aiming at the character library is provided.
Disclosure of Invention
In view of the above disadvantages of the prior art, the present invention provides a method and a system for customizing a BMC configuration parameter character library to solve the above technical problems.
In a first aspect, the present invention provides a method for customizing a character library of BMC configuration parameters, including:
designing a plurality of character scheme groups according to various configuration parameters of the BMC, and establishing a mapping relation between the character scheme groups and BMC configuration parameter items;
storing all characters and marking each character with a corresponding available character scheme group;
acquiring a matched character scheme group of the BMC configuration parameter item according to the mapping relation;
and screening the available character set of the matched character scheme group from all characters according to the available character scheme group marks of the characters, and outputting the available character set as a special character library of the BMC configuration parameter item.
Further, the storing all characters includes:
dividing all characters into capital letters, lowercase letters, numbers and special characters;
the special characters are stored separately.
Further, the storing all characters further includes:
setting representative characters for capital letters, lowercase letters and numbers respectively, wherein the representative characters of the capital letters and the lowercase characters are ASCII codes of first letters, and the representative characters of the numbers are ASCII codes of first numbers;
one byte of storage space is opened up for capital letters, lowercase letters and numbers respectively, and the storage space is used for storing respective representative characters.
Further, the method further comprises:
all characters are stored to the charged erasable programmable read only memory.
Further, the method further comprises:
marking the number of times the character is referenced by the character scheme group.
Further, the marking of each character with a corresponding set of available character schemes includes:
the available status of each character for each character scheme group is marked, with a 1 indicating available and a 0 indicating unavailable.
Further, the designing a plurality of character scheme groups according to various BMC configuration parameters and establishing a mapping relationship between the character scheme groups and the BMC configuration parameter items includes:
and marking the character scheme group number corresponding to the BMC configuration parameter item.
In a second aspect, the present invention provides a system for customizing a character library of BMC configuration parameters, including:
the scheme design unit is configured for designing a plurality of character scheme groups according to various configuration parameters of the BMC and establishing a mapping relation between the character scheme groups and the BMC configuration parameter items;
a character storage unit configured to store all characters and mark each character with a corresponding available character scheme group;
the scheme matching unit is used for acquiring a matching character scheme group of the BMC configuration parameter item according to the mapping relation;
and the character customizing unit is configured to screen out an available character set of the matched character scheme group from all characters according to available character scheme group marks of the characters, and output the available character set as a special character library of the BMC configuration parameter item.
Further, the character storage unit includes:
the character classification module is configured for dividing all characters into capital letters, lowercase letters, numbers and special characters;
and the special storage module is configured for storing the special characters separately.
Further, the character storage unit further includes:
the representative setting module is configured to set representative characters for capital letters, lowercase letters and numbers respectively, wherein the representative characters of the capital letters and the lowercase characters are ASCII codes of first letters, and the representative characters of the numbers are ASCII codes of first numbers;
and the representative storage module is configured to open up a byte of storage space for capital letters, lowercase letters and numbers respectively, and the storage space is used for storing respective representative characters.
The beneficial effect of the invention is that,
according to the method and the system for customizing the character library of the BMC configuration parameters, the available character scheme groups are marked on the characters, a plurality of character scheme groups are designed according to various configuration parameters of the BMC, the mapping relation between the character scheme groups and BMC configuration parameter items is established, and the relation between the BMC configuration parameter items and single characters is established. Thereby, the character library can be customized for the BMC configuration parameter item. The invention forms an overall flexible character scheme taking the character scheme group and the configuration parameter configuration information as structures, and aiming at the character scheme group, a user can modify default initial values according to the self requirements, and aiming at different configuration parameters, or can configure into different character scheme groups through commands, thereby meeting the method for dynamically customizing the character library under different configuration parameters and different customer requirement modes. According to the method, different configuration parameters can flexibly select any one character scheme group as a character library of the user, and can be reconstructed and configured aiming at the default character scheme group according to the requirements of the user without modifying codes to regenerate the image file, so that the flexibility and the uniformity of the character library are greatly improved, the flexible configuration of the user according to the requirements of the user is possible, the character library scheme group information is stored in eeprom, and the defect that the scheme adopted by the character library configured by the user is changed possibly in the upgrading and updating process of the bmc image is avoided.
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 technical solutions in the prior art 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 that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
FIG. 2 is a schematic diagram of a character storage topology of a method of an embodiment of the invention.
FIG. 3 is a schematic block diagram of a system of one 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.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. The execution body in fig. 1 may be a system for customizing a character library of BMC configuration parameters.
As shown in fig. 1, the method 100 includes:
step 110, designing a plurality of character scheme groups according to various configuration parameters of BMC, and establishing a mapping relation between the character scheme groups and the BMC configuration parameter items;
step 120, storing all characters and marking each character with a corresponding available character scheme group;
step 130, acquiring a matching character scheme group of the BMC configuration parameter item according to the mapping relation;
and 140, screening an available character set of the matched character scheme group from all characters according to the available character scheme group marks of the characters, and outputting the available character set as a special character library of the BMC configuration parameter item.
In order to facilitate understanding of the present invention, the method for customizing the character library of the BMC configuration parameter provided by the present invention is further described below with reference to the principle of the method for customizing the character library of the BMC configuration parameter of the present invention and the process of customizing the character library of the BMC configuration parameter in the embodiment.
Specifically, the method for customizing the character library of the BMC configuration parameters includes:
(1) as shown in fig. 2, characters are classified into four categories, i.e., capital letters, lowercase letters, numerals, and special characters, in which upper and lower case letters and numerals represent one category only after storing in ASCII code of the first letter or the first numeral, for example, capital letters, only one byte space is opened in storage and storing 'a' represents capital letters, and lowercase letters store 'a' in storage, and numerals represent "0" in storage. The special characters are represented by separately opening up space by using the corresponding ascii codes.
Each character is followed by a two-byte character scheme group flag field, in addition to storing its own ASCII code, the character scheme group flag field of each character indicates the use of the current character in scheme group 0-scheme group 15 by bit, 1 indicates use, and 0 indicates no use. The character scheme group is a commonly used character library scheme group formed by designing and planning a storage structure of a character library and character libraries adopted by different configuration parameters of the BMC, 16 sets of character scheme groups are designed in the embodiment, and each character scheme group corresponds to a commonly used parameter value of the BMC. Different configuration parameters can flexibly select any one of the character scheme groups as a character library of the user, and the default character scheme group can be reconstructed and configured according to the requirements of the user without modifying codes to regenerate the image file.
In order to ensure the safety of character storage, the application stores all character data into EEprom (electrically erasable programmable read only memory).
(2) Each character is followed by a two-byte character scheme group flag field, in addition to storing its own ASCII code, the character scheme group flag field of each character indicates the use of the current character in scheme group 0-scheme group 15 by bit, 1 indicates use, and 0 indicates no use.
Thus, the construction of the character storage architecture is completed. In EEprom, upper and lower case letters, numbers and a map of each special character and the use of each character in a case group 0 to a case group 15 are stored, and 16 case groups that can be selected and flexibly configured are formed for all characters.
(3) The method comprises the following steps that the serial numbers of character scheme groups selected by different configuration parameters are stored next to the character scheme group, each configuration parameter occupies one byte, if the configuration parameter is 0, the character scheme group of the scheme group 0 is selected, if the configuration parameter is 1, the character scheme group of the scheme group 1 is selected, and the specific required byte number can be flexibly expanded according to the number of the configuration parameters.
(4) Aiming at the character scheme group, a user can modify the default initial value according to the requirement of the user, and aiming at different configuration parameters, the corresponding character scheme group can be appointed through a command, and the corresponding character scheme group can also be searched through a mapping relation. And then screening out the characters marked with the character scheme group as a formulated character library of the configuration parameters. Therefore, the method for dynamically customizing the character library under different configuration parameters and different customer requirement modes is met.
As shown in fig. 3, the system 300 includes:
the scheme design unit 310 is configured to design a plurality of character scheme groups according to various configuration parameters of the BMC, and establish a mapping relationship between the character scheme groups and the BMC configuration parameter items;
a character storage unit 320 configured to store all characters and mark each character with a corresponding set of available character schemes;
a scheme matching unit 330 configured to obtain a matching character scheme group of the BMC configuration parameter item according to the mapping relationship;
and the character customizing unit 340 is configured to screen out an available character set of the matched character scheme group from all characters according to the available character scheme group marks of the characters, and output the available character set as a special character library of the BMC configuration parameter item.
Optionally, as an embodiment of the present application, the character storage unit includes:
the character classification module is configured for dividing all characters into capital letters, lowercase letters, numbers and special characters;
and the special storage module is configured for storing the special characters separately.
Optionally, as an embodiment of the present application, the character storage unit further includes:
the representative setting module is configured to set representative characters for capital letters, lowercase letters and numbers respectively, wherein the representative characters of the capital letters and the lowercase characters are ASCII codes of first letters, and the representative characters of the numbers are ASCII codes of first numbers;
and the representative storage module is configured to open up a byte of storage space for capital letters, lowercase letters and numbers respectively, and the storage space is used for storing respective representative characters.
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 (10)

1. A method for customizing a character library of BMC configuration parameters is characterized by comprising the following steps:
designing a plurality of character scheme groups according to various configuration parameters of the BMC, and establishing a mapping relation between the character scheme groups and BMC configuration parameter items;
storing all characters and marking each character with a corresponding available character scheme group;
acquiring a matched character scheme group of the BMC configuration parameter item according to the mapping relation;
and screening the available character set of the matched character scheme group from all characters according to the available character scheme group marks of the characters, and outputting the available character set as a special character library of the BMC configuration parameter item.
2. The method of claim 1, wherein storing all characters comprises:
dividing all characters into capital letters, lowercase letters, numbers and special characters;
the special characters are stored separately.
3. The method of claim 2, wherein storing all characters further comprises:
setting representative characters for capital letters, lowercase letters and numbers respectively, wherein the representative characters of the capital letters and the lowercase characters are ASCII codes of first letters, and the representative characters of the numbers are ASCII codes of first numbers;
one byte of storage space is opened up for capital letters, lowercase letters and numbers respectively, and the storage space is used for storing respective representative characters.
4. The method of claim 1, further comprising:
all characters are stored to the charged erasable programmable read only memory.
5. The method of claim 1, further comprising:
marking the number of times the character is referenced by the character scheme group.
6. The method of claim 1, wherein said marking each character with a respective set of available character schemes comprises:
the available status of each character for each character scheme group is marked, with a 1 indicating available and a 0 indicating unavailable.
7. The method of claim 1, wherein designing a plurality of character scheme groups according to configuration parameters of the BMC, and establishing a mapping relationship between the character scheme groups and the BMC configuration parameter items comprises:
and marking the character scheme group number corresponding to the BMC configuration parameter item.
8. A system for customizing a character library of BMC configuration parameters, comprising:
the scheme design unit is configured for designing a plurality of character scheme groups according to various configuration parameters of the BMC and establishing a mapping relation between the character scheme groups and the BMC configuration parameter items;
a character storage unit configured to store all characters and mark each character with a corresponding available character scheme group;
the scheme matching unit is used for acquiring a matching character scheme group of the BMC configuration parameter item according to the mapping relation;
and the character customizing unit is configured to screen out an available character set of the matched character scheme group from all characters according to available character scheme group marks of the characters, and output the available character set as a special character library of the BMC configuration parameter item.
9. The system of claim 8, wherein the character storage unit comprises:
the character classification module is configured for dividing all characters into capital letters, lowercase letters, numbers and special characters;
and the special storage module is configured for storing the special characters separately.
10. The system of claim 9, wherein the character storage unit further comprises:
the representative setting module is configured to set representative characters for capital letters, lowercase letters and numbers respectively, wherein the representative characters of the capital letters and the lowercase characters are ASCII codes of first letters, and the representative characters of the numbers are ASCII codes of first numbers;
and the representative storage module is configured to open up a byte of storage space for capital letters, lowercase letters and numbers respectively, and the storage space is used for storing respective representative characters.
CN202010468743.7A 2020-05-28 2020-05-28 Character library customizing method and system for BMC (baseboard management controller) configuration parameters Active CN111694998B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010468743.7A CN111694998B (en) 2020-05-28 2020-05-28 Character library customizing method and system for BMC (baseboard management controller) configuration parameters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010468743.7A CN111694998B (en) 2020-05-28 2020-05-28 Character library customizing method and system for BMC (baseboard management controller) configuration parameters

Publications (2)

Publication Number Publication Date
CN111694998A true CN111694998A (en) 2020-09-22
CN111694998B CN111694998B (en) 2022-06-14

Family

ID=72478499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010468743.7A Active CN111694998B (en) 2020-05-28 2020-05-28 Character library customizing method and system for BMC (baseboard management controller) configuration parameters

Country Status (1)

Country Link
CN (1) CN111694998B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930725A (en) * 2009-12-09 2010-12-29 杭州华三通信技术有限公司 Method and device for displaying character
CN102722490A (en) * 2011-03-30 2012-10-10 汉王科技股份有限公司 A character-capturing method and a character-capturing device of an electronic reader and the same
CN102750007A (en) * 2012-06-12 2012-10-24 上海量明科技发展有限公司 Method and client for establishing personality character repertoire

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930725A (en) * 2009-12-09 2010-12-29 杭州华三通信技术有限公司 Method and device for displaying character
CN102722490A (en) * 2011-03-30 2012-10-10 汉王科技股份有限公司 A character-capturing method and a character-capturing device of an electronic reader and the same
CN102750007A (en) * 2012-06-12 2012-10-24 上海量明科技发展有限公司 Method and client for establishing personality character repertoire

Also Published As

Publication number Publication date
CN111694998B (en) 2022-06-14

Similar Documents

Publication Publication Date Title
US7644055B2 (en) Rule-based database object matching with comparison certainty
US9537717B2 (en) Policy enforcement point provisioning
US9401842B2 (en) Method and device for configuring terminal devices
CN101730099B (en) Terminal management method based on authority control and device
US20080005344A1 (en) Method and system for configuring a network device using a template
CN112217656B (en) Method and device for synchronizing configuration information of network equipment in SD-WAN (secure digital-to-Wide area network) system
US11558252B2 (en) Learning by inference from previous deployments
EP2044760A2 (en) Management of telephone call routing using a directory services schema
US20040193917A1 (en) Application programming interface to securely manage different execution environments
US20150127798A1 (en) Object version management
CN109857451A (en) IP kernel document generating method, device, equipment and medium
CN105765533A (en) Method and apparatus for firmware virtualization
CN108073390A (en) It is managed collectively the method, apparatus and system of configuration file in multiple engineerings
CN101677441B (en) Method, device and system of authorization control
Weerapanpisit et al. A decentralized location-based reputation management system in the IoT using blockchain
CN111694998B (en) Character library customizing method and system for BMC (baseboard management controller) configuration parameters
WO1998047057A2 (en) Registry management system
US20130297755A1 (en) Network element configuration management
CN109324856A (en) Menu treating method, device, computer equipment and storage medium
CN116561765A (en) Baseline checking method, device, equipment and storage medium based on knowledge base
US20070130184A1 (en) Adaptive data dictionary language, extendable for a security system
CN114327426A (en) Security service implementation method based on visual workflow and related equipment
CN113535225A (en) Environment configuration file processing method, device, equipment and medium of application software
CN113475040B (en) Learning by inference from brown deployments
JP2019204373A (en) Apparatus for and method of supporting creation of program using visual programming tool

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