CN108197309A - A kind of method, system and the readable storage medium storing program for executing of the storage of server assets information - Google Patents

A kind of method, system and the readable storage medium storing program for executing of the storage of server assets information Download PDF

Info

Publication number
CN108197309A
CN108197309A CN201810095660.0A CN201810095660A CN108197309A CN 108197309 A CN108197309 A CN 108197309A CN 201810095660 A CN201810095660 A CN 201810095660A CN 108197309 A CN108197309 A CN 108197309A
Authority
CN
China
Prior art keywords
assets information
server
request
relational database
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810095660.0A
Other languages
Chinese (zh)
Inventor
孙良勇
乔英良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810095660.0A priority Critical patent/CN108197309A/en
Publication of CN108197309A publication Critical patent/CN108197309A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of method of server assets information storage, the assets information including obtaining server;Assets information is stored in relational database according to preset structure standard;After the request for accessing assets information is received, read and return and the corresponding assets information of request from relational database.Server assets information is stored in relational database by the present invention using preset structure standard, so that accessing and change assets information has the method for standardization, i.e. other developers can also be inquired, accessed and be changed using the unified standard of relational database, facilitate the understanding of other developers, portable and versatility greatly improves, and without exploitation specifically for the software of proprietary data format, reduce the workload of development process, so that development cost reduces, development efficiency is improved.The present invention also provides the systems and computer readable storage medium of a kind of storage of server assets information, are respectively provided with above-mentioned advantageous effect.

Description

A kind of method, system and the readable storage medium storing program for executing of the storage of server assets information
Technical field
The present invention relates to computer application technology, a kind of method stored more particularly to server assets information, System and computer readable storage medium.
Background technology
With the rapid development of information technology, server has obtained extensive depth in cloud computing, big data and traditional industries The application entered, monitoring of the BMC (Baseboard Management Controller, baseboard management controller) as server Management system plays important function in the management of server, O&M, offer application interface etc..The core work(of BMC systems Can one of be monitoring server various assets informations, for example, BMC systems by with BIOS (Basic Input Output System, basic input output system) or other interactive interfacings so as to obtain the assets informations such as the CPU of server, then preserve In BMC systems, user can obtain the assets information of server.
At present, during the function of exploitation BMC systems, each developer uses customized proprietary data format Preserve server assets information, and realizing the preserving type of this proprietary data format needs to develop corresponding software, workload It is greatly and portable poor.In addition, proprietary data format, which also results in data, copies to elsewhere that others is unintelligible, if Other developers such as need to inquire data, accessed and changed at other operations will be especially cumbersome.As it can be seen that current BMC systems development cost when exploitation preserves the function of server assets information is high, poor universality, and development efficiency is low.
Therefore, how a kind of scheme that can solve above-mentioned technical problem is provided, is that those skilled in the art needs at present It solves the problems, such as.
Invention content
The object of the present invention is to provide a kind of method of server assets information storage, the present invention uses preset structure standard Server assets information is stored in relational database so that access and modification assets information has the method standardized, drop Low development cost, improves development efficiency.It is a further object of the present invention to provide what a kind of server assets information stored to be System and computer readable storage medium, are respectively provided with above-mentioned advantageous effect.
In order to solve the above technical problems, the present invention provides a kind of method of server assets information storage, including:
Obtain the assets information of server;
The assets information is stored in relational database according to preset structure standard;
After the request for accessing the assets information is received, read and return from the relational database and asked with described Seek the corresponding assets information.
Preferably, it is described to be had according to the assets information according to process of the preset structure standard storage in relational database Body is:
The assets information is stored in Lightweight Database sqlite according to preset structure standard.
Preferably, CPU and/or memory and/or hard disk information of the assets information for server.
Preferably, it is described receive the request for accessing the assets information process be specially:
Receive the request of the access assets information sent by Intelligent Platform Management Interface IPMI.
In order to solve the above technical problems, the present invention also provides a kind of system of server assets information storage, including:
Acquiring unit, for obtaining the assets information of server;
Storage unit, for the assets information to be stored in relational database according to preset structure standard;
Returning unit, for after the request for accessing the assets information is received, being read from the relational database And return to the assets information corresponding with the request.
Preferably, the storage unit is specifically used for the assets information is stored in light-duty number according to preset structure standard According in the sqlite of library.
Preferably, the acquiring unit is specifically for the CPU and/or memory and/or hard disk information of acquisition server.
Preferably, it is described receive the request for accessing the assets information process be specially:
Receive the request of the access assets information sent by Intelligent Platform Management Interface IPMI.
In order to solve the above technical problems, computer-readable the depositing the present invention also provides a kind of storage of server assets information Storage media is stored with computer program on the computer readable storage medium, when the computer program is executed by processor The step of realizing the method for the server assets information storage described in any of the above-described kind.
The present invention provides a kind of method of server assets information storage, the assets information including obtaining server;Root Assets information is stored in relational database according to preset structure standard;After the request for accessing assets information is received, from pass It is to read and return in database and the corresponding assets information of request.
Server assets information is stored in relational database by the present invention using preset structure standard so that is accessed and is repaiied Changing assets information has the method for standardization, i.e. other developers can also be carried out using the unified standard of relational database Inquiry accesses and modification, facilitates the understanding of other developers, and portable and versatility greatly improves, and without opening The software specifically for proprietary data format is sent out, reduces the workload of development process so that development cost reduces, and improves out Send out efficiency.
The present invention also provides the systems and computer readable storage medium of a kind of storage of server assets information, are respectively provided with Above-mentioned advantageous effect.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to institute in the prior art and embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of flow diagram of the method for server assets information storage provided by the present invention;
Fig. 2 is a kind of structure diagram of the system of server assets information storage provided by the present invention.
Specific embodiment
The core of the present invention is to provide a kind of method of server assets information storage, and the present invention uses preset structure standard Server assets information is stored in relational database so that access and modification assets information has the method standardized, drop Low development cost, improves development efficiency.What another core of the present invention was to provide a kind of storage of server assets information is System and computer readable storage medium, are respectively provided with above-mentioned advantageous effect.
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art All other embodiments obtained without making creative work shall fall within the protection scope of the present invention.
It please refers to Fig.1, Fig. 1 is a kind of flow signal of the method for server assets information storage provided by the present invention Figure, this method include:
Step S1:Obtain the assets information of server;
Specifically, in order to solve the problems, such as background technology propose, it is necessary first to obtain the assets information of server, this is pair Assets information does the basis of standardization, and then each developer is facilitated to be inquired assets information, accessed and changed Other operations.BMC systems can realize server outband management function, i.e., can get server in management end (user) Assets information, such as configuration, service condition and the present situation of server etc., therefore, BMC systems pass through in server Portion's interface can be obtained by the assets information of server.
Step S2:Assets information is stored in relational database according to preset structure standard;
Specifically, pre-configured relational database in BMC systems, relational database here can be with standard The relational database of access stencil and storage format could preferably facilitate access and modification in this way, avoid exploitation portable Relatively low proprietary data format.
Correspondingly, after BMC systems obtain the assets information of server, according to the content of assets information and preset structure standard The storage of assets information is carried out, due to pre-configured relational database, need to can will only be taken by simply storing order The assets information of business device is stored in relational database, such as gender, name, address and body of the data for 10 people of storage During part card information, the table that ten rows four arrange can be established by the storage order of standard, data can be carried out storing.
Step S3:After the request for accessing assets information is received, read and return and request pair from relational database The assets information answered.
Specifically, after BMC systems receive the request for accessing assets information, by reading order from relational database To with asking corresponding assets information, and pass through network and assets information is sent to requesting party, it should be noted that here Request can be user's concrete condition for being conducive to user or management end understanding server that either management end is sent.
The present invention provides a kind of method of server assets information storage, the assets information including obtaining server;Root Assets information is stored in relational database according to preset structure standard;After the request for accessing assets information is received, from pass It is to read and return in database and the corresponding assets information of request.
Server assets information is stored in relational database by the present invention using preset structure standard so that is accessed and is repaiied Changing assets information has the method for standardization, i.e. other developers can also be carried out using the unified standard of relational database Inquiry accesses and modification, facilitates the understanding of other developers, and portable and versatility greatly improves, and without opening The software specifically for proprietary data format is sent out, reduces the workload of development process so that development cost reduces, and improves out Send out efficiency.
On the basis of above-described embodiment:
As a kind of preferred embodiment, according to assets information according to preset structure standard storage in relational database Process is specially:
Assets information is stored in Lightweight Database sqlite according to preset structure standard.
Specifically, it is contemplated that the volume of BMC systems and space are smaller, and the relational database being configured in BMC systems is as possible Smaller space is occupied, therefore, sqlite embedded databases can be pre-configured with, and the assets information of server is stored in On the database.Sqlite embedded databases have speed fast, occupy little space, and have the standard speech in general data library The advantages that speech, therefore, other developers, can also be inquired using the standard language of sqlite embedded databases, be accessed And modification, it is easy to the understanding of each developer, portable and versatility greatly improves.
It should be noted that relational database can be sqlite embedded databases, or other, the present invention exists This is not limited.In addition, preset structure standard can be configured by the content of assets information, its other party can also be passed through Formula, the present invention do not limit herein, and preset structure standard need to only be set once, subsequently can be used directly, unless it is necessary to be repaiied Change.
As a kind of preferred embodiment, CPU and/or memory and/or hard disk information of the assets information for server.
Specifically, the assets information of server is varied, such as the temperature of server, voltage and configuration etc., specifically Which kind of model C PU is configured with, which kind of model memory, the PCI/PCIE cards of which kind of model etc., in addition to server mentioned above CPU, memory and hard disk information can also obtain other assets informations, to facilitate grasp or management server.It needs to illustrate , assets information can also be other, and the present invention does not limit herein.
As a kind of preferred embodiment, the process for receiving the request for accessing assets information is specially:
Receive the request of access assets information sent by Intelligent Platform Management Interface IPMI.
Specifically, management end or user can utilize the operation on host it should be understood that during the assets information of server System, such as Linux system, by IPMI, (Intelligent Platform Management Interface, intelligence are flat Platform management interface) interface send access assets information request.IPMI have standard access stencil, can facilitate user or The access of management end, improves access efficiency.
It should be noted that management end or user can send access request by IPMI interfaces, it can also be passed through His external interface sends access request, and the present invention is not particularly limited herein.
It please refers to Fig.2, Fig. 2 is a kind of structural representation of the system of server assets information storage provided by the present invention Figure, the system include:
Acquiring unit 1, for obtaining the assets information of server;
Storage unit 2, for assets information to be stored in relational database according to preset structure standard;
Returning unit 3, for when receive access assets information request after, read from relational database and return with Ask corresponding assets information.
As a kind of preferred embodiment, storage unit 2 is specifically used for being stored assets information according to preset structure standard In Lightweight Database sqlite.
As a kind of preferred embodiment, acquiring unit 1 is specifically used for obtaining the CPU of server and/or memory and/or hard Disk information.
As a kind of preferred embodiment, the process for receiving the request for accessing assets information is specially:
Receive the request of access assets information sent by Intelligent Platform Management Interface IPMI.
The above method is please referred to for a kind of introduction of the system of server assets information storage provided by the invention to implement Example, details are not described herein by the present invention.
In order to solve the above technical problems, computer-readable the depositing the present invention also provides a kind of storage of server assets information Storage media is stored with computer program on the computer readable storage medium, real when above computer program is executed by processor Existing following steps:
Obtain the assets information of server;
Assets information is stored in relational database according to preset structure standard;
After the request for accessing assets information is received, read and return and the corresponding assets of request from relational database Information.
Above method embodiment is please referred to for the introduction of computer readable storage medium provided by the invention, the present invention exists This is repeated no more.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other The difference of embodiment, just to refer each other for identical similar portion between each embodiment.For system disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related part is said referring to method part It is bright.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only include that A little elements, but also including other elements that are not explicitly listed or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, it is wanted by what sentence limited " including one " Element, it is not excluded that also there are other identical elements in the process, method, article or apparatus that includes the element.
The foregoing description of the disclosed embodiments enables professional and technical personnel in the field to realize or use the present invention. A variety of modifications of these embodiments will be apparent for those skilled in the art, it is as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and the principles and novel features disclosed herein phase one The most wide range caused.

Claims (9)

  1. A kind of 1. method of server assets information storage, which is characterized in that including:
    Obtain the assets information of server;
    The assets information is stored in relational database according to preset structure standard;
    After the request for accessing the assets information is received, read and return and the request pair from the relational database The assets information answered.
  2. 2. according to the method described in claim 1, it is characterized in that, it is described according to the assets information according to preset structure standard The process being stored in relational database is specially:
    The assets information is stored in Lightweight Database sqlite according to preset structure standard.
  3. 3. according to the method described in claim 2, it is characterized in that, the assets information is the CPU and/or memory of server And/or hard disk information.
  4. 4. according to claim 1-3 any one of them methods, which is characterized in that described receive accesses the assets information The process of request is specially:
    Receive the request of the access assets information sent by Intelligent Platform Management Interface IPMI.
  5. 5. a kind of system of server assets information storage, which is characterized in that including:
    Acquiring unit, for obtaining the assets information of server;
    Storage unit, for the assets information to be stored in relational database according to preset structure standard;
    Returning unit, for after the request for accessing the assets information is received, reading and returning from the relational database Return the assets information corresponding with the request.
  6. 6. system according to claim 5, which is characterized in that the storage unit is specifically used for according to preset structure standard The assets information is stored in Lightweight Database sqlite.
  7. 7. system according to claim 5, which is characterized in that the acquiring unit is specifically used for obtaining the CPU of server And/or memory and/or hard disk information.
  8. 8. system according to claim 6, which is characterized in that the mistake for receiving the request for accessing the assets information Journey is specially:
    Receive the request of the access assets information sent by Intelligent Platform Management Interface IPMI.
  9. 9. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes such as Claims 1-4 any one of them server assets information when the computer program is executed by processor The step of method of storage.
CN201810095660.0A 2018-01-31 2018-01-31 A kind of method, system and the readable storage medium storing program for executing of the storage of server assets information Pending CN108197309A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810095660.0A CN108197309A (en) 2018-01-31 2018-01-31 A kind of method, system and the readable storage medium storing program for executing of the storage of server assets information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810095660.0A CN108197309A (en) 2018-01-31 2018-01-31 A kind of method, system and the readable storage medium storing program for executing of the storage of server assets information

Publications (1)

Publication Number Publication Date
CN108197309A true CN108197309A (en) 2018-06-22

Family

ID=62591573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810095660.0A Pending CN108197309A (en) 2018-01-31 2018-01-31 A kind of method, system and the readable storage medium storing program for executing of the storage of server assets information

Country Status (1)

Country Link
CN (1) CN108197309A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110659166A (en) * 2019-09-03 2020-01-07 苏州浪潮智能科技有限公司 Method and equipment for testing BMC asset information function
CN111367761A (en) * 2020-02-28 2020-07-03 苏州浪潮智能科技有限公司 Information management method, system and related components of universal server
CN112269801A (en) * 2020-10-10 2021-01-26 北京浪潮数据技术有限公司 Asset information acquisition method, device, equipment and readable storage medium
CN113032164A (en) * 2021-03-24 2021-06-25 山东英信计算机技术有限公司 BMC and BIOS information interaction method, device, BMC and medium
CN113238916A (en) * 2021-05-14 2021-08-10 山东英信计算机技术有限公司 Server asset management method, BMC, management background and terminal
CN113705837A (en) * 2021-09-03 2021-11-26 上海思询信息科技有限公司 Method and device for inquiring maintenance information by multi-brand server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289388A (en) * 2011-09-05 2011-12-21 浪潮电子信息产业股份有限公司 Extension method for managing IPMI (Intelligent Platform Management Interface) interface protocol by server
CN103136216A (en) * 2011-11-24 2013-06-05 深圳长城开发科技股份有限公司 Information management method and system of digital television
CN105809314A (en) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 Method and system for asset management
CN106126357A (en) * 2016-06-29 2016-11-16 浪潮集团有限公司 Method for implementing server management system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289388A (en) * 2011-09-05 2011-12-21 浪潮电子信息产业股份有限公司 Extension method for managing IPMI (Intelligent Platform Management Interface) interface protocol by server
CN103136216A (en) * 2011-11-24 2013-06-05 深圳长城开发科技股份有限公司 Information management method and system of digital television
CN105809314A (en) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 Method and system for asset management
CN106126357A (en) * 2016-06-29 2016-11-16 浪潮集团有限公司 Method for implementing server management system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110659166A (en) * 2019-09-03 2020-01-07 苏州浪潮智能科技有限公司 Method and equipment for testing BMC asset information function
CN110659166B (en) * 2019-09-03 2022-08-02 苏州浪潮智能科技有限公司 Method and equipment for testing BMC asset information function
CN111367761A (en) * 2020-02-28 2020-07-03 苏州浪潮智能科技有限公司 Information management method, system and related components of universal server
CN112269801A (en) * 2020-10-10 2021-01-26 北京浪潮数据技术有限公司 Asset information acquisition method, device, equipment and readable storage medium
CN112269801B (en) * 2020-10-10 2024-02-20 北京浪潮数据技术有限公司 Asset information acquisition method, device, equipment and readable storage medium
CN113032164A (en) * 2021-03-24 2021-06-25 山东英信计算机技术有限公司 BMC and BIOS information interaction method, device, BMC and medium
CN113032164B (en) * 2021-03-24 2023-04-07 山东英信计算机技术有限公司 BMC and BIOS information interaction method and device, BMC and medium
CN113238916A (en) * 2021-05-14 2021-08-10 山东英信计算机技术有限公司 Server asset management method, BMC, management background and terminal
CN113705837A (en) * 2021-09-03 2021-11-26 上海思询信息科技有限公司 Method and device for inquiring maintenance information by multi-brand server

Similar Documents

Publication Publication Date Title
CN108197309A (en) A kind of method, system and the readable storage medium storing program for executing of the storage of server assets information
US9996565B2 (en) Managing an index of a table of a database
US10686686B2 (en) Performance monitoring in a distributed storage system
US10002170B2 (en) Managing a table of a database
US9875192B1 (en) File system service for virtualized graphics processing units
US10621090B2 (en) Facility for extending exclusive hold of a cache line in private cache
CN111813804A (en) Data query method and device, electronic equipment and storage medium
CN105550270B (en) Data base query method and device
CN110555072A (en) Data access method, device, equipment and medium
US11321318B2 (en) Dynamic access paths
CN109376173A (en) A kind of data query method, apparatus, electronic equipment and storage medium
CN104410666A (en) Method and system for implementing heterogeneous storage resource management under cloud computing
CN110851318A (en) Serial port log collection method, system and equipment under server management system
CN110008104A (en) A kind of management method of log information, system, equipment and storage medium
CN110727664A (en) Method and device for executing target operation on public cloud data
CN110175146B (en) Hard disk information acquisition method and device for acquiring hard disk information
CN109033456B (en) Condition query method and device, electronic equipment and storage medium
CN109347899B (en) Method for writing log data in distributed storage system
CN107577962B (en) A kind of method, system and relevant apparatus that the more algorithms of cipher card execute side by side
CN111913861A (en) Performance test method, device, equipment and medium of Internet of things system
CN113032650B (en) Library book management method, library book management device, library book management server and library book management storage medium
US11580082B2 (en) Object storage system with control entity quota usage mapping
US20160267093A1 (en) Geolocation and practice setting based training filtering
CN114334075A (en) Data shape confidence
CN113764110A (en) Data processing method and device, electronic equipment 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180622

RJ01 Rejection of invention patent application after publication