1. Technical Field
The present disclosure relates to information processing systems, and particularly, to a system and a method for recording system event logs (SELs) of a server.
2. Description of Related Art
A baseboard management controller (BMC) in a server provides a function for detecting system status of the server to satisfy the requirements for efficient testing of server stability. Typically, the BMC utilizes sensors to monitor various working conditions of firmware and hardware of the server, such as a fan speed, a microprocessor temperature, and so forth, and further records the monitored abnormal working conditions as a SEL and stores the SEL in a storage unit of the server.
However, because the limited capacity of the storage unit, the server needs to delete the stored SELs when the storage unit is full to allow the new generated SELs to be stored, which causing the recently generated SELs cannot be achieved.
Therefore, what is needed is a means to solve the problem described above.
Many aspects of the present disclosure should be better understood with reference to the following drawings. The units in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding portions throughout the views.
In the embodiment, the system 100 includes a detecting module 101, an analyzing module 102, and a control module 103.
The detecting module 101 periodically determines the current number of the SELs stored in the storage unit 12. In the embodiment, the period for determining the current number is set by a user via an input device such as a keyboard (not shown). In this case, the system 100 further includes a setting module 104 which provides a setting window for users to input the period via the input device. The detecting module 101 responds to the input period and then periodically determines the current number of the SELs.
The analyzing module 102 compares the determined current number with a historical number to determine the newly generated SELs in the storage unit 12, and the historical number is the number of the SELs that has been determined in the previously period, and when the current number is determined in each period, the historical number is updated with the determined current number. If the current number is greater than the historical number, the analyzing module 102 further determines whether the storage unit 12 is full according to the current number of the SELs. Take a NVRAM with a storage capacity equivalent to 512 SELs as an example. If 512 SELs are already stored in the NVRAM, the analyzing module 102 determines that the storage unit 12 is full.
The control module 103 generates a control signal when the storage unit 12 is full to direct the BMC 11 to transfer the newly generated SELs to a cache unit 105, erases all the stored SELs in the storage unit 12, and then transfers the SELs in the cache unit 105 to the storage unit 12 when the SELs in the storage unit 12 are completely erased. Thereby, the newly generated SELs can be retained in the storage unit 12. In the embodiment, the cache unit 105 is another storage unit located in the server 1. In an alternative embodiment, the cache unit 105 may be located in the system 100.
In step S301, through an input device, the users input the period on the setting window provided by the setting module 104.
In step S302, the detecting module 101 responds to the input period, and then periodically determines the current number of the SELs stored in the storage unit 12.
In step S303, the analyzing module 102 compares the determined current number with the historical number to determine whether the newly generated SELs in the storage unit 12, wherein the historical number is a previously determined current number of the SELs. If the current number is greater than the historical number, the procedure goes to step S304; otherwise, the procedure goes back to step S303.
In step S304, the analyzing module 102 determines whether the storage unit 12 is full according to the current number of the SELs. If yes, the procedure goes to step S305; otherwise, the procedure goes back to step S303.
In step S305, the control module 103 generates a control signal to direct the BMC 11 to transfer the newly generated SELs to a cache unit 105, erases all the stored SELs in the storage unit 12, and then transfers the SELs in the cache unit 105 to the storage unit 12 when the SELs in the storage unit 12 are completely erased.
In step S306, the control module 103 updates the historical number with the determined current number.
It is believed that the present embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the disclosure or sacrificing all of its material advantages, the examples hereinbefore described merely being exemplary embodiments of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201210132129.9 | Apr 2012 | CN | national |