TWI479316B - System and method for recovery data of cmos - Google Patents

System and method for recovery data of cmos Download PDF

Info

Publication number
TWI479316B
TWI479316B TW099146495A TW99146495A TWI479316B TW I479316 B TWI479316 B TW I479316B TW 099146495 A TW099146495 A TW 099146495A TW 99146495 A TW99146495 A TW 99146495A TW I479316 B TWI479316 B TW I479316B
Authority
TW
Taiwan
Prior art keywords
cmos
system time
management controller
cmos data
server
Prior art date
Application number
TW099146495A
Other languages
Chinese (zh)
Other versions
TW201227305A (en
Inventor
Shuang Peng
Original Assignee
Hon Hai Prec Ind 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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW099146495A priority Critical patent/TWI479316B/en
Publication of TW201227305A publication Critical patent/TW201227305A/en
Application granted granted Critical
Publication of TWI479316B publication Critical patent/TWI479316B/en

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Retry When Errors Occur (AREA)
  • Stored Programmes (AREA)

Description

CMOS資料恢復系統及方法CMOS data recovery system and method

本發明涉及一種CMOS資料恢復系統及方法。The invention relates to a CMOS data recovery system and method.

在實際運用中,用戶經常會遇到CMOS(Complementary Metal-Oxide-Semiconductor Transistor)設置不當,導致系統不能正常開機的情況。特別是在伺服器中設置了很多項目的值時,若出現CMOS設置不當,通常採用的方法是抹除CMOS,讓系統恢復至出廠設置,然而在重新開機後需要重新設置所有專案的值,需要浪費很多的時間,有些項目的值沒有記憶性,不知道怎麼設置,例如基板管理控制器的網路參數。In practical use, users often encounter improper settings of CMOS (Complementary Metal-Oxide-Semiconductor Transistor), which may cause the system to not boot properly. Especially when setting the value of many items in the server, if the CMOS setting is improper, the usual method is to erase the CMOS and restore the system to the factory settings. However, after restarting, you need to reset all the values of the project. It wastes a lot of time. Some items have no memory value and don't know how to set them, such as the network parameters of the baseboard management controller.

鑒於以上內容,有必要提供一種CMOS資料恢復系統及方法,可以讓CMOS資料恢復到之前所保存的值。In view of the above, it is necessary to provide a CMOS data recovery system and method that allows CMOS data to be restored to previously saved values.

一種CMOS資料恢復系統,運行於伺服器中,該伺服器包括基板管理控制器和BIOS,所述CMOS資料恢復系統包括:獲取模組,用於當進入BIOS提供的設置介面時,獲取當前CMOS中的所有資料和伺服器的系統時間;控制模組,用於控制基板管理控制器儲存該CMOS資料和系統時間;所述獲取模組,還用於當需要將上述系統時間對應的CMOS資料恢復到CMOS中時,獲取用戶所選擇的該系統時間;發送模組,用於根據所獲取的系統時間發送命令給基板管理控制器,通知該基板管理控制器讀取該系統時間對應的CMOS資料;設定模組,用於將基板管理控制器所讀取的CMOS資料設定到CMOS中;及所述控制模組,還用於重新啟動伺服器以完成CMOS資料恢復。A CMOS data recovery system, running in a server, the server includes a baseboard management controller and a BIOS, and the CMOS data recovery system includes: an acquisition module, configured to acquire a current CMOS when entering a setting interface provided by the BIOS All the data and the system time of the server; the control module is configured to control the substrate management controller to store the CMOS data and the system time; and the acquisition module is further configured to restore the CMOS data corresponding to the system time to In the CMOS, the system time is selected by the user; the sending module is configured to send a command to the baseboard management controller according to the acquired system time, and notify the baseboard management controller to read the CMOS data corresponding to the system time; The module is configured to set the CMOS data read by the substrate management controller into the CMOS; and the control module is further configured to restart the server to complete the CMOS data recovery.

一種CMOS資料恢復方法,應用於伺服器,該伺服器包括基板管理控制器和BIOS,該方法包括如下步驟:當進入BIOS提供的設置介面時,獲取當前CMOS中的所有資料和伺服器的系統時間;控制基板管理控制器儲存該CMOS資料和系統時間;當需要將上述系統時間對應的CMOS資料恢復到CMOS中時,獲取用戶所選擇的該系統時間;根據所獲取的系統時間發送命令給基板管理控制器,通知該基板管理控制器讀取該系統時間對應的CMOS資料;將基板管理控制器所讀取的CMOS資料設定到CMOS中;及重新啟動伺服器以完成CMOS資料恢復。A CMOS data recovery method is applied to a server, the server includes a baseboard management controller and a BIOS, and the method includes the following steps: when entering a setting interface provided by the BIOS, acquiring all data in the current CMOS and the system time of the server The control substrate management controller stores the CMOS data and the system time; when the CMOS data corresponding to the system time needs to be restored to the CMOS, the system time selected by the user is acquired; and the command is sent to the substrate management according to the acquired system time. The controller notifies the baseboard management controller to read the CMOS data corresponding to the system time; sets the CMOS data read by the baseboard management controller to the CMOS; and restarts the server to complete the CMOS data recovery.

相較於習知技術,所述CMOS資料恢復系統及方法,可使得CMOS在正常進入系統之後其中的所有資料會保存至基板管理控制器中,在抹除CMOS後,可調用保存在基板管理控制器中的CMOS資料,重新設置CMOS,節省了時間,方便了用戶的使用。Compared with the prior art, the CMOS data recovery system and method can make all the data of the CMOS after the normal entry into the system is saved to the substrate management controller, and after the CMOS is erased, the substrate management control can be saved and saved. The CMOS data in the device resets the CMOS, saving time and facilitating the user's use.

如圖1所示,係本發明CMOS資料恢復系統較佳實施例之運行環境圖。該CMOS資料恢復系統10運行於伺服器1的基板管理控制器(Baseboard Management Controller,BMC)11(以下簡稱BMC 1)中,該伺服器1還包括基本輸入輸出系統(Basic Input Output System,BIOS)12(以下簡稱BIOS 12)和互補金屬氧化物半導體(Complementary Metal-Oxide-Semiconductor Transistor,CMOS)13(以下簡稱CMOS 13)。所述BMC 11包括現場可更換單元(field-replaceable unit,FRU)110(以下簡稱FRU 110)。所述BIOS 12提供了一個設置介面,用戶可於該設置介面上將當前CMOS 13的所有資料保存至所述FRU 110中。As shown in FIG. 1, it is an operating environment diagram of a preferred embodiment of the CMOS data recovery system of the present invention. The CMOS data recovery system 10 runs in a Baseboard Management Controller (BMC) 11 (hereinafter referred to as BMC 1) of the server 1, and the server 1 further includes a Basic Input Output System (BIOS). 12 (hereinafter referred to as BIOS 12) and Complementary Metal-Oxide-Semiconductor Transistor (CMOS) 13 (hereinafter referred to as CMOS 13). The BMC 11 includes a field-replaceable unit (FRU) 110 (hereinafter referred to as FRU 110). The BIOS 12 provides a setting interface on which the user can save all data of the current CMOS 13 to the FRU 110.

如圖2所示,係圖1中CMOS資料恢復系統10之功能模組圖。所述CMOS資料恢復系統10包括:獲取模組100、發送模組101、判斷模組102、設定模組103及控制模組104。所述模組是具有特定功能的軟體程式段,該軟體儲存於電腦可讀儲存介質或其他儲存設備,可被電腦或其他包含處理器的計算裝置執行,從而完成本發明中的CMOS資料恢復的作業流程。As shown in FIG. 2, it is a functional module diagram of the CMOS data recovery system 10 in FIG. The CMOS data recovery system 10 includes an acquisition module 100, a transmission module 101, a determination module 102, a setting module 103, and a control module 104. The module is a software program having a specific function, and the software is stored in a computer readable storage medium or other storage device, and can be executed by a computer or other computing device including a processor, thereby completing CMOS data recovery in the present invention. Work flow.

當進入BIOS 12提供的設置介面時,獲取模組100用於獲取當前CMOS 13的所有資料和伺服器1的系統時間。When entering the setting interface provided by the BIOS 12, the obtaining module 100 is configured to acquire all the data of the current CMOS 13 and the system time of the server 1.

發送模組101用於發送儲存命令給BMC 11,通知BMC 11儲存上述獲取的CMOS 13的資料和系統時間,該BMC 11根據該儲存命令儲存所述CMOS 13的資料和系統時間至FRU 110中。本較佳實施例中,所述BMC 11可以將該獲取的CMOS資料儲存至一個檔案中,該檔案是以所述獲取的系統時間來命名的。The sending module 101 is configured to send a storage command to the BMC 11, and notify the BMC 11 to store the acquired data of the CMOS 13 and the system time. The BMC 11 stores the data of the CMOS 13 and the system time into the FRU 110 according to the storage command. In the preferred embodiment, the BMC 11 can store the acquired CMOS data into a file named after the acquired system time.

判斷模組102用於判斷是否需要恢復所述CMOS 13的狀態,換句話說,FRU 110中存有多個系統時間點對應的CMOS資料,判斷模組102判斷是否需要將FRU 110中所儲存的某一個系統時間對應的CMOS資料恢復至CMOS 13中。The determining module 102 is configured to determine whether the state of the CMOS 13 needs to be restored. In other words, the FRU 110 stores CMOS data corresponding to a plurality of system time points, and the determining module 102 determines whether the FRU 110 needs to be stored. The CMOS data corresponding to a certain system time is restored to CMOS 13.

當判斷結果為需要將FRU 110中某一個系統時間對應的CMOS資料恢復到CMOS 13中時,所述獲取模組100接收用戶所選擇的系統時間。所述發送模組101還用於根據該接收的系統時間發送命令給BMC 11,通知BMC 11讀取該系統時間對應的所有CMOS資料。When the result of the determination is that the CMOS data corresponding to a certain system time in the FRU 110 needs to be restored to the CMOS 13, the acquisition module 100 receives the system time selected by the user. The sending module 101 is further configured to send a command to the BMC 11 according to the received system time to notify the BMC 11 to read all CMOS data corresponding to the system time.

設定模組103用於將BMC 11讀取的所有CMOS資料設定到CMOS 13中。The setting module 103 is used to set all CMOS data read by the BMC 11 into the CMOS 13.

控制模組104用於重新啟動伺服器1以完成上述CMOS資料恢復。The control module 104 is used to restart the server 1 to complete the above CMOS data recovery.

如圖3所示,係本發明CMOS資料恢復方法較佳實施例之作業流程圖。As shown in FIG. 3, it is a flowchart of a preferred embodiment of the CMOS data recovery method of the present invention.

步驟S30,進入BIOS設置介面,獲取模組100獲取當前CMOS 13的所有資料和伺服器1的系統時間。Step S30, entering the BIOS setting interface, the obtaining module 100 acquires all the data of the current CMOS 13 and the system time of the server 1.

步驟S31,發送模組101發送儲存命令給BMC 11,通知BMC 11儲存上述獲取的CMOS 13的資料和系統時間。In step S31, the sending module 101 sends a storage command to the BMC 11, and notifies the BMC 11 to store the acquired data of the CMOS 13 and the system time.

步驟S32,BMC 11根據所述儲存命令儲存所述CMOS 13的資料和系統時間至FRU 110中。本較佳實施例中,所述BMC 11可以將該獲取的CMOS資料儲存至一個檔案中,該檔案是以所述獲取的系統時間來命名的。In step S32, the BMC 11 stores the data of the CMOS 13 and the system time into the FRU 110 according to the storage command. In the preferred embodiment, the BMC 11 can store the acquired CMOS data into a file named after the acquired system time.

步驟S33,判斷模組102判斷是否需要恢復所述CMOS 13的狀態,換句話說,FRU 110中存有多個系統時間點對應的CMOS資料,判斷模組102判斷是否需要將FRU 110中所儲存的某一個系統時間對應的CMOS資料恢復至CMOS 13中。若需要將FRU 110中某一個系統時間對應的CMOS資料恢復到CMOS 13中,則執行步驟S34。若不需要將FRU 110中某一個系統時間對應的CMOS資料恢復到CMOS 13中,則直接結束流程。In step S33, the determining module 102 determines whether it is necessary to restore the state of the CMOS 13. In other words, the FRU 110 stores CMOS data corresponding to a plurality of system time points, and the determining module 102 determines whether the FRU 110 needs to be stored. The CMOS data corresponding to a certain system time is restored to CMOS 13. If it is necessary to restore the CMOS data corresponding to a certain system time in the FRU 110 to the CMOS 13, step S34 is performed. If it is not necessary to restore the CMOS data corresponding to one of the system time in the FRU 110 to the CMOS 13, the flow is directly ended.

步驟S34,所述獲取模組100接收用戶所選擇的系統時間。Step S34, the obtaining module 100 receives the system time selected by the user.

步驟S35,所述發送模組101根據該接收的系統時間發送命令給BMC 11,通知BMC 11讀取該系統時間對應的所有CMOS資料。In step S35, the sending module 101 sends a command to the BMC 11 according to the received system time to notify the BMC 11 to read all CMOS data corresponding to the system time.

步驟S36,設定模組103將BMC 11讀取的所有CMOS資料設定到CMOS中。In step S36, the setting module 103 sets all the CMOS data read by the BMC 11 into the CMOS.

步驟S37,控制模組104重新啟動伺服器1以完成上述CMOS資料恢復。In step S37, the control module 104 restarts the server 1 to complete the above CMOS data recovery.

最後所應說明的是,以上實施例僅用以說明本發明的技術方案而非限制,儘管參照以上較佳實施例對本發明進行了詳細說明,本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或等同替換,而不脫離本發明技術方案的精神和範圍。It should be noted that the above embodiments are only intended to illustrate the technical solutions of the present invention and are not intended to be limiting, and the present invention will be described in detail with reference to the preferred embodiments thereof The technical solutions are modified or equivalently substituted without departing from the spirit and scope of the technical solutions of the present invention.

1...伺服器1. . . server

10...CMOS資料恢復系統10. . . CMOS data recovery system

11...基板管理控制器11. . . Baseboard management controller

12...基本輸入輸出系統12. . . Basic input and output system

13...CMOS13. . . CMOS

110...現場可更換單元110. . . Field replaceable unit

100...獲取模組100. . . Get module

101...發送模組101. . . Sending module

102...判斷模組102. . . Judging module

103...設定模組103. . . Setting module

104...控制模組104. . . Control module

圖1係本發明CMOS資料恢復系統較佳實施例之運行環境圖。1 is a diagram showing an operating environment of a preferred embodiment of a CMOS data recovery system of the present invention.

圖2係圖1中CMOS資料恢復系統10之功能模組圖。2 is a functional block diagram of the CMOS data recovery system 10 of FIG.

圖3係本發明CMOS資料恢復方法較佳實施例之作業流程圖。3 is a flow chart showing the operation of a preferred embodiment of the CMOS data recovery method of the present invention.

10...CMOS資料恢復系統10. . . CMOS data recovery system

100...獲取模組100. . . Get module

101...發送模組101. . . Sending module

102...判斷模組102. . . Judging module

103...設定模組103. . . Setting module

104...控制模組104. . . Control module

Claims (6)

一種CMOS資料恢復系統,運行於伺服器中,該伺服器包括基板管理控制器和BIOS,所述CMOS資料恢復系統包括:
獲取模組,用於當進入BIOS提供的設置介面時,獲取當前CMOS中的所有資料和伺服器的系統時間;
控制模組,用於控制基板管理控制器儲存該CMOS資料和系統時間;
所述獲取模組,還用於當需要將上述系統時間對應的CMOS資料恢復到CMOS中時,獲取用戶所選擇的該系統時間;
發送模組,用於根據所獲取的系統時間發送命令給基板管理控制器,通知該基板管理控制器讀取該系統時間對應的CMOS資料;
設定模組,用於將基板管理控制器所讀取的CMOS資料設定到CMOS中;及
所述控制模組,還用於重新啟動伺服器以完成CMOS資料恢復。
A CMOS data recovery system, running in a server, the server includes a substrate management controller and a BIOS, and the CMOS data recovery system includes:
The obtaining module is configured to obtain all the data in the current CMOS and the system time of the server when entering the setting interface provided by the BIOS;
a control module for controlling the substrate management controller to store the CMOS data and system time;
The obtaining module is further configured to: when the CMOS data corresponding to the system time needs to be restored to the CMOS, acquire the system time selected by the user;
a sending module, configured to send a command to the baseboard management controller according to the acquired system time, to notify the baseboard management controller to read the CMOS data corresponding to the system time;
The setting module is configured to set the CMOS data read by the substrate management controller into the CMOS; and the control module is further configured to restart the server to complete the CMOS data recovery.
如申請專利範圍第1項所述之CMOS資料恢復系統,所述發送模組還用於發送儲存命令給基板管理控制器,通知基板管理控制器儲存CMOS資料和伺服器的系統時間。The CMOS data recovery system of claim 1, wherein the sending module is further configured to send a storage command to the baseboard management controller to notify the baseboard management controller to store the CMOS data and the system time of the server. 如申請專利範圍第2項所述之CMOS資料恢復系統,所述基板管理控制器將所述CMOS資料和系統時間儲存至現場可更換單元中。The CMOS data recovery system of claim 2, wherein the substrate management controller stores the CMOS data and system time into a field replaceable unit. 一種CMOS資料恢復方法,應用於伺服器,該伺服器包括基板管理控制器和BIOS,該方法包括如下步驟:
當進入BIOS提供的設置介面時,獲取當前CMOS中的所有資料和伺服器的系統時間;
控制基板管理控制器儲存該CMOS資料和系統時間;
當需要將上述系統時間對應的CMOS資料恢復到CMOS中時,獲取用戶所選擇的該系統時間;
根據所獲取的系統時間發送命令給基板管理控制器,通知該基板管理控制器讀取該系統時間對應的CMOS資料;
將基板管理控制器所讀取的CMOS資料設定到CMOS中;及
重新啟動伺服器以完成CMOS資料恢復。
A CMOS data recovery method is applied to a server, the server includes a substrate management controller and a BIOS, and the method includes the following steps:
When entering the setting interface provided by the BIOS, obtain all the data in the current CMOS and the system time of the server;
Control the substrate management controller to store the CMOS data and system time;
When the CMOS data corresponding to the above system time needs to be restored to the CMOS, the system time selected by the user is obtained;
Sending a command to the baseboard management controller according to the acquired system time, notifying the baseboard management controller to read the CMOS data corresponding to the system time;
Set the CMOS data read by the baseboard management controller to CMOS; and restart the server to complete CMOS data recovery.
如申請專利範圍第4項所述之CMOS資料恢復方法,該方法於步驟控制基板管理控制器儲存該CMOS資料和系統時間之前還包括:
發送儲存命令給基板管理控制器,通知基板管理控制器儲存CMOS資料和伺服器的系統時間。
The CMOS data recovery method according to claim 4, wherein the method further comprises: before the step controlling the substrate management controller storing the CMOS data and the system time:
Sending a storage command to the baseboard management controller notifies the baseboard management controller to store the CMOS data and the system time of the server.
如申請專利範圍第5項所述之CMOS資料恢復方法,所述基板管理控制器將所述CMOS資料和系統時間儲存在現場可更換單元中。The CMOS data recovery method of claim 5, wherein the substrate management controller stores the CMOS data and system time in a field replaceable unit.
TW099146495A 2010-12-29 2010-12-29 System and method for recovery data of cmos TWI479316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW099146495A TWI479316B (en) 2010-12-29 2010-12-29 System and method for recovery data of cmos

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW099146495A TWI479316B (en) 2010-12-29 2010-12-29 System and method for recovery data of cmos

Publications (2)

Publication Number Publication Date
TW201227305A TW201227305A (en) 2012-07-01
TWI479316B true TWI479316B (en) 2015-04-01

Family

ID=46933179

Family Applications (1)

Application Number Title Priority Date Filing Date
TW099146495A TWI479316B (en) 2010-12-29 2010-12-29 System and method for recovery data of cmos

Country Status (1)

Country Link
TW (1) TWI479316B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI289752B (en) * 2003-05-20 2007-11-11 Via Tech Inc Method for saving the BIOS in CMOS memory into DMI section
US20080201536A1 (en) * 2007-02-16 2008-08-21 Seagate Technology Llc Near instantaneous backup and restore of disc partitions
TW200846896A (en) * 2007-05-16 2008-12-01 Icp Electronics Inc System for backing up and recovering data and method for the same applied to data processing apparatus
US20100070475A1 (en) * 2008-09-12 2010-03-18 Liang-Chi Chen Data backup system and method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI289752B (en) * 2003-05-20 2007-11-11 Via Tech Inc Method for saving the BIOS in CMOS memory into DMI section
US20080201536A1 (en) * 2007-02-16 2008-08-21 Seagate Technology Llc Near instantaneous backup and restore of disc partitions
TW200846896A (en) * 2007-05-16 2008-12-01 Icp Electronics Inc System for backing up and recovering data and method for the same applied to data processing apparatus
US20100070475A1 (en) * 2008-09-12 2010-03-18 Liang-Chi Chen Data backup system and method thereof

Also Published As

Publication number Publication date
TW201227305A (en) 2012-07-01

Similar Documents

Publication Publication Date Title
TWI578233B (en) Unified firmware managment system, non-transitory computer-readable storage medium and method for unified firmware managment
US8909910B2 (en) Computer system for selectively accessing bios by a baseboard management controller
TWI509401B (en) System for power management and method thereof and non-transitory computer-readable medium
US9712382B2 (en) Retrieving console messages after device failure
US9261944B2 (en) Information processing apparatus, control method, and recording medium storing a control program
TW201327136A (en) A test system for testing stability of a server and the test method thereof
JP5986607B2 (en) Data storage device and data maintenance method
TW201428508A (en) Remote backup system and remote backup method thereof
TW201351133A (en) Method and system for reading system event
CN102541681A (en) CMOS (Complementary Metal-Oxide-Semiconductor) data recovery system and method
CN111124761B (en) Equipment restarting method, device, equipment and medium
TW201305772A (en) System and method for process network data continuously
TW201428613A (en) System and method for staring a diskless workstation
WO2017096910A1 (en) Method and system for adaptively adjusting display scale of office software
CN101873217A (en) Ethernet power supply equipment restart control method and device thereof
JP2014157521A5 (en)
CN114184885A (en) Fault detection method, device and storage medium
TWI479316B (en) System and method for recovery data of cmos
CN105786659A (en) Remote debugging method and server
TW201428470A (en) Automatic booting system and method
KR20140020287A (en) Software operability service
JP5961059B2 (en) Information processing apparatus and activation method thereof
TW201441930A (en) Computer apparatus and reboot method thereof
TWI537721B (en) Baseboard management control system and method
TWI298137B (en)

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees