CN110377136A - A kind of PSU original value log recording method and device - Google Patents
A kind of PSU original value log recording method and device Download PDFInfo
- Publication number
- CN110377136A CN110377136A CN201910526760.9A CN201910526760A CN110377136A CN 110377136 A CN110377136 A CN 110377136A CN 201910526760 A CN201910526760 A CN 201910526760A CN 110377136 A CN110377136 A CN 110377136A
- Authority
- CN
- China
- Prior art keywords
- psu
- log
- original value
- register
- key
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/28—Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4482—Procedural
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of PSU original value log recording methods, this method comprises: BMC calls log memory information function interface when receiving the key acquisition log order in IPMI order;Create the PSU original value log of PSU related register;It calls and obtains PSU information function in place determines whether the target PSU of server is in place;If it is not, then label target PSU is not in place in PSU original value log;If it is, obtaining function using PSU register value reads register original value relevant to target PSU, and the log of PSU original value is written into register original value.This method can provide the PSU original value log including accurate PSU parts data information, be conducive to be monitored server management.The invention also discloses a kind of PSU original value log recording apparatus, BMC and readable storage medium storing program for executing, have corresponding technical effect.
Description
Technical field
The present invention relates to server admin technical fields, more particularly to a kind of PSU original value log recording method, dress
It sets, BMC and readable storage medium storing program for executing.
Background technique
BMC (Baseboard Management Controller, baseboard management controller) is the distinctive management of server
Controller, BMC can automatic monitoring server operating status, and regulated and controled in time according to current state, wherein main one
A function is exactly to obtain the information of each module of current server or device, according to the working condition of current information response service device
Deng.
PSU (Power Supply Unit, power supply device) is the power supplier of server, has processor inside PSU
And chip etc., it monitors and the input voltage of in store PSU, input current, input power, output voltage, output electric current, output
Essential informations, the major functions such as power, current state, PSU version information, factory ID number, the date of production are mentioned for server
It for required power supply, is communicated with the BMC of server, the essential information of itself is transferred to BMC, be convenient for server O&M people
Member checks and safeguards.
BMC passes through the GPIO on mainboard, the portion the signal acquisitions PSU such as I2C when the PSU to server is managed monitoring
The state of part such as input voltage, input current, input power, output voltage, output electric current, output power etc., then according to one
Fixed format saves as journal file, and so as to server, personnel are checked.But the information in existing PSU journal file
It is all by the content of parsing conversion, PSU journal file cannot ensure the correctness of information or data completely.And it is based on not protecting
The PSU journal file for hindering data correctness carries out PSU accident analysis and performance evaluation is clearly insecure, is unfavorable for server
Monitoring management.
In conclusion the problems such as how efficiently solving the reliability for ensureing PSU journal file, is current art technology
Personnel's technical problem urgently to be solved.
Summary of the invention
The object of the present invention is to provide a kind of PSU original value log recording method, device, BMC and readable storage medium storing program for executing, with
The original value of PSU related register is obtained, and generates the mode of PSU original value log to provide correctly for server monitoring management
PSU data.
In order to solve the above technical problems, the invention provides the following technical scheme:
A kind of PSU original value log recording method, comprising:
BMC calls log memory information function interface when receiving the key acquisition log order in IPMI order;
Create the PSU original value log of PSU related register;
It calls and obtains PSU information function in place determines whether the target PSU of server is in place;
If it is not, then it is not in place to mark the target PSU in the PSU original value log;
If it is, obtaining function using PSU register value reads register original value relevant to the target PSU,
And the PSU original value log is written into the register original value.
Preferably, described original using PSU register value acquisition function reading register relevant to the target PSU
Value, comprising:
It is original according to preset order reading register relevant to the target PSU that function is obtained using PSU register value
Value.
Preferably, the BMC calls log memory information letter when receiving the key acquisition log order in IPMI order
Number interface, comprising:
One key log acquisition information function of Ali is called to will acquire the thread starting of system all parts log;
One key log of push in operating status is to one key log acquisition mission thread of server task thread and Ali
The log memory information function interface is called respectively.
Preferably, the thread for calling one key log acquisition information function of Ali to will acquire system all parts log opens
It is dynamic, comprising:
The one key log acquisition information function of Ali is called, corresponding to the thread that will acquire system all parts log
Current state flag bit member's current state is set as starting to execute in one key log acquisition state flag bit structural body.
Preferably, the one key log of push in operating status is obtained to server task thread and one key log of Ali
Mission thread is taken to call the log memory information function interface respectively, comprising:
The one key log is detecting thread mark to server task thread and one key log acquisition mission thread of Ali
Note position be it is described start execute when, call the log memory information function interface respectively.
Preferably, the log memory information function interface is called, comprising:
The log memory information function interface calls PSU register value to obtain function;
The PSU register value obtains function call PSU register value and saves the related register that function obtains PSU in place
Original value.
Preferably, the PSU original value log is written into the register original value, comprising:
The call number of the target PSU, register command word, register command name and the register original value are written
In the PSU original value log.
A kind of PSU original value log recording apparatus, comprising:
Order receiver module calls log memory for BMC when receiving the key acquisition log order in IPMI order
Information function interface;
PSU original value log creation module, for creating the PSU original value log of PSU related register;
PSU on-site judgment module, for call obtain PSU information function in place determine server target PSU whether
Position;
PSU original value logger module is used for when the target PSU is not in place, then in the PSU original value log
The middle mark target PSU is not in place;When the target PSU is in place, then function reading and institute are obtained using PSU register value
The relevant register original value of target PSU is stated, and the PSU original value log is written into the register original value.
A kind of BMC, comprising:
Memory, for storing computer program;
Microcontroller, the step of above-mentioned PSU original value log recording method is realized when for executing the computer program.
A kind of readable storage medium storing program for executing is stored with computer program, the computer program quilt on the readable storage medium storing program for executing
The step of processor realizes above-mentioned PSU original value log recording method when executing.
Using method provided by the embodiment of the present invention, when a key of the BMC in reception IPMI order obtains log order,
Call log memory information function interface;Create the PSU original value log of PSU related register;It calls and obtains PSU information in place
Function determines whether the target PSU of server is in place;If it is not, then label target PSU is not in place in PSU original value log;
If it is, obtaining function using PSU register value reads register original value relevant to target PSU, and register is former
The log of PSU original value is written in initial value.
As it can be seen that server B MC collects the original value of PSU related register simultaneously by executing IPMI order in the method
Generate initial data journal file.I.e. it is original can to obtain the PSU including PSU related register original value by IPMI order by user
Will on duty for the day.The PSU original value log can ensure the reliability of the data of its record without parsing and converting.It so can be right
In the case where the data or information that can not determine in existing PSU log, providing includes accurate PSU parts data information
PSU original value log is conducive to be monitored server management.
Correspondingly, the embodiment of the invention also provides PSU corresponding with above-mentioned PSU original value log recording method is original
It is worth log recording apparatus, BMC and readable storage medium storing program for executing, has above-mentioned technique effect, details are not described herein.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of implementation flow chart of PSU original value log recording method in the embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of PSU original value log recording apparatus in the embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of BMC in the embodiment of the present invention;
Fig. 4 is a kind of concrete structure schematic diagram of BMC in the embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Embodiment one:
Referring to FIG. 1, Fig. 1 is a kind of flow chart of PSU original value log recording method in the embodiment of the present invention, this method
Applied in BMC, method includes the following steps:
S101, BMC call log memory information function to connect when receiving the key acquisition log order in IPMI order
Mouthful.
Wherein, IPMI (Intelligent Platform Management Interface, intelligent platform supervision interface)
It is a kind of industrial standard for managing the use of peripheral equipment used in the business system based on Intel structure, user can benefit
With the physical health feature of IPMI monitoring server, such as temperature, voltage, fan operating state, power supply status.Server is in work
When making, all IPMI functions are all to send commands to complete to BMC, and order is defined using IPMI specification or BMC manufacturer
Instruction, BMC receive and record in System Event Log event message, safeguard the sensor number of sensor situation in description system
According to record.
It is considered that having developed in the IPMI order of definition has a key to obtain log order, also contains and obtain existing PSU days
Will operation can borrow a key in embodiments of the present invention and obtain log order progress for the size of code for reducing workload and system
Implement.Specifically, memory log information function interface can be called when BMC receives a key and obtains log order.For example, interior
Depositing log information function interface can be specially pdk_get_LogDump_info.
Call the process of memory log information function interface, comprising:
Step 1: the thread for calling one key log acquisition information function of Ali to will acquire system all parts log starts;
Step 2: one key log of push in operating status is appointed to server task thread and one key log acquisition of Ali
Business thread calls log memory information function interface respectively.
Above-mentioned two step is combined below for ease of description and is illustrated.
Wherein, start the thread of acquisition system all parts log, can be specially to call one key log acquisition information of Ali
Function will acquire current shape in a key log acquisition state flag bit structural body corresponding to the thread of system all parts log
State flag bit member's current state is set as starting to execute.
Current state flag bit member's current state of each thread is arranged to after starting execution, a key log to service
Device mission thread and one key log acquisition mission thread of Ali call day when detecting thread mark position is to start to execute respectively
Will memory information function interface.That is, when a key log in operating status to one key log of server task thread and Ali
It obtains mission thread and monitors that the mark of this is that after starting execution, log memory information function interface can be called to carry out respectively
Log information obtains.
Wherein, log memory information function interface is called, may particularly include:
Step 1: log memory information function interface calls PSU register value to obtain function;
Step 2: the correlation that PSU register value acquisition function call PSU register value preservation function obtains PSU in place is posted
Storage original value.
After log memory information function interface is called, the operation of step S102 can be performed.
S102, the PSU original value log for creating PSU related register.
It generates, store and uses in order to not influence original PSU log in embodiments of the present invention, a difference can be created
In the PSU original value log of existing PSU journal file.The PSU original value log is corresponding with PSU related register.For example, can
Creation saves the file of original value, the entitled psu_regval_log of file, and file path is /var/alionekeylog/
LogDump/psu_regval_log。
S103, call acquisition PSU information function in place determines whether the target PSU of server is in place.
Before recording related data information in PSU original value log, can first determine that whether target PSU is in place.Wherein,
Target PSU can be any one in two PSU in server.Determine whether target PSU in place can be by calling PSU in place
Information function, as PDK_GetPsuPresent function is determined.Since PSU information function in place belongs to existing function, specifically
After how calling the function and calling the function, which kind of response server system can generate, and this is no longer going to repeat them.
Determine according to whether target PSU is in place as a result, recording different data informations in PSU original value log.Tool
Body, when the judgment result is no, execute step S104;When the judgment result is yes, step S105 is executed.
S104, label target PSU is not in place in PSU original value log.
When not in place because of PSU, PSU failure can be usually directly determined, thus when target PSU is not in place, it at this time can be direct
Label target PSU is not in place in PSU original value log.
S105, function reading register original value relevant to target PSU is obtained using PSU register value, and will deposit
The log of PSU original value is written in device original value.
When determining that PSU is in place, function is obtained using PSU register value and reads register original relevant to target PSU
Then data information including register original value is written in PSU original value log by initial value.Specifically, being posted using PSU
Storage value obtains function and reads register original value relevant to target PSU according to preset order.
It preferably,, can to handle or reading convenient for later data when data information is written into PSU original value log
The call number of target PSU, register command word, register command name and register original value are written in the log of PSU original value.
Using method provided by the embodiment of the present invention, when a key of the BMC in reception IPMI order obtains log order,
Call log memory information function interface;Create the PSU original value log of PSU related register;It calls and obtains PSU information in place
Function determines whether the target PSU of server is in place;If it is not, then label target PSU is not in place in PSU original value log;
If it is, obtaining function using PSU register value reads register original value relevant to target PSU, and register is former
The log of PSU original value is written in initial value.
As it can be seen that server B MC collects the original value of PSU related register simultaneously by executing IPMI order in the method
Generate initial data journal file.I.e. it is original can to obtain the PSU including PSU related register original value by IPMI order by user
Will on duty for the day.The PSU original value log can ensure the reliability of the data of its record without parsing and converting.It so can be right
In the case where the data or information that can not determine in existing PSU log, providing includes accurate PSU parts data information
PSU original value log is conducive to be monitored server management.
To more fully understand PSU original value log recording side provided by the embodiment of the present invention convenient for those skilled in the art
Method, it is original to PSU provided in an embodiment of the present invention on duty for the day below with reference to the specific call relation between specific function and function
Will recording method is described in detail.
For the size of code for reducing workload and system, borrow has a key to obtain day in embodiments of the present invention in IPMI order
Will order is implemented.That is BMC utilizes one key log acquisition information function of command calls Ali
(AliOneKeyLogGetInfo) it will acquire the one key log acquisition state flag bit (g_ of thread of system all parts log
OneKeyLogGetStatus) thread current state flag bit member current state (current_status) quilt in structural body
TYPE_THREAD_STATUS_START is set to " to start to execute ".
Log collection thread detects " starting to execute " flag bit: when the thread being currently running pushes a key log to service
Business (PutOneKeyLogToServerTask) and one key log acquisition task (AliOneKeyLogGetTask) of Ali is had a high regard for examine
It measures after thread flag bit is set to " starting to execute ", the two thread dispatchings are called respectively to be obtained log memory information function and connect
Mouth (pdk_get_LogDump_info) carries out acquisition system log.
It obtains PSU related register original value: obtaining log memory information function interface (pdk_get_LogDump_
Info PSU register value is called to obtain function interface (pdk_psu_reg_value_get) in), PSU register value obtains function
(pdk_psu_reg_value_get) PSU register value is called to save (pdk_psu_reg_value_save) in place to obtain
The original value of the related register of PSU.
About generation PSU related register original value log: PSU register value saves function (pdk_psu_reg_
Value_save) be called after, can first create save original value file, path and file it is entitled/var/alionekeylog/
Then LogDump/psu_regval_log calls acquisition PSU information function in place (PDK_GetPsuPresent) to judge No. 1
Whether PSU and No. 2 PSU be in place, PSU information not in place is saved in the journal file created if not in place, if in place
Related register original value is then read in a certain order, and by the call number of PSU, register command word, register command
Name and the register original value read are write in journal file (with PSU original value log above).Wherein, No. 1 PSU
With the different PSU that No. 2 PSU are in the same server, there are two PSU in general server, for the ease of difference, at this
No. 1 PSU and No. 2 PSU is referred to as in inventive embodiments.
In this way, reading can be passed through when operation maintenance personnel is after finding that the information parsing in existing PSU journal file is problematic
The problem of taking PSU original value journal file (with PSU original value log above) to be likely to occur PSU carries out analyzing and positioning.
That is, the embodiment of the present invention proposes a kind of method that BMC passes through IPMI command record PSU related register original value,
That is PSU original value log recording method can provide accurately original when existing PSU log has uncertain data or information
Data carry out analyzing and positioning for operation maintenance personnel, increase the accuracy of server management system fault diagnosis, are convenient for operation maintenance personnel
Management and fault location to server.
It should be noted that each function being above related to is existing function, system after call method, calling
Response process can refer to definition, application method and its function of receptance function, this is no longer going to repeat them.
Embodiment two:
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of PSU original value log recording apparatus,
PSU original value log recording apparatus described below can correspond to each other ginseng with above-described PSU original value log recording method
According to.
Shown in Figure 2, which comprises the following modules:
Order receiver module 101 calls log for BMC when receiving the key acquisition log order in IPMI order
Memory information function interface;
PSU original value log creation module 102, for creating the PSU original value log of PSU related register;
PSU on-site judgment module 103, for call obtain PSU information function in place determine server target PSU whether
In place;
PSU original value logger module 104, for when target PSU is not in place, then getting the bid in PSU original value log
It is not in place to gaze at mark PSU;When target PSU is in place, then it is relevant to target PSU function reading to be obtained using PSU register value
Register original value, and the log of PSU original value is written into register original value.
Using device provided by the embodiment of the present invention, when a key of the BMC in reception IPMI order obtains log order,
Call log memory information function interface;Create the PSU original value log of PSU related register;It calls and obtains PSU information in place
Function determines whether the target PSU of server is in place;If it is not, then label target PSU is not in place in PSU original value log;
If it is, obtaining function using PSU register value reads register original value relevant to target PSU, and register is former
The log of PSU original value is written in initial value.
As it can be seen that server B MC collects the original value of PSU related register simultaneously by executing IPMI order in the present apparatus
Generate initial data journal file.I.e. it is original can to obtain the PSU including PSU related register original value by IPMI order by user
Will on duty for the day.The PSU original value log can ensure the reliability of the data of its record without parsing and converting.It so can be right
In the case where the data or information that can not determine in existing PSU log, providing includes accurate PSU parts data information
PSU original value log is conducive to be monitored server management.
In a kind of specific embodiment of the invention, PSU original value logger module 104 is specifically used for utilizing PSU
Register value obtains function and reads register original value relevant to target PSU according to preset order.
In a kind of specific embodiment of the invention, Order receiver module 101 is specifically used for calling one key log of Ali
Obtaining information function will acquire the thread starting of system all parts log;One key log of push in operating status to service
Device mission thread and one key log acquisition mission thread of Ali call log memory information function interface respectively.
In a kind of specific embodiment of the invention, Order receiver module 101 is specifically used for calling one key log of Ali
Information function is obtained, will acquire a key log acquisition state flag bit structural body corresponding to the thread of system all parts log
Middle current state flag bit member's current state is set as starting to execute.
In a kind of specific embodiment of the invention, Order receiver module 101 is specifically used for a key log to server
Mission thread and one key log acquisition mission thread of Ali call log when detecting thread mark position is to start to execute respectively
Memory information function interface.
In a kind of specific embodiment of the invention, Order receiver module 101 is specifically used for log memory information function
Interface calls PSU register value to obtain function;PSU register value, which obtains function call PSU register value preservation function and obtains, to exist
The related register original value of position PSU.
In a kind of specific embodiment of the invention, PSU original value logger module 104 is specifically used for target
Call number, register command word, register command name and the register original value of PSU is written in the log of PSU original value.
Embodiment three:
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of BMC, a kind of BMC described below
Reference can be corresponded to each other with a kind of above-described PSU original value log recording method.
Shown in Figure 3, which includes:
Memory D1, for storing computer program;
Microcontroller D2 realizes the PSU original value log recording of above method embodiment when for executing computer program
The step of method.
Specifically, the BMC can be because referring to FIG. 4, Fig. 4 is a kind of concrete structure schematic diagram of BMC provided in this embodiment
Configuration or performance are different and generate bigger difference, may include one or more microcontrollers 322 and memory
332, one or more storage application programs 342 or data 344 storage medium 330 (such as one or more sea
Amount storage equipment).Wherein, memory 332 and storage medium 330 can be of short duration storage or persistent storage.Storage is stored in be situated between
The program of matter 330 may include one or more modules (diagram does not mark), and each module may include to data processing
Series of instructions operation in equipment.Further, central processing unit 322 can be set to communicate with storage medium 330,
The series of instructions operation in storage medium 330 is executed on BMC301.
BMC301 can also include one or more power supplys 326, one or more wired or wireless networks connect
Mouth 350, one or more input/output interfaces 358, and/or, one or more operating systems 341.For example,
Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Step in PSU original value log recording method as described above can be realized by the structure of BMC.
Example IV:
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of readable storage medium storing program for executing, are described below
A kind of readable storage medium storing program for executing can correspond to each other reference with a kind of above-described PSU original value log recording method.
A kind of readable storage medium storing program for executing is stored with computer program on readable storage medium storing program for executing, and computer program is held by processor
The step of PSU original value log recording method of above method embodiment is realized when row.
The readable storage medium storing program for executing be specifically as follows USB flash disk, mobile hard disk, read-only memory (Read-Only Memory,
ROM), the various program storage generations such as random access memory (Random Access Memory, RAM), magnetic or disk
The readable storage medium storing program for executing of code.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
Claims (10)
1. a kind of PSU original value log recording method characterized by comprising
BMC calls log memory information function interface when receiving the key acquisition log order in IPMI order;
Create the PSU original value log of PSU related register;
It calls and obtains PSU information function in place determines whether the target PSU of server is in place;
If it is not, then it is not in place to mark the target PSU in the PSU original value log;
If it is, obtaining function using PSU register value reads register original value relevant to the target PSU, and will
The PSU original value log is written in the register original value.
2. PSU original value log recording method according to claim 1, which is characterized in that described to utilize PSU register value
It obtains function and reads register original value relevant to the target PSU, comprising:
Function, which is obtained, using PSU register value reads register original value relevant to the target PSU according to preset order.
3. PSU original value log recording method according to claim 1, which is characterized in that the BMC is receiving IPMI life
When a key in order obtains log order, log memory information function interface is called, comprising:
One key log acquisition information function of Ali is called to will acquire the thread starting of system all parts log;
One key log of push in operating status is distinguished to server task thread and one key log acquisition mission thread of Ali
Call the log memory information function interface.
4. PSU original value log recording method according to claim 3, which is characterized in that the one key day of calling Ali
Will, which obtains information function, will acquire the thread starting of system all parts log, comprising:
The one key log acquisition information function of Ali is called, will acquire a key corresponding to the thread of system all parts log
Current state flag bit member's current state is set as starting to execute in log acquisition state flag bit structural body.
5. PSU original value log recording method according to claim 4, which is characterized in that described in operating status
It pushes a key log and calls the log memory to believe respectively to server task thread and one key log acquisition mission thread of Ali
Cease function interface, comprising:
The one key log is detecting thread mark position to server task thread and one key log acquisition mission thread of Ali
For it is described start execute when, call the log memory information function interface respectively.
6. PSU original value log recording method according to claim 5, which is characterized in that the log memory is called to believe
Cease function interface, comprising:
The log memory information function interface calls PSU register value to obtain function;
The related register that the PSU register value acquisition function call PSU register value preservation function obtains PSU in place is original
Value.
7. PSU original value log recording method according to any one of claims 1 to 6, which is characterized in that by the deposit
The PSU original value log is written in device original value, comprising:
It will be described in the write-in of the call number of the target PSU, register command word, register command name and the register original value
In PSU original value log.
8. a kind of PSU original value log recording apparatus characterized by comprising
Order receiver module calls log memory information for BMC when receiving the key acquisition log order in IPMI order
Function interface;
PSU original value log creation module, for creating the PSU original value log of PSU related register;
PSU on-site judgment module obtains PSU information function in place determines whether the target PSU of server is in place for calling;
PSU original value logger module, for when the target PSU is not in place, then getting the bid in the PSU original value log
It is not in place to infuse the target PSU;When the target PSU is in place, then function is obtained using PSU register value and read and the mesh
The relevant register original value of PSU is marked, and the PSU original value log is written into the register original value.
9. a kind of BMC characterized by comprising
Memory, for storing computer program;
Microcontroller device realizes the PSU original value as described in any one of claim 1 to 7 when for executing the computer program
The step of log recording method.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with computer program, the meter on the readable storage medium storing program for executing
The step of the PSU original value log recording method as described in any one of claim 1 to 7 is realized when calculation machine program is executed by processor
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910526760.9A CN110377136A (en) | 2019-06-18 | 2019-06-18 | A kind of PSU original value log recording method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910526760.9A CN110377136A (en) | 2019-06-18 | 2019-06-18 | A kind of PSU original value log recording method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110377136A true CN110377136A (en) | 2019-10-25 |
Family
ID=68249089
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910526760.9A Pending CN110377136A (en) | 2019-06-18 | 2019-06-18 | A kind of PSU original value log recording method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110377136A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111176946A (en) * | 2019-12-29 | 2020-05-19 | 山东英信计算机技术有限公司 | SEL log recording method, device, equipment and storage medium |
CN111367584A (en) * | 2020-03-12 | 2020-07-03 | 苏州浪潮智能科技有限公司 | Power supply adaptation method and device and computer readable storage medium |
CN112631874A (en) * | 2020-12-30 | 2021-04-09 | 浪潮电子信息产业股份有限公司 | Server PSU information acquisition method and device, electronic equipment and medium |
CN117539840A (en) * | 2024-01-10 | 2024-02-09 | 杭州新中大科技股份有限公司 | Log acquisition method, device, equipment and medium |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905253A (en) * | 2014-04-04 | 2014-07-02 | 浪潮电子信息产业股份有限公司 | Server monitoring and management method based on Nagios and BMC |
US20160116957A1 (en) * | 2014-05-29 | 2016-04-28 | International Business Machines Corporation | Power supply system for an information handling system and power supply method thereof |
CN107315675A (en) * | 2017-07-24 | 2017-11-03 | 郑州云海信息技术有限公司 | A kind of server Switching Power Supply protection device and method |
CN107346163A (en) * | 2016-05-06 | 2017-11-14 | 广达电脑股份有限公司 | Server rack electrical management |
CN107665260A (en) * | 2017-10-24 | 2018-02-06 | 郑州云海信息技术有限公司 | A kind of log collection instrument based on Linux system |
CN107844400A (en) * | 2017-10-16 | 2018-03-27 | 阿里巴巴集团控股有限公司 | The method of calibration and device of a kind of daily record data |
US20180189126A1 (en) * | 2015-07-08 | 2018-07-05 | Hitachi, Ltd. | Computer system and error isolation method |
CN108650132A (en) * | 2018-05-11 | 2018-10-12 | 郑州云海信息技术有限公司 | A kind of cabinet power supply stability detection method, device, equipment and storage medium |
CN108958850A (en) * | 2018-06-29 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of log optimization method, device, equipment and computer readable storage medium |
CN109240846A (en) * | 2018-09-19 | 2019-01-18 | 郑州云海信息技术有限公司 | A kind of power failure diagnosing method, apparatus and server |
CN109309585A (en) * | 2018-09-21 | 2019-02-05 | 郑州云海信息技术有限公司 | A kind of log collecting method, device and equipment |
CN109542752A (en) * | 2018-11-28 | 2019-03-29 | 郑州云海信息技术有限公司 | A kind of system and method for server PCIe device failure logging |
CN109597475A (en) * | 2018-12-03 | 2019-04-09 | 郑州云海信息技术有限公司 | A kind of server power supply information processing method, apparatus and system |
CN109726083A (en) * | 2019-01-03 | 2019-05-07 | 郑州云海信息技术有限公司 | Operating status management method, system, device and the readable storage medium storing program for executing of cabinet |
-
2019
- 2019-06-18 CN CN201910526760.9A patent/CN110377136A/en active Pending
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905253A (en) * | 2014-04-04 | 2014-07-02 | 浪潮电子信息产业股份有限公司 | Server monitoring and management method based on Nagios and BMC |
US20160116957A1 (en) * | 2014-05-29 | 2016-04-28 | International Business Machines Corporation | Power supply system for an information handling system and power supply method thereof |
US20180189126A1 (en) * | 2015-07-08 | 2018-07-05 | Hitachi, Ltd. | Computer system and error isolation method |
CN107346163A (en) * | 2016-05-06 | 2017-11-14 | 广达电脑股份有限公司 | Server rack electrical management |
CN107315675A (en) * | 2017-07-24 | 2017-11-03 | 郑州云海信息技术有限公司 | A kind of server Switching Power Supply protection device and method |
CN107844400A (en) * | 2017-10-16 | 2018-03-27 | 阿里巴巴集团控股有限公司 | The method of calibration and device of a kind of daily record data |
CN107665260A (en) * | 2017-10-24 | 2018-02-06 | 郑州云海信息技术有限公司 | A kind of log collection instrument based on Linux system |
CN108650132A (en) * | 2018-05-11 | 2018-10-12 | 郑州云海信息技术有限公司 | A kind of cabinet power supply stability detection method, device, equipment and storage medium |
CN108958850A (en) * | 2018-06-29 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of log optimization method, device, equipment and computer readable storage medium |
CN109240846A (en) * | 2018-09-19 | 2019-01-18 | 郑州云海信息技术有限公司 | A kind of power failure diagnosing method, apparatus and server |
CN109309585A (en) * | 2018-09-21 | 2019-02-05 | 郑州云海信息技术有限公司 | A kind of log collecting method, device and equipment |
CN109542752A (en) * | 2018-11-28 | 2019-03-29 | 郑州云海信息技术有限公司 | A kind of system and method for server PCIe device failure logging |
CN109597475A (en) * | 2018-12-03 | 2019-04-09 | 郑州云海信息技术有限公司 | A kind of server power supply information processing method, apparatus and system |
CN109726083A (en) * | 2019-01-03 | 2019-05-07 | 郑州云海信息技术有限公司 | Operating status management method, system, device and the readable storage medium storing program for executing of cabinet |
Non-Patent Citations (2)
Title |
---|
ROGER E.SANDERS 著 杨正洪 等 译: "《DB2通用数据库API开发人员指南》", 30 September 2001, 机械工业出版社 * |
邢静宇 等: "《Java语言程序设计》", 31 January 2015, 吉林大学出版社 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111176946A (en) * | 2019-12-29 | 2020-05-19 | 山东英信计算机技术有限公司 | SEL log recording method, device, equipment and storage medium |
CN111176946B (en) * | 2019-12-29 | 2022-04-22 | 山东英信计算机技术有限公司 | SEL log recording method, device, equipment and storage medium |
CN111367584A (en) * | 2020-03-12 | 2020-07-03 | 苏州浪潮智能科技有限公司 | Power supply adaptation method and device and computer readable storage medium |
CN111367584B (en) * | 2020-03-12 | 2022-06-10 | 苏州浪潮智能科技有限公司 | Power supply adaptation method and device and computer readable storage medium |
CN112631874A (en) * | 2020-12-30 | 2021-04-09 | 浪潮电子信息产业股份有限公司 | Server PSU information acquisition method and device, electronic equipment and medium |
CN112631874B (en) * | 2020-12-30 | 2023-03-14 | 浪潮电子信息产业股份有限公司 | Server PSU information acquisition method and device, electronic equipment and medium |
CN117539840A (en) * | 2024-01-10 | 2024-02-09 | 杭州新中大科技股份有限公司 | Log acquisition method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110377136A (en) | A kind of PSU original value log recording method and device | |
Fonseca et al. | Quanto: Tracking Energy in Networked Embedded Systems. | |
CN105830037B (en) | For showing the process of Test coverage data during code inspection | |
CN108549591A (en) | A kind of black box device and its implementation of embedded system | |
CN106537351B (en) | Method for the power failure in diagnostic wireless communication equipment | |
CN107678997B (en) | Hot plug method, system, device and readable storage medium of PCIE (peripheral component interface express) card | |
CN103593271A (en) | Method and device for chip tracking debugging of system on chip | |
CN103257922B (en) | A kind of method of quick test BIOS and OS interface code reliability | |
CN114137923B (en) | Industrial production field data acquisition and control device | |
CN109254922A (en) | A kind of automated testing method and device of server B MC Redfish function | |
AU2015204320A1 (en) | Warranty cost estimation based on computing a projected number of failures of products | |
CN108287774A (en) | A kind of method for diagnosing faults of server, device, equipment and storage medium | |
WO2022033224A1 (en) | Human reliability evaluation method and system, and computer device and storage medium | |
CN104424086B (en) | Computer error detection module and method | |
CN117149491A (en) | Power supply monitoring method, system, device and storage medium | |
CN115471215B (en) | Business process processing method and device | |
CN115599617B (en) | Bus detection method and device, server and electronic equipment | |
Mazouz et al. | Statistical validation methodology of CPU power probes | |
CN110851316B (en) | Abnormality early warning method, abnormality early warning device, abnormality early warning system, electronic equipment and storage medium | |
CN105975382A (en) | Hardware configuration change alarming method | |
CN114745448A (en) | Multichannel protocol adaptation processing method, system and device | |
CN114690716A (en) | Design method of DCS system circuit board card service life automatic diagnosis alarm system | |
Gerhorst et al. | Energybudgets: Integrating physical energy measurement devices into systems software | |
CN108255732B (en) | Method for tracking running state of single chip microcomputer system | |
CN110119370A (en) | A kind of VR chip controls method and system based on PECI bus |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191025 |