CN106850814B - Method for realizing sensor information acquisition by adding custom command support - Google Patents

Method for realizing sensor information acquisition by adding custom command support Download PDF

Info

Publication number
CN106850814B
CN106850814B CN201710080629.5A CN201710080629A CN106850814B CN 106850814 B CN106850814 B CN 106850814B CN 201710080629 A CN201710080629 A CN 201710080629A CN 106850814 B CN106850814 B CN 106850814B
Authority
CN
China
Prior art keywords
ipmi
command
sensor
bmc
smc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710080629.5A
Other languages
Chinese (zh)
Other versions
CN106850814A (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.)
Tidal Group Co Ltd
Original Assignee
Tidal Group 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 Tidal Group Co Ltd filed Critical Tidal Group Co Ltd
Priority to CN201710080629.5A priority Critical patent/CN106850814B/en
Publication of CN106850814A publication Critical patent/CN106850814A/en
Application granted granted Critical
Publication of CN106850814B publication Critical patent/CN106850814B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3086Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves the use of self describing data formats, i.e. metadata, markup languages, human readable formats
    • 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/46Multiprogramming arrangements
    • G06F9/466Transaction processing
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks

Abstract

The invention particularly relates to a method for realizing sensor information acquisition by adding a custom command support. The method for realizing the sensor information acquisition by adding the custom command support comprises the steps of adding a sensor acquisition thread in an IPMI protocol stack of an SMC (sheet molding compound), and adding the custom command support in the IPMI protocol stack of a BMC (baseboard management controller) of each computing unit; the sensor collection thread is not in direct communication with the Message Handler, the function of the custom command can be indexed and called through a command mapping table provided by the Message Handler of the BMC, and then the IPMI protocol stack of the SMC has the functions of the IPMI Server and the IPMI Client, so that the SMC is suitable for information collection of the sensor of the Server with a plurality of computing units. The method for realizing the sensor information acquisition by adding the custom command support is based on the realization of the IPMI protocol stack, and can ensure that the IPMI protocol stack of the SMC has the functions of both an IPMI Server and an IPMI Client only by carrying out less change, thereby being suitable for the sensor information acquisition of a Server with a plurality of computing units.

Description

Method for realizing sensor information acquisition by adding custom command support
Technical Field
The invention relates to the technical field of server management, in particular to a method for realizing sensor information acquisition by adding a custom command support.
Background
For a server having a plurality of computing units, a System Management Controller (SMC) on a Management unit thereof needs to collect sensor information of a Baseboard Management Controller (BMC) of each computing unit while collecting sensor information of the server, so as to monitor an operation status of the entire server.
The SMC adopts the realization code of the same IPMI (Intelligent Platform Management interface) protocol stack as the BMC, so the SMC is essentially the same as the BMC, namely the SMC is an IPMI Server, and an external IPMItool or a built-in Web Server supporting an IPMI access interface is used as an IPMI Client. This design is reasonable for BMC, since in a Server with multiple computing units, BMC is a relatively pure IPMI Server.
However, for the SMC, in addition to supporting the access of the external IPMI access interface, i.e. acting as IPMI Server, it is also necessary to actively initiate the access of the BMC of each computing unit, i.e. acting as IPMI Client. In the existing solution, the SMC realizes the sensor information collection by adding a relatively independent process for accessing the BMC of each computing unit without departing from the IPMI protocol stack, and cannot make good use of the functions of the existing IPMI protocol stack and the extensibility provided by the IPMI protocol, so a new method for realizing the server sensor information collection is necessary to be provided.
Based on the problems, the invention provides a method for realizing sensor information acquisition by adding a custom command support.
Disclosure of Invention
In order to make up for the defects of the prior art, the invention provides a simple and efficient method for realizing sensor information acquisition by adding a custom command support.
The invention is realized by the following technical scheme:
a method for realizing sensor information acquisition by adding custom command support is characterized in that: adding a sensor acquisition thread in an IPMI protocol stack of the SMC, and adding support for a user-defined command in the IPMI protocol stack of the BMC of each computing unit; the sensor collection thread is not in direct communication with the Message Handler, the function of the custom command can be indexed and called through a command mapping table provided by the Message Handler of the BMC, and then the IPMI protocol stack of the SMC has the functions of the IPMI Server and the IPMI Client, so that the SMC is suitable for information collection of the sensor of the Server with a plurality of computing units.
The reply Message of the self-defining command for acquiring the sensor information of the BMC, which is initiated by the sensor acquisition thread, is an IPMI response Message, but the Message Handler of the SMC regards the reply Message as an IPMI request Message rather than an IPMI response Message, so that the reply Message can be processed by a function for processing the IPMI request; identifying the IPMI response message of the self-defined command by judging a network function code NetFn in a function for processing the IPMI request, and carrying out corresponding processing to provide external access; and the BMC supports the user-defined command by using a user-defined command implementation method specified by the standard IPMI protocol.
Sending and acquiring a custom command of sensor data of each computing unit through the sensor acquisition thread, wherein the custom command uses an unused network function code NetFn in a system to be different from other command sets, and meanwhile, the judgment of the network function code NetFn in a reply message of the BMC is added in a function of the MessageHandler for processing the IPMI request; if the value of the network function code NetFn indicates the network function code NetFn specific to the self-defined command, the reply message is intercepted and the sensor data in the reply message is analyzed, and the sensor data is stored in a formatted form in a shared buffer area for external access.
The invention provides a method for realizing sensor information acquisition by adding a custom command support, which comprises the following steps:
(1) adding a sensor acquisition thread in an IPMI protocol stack of the SMC;
(2) a sensor acquisition thread sends and acquires a custom command of sensor data of a certain computing unit, wherein the custom command uses an unused network function code NetFn in a system to be different from other command sets;
(3) the Message Handler of the BMC of the computing unit is indexed by a method of a command mapping table and calls a function of a custom command added in an IPMI protocol stack to realize the purpose, and the sensor information of the BMC is acquired and then the SMC is replied in an IPMI response mode;
(4) the method comprises the steps that judgment of a network function code NetFn in a BMC reply Message is added to a function of a Message Handler of the SMC for processing an IPMI request, and if the value of the network function code NetFn indicates the network function code NetFn specific to a self-defined command, the reply Message is intercepted, sensor data in the reply Message is analyzed, and the sensor data are stored in a shared buffer area in a formatted mode for external access;
(5) and traversing the BMC of each computing unit to acquire the sensor information of all the computing units.
The invention has the beneficial effects that: the method for realizing the sensor information acquisition by adding the custom command support is based on the realization of an IPMI protocol stack, a sensor acquisition thread is added in the IPMI protocol stack of the SMC, the support for the custom command is added in the IPMI protocol stack of the BMC of each computing unit, the IPMI protocol stack of the SMC has the functions of an IPMI Server and an IPMI Client only by slightly changing, and the method is suitable for the sensor information acquisition of a Server with a plurality of computing units.
Drawings
FIG. 1 is a schematic diagram of a method for implementing sensor information acquisition by adding custom commands.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention more clearly apparent, the present invention is described in detail below with reference to the accompanying drawings and embodiments. It should be noted that the specific embodiments described herein are only for explaining the present invention and are not used to limit the present invention.
In this embodiment, the blade server includes a management unit, a calculation unit, an exchange unit, a power supply unit, and a fan unit. The management unit is provided with an SMC, the computing unit is provided with a BMC, and the SMC provides an access interface to the outside through a Web management interface.
The method for realizing the sensor information acquisition by adding the custom command support comprises the steps of adding a sensor acquisition thread in an IPMI protocol stack of an SMC (sheet molding compound), and adding the custom command support in the IPMI protocol stack of a BMC (baseboard management controller) of each computing unit; the sensor acquisition thread is not in direct communication with the Message Handler, the function of the custom command can be indexed and called through a command mapping table provided by the Message Handler of the BMC, and then the IPMI protocol stack of the SMC has the functions of IPMIServer and IPMI Client, so that the SMC is suitable for information acquisition of the sensor of the server with a plurality of computing units.
The reply Message of the self-defining command for acquiring the sensor information of the BMC, which is initiated by the sensor acquisition thread, is an IPMI response Message, but the Message Handler of the SMC regards the reply Message as an IPMI request Message rather than an IPMI response Message, so that the reply Message can be processed by a function for processing the IPMI request; identifying the IPMI response message of the self-defined command by judging a network function code NetFn in a function for processing the IPMI request, and carrying out corresponding processing to provide external access; and the BMC supports the user-defined command by using a user-defined command implementation method specified by the standard IPMI protocol.
Sending and acquiring a custom command of sensor data of each computing unit through the sensor acquisition thread, wherein the custom command uses an unused network function code NetFn in a system to be different from other command sets, and meanwhile, the judgment of the network function code NetFn in a reply message of the BMC is added in a function of the MessageHandler for processing the IPMI request; if the value of the network function code NetFn indicates the network function code NetFn specific to the self-defined command, the reply message is intercepted and the sensor data in the reply message is analyzed, and the sensor data is stored in a formatted form in a shared buffer area for external access.
The method for realizing sensor information acquisition by adding the custom command comprises the following steps:
(1) adding a sensor acquisition thread in an IPMI protocol stack of the SMC;
(2) a sensor acquisition thread sends and acquires a custom command of sensor data of a certain computing unit, wherein the custom command uses an unused network function code NetFn in a system to be different from other command sets;
(3) the Message Handler of the BMC of the computing unit is indexed by a method of a command mapping table and calls a function of a custom command added in an IPMI protocol stack to realize the purpose, and the sensor information of the BMC is acquired and then the SMC is replied in an IPMI response mode;
(4) the method comprises the steps that judgment of a network function code NetFn in a BMC reply Message is added to a function of a Message Handler of the SMC for processing an IPMI request, and if the value of the network function code NetFn indicates the network function code NetFn specific to a self-defined command, the reply Message is intercepted, sensor data in the reply Message is analyzed, and the sensor data are stored in a shared buffer area in a formatted mode for external access;
(5) and traversing the BMC of each computing unit to acquire the sensor information of all the computing units.
The SMC not only has all functions of a standard IPMI protocol stack, but also can run a sensor acquisition thread added in the IPMI protocol stack and a customized Web server. The sensor collection thread of the SMC sends and obtains a custom command of all sensor information of the BMC, through the processing process of the method, the BMC executes information returned by the custom command and is finally processed by a function of a Message Handler of the SMC for processing an IPMI request, sensor data in the information is stored in a shared buffer area in a formatted mode, an access interface for the data in the shared buffer area is provided through a customized Web server, and the SMC and the obtained sensor information of each computing unit can be displayed through a Web management interface.

Claims (1)

1. A method for realizing sensor information acquisition by adding custom command support is characterized in that: adding a sensor acquisition thread in an IPMI protocol stack of the SMC, and adding support for a user-defined command in the IPMI protocol stack of the BMC of each computing unit; the sensor acquisition thread is not in direct communication with the Message Handler, and the function of the self-defined command can be indexed and called through a command mapping table provided by the Message Handler of the BMC, so that the IPMI protocol stack of the SMC has the functions of an IPMI Server and an IPMI Client, and the SMC is suitable for information acquisition of a sensor of a Server with a plurality of computing units;
the reply Message of the self-defining command for acquiring the sensor information of the BMC, which is initiated by the sensor acquisition thread, is an IPMI response Message, but the Message Handler of the SMC regards the reply Message as an IPMI request Message rather than an IPMI response Message, so that the reply Message can be processed by a function for processing the IPMI request; identifying the IPMI response message of the self-defined command by judging a network function code NetFn in a function for processing the IPMI request, and carrying out corresponding processing to provide external access; the BMC supports the user-defined command by using a user-defined command implementation method specified by a standard IPMI protocol;
sending and acquiring a custom command of sensor data of each computing unit through the sensor acquisition thread, wherein the custom command uses an unused network function code NetFn in a system to be different from other command sets, and meanwhile, the judgment of the network function code NetFn in a reply message of the BMC is added in a function of the MessageHandler for processing the IPMI request; if the value of the network function code NetFn indicates the specific network function code NetFn of the self-defined command, intercepting the reply message and analyzing the sensor data in the reply message, and storing the sensor data in a formatted form into a shared buffer area for external access;
the method comprises the following steps:
(1) adding a sensor acquisition thread in an IPMI protocol stack of the SMC;
(2) a sensor acquisition thread sends and acquires a custom command of sensor data of a certain computing unit, wherein the custom command uses an unused network function code NetFn in a system to be different from other command sets;
(3) the Message Handler of the BMC of the computing unit is indexed by a method of a command mapping table and calls a function of a custom command added in an IPMI protocol stack to realize the purpose, and the sensor information of the BMC is acquired and then the SMC is replied in an IPMI response mode;
(4) the method comprises the steps that judgment of a network function code NetFn in a BMC reply Message is added to a function of a Message Handler of the SMC for processing an IPMI request, and if the value of the network function code NetFn indicates the network function code NetFn specific to a self-defined command, the reply Message is intercepted, sensor data in the reply Message is analyzed, and the sensor data are stored in a shared buffer area in a formatted mode for external access;
(5) and traversing the BMC of each computing unit to acquire the sensor information of all the computing units.
CN201710080629.5A 2017-02-15 2017-02-15 Method for realizing sensor information acquisition by adding custom command support Active CN106850814B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710080629.5A CN106850814B (en) 2017-02-15 2017-02-15 Method for realizing sensor information acquisition by adding custom command support

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710080629.5A CN106850814B (en) 2017-02-15 2017-02-15 Method for realizing sensor information acquisition by adding custom command support

Publications (2)

Publication Number Publication Date
CN106850814A CN106850814A (en) 2017-06-13
CN106850814B true CN106850814B (en) 2020-02-14

Family

ID=59127620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710080629.5A Active CN106850814B (en) 2017-02-15 2017-02-15 Method for realizing sensor information acquisition by adding custom command support

Country Status (1)

Country Link
CN (1) CN106850814B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309333B (en) * 2020-02-13 2023-08-08 超越科技股份有限公司 Structure for remotely operating BMC through SMC and implementation method thereof
CN111858238A (en) * 2020-06-29 2020-10-30 山东云海国创云计算装备产业创新中心有限公司 Method, device and equipment for managing CPU state data

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7844866B2 (en) * 2007-10-02 2010-11-30 International Business Machines Corporation Mechanism to report operating system events on an intelligent platform management interface compliant server
CN102026042A (en) * 2009-09-18 2011-04-20 中兴通讯股份有限公司 Keep-alive and self-healing method and device for advanced telecom computing architecture control surface
CN102594602A (en) * 2012-02-23 2012-07-18 浪潮电子信息产业股份有限公司 Location management design method of multi-node cloud computing server
CN103916280A (en) * 2014-04-15 2014-07-09 浪潮电子信息产业股份有限公司 Blade server management network driving DHCP allocating method
CN104104543A (en) * 2014-07-17 2014-10-15 浪潮集团有限公司 Server managing system and method based on SNMP and IPMI protocol
CN104899063A (en) * 2015-06-01 2015-09-09 浪潮集团有限公司 Server management system and startup method
CN105389242A (en) * 2015-10-14 2016-03-09 浪潮电子信息产业股份有限公司 Method for acquiring overall cabinet server information in batch
CN105868077A (en) * 2016-04-12 2016-08-17 浪潮电子信息产业股份有限公司 Method for obtaining monitoring information of complete cabinet server nodes
CN106528308A (en) * 2016-11-25 2017-03-22 济南浪潮高新科技投资发展有限公司 Server sensor information collection method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7844866B2 (en) * 2007-10-02 2010-11-30 International Business Machines Corporation Mechanism to report operating system events on an intelligent platform management interface compliant server
CN102026042A (en) * 2009-09-18 2011-04-20 中兴通讯股份有限公司 Keep-alive and self-healing method and device for advanced telecom computing architecture control surface
CN102594602A (en) * 2012-02-23 2012-07-18 浪潮电子信息产业股份有限公司 Location management design method of multi-node cloud computing server
CN103916280A (en) * 2014-04-15 2014-07-09 浪潮电子信息产业股份有限公司 Blade server management network driving DHCP allocating method
CN104104543A (en) * 2014-07-17 2014-10-15 浪潮集团有限公司 Server managing system and method based on SNMP and IPMI protocol
CN104899063A (en) * 2015-06-01 2015-09-09 浪潮集团有限公司 Server management system and startup method
CN105389242A (en) * 2015-10-14 2016-03-09 浪潮电子信息产业股份有限公司 Method for acquiring overall cabinet server information in batch
CN105868077A (en) * 2016-04-12 2016-08-17 浪潮电子信息产业股份有限公司 Method for obtaining monitoring information of complete cabinet server nodes
CN106528308A (en) * 2016-11-25 2017-03-22 济南浪潮高新科技投资发展有限公司 Server sensor information collection method

Also Published As

Publication number Publication date
CN106850814A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN107528870B (en) A kind of collecting method and its equipment
CN105653398B (en) A kind of smart allocation operating system mirror method
US20200174435A1 (en) Energy Information System, and Method and Device for Processing Energy Information
CN104881352A (en) System resource monitoring device based on mobile terminal
CN110659109A (en) Openstack cluster virtual machine monitoring system and method
CN107770022A (en) Collecting method, electronic equipment and storage medium based on rtu protocol
CN105429791A (en) Distributed service state detection device and method
US9647723B1 (en) Data center management using device identification over power-line
US9485133B2 (en) Platform independent management controller
CN105389242A (en) Method for acquiring overall cabinet server information in batch
CN106850814B (en) Method for realizing sensor information acquisition by adding custom command support
CN110928258A (en) Industrial data acquisition system
CN105592164A (en) Distributed system and method for data processing
CN103019905A (en) Substrate managing controller and data processing method thereof
CN104270432B (en) Based on drilling well industry Real-time Data Service system and data interactive method
CN103297477B (en) A kind of data acquisition reporting system and data processing method and proxy server
CN102521102A (en) Monitoring management method of physical multi-partition computer system based on Non Uniform Memory Access (NUMA)
CN104038360A (en) Network management realization system and network management realization method based on novel access controller architecture
WO2023222109A1 (en) Network wakeup management method and apparatus, electronic device, and storage medium
CN105791240A (en) Multichannel and multiprotocol channel management method and system
CN110677303A (en) Network management system
CN105912621A (en) Area building energy consumption platform data storing and query method
CN104407920A (en) Data processing method and system based on inter-process communication
CN113630368B (en) Communication method, system, terminal and medium of automatic cloud meter
CN112667460A (en) Method for monitoring avionics system application task stack space

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
TA01 Transfer of patent application right

Effective date of registration: 20200109

Address after: 250100 Ji'nan high tech Zone, Shandong, No. 1036 wave road

Applicant after: Tidal Group Co., Ltd.

Address before: 250100, Ji'nan province high tech Zone, Sun Village Branch Road, No. 2877, building, floor, building, on the first floor

Applicant before: Ji'nan wave high and New Technology Investment Development Co., Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant