TWI551977B - Setting restoring system - Google Patents

Setting restoring system Download PDF

Info

Publication number
TWI551977B
TWI551977B TW104126812A TW104126812A TWI551977B TW I551977 B TWI551977 B TW I551977B TW 104126812 A TW104126812 A TW 104126812A TW 104126812 A TW104126812 A TW 104126812A TW I551977 B TWI551977 B TW I551977B
Authority
TW
Taiwan
Prior art keywords
set value
instruction
unit
value recovery
command
Prior art date
Application number
TW104126812A
Other languages
Chinese (zh)
Other versions
TW201709017A (en
Inventor
章熙朗
胡鵬
Original Assignee
英業達股份有限公司
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 英業達股份有限公司 filed Critical 英業達股份有限公司
Priority to TW104126812A priority Critical patent/TWI551977B/en
Application granted granted Critical
Publication of TWI551977B publication Critical patent/TWI551977B/en
Publication of TW201709017A publication Critical patent/TW201709017A/en

Links

Landscapes

  • Stored Programmes (AREA)
  • Storage Device Security (AREA)

Description

設定值恢復系統 Set value recovery system

本發明是一種恢復技術,且特別是有關於一種設定值恢復系統與方法。 The present invention is a recovery technique and, more particularly, to a set point recovery system and method.

於計算機技術發展中,若欲將計算機系統的基板管理控制器(Baseboard Management Controller,BMC)的使用者相關設定恢復至預設值,方式可以透過基本輸入輸出系統(Basic Input/Output System,BIOS)調用命令,或者以磁碟作業系統(Disk Operating System,DOS)內的批次檔案(Batch file)實現。然而,上述的方式均需要針對每一個使用者識別碼(User Identification,User ID)進行修改以及刪除其餘使用者訊息,導致需要於系統外部發送數十條命令至基本輸入輸出系統才能達成目的。此外,上述方式亦牽涉到於不同的介面間調用指令,因此操作時不但效率低落且容易發生問題。 In the development of computer technology, if you want to restore the user-related settings of the Baseboard Management Controller (BMC) of the computer system to a preset value, the method can be through the Basic Input/Output System (BIOS). Call the command, or use the batch file in the Disk Operating System (DOS). However, all of the above methods need to modify and delete the remaining user information for each User Identification (User ID), resulting in the need to send dozens of commands to the basic input and output system outside the system to achieve the goal. In addition, the above method also involves invoking instructions between different interfaces, so that the operation is not only inefficient but also prone to problems.

為了簡化恢復系統設定值的操作,本揭示內容之一態樣是提供一種設定值恢復系統,用以將複數個用戶之 設定值恢復為出廠用戶預設值,設定值恢復系統包含操作控制模組與基板管理控制模組,其中基板管理控制模組電性耦接操作控制模組。基板管理控制模組包含應用程式介面(Application Programming Interface,API)單元、初始化指令儲存單元與訊息處置器(Message handler)單元。應用程式介面單元電性耦接基本輸入輸出系統與訊息處置器單元。基本輸入輸出系統用以發送單一原廠設備製造商(Original Equipment Manufacturer,OEM)指令。操作控制模組發送第一設定值恢復指令。應用程式介面單元用以接收該單一原廠設備製造商指令。初始化指令儲存單元預先儲存初始化指令集,初始化指令集包含用戶名稱初始化指令、密碼初始化指令以及權限初始化指令。訊息處置器單元用以定義並初始化變數為第一值;當判斷接收到應用程式介面單元傳送之第一設定值恢復指令為有效指令時時,設定變數為第二值;當偵測到變數為第二值時,訊息處置器單元調用初始化指令儲存單元之初始化指令集,分別將用戶名稱、密碼與權限恢復為對應預設值。 In order to simplify the operation of restoring system settings, one aspect of the present disclosure is to provide a set value recovery system for a plurality of users. The set value is restored to the factory default value. The set value recovery system includes an operation control module and a substrate management control module, wherein the substrate management control module is electrically coupled to the operation control module. The baseboard management control module includes an application programming interface (API) unit, an initialization instruction storage unit, and a message handler unit. The application interface unit is electrically coupled to the basic input/output system and the message processor unit. The basic input and output system is used to send a single Original Equipment Manufacturer (OEM) order. The operation control module sends a first set value recovery command. The application interface unit is configured to receive the single original equipment manufacturer manufacturer's instructions. The initialization instruction storage unit stores an initialization instruction set in advance, and the initialization instruction set includes a user name initialization instruction, a password initialization instruction, and a rights initialization instruction. The message handler unit is configured to define and initialize the variable to the first value; when it is determined that the first set value recovery command transmitted by the application interface unit is a valid command, the setting variable is the second value; when the variable is detected as At the second value, the message handler unit calls the initialization instruction set of the initialization instruction storage unit to restore the user name, password, and authority to the corresponding preset values.

本揭示內容之一實施例中,其中操作控制模組包含基本輸入輸出系統(Basic Input/Output System,BIOS)單元與使用者介面(User Interface,UI)裝置。第一設定值恢復指令由基本輸入輸出系統單元或使用者介面裝置發出。 In an embodiment of the present disclosure, the operation control module includes a Basic Input/Output System (BIOS) unit and a User Interface (UI) device. The first set value recovery command is issued by the basic input/output system unit or the user interface device.

本揭示內容之一實施例中,其中該些用戶包含至少一自定義用戶以及至少一預設用戶。 In an embodiment of the present disclosure, the users include at least one custom user and at least one preset user.

本揭示內容之一實施例中,其中初始化指令儲存單元更包含刪除指令集,刪除指令集用以刪除至少一自定義用戶。 In an embodiment of the present disclosure, the initialization instruction storage unit further includes a deletion instruction set, and the deletion instruction set is used to delete at least one custom user.

本揭示內容之一實施例中,其中訊息處置器單元包含偵測判斷次單元與標記次單元。偵測判斷次單元用以輪詢偵測接收應用程式介面單元傳送之第一設定值恢復指令,並判斷第一設定值恢復指令是否有效。當偵測判斷次單元判斷第一設定值恢復指令有效時,輸出一第二設定值恢復指令。當偵測判斷次單元判斷第一設定值恢復指令無效時,攔截第一設定值恢復指令,並產生第一回應訊息。標記次單元用以定義並初始化變數為第一值,並接收第二設定值恢復指令。當標記次單元接收到第二設定值恢復指令時,設定變數為第二值。 In an embodiment of the present disclosure, the message handler unit includes a detection determination subunit and a label subunit. The detection determining sub-unit is configured to poll the first setting value recovery instruction transmitted by the detection receiving application interface unit, and determine whether the first setting value recovery instruction is valid. When the detection determining sub-unit determines that the first set value recovery command is valid, a second set value recovery command is output. When the detection determining sub-unit determines that the first set value recovery command is invalid, intercepting the first set value recovery command and generating a first response message. The marking subunit is used to define and initialize the variable to the first value and receive the second set value recovery instruction. When the marked secondary unit receives the second set value recovery command, the set variable is the second value.

本揭示內容之一實施例中,其中訊息處置器單元更包含執行次單元,其用以偵測標記次單元之變數。當偵測到變數為第二值時,執行次單元調用初始化指令儲存單元之用戶名稱初始化指令、密碼初始化指令及權限初始化指令,分別將至少一用戶名稱、至少一密碼與至少一權限恢復為該對應預設值,並產生第二回應訊息。 In an embodiment of the present disclosure, the message handler unit further includes an execution secondary unit for detecting a variable of the marked secondary unit. When detecting the variable as the second value, executing the sub-unit call initializing the instruction unit storage unit user name initialization instruction, the password initialization instruction, and the permission initialization instruction, respectively recovering at least one user name, at least one password, and at least one authority to the Corresponding to the preset value and generating a second response message.

本揭示內容之一實施例中,其中使用者介面裝置用以從基板管理控制模組接收第一回應訊息及第二回應訊息,並顯示第一回應訊息及第二回應訊息。 In one embodiment of the present disclosure, the user interface device is configured to receive the first response message and the second response message from the baseboard management control module, and display the first response message and the second response message.

本揭示內容之一實施例中,其中偵測判斷次單元將接收到的第一設定值恢復指令與預先儲存於基板管理 控制模組的標準指令進行比對。若比對一致,則偵測判斷次單元判斷第一設定值恢復指令有效;若比對不一致,則偵測判斷次單元判斷第一設定值恢復指令無效。 In an embodiment of the present disclosure, the detection determining sub-unit will receive the first set value recovery instruction and pre-stored in the substrate management The standard instructions of the control module are compared. If the comparison is consistent, the detection determination sub-unit determines that the first set value recovery command is valid; if the comparison is inconsistent, the detection determination sub-unit determines that the first set value recovery instruction is invalid.

本揭示內容之一實施例中,其中第一回應訊息為第一設定值恢復指令執行失敗訊息。 In an embodiment of the present disclosure, the first response message is a first set value recovery instruction execution failure message.

本揭示內容之一實施例中,其中第二回應訊息為第一設定值恢復指令執行成功訊息。 In an embodiment of the present disclosure, the second response message is a first set value recovery instruction execution success message.

本揭示內容之一實施例中,其中基本輸入輸出系統單元發出的第一設定值恢復指令為系統嵌入指令,使用者介面裝置發出的第一設定值恢復指令為用戶輸入指令。 In an embodiment of the present disclosure, the first set value recovery instruction sent by the basic input/output system unit is a system embedded instruction, and the first set value recovery instruction sent by the user interface device is a user input instruction.

綜上所述,本揭示內容透過基本輸入輸出系統或使用者介面裝置發送單一命令即可完成恢復系統內基板管理控制模組的使用者識別碼設定值的功能,並且藉由設置偵錯訊息以避免恢復命令受到錯誤調用而導致系統使用者自行定義的使用者識別碼失效的情況發生。因此,本揭示內容可透過調用單一指令的方式達成執行恢復使用者識別碼設定值所需的多個指令的功能。因此,簡化指令調用的操作,並且同時提高效率與安全性。 In summary, the present disclosure can complete the function of restoring the user identification code setting value of the substrate management control module in the system by sending a single command through the basic input/output system or the user interface device, and by setting the debugging information. Avoid the situation where the recovery command is incorrectly called and the user ID defined by the system user is invalid. Therefore, the present disclosure can achieve the function of executing a plurality of instructions required to restore the user identification code set value by calling a single instruction. Therefore, the operation of the instruction call is simplified, and at the same time, efficiency and security are improved.

以下將以實施方式對上述之說明作詳細的描述,並對本揭示內容之技術方案提供更進一步的解釋。 The above description will be described in detail in the following embodiments, and further explanation of the technical solutions of the present disclosure is provided.

為讓本揭示內容之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附符號之說明如下: The above and other objects, features, advantages and embodiments of the present disclosure will become more apparent and understood.

100‧‧‧設定值恢復系統 100‧‧‧Set value recovery system

110‧‧‧操作控制模組 110‧‧‧Operation Control Module

112‧‧‧基本輸入輸出系統單元 112‧‧‧Basic input and output system unit

114‧‧‧使用者介面裝置 114‧‧‧User interface device

120‧‧‧基板管理控制模組 120‧‧‧Base management control module

122‧‧‧應用程式介面單元 122‧‧‧Application Interface Unit

124‧‧‧訊息處置器單元 124‧‧‧Message Processor Unit

126‧‧‧初始化指令儲存單元 126‧‧‧Initial command storage unit

222‧‧‧偵測判斷次單元 222‧‧‧Detection and judgment subunit

224‧‧‧標記次單元 224‧‧‧ mark subunit

226‧‧‧執行次單元 226‧‧‧ execution subunit

200‧‧‧設定值恢復方法 200‧‧‧Set value recovery method

S202~S214‧‧‧步驟 S202~S214‧‧‧Steps

為讓本揭示內容之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附圖示之說明如下: 第1圖係說明本揭示內容一實施例之設定值恢復系統示意圖;以及第2圖係說明本揭示內容另一實施例之設定值恢復方法流程圖。 The above and other objects, features, advantages and embodiments of the present disclosure will become more apparent and understood. 1 is a schematic diagram showing a set value recovery system according to an embodiment of the present disclosure; and FIG. 2 is a flow chart showing a method for restoring a set value according to another embodiment of the present disclosure.

為了使本揭示內容之敘述更加詳盡與完備,可參照附圖及以下所述之各種實施例。但所提供之實施例並非用以限制本發明所涵蓋的範圍;步驟的描述亦非用以限制其執行之順序,任何由重新組合,所產生具有均等功效的裝置,皆為本發明所涵蓋的範圍。 To make the description of the present disclosure more detailed and complete, reference is made to the drawings and the various embodiments described below. The examples are not intended to limit the scope of the invention; the description of the steps is not intended to limit the order of execution thereof, and any device having equal efficiency resulting from recombination is covered by the present invention. range.

於實施方式與申請專利範圍中,除非內文中對於冠詞有所特別限定(例如「單一」僅表示數量為一),否則「一」與「該」可泛指單一個或複數個。 In the scope of the embodiments and claims, unless the context specifically dictates the articles (for example, "single" means only one number), "a" and "the" can mean a single or plural.

另外,關於本文中所使用之「耦接」及「連接」,均可指二或多個元件相互直接作實體接觸或電性接觸,或是相互間接作實體接觸或電性接觸,而「耦接」還可指二或多個元件相互操作或動作。 In addition, as used herein, "coupled" and "connected" may mean that two or more elements are in direct physical or electrical contact with each other, or indirectly in physical or electrical contact with each other. "Connected" may also mean that two or more elements operate or interact with each other.

第1圖係說明本揭示內容一實施例之設定值恢復系統100示意圖。設定值恢復系統100包含操作控制模組110與基板管理控制模組120,其中基板管理控制模組120電性耦接操作控制模組110。基板管理控制模組120包含應用程式介面(Application Programming Interface,API)單元122、初始化指令儲存單元126與訊息處置器(Message handler)單元124。設定值恢復系統100可應用於計算機系統中,例如伺服器系統。 1 is a schematic diagram of a set value recovery system 100 in accordance with an embodiment of the present disclosure. The set value recovery system 100 includes an operation control module 110 and a substrate management control module 120. The substrate management control module 120 is electrically coupled to the operation control module 110. The baseboard management control module 120 includes an application programming interface (API) unit 122, an initialization instruction storage unit 126, and a message handler (Message). Handler) unit 124. The setpoint recovery system 100 can be applied to a computer system, such as a server system.

為了恢復使用者識別碼為出廠的預設狀態,訊息處置器單元124用以定義並初始化變數為第一值(例如0),並且持續地監視變數。操作控制模組110對基板管理控制模組120調用第一設定值恢復指令,其中第一設定值恢復指令例如為單一原廠設備製造商(Original Equipment Manufacturer,OEM)指令。基板管理控制模組120之應用程式介面單元122接收到單一原廠設備製造商(OEM)指令後,將單一原廠設備製造商(OEM)指令發送至訊息處置器單元124。當訊息處置器單元124判斷接收到應用程式介面單元122傳送之單一原廠設備製造商指令為有效指令時,設定變數為第二值(例如1)。當訊息處置器單元124偵測到變數為第二值時,調用預先儲存於初始化指令儲存單元126的初始化指令集,以將基板管理控制模組120的使用者識別碼(User Identification,User ID)恢復為出廠的預設狀態。舉例而言,訊息處置器單元124調用初始化指令集,將用戶名稱、密碼與權限其中一者或其組合恢復為出廠的預設狀態。此外,於恢復程序結束後,訊息處置器單元124設定變數為第一值(例如0),以避免再次偵測到變數為第二值而反覆執行恢復程序。上述用戶名稱、密碼與權限僅為舉例說明目的,並非用以限定本發明,其他系統設定亦在本揭示內容的涵蓋範圍中。實作上,單一原廠設備製造商指令可以指稱原廠設備製造商自行定義的單一指令,其內容 可依實際需求彈性設計。於此例中,上述的處理程序均於基板管理控制模組120的記憶體中完成,而無須經由外部介面,因此提升效率的同時,亦降低錯誤發生機會。 In order to restore the user identification code to the factory default state, the message handler unit 124 is used to define and initialize the variables to a first value (eg, 0) and continuously monitor the variables. The operation control module 110 invokes the first set value recovery command on the substrate management control module 120, wherein the first set value recovery instruction is, for example, a single Original Equipment Manufacturer (OEM) instruction. The application interface unit 122 of the baseboard management control module 120 sends a single original equipment manufacturer (OEM) command to the message handler unit 124 upon receipt of a single original equipment manufacturer (OEM) command. When the message handler unit 124 determines that a single original device manufacturer command transmitted by the application interface unit 122 is received as a valid command, the set variable is a second value (eg, 1). When the message handler unit 124 detects that the variable is the second value, the initialization instruction set stored in the initialization instruction storage unit 126 is called to set the user identification (User ID, User ID) of the substrate management control module 120. Restore to the factory default state. For example, the message handler unit 124 invokes an initialization instruction set to restore one of the user name, password, and rights, or a combination thereof, to the factory default state. In addition, after the recovery process ends, the message handler unit 124 sets the variable to a first value (eg, 0) to avoid repeatedly detecting that the variable is the second value and repeatedly executing the recovery procedure. The above user names, passwords and permissions are for illustrative purposes only and are not intended to limit the invention, and other system settings are also within the scope of the present disclosure. In practice, a single original equipment manufacturer's instructions may refer to a single instruction defined by the original equipment manufacturer, the content of which It can be flexibly designed according to actual needs. In this example, the above-mentioned processing procedures are all completed in the memory of the substrate management control module 120 without the need of an external interface, thereby improving efficiency and reducing the chance of errors.

系統用戶可包含自定義用戶與預設用戶。於一實施例中,上述初始化指令儲存單元更包含刪除指令集,刪除指令集用以刪除使用者自行定義的用戶及其設定值,亦即自定義用戶。 System users can include custom users and preset users. In an embodiment, the initialization instruction storage unit further includes a deletion instruction set, and the deletion instruction set is used to delete the user defined by the user and the set value thereof, that is, the custom user.

於一實施例中,基板管理控制模組120預先設置於初始化指令儲存單元126內的初始化指令集可以是多個智慧平台管理介面(Intelligent Platform Management Interface,IPMI)指令,用以當訊息處置器單元124判斷接收到單一原廠設備製造商指令為有效指令,並偵測到變數為第二值時執行。舉例而言,操作控制模組110僅需發送單一原廠設備製造商指令至基板管理控制模組120,訊息處置器單元124判斷其為有效指令時,即設定變數為第二值(例如1)。當訊息處置器單元124偵測到變數為第二值時,即可執行基板管理控制模組120預先設置於初始化指令儲存單元126的用戶名稱智慧平台管理介面指令(User Name IPMI command)、密碼智慧平台管理介面指令(User Password IPMI command)與權限智慧平台管理介面指令(User Access IPMI command),以將使用者識別碼恢復為出廠預設狀態。換言之,單一原廠設備製造商指令具有相當於用戶名稱智慧平台管理介面指令、密碼智慧平台管理介面指令與權限智慧平台管理介面指令封裝而成的功能,因 此僅需發送有效的單一原廠設備製造商指令至基板管理控制模組120即可分別將用戶名稱、密碼與權限恢復為出廠的預設狀態。相較於先前技術必須逐一調用不同設定(例如用戶名稱、密碼、權限或其他設定)對應的智慧平台管理介面指令來修改User ID1與User ID2,並且再發送其他指令刪除其餘用戶訊息,因此總計發送的指令可高達數十條之多,不但效率不佳,於不同介面之間調用指令亦容易發生錯誤,導致系統故障。因此,本發明可藉由調用單一原廠設備製造商指令達成恢復設定值所需使用到的指令的功能,並透過單一應用程式介面調用,不僅提高指令執行的效率,並且同時減少錯誤發生的機率。上述當訊息處置器單元124偵測到變數為第二值時,即執行預先設置的智慧平台管理介面指令亦可依實際需求設計為其他多種智慧平台管理介面指令。 In an embodiment, the initialization instruction set preset by the substrate management control module 120 in the initialization instruction storage unit 126 may be multiple Intelligent Platform Management Interface (IPMI) instructions for the message processor unit. 124 judges that receiving a single original equipment manufacturer manufacturer instruction is a valid instruction, and detecting when the variable is the second value. For example, the operation control module 110 only needs to send a single original equipment manufacturer manufacturer instruction to the substrate management control module 120. When the message processor unit 124 determines that it is a valid instruction, the setting variable is set to a second value (for example, 1). . When the message processor unit 124 detects that the variable is the second value, the user name IPMI command and password wisdom preset by the baseboard management control module 120 to the initialization command storage unit 126 can be executed. The User Password IPMI command and the User Access IPMI command restore the user ID to the factory default state. In other words, the single original equipment manufacturer's instruction has the function equivalent to the user name smart platform management interface command, the password smart platform management interface command and the authority smart platform management interface command, because This only needs to send a valid single original equipment manufacturer manufacturer command to the baseboard management control module 120 to restore the user name, password and authority to the factory default state respectively. Compared with the prior art, it is necessary to call the smart platform management interface instruction corresponding to different settings (such as user name, password, permission or other settings) to modify User ID1 and User ID2, and then send other instructions to delete the remaining user messages, so the total is sent. The number of instructions can be as high as dozens, not only inefficient, but also easy to make errors when calling instructions between different interfaces, resulting in system failure. Therefore, the present invention can achieve the function of the instruction required to restore the set value by calling a single original equipment manufacturer instruction, and through a single application interface call, not only improves the efficiency of instruction execution, but also reduces the probability of occurrence of errors. . When the message processor unit 124 detects that the variable is the second value, the pre-set smart platform management interface command may be designed as other multi-smart platform management interface commands according to actual requirements.

舉例而言,在一伺服器系統中,基板管理控制模組120出廠的預設狀態為兩個用戶識別碼User ID1與User ID2,用戶識別碼User ID1的用戶名稱與密碼均設定為空用戶名稱(Null user name),並且其狀態為致能(Enable)。用戶識別碼User ID2用戶名稱與密碼均設定為admin,狀態為致能(Enable),並且具有管理者(Administrator)權限。上述出廠的預設狀態僅為舉例說明目的,並非用以限定本發明,其他出廠的預設狀態亦在本揭示內容的涵蓋範圍中。 For example, in a server system, the preset state of the substrate management control module 120 is two user identification codes User ID1 and User ID2, and the user name and password of the user identification code User ID1 are set to an empty user name. (Null user name), and its status is Enable. The user ID User ID2 user name and password are both set to admin, the status is Enable, and has Administrator privileges. The above preset state of the factory is for illustrative purposes only, and is not intended to limit the present invention, and other factory preset states are also covered by the present disclosure.

本揭示內容之第一設定值恢復指令可經由不同介面調用,以恢復使用者識別碼為出廠預設狀態。於一實施 例中,操作控制模組110包含基本輸入輸出系統(Basic Input/Output System,BIOS)單元112與使用者介面(User Interface,UI)裝置114,其中基本輸入輸出系統單元112與使用者介面裝置114均電性耦接應用程式介面單元122。第一設定值恢復指令可由基本輸入輸出系統單元112或使用者介面裝置114發出至應用程式介面單元122。舉例而言,透過基本輸入輸出系統單元112發出的第一設定值恢復指令可以是系統嵌入指令,而透過使用者介面裝置114發出的第一設定值恢復指令可以是用戶輸入指令。實作上,使用者介面裝置114可包括觸控顯示螢幕或多點觸控顯示螢幕之顯示螢幕、鍵盤或其他輸入裝置、麥克風、揚聲器等。 The first set value recovery instruction of the present disclosure may be invoked via different interfaces to restore the user identification code to a factory preset state. In one implementation For example, the operation control module 110 includes a basic input/output system (BIOS) unit 112 and a user interface (UI) device 114, wherein the basic input/output system unit 112 and the user interface device 114 The application interface unit 122 is electrically coupled. The first set value recovery command may be issued by the basic input output system unit 112 or the user interface device 114 to the application interface unit 122. For example, the first set value recovery command sent by the basic input/output system unit 112 may be a system embedded command, and the first set value recovery command sent through the user interface device 114 may be a user input command. In practice, the user interface device 114 can include a display screen of a touch display screen or a multi-touch display screen, a keyboard or other input device, a microphone, a speaker, and the like.

為具體說明訊息處置器單元124,於一實施例中,訊息處置器單元124包含偵測判斷次單元(Subunit)222、標記次單元224與執行次單元226,其中偵測判斷次單元222電性耦接應用程式介面單元122,標記次單元224電性耦接初始化指令儲存單元126。上述的變數係透過標記次單元224定義並且初始化為第一值(例如0)。 To specifically describe the message handler unit 124, in one embodiment, the message handler unit 124 includes a detection unit (Subunit) 222, a flag sub-unit 224, and an execution sub-unit 226, wherein the detection sub-unit 222 is electrically The application sub-unit 122 is coupled to the initialization instruction storage unit 126. The above variables are defined by the marking sub-unit 224 and initialized to a first value (e.g., 0).

為方便說明,以使用者透過使用者介面裝置114發送第一設定值恢復指令為例。使用者可透過使用者介面裝置114發送第一設定值恢復指令(例如單一原廠設備製造商指令)至基板管理控制模組120的應用程式介面單元122,以恢復使用者識別碼為出廠預設狀態。基板管理控制模組120的應用程式介面單元122接收到使用者介面裝置 114發送的單一原廠設備製造商指令後,將單一原廠設備製造商(OEM)指令發送至訊息處置器單元124的偵測判斷次單元222。偵測判斷次單元222用以輪詢偵測接收應用程式介面單元122傳送之單一原廠設備製造商指令,並判斷單一原廠設備製造商指令是否有效。當偵測判斷次單元222判斷單一原廠設備製造商指令有效時,輸出第二設定值恢復指令至標記次單元224。當標記次單元224接收到第二設定值恢復指令時,設定變數為第二值(例如1)。反之,當偵測判斷次單元222判斷單一原廠設備製造商指令無效時,攔截單一原廠設備製造商指令,並產生第一回應訊息(例如單一原廠設備製造商指令執行失敗訊息)。當執行次單元226偵測到變數為第二值時,執行次單元226調用初始化指令儲存單元126之用戶名稱初始化指令、密碼初始化指令及權限初始化指令,分別將至少一用戶名稱、至少一密碼與至少一權限恢復為對應預設值,並產生第二回應訊息(例如單一原廠設備製造商指令執行成功訊息)。於透過使用者介面裝置114調用單一原廠設備製造商指令的情況中,當基板管理控制模組120產生回應訊息(例如第一回應訊息或第二回應訊息)後,使用者介面裝置114進一步從基板管理控制模組120接收回應訊息,以顯示恢復程序成功或失敗的資訊於使用者介面裝置114上。因此,使用者可得知將基板管理控制模組120的使用者識別碼恢復為出廠預設狀態的操作是否執行成功。此外,於恢復程序結束後,訊息處置器單元124設定變數為第一值(例如0),以避免再次偵測到變數為第二值而 反覆執行恢復程序。於此例中,上述的處理程序均於基板管理控制模組120中完成,而無須經由外部介面,因此提升效率的同時,亦降低錯誤發生機會。 For convenience of explanation, the user sends the first set value recovery command through the user interface device 114 as an example. The user can send a first set value recovery command (for example, a single original equipment manufacturer command) to the application interface unit 122 of the baseboard management control module 120 through the user interface device 114 to restore the user identification code to the factory preset. status. The application interface unit 122 of the substrate management control module 120 receives the user interface device After a single original equipment manufacturer command is sent 114, a single original equipment manufacturer (OEM) command is sent to the detection determination sub-unit 222 of the message processor unit 124. The detection judging unit 222 is configured to poll the single original equipment manufacturer command transmitted by the detection receiving application interface unit 122 and determine whether the single original equipment manufacturer manufacturer instruction is valid. When the detection determination sub-unit 222 determines that the single original equipment manufacturer command is valid, the second set value recovery command is output to the mark sub-unit 224. When the marking sub-unit 224 receives the second set value recovery command, the set variable is set to a second value (for example, 1). On the other hand, when the detection judging unit 222 judges that the single original equipment manufacturer instruction is invalid, intercepts a single original equipment manufacturer instruction and generates a first response message (for example, a single original equipment manufacturer instruction execution failure message). When the execution sub-unit 226 detects that the variable is the second value, the execution sub-unit 226 calls the user name initialization instruction, the password initialization instruction, and the permission initialization instruction of the initialization instruction storage unit 126, respectively, to at least one user name, at least one password and At least one authority is restored to a corresponding preset value, and a second response message is generated (eg, a single original equipment manufacturer instruction execution success message). In the case where a single original equipment manufacturer command is invoked through the user interface device 114, after the substrate management control module 120 generates a response message (eg, a first response message or a second response message), the user interface device 114 further proceeds from The baseboard management control module 120 receives the response message to display information about the success or failure of the recovery procedure on the user interface device 114. Therefore, the user can know whether the operation of restoring the user identification code of the substrate management control module 120 to the factory preset state is successful. In addition, after the recovery process ends, the message handler unit 124 sets the variable to a first value (eg, 0) to avoid detecting the variable to the second value again. Repeat the recovery process. In this example, the above-mentioned processing procedures are all completed in the substrate management control module 120 without the need of an external interface, thereby improving efficiency and reducing the chance of errors.

以下舉例說明偵測判斷次單元222判斷第一設定值恢復指令是否有效的方法。偵測判斷次單元222將接收到的第一設定值恢復指令與預先儲存於基板管理控制模組120的標準指令進行比對。若第一設定值恢復指令與標準指令比對一致,則偵測判斷次單元222判斷第一設定值恢復指令有效。反之,若第一設定值恢復指令與標準指令比對不一致,則偵測判斷次單元222判斷第一設定值恢復指令無效。 The following describes an example of the detection determination sub-unit 222 determining whether the first set value recovery command is valid. The detection determination sub-unit 222 compares the received first set value recovery command with a standard command stored in advance in the substrate management control module 120. If the first set value recovery command is identical to the standard command, the detection determination sub-unit 222 determines that the first set value recovery command is valid. On the other hand, if the first set value recovery command is inconsistent with the standard command, the detection determination sub-unit 222 determines that the first set value recovery command is invalid.

為了具體說明標準指令的實施方式,於一實施例中,當第一設定值恢復指令(例如單一原廠設備製造商指令)由使用者介面裝置114發送時,單一原廠設備製造商指令包含偵錯訊息。訊息處置器單元124接收到單一原廠設備製造商指令時,偵測判斷次單元222比對單一原廠設備製造商指令與標準指令是否一致,例如檢查兩者的偵錯訊息是否正確。若偵測判斷次單元222判斷偵錯訊息正確,則標記次單元224設定變數為第二值(例如1),而執行次單元226進一步分別將用戶名稱、密碼與權限恢復為對應預設值。反之,若偵測判斷次單元222判斷偵錯訊息錯誤,則標記次單元224不會設定變數為第二值,亦即執行次單元226不會將使用者識別碼恢復為出廠預設狀態,並且偵測判斷次單元222產生代表執行失敗的回應訊息。 To specifically illustrate the implementation of the standard instructions, in one embodiment, when the first set value recovery command (eg, a single original equipment manufacturer command) is sent by the user interface device 114, the single original equipment manufacturer command includes the detect Wrong message. When the message processor unit 124 receives the single original equipment manufacturer's instruction, the detection and determination sub-unit 222 is consistent with the single original equipment manufacturer's instruction and the standard instruction, for example, checking whether the error information of the two is correct. If the detection determination sub-unit 222 determines that the debug information is correct, the flag sub-unit 224 sets the variable to a second value (for example, 1), and the execution sub-unit 226 further restores the user name, password, and authority to the corresponding preset values, respectively. On the other hand, if the detection determination sub-unit 222 determines that the error detection message is incorrect, the marking sub-unit 224 does not set the variable to the second value, that is, the execution sub-unit 226 does not restore the user identification code to the factory preset state, and The detection judging unit 222 generates a response message representing the failure of execution.

舉例而言,第一設定值恢復指令(例如封裝完成的單一原廠設備製造商指令)為(30h,CEh)並於其後方加上三個字元(Byte)的偵錯訊息。偵錯訊息設置的目的為避免使用者透過上述使用者介面裝置114無意間調用上述單一原廠設備製造商指令,導致使用者自行定義的用戶名稱、密碼與權限因恢復為出廠預設狀態而失效。因此,調用單一原廠設備製造商指令時必須輸入正確的偵錯訊息,方可正確調用恢復指令以恢復原廠預設狀態。否則,輸入正確的單一原廠設備製造商指令與錯誤的偵錯訊息亦無法成功恢復使用者識別碼為出廠設定值。偵錯訊息例如關於製造資訊的代碼,並且以最低有效字元在前排序(Least significant byte first)。於本實施例中,偵錯訊息設定為關於製造資訊Inventec的代碼,例如網際網路號碼分配局(Internet Assigned Numbers Authority,IANA)代碼「0019a9h」。於恢復程序結束後,產生一字元的回應訊息代表恢復程序執行成功或者失敗。上述字元長度、指令代碼與訊息代碼僅為舉例說明,並非用以限定本發明,其他合適的字元長度、指令代碼與訊息代碼亦在本發明的涵蓋範圍內。 For example, the first set value recovery command (eg, a packaged single original equipment manufacturer's instruction) is (30h, CEh) followed by three Bytes of debug messages. The purpose of the debug message setting is to prevent the user from inadvertently calling the single original device manufacturer command through the user interface device 114, and the user-defined user name, password and authority are invalidated due to being restored to the factory default state. . Therefore, when a single original equipment manufacturer's instruction is invoked, the correct debug message must be entered in order to properly call the resume command to restore the factory default state. Otherwise, entering the correct single original equipment manufacturer's instructions and the wrong debug message will not successfully restore the user ID to the factory default. Debug messages, such as code for making information, are sorted by Least significant byte first. In the present embodiment, the debug message is set to a code for manufacturing information Inventec, such as the Internet Assigned Numbers Authority (IANA) code "0019a9h". After the recovery procedure ends, a one-character response message is generated to indicate that the recovery program was successful or failed. The above character lengths, instruction codes and message codes are merely illustrative and are not intended to limit the invention. Other suitable character lengths, instruction codes and message codes are also within the scope of the present invention.

實作上,基板管理控制模組可以是基板管理控制器(Baseboard Management Controller,BMC)。如上所述之基本輸入輸出系統單元112、應用程式介面單元122、訊息處置器單元124、初始化指令儲存單元126、偵測判斷次單元222、標記次單元224、執行次單元226…等, 其具體實施方式可為軟體、硬體與/或韌體。舉例來說,若以執行速度及精確性為首要考量,則各模組、各單元和各次單元基本上可選用硬體與/或軔體為主;若以設計彈性為首要考量,則各模組、各單元和各次單元基本上可選用軟體為主;或者,各模組、各單元和各次單元可同時採用軟體、硬體及軔體協同作業。應瞭解到,以上所舉的這些例子並沒有所謂孰優孰劣之分,亦並非用以限制本發明,熟習此項技藝者當視當時需要,彈性選擇各模組、各單元和各次單元的具體實施方式。 In practice, the substrate management control module may be a Baseboard Management Controller (BMC). The basic input/output system unit 112, the application interface unit 122, the message processor unit 124, the initialization instruction storage unit 126, the detection determination sub-unit 222, the marking sub-unit 224, the execution sub-unit 226, etc., as described above, The specific embodiment may be a soft body, a hard body and/or a firmware. For example, if the execution speed and accuracy are the primary considerations, the modules, units, and sub-units can basically be dominated by hardware and/or carcass; if design flexibility is the primary consideration, The module, each unit, and each sub-unit are basically software-based; or, each module, each unit, and each sub-unit can simultaneously work with software, hardware, and carcass. It should be understood that the above examples are not intended to limit the present invention, and are not intended to limit the present invention. Those skilled in the art will be able to flexibly select modules, units, and subunits as needed. Specific implementation.

第2圖係說明本揭示內容另一實施例之設定值恢復方法200流程圖。設定值恢復方法200包括多個步驟S202~S214,可應用於如第1圖所示的設定值恢復系統100中,然熟習本案之技藝者應瞭解到,在本實施例中所提及的步驟,除特別敘明其順序者外,均可依實際需要調整其前後順序,甚至可同時或部分同時執行。 2 is a flow chart illustrating a set value recovery method 200 in accordance with another embodiment of the present disclosure. The set value recovery method 200 includes a plurality of steps S202 to S214, which can be applied to the set value recovery system 100 as shown in Fig. 1, but those skilled in the art should understand the steps mentioned in the present embodiment. Except for the order in which they are specifically stated, they can be adjusted according to actual needs, and can even be executed simultaneously or partially.

首先於步驟S202中,定義變數LOADUSER,並且在初始化的過程中將變數LOADUSER的值設定為第一值(例如0)。於步驟S204中,判斷接收到的第一設定值恢復指令是否為有效指令,其中第一設定值恢復指令例如為單一原廠設備製造商指令,用來恢復使用者識別碼為出廠的預設狀態。若判斷接收到的第一設定值恢復指令為有效指令,則於步驟S206,設定變數LOADUSER為第二值(例如1)。反之,若未接收到第一設定值恢復指令,或是判斷接收到的第一設定值恢復指令並非有效指令,則不改變數 LOADUSER的值,並於步驟S214,產生第一回應訊息(例如第一設定值恢復指令執行失敗訊息)。接著於步驟S208中,判斷變數LOADUSER的值是否為第二值(例如1)。若變數LOADUSER的值為第二值(例如1),表示第一設定值恢復指令為有效指令,則於步驟S210中,透過基板管理控制模組分別將用戶名稱、密碼與權限恢復為對應預設值。於步驟212中,產生第二回應訊息以表示上述第一設定值恢復指令成功執行。步驟S210執行完畢後,亦回到步驟S202設定變數LOADUSER為第一值(例如0),以避免再次偵測到變數為第二值而反覆執行恢復為預設值的程序。反之,若於步驟S208中變數LOADUSER的值經判斷為非第二值(例如0),表示未接收到第一設定值恢復指令,或者第一設定值恢復指令並非有效指令,此時則回到步驟S204再判斷接收到的第一設定值恢復指令是否為有效指令。 First in step S202, the variable LOADUSER is defined, and the value of the variable LOADUSER is set to the first value (for example, 0) during the initialization. In step S204, it is determined whether the received first set value recovery instruction is a valid instruction, wherein the first set value recovery instruction is, for example, a single original equipment manufacturer instruction, used to restore the user identification code to a factory default state. . If it is determined that the received first set value recovery command is a valid command, then in step S206, the set variable LOADUSER is set to a second value (for example, 1). On the other hand, if the first set value recovery command is not received, or if the received first set value recovery command is not a valid command, the number is not changed. The value of LOADUSER, and in step S214, a first response message is generated (e.g., the first set value resume instruction execution failure message). Next, in step S208, it is determined whether the value of the variable LOADUSER is the second value (for example, 1). If the value of the variable LOADUSER is the second value (for example, 1), indicating that the first set value recovery command is a valid command, then in step S210, the user name, password, and authority are respectively restored to the corresponding preset by the baseboard management control module. value. In step 212, a second response message is generated to indicate that the first set value recovery command is successfully executed. After the execution of step S210 is completed, the process returns to step S202 to set the variable LOADUSER to the first value (for example, 0) to avoid repeatedly detecting that the variable is the second value and repeatedly executing the program restored to the preset value. On the other hand, if the value of the variable LOADUSER is determined to be non-second value (for example, 0) in step S208, it means that the first set value recovery instruction is not received, or the first set value recovery instruction is not a valid instruction, and then return to Step S204 further determines whether the received first set value recovery instruction is a valid instruction.

於一實施例中,以單一原廠設備製造商指令為例的第一設定值恢復指令具有相當於多個智慧平台管理介面指令的功能。舉例而言,僅需於步驟S204中判斷接收到第一設定值恢復指令為有效指令(例如透過基本輸入輸出系統單元或使用者介面裝置發送)即可於步驟S206將變數LOADUSER設定為第二值(例如1)。於上述步驟S208中,當判斷變數LOADUSER的值為第二值(例如1),則於步驟S210中透過基板管理控制模組內部調用預先設置的用戶名稱智慧平台管理介面指令、密碼智慧平台管理介面指令與權限智慧平台管理介面指令,以將用戶名稱、密碼與權限恢 復為對應預設值。換言之,單一原廠設備製造商指令具有相當於用戶名稱智慧平台管理介面指令、密碼智慧平台管理介面指令與權限智慧平台管理介面指令封裝而成的功能,因此僅需發送單一原廠設備製造商指令即可分別將用戶名稱、密碼與權限恢復為出廠的預設狀態。相較於先前技術必須逐一調用不同設定(例如用戶名稱、密碼、權限或其他設定)對應的智慧平台管理介面指令來修改User ID1與User ID2,並且再發送其他指令刪除其餘用戶訊息,因此總計發送的指令可高達數十條,不但效率不佳,於不同介面之間調用指令亦容易發生錯誤,導致系統故障。因此,本發明可藉由調用單一第一設定值恢復指令達成恢復設定值所需使用到的指令的功能,並透過單一應用程式介面調用,不僅提高指令執行的效率,並且同時減少錯誤發生的機率。上述於步驟S210執行預先設置的智慧平台管理介面指令亦可依實際需求設計為其他多種智慧平台管理介面指令。 In one embodiment, the first set value recovery instruction, exemplified by a single original equipment manufacturer manufacturer, has a function equivalent to a plurality of smart platform management interface instructions. For example, if it is determined in step S204 that the first set value recovery command is received as a valid command (eg, transmitted through the basic input/output system unit or the user interface device), the variable LOADUSER may be set to the second value in step S206. (eg 1). In the above step S208, when it is determined that the value of the variable LOADUSER is the second value (for example, 1), the preset user name smart platform management interface command and the password smart platform management interface are invoked through the substrate management control module in step S210. Command and Permissions Wisdom Platform Management Interface Command to restore user name, password and permissions Revert to the corresponding preset value. In other words, the single original equipment manufacturer's instruction has the function equivalent to the user name smart platform management interface command, the cryptographic smart platform management interface command and the privilege smart platform management interface command, so only a single original equipment manufacturer instruction is required to be sent. You can restore the user name, password, and permissions to the factory default state. Compared with the prior art, it is necessary to call the smart platform management interface instruction corresponding to different settings (such as user name, password, permission or other settings) to modify User ID1 and User ID2, and then send other instructions to delete the remaining user messages, so the total is sent. The number of instructions can be as high as dozens, which is not only inefficient, but also easy to make errors when calling instructions between different interfaces, resulting in system failure. Therefore, the present invention can achieve the function of the instruction required to restore the set value by calling a single first set value recovery command, and through a single application interface call, not only improves the efficiency of instruction execution, but also reduces the probability of error occurrence. . The above-mentioned smart platform management interface command executed in step S210 can also be designed as other multi-smart platform management interface instructions according to actual needs.

本揭示內容之單一原廠設備製造商指令亦可經由不同介面調用,以恢復使用者識別碼為出廠預設狀態,亦即出廠用戶預設值。於一實施例中,使用者可透過使用者介面裝置發送單一原廠設備製造商指令以恢復使用者識別碼為出廠預設狀態。當接收到使用者介面裝置發送的單一原廠設備製造商指令並判斷為有效指令之後,設定變數LOADUSER為第二值(例如1)。當偵測到變數LOADUSER為第二值時,透過基板管理控制模組將使用者識別碼恢復為出廠的預設狀態。舉例而言,將用戶名稱、密碼與權限其中 一者或其組合恢復為出廠的預設狀態,並且在恢復程序結束後產生回應訊息,以代表恢復程序執行成功或失敗。於透過使用者介面裝置調用單一原廠設備製造商指令的情況中,當回應訊息產生後,進一步透過使用者介面裝置接收回應訊息以表示恢復程序成功或失敗的資訊於使用者介面裝置上。因此,使用者可得知恢復使用者識別碼為出廠預設狀態是否執行成功。 The single original equipment manufacturer's instructions of the present disclosure may also be invoked via different interfaces to restore the user identification code to the factory preset state, that is, the factory user preset value. In one embodiment, the user can send a single original equipment manufacturer command through the user interface device to restore the user identification code to the factory preset state. After receiving a single original equipment manufacturer command sent by the user interface device and determining to be a valid command, the set variable LOADUSER is set to a second value (for example, 1). When the variable LOADUSER is detected as the second value, the user identification code is restored to the factory preset state through the baseboard management control module. For example, the user name, password, and permissions are One or a combination thereof is restored to the factory default state, and a response message is generated after the recovery procedure ends to represent success or failure of the recovery program execution. In the case where a single original equipment manufacturer command is invoked through the user interface device, after the response message is generated, the response message is further received through the user interface device to indicate that the success or failure of the recovery program is on the user interface device. Therefore, the user can know whether the restoration of the user identification code to the factory preset state is successful.

於另一實施例中,上述步驟S204亦可以是判斷接收到使用者利用使用者介面裝置發送之第一設定值恢復指令並且與預先儲存於標準指令進行比對,亦即檢查偵錯訊息是否正確。若比對一致,亦即接收到使用者介面裝置發送之第一設定值恢復指令並且偵錯訊息正確,則於步驟S206中設定變數LOADUSER為第二值(例如1)。若未接收到使用者介面裝置發送之第一設定值恢復指令或者比對不一致(亦即偵錯訊息錯誤),則維持變數LOADUSER原本的值。舉例而言,第一設定值恢復指令(例如封裝後的單一原廠設備製造商指令)為(30h,CEh)並於其後方加上三個字元的偵錯訊息。偵錯訊息設置的目的為避免使用者無意間調用上述單一原廠設備製造商指令,導致使用者自行定義的用戶名稱、密碼與權限因恢復為出廠預設狀態而失效。因此,調用單一原廠設備製造商指令時必須輸入正確的偵錯訊息,方可正確調用恢復指令以恢復原廠預設狀態。否則,輸入正確的單一原廠設備製造商指令與錯誤的偵錯訊息亦無法成功恢復使用者識別碼為出廠設定值。偵錯訊息例如關於 製造資訊的代碼,並且以最低有效字元在前排序。於本實施例中,偵錯訊息設定為關於製造資訊Inventec的代碼,例如網際網路號碼分配局(IANA)代碼「0019a9h」。於恢復程序結束後,產生一字元的回應訊息代表恢復程序執行成功或者失敗。上述字元長度、指令代碼與訊息代碼僅為舉例說明,並非用以限定本發明,其他合適的字元長度、指令代碼與訊息代碼亦在本發明的涵蓋範圍內。 In another embodiment, the step S204 may be performed to determine that the first set value recovery command sent by the user by using the user interface device is received and compared with the pre-stored standard command, that is, whether the debug information is correct. . If the comparison is the same, that is, the first set value recovery command sent by the user interface device is received and the debug message is correct, the variable LOADUSER is set to the second value (for example, 1) in step S206. If the first set value recovery command sent by the user interface device is not received or the comparison is inconsistent (that is, the debug message error), the original value of the variable LOADUSER is maintained. For example, the first set value recovery command (eg, a packaged single original equipment manufacturer's instruction) is (30h, CEh) followed by a three-character debug message. The purpose of the debug message setting is to prevent the user from inadvertently calling the above-mentioned single original device manufacturer command, and the user-defined user name, password and authority are invalidated due to returning to the factory default state. Therefore, when a single original equipment manufacturer's instruction is invoked, the correct debug message must be entered in order to properly call the resume command to restore the factory default state. Otherwise, entering the correct single original equipment manufacturer's instructions and the wrong debug message will not successfully restore the user ID to the factory default. Debugging information such as about The code that creates the information and sorts it with the least significant character. In the present embodiment, the debug message is set to a code for manufacturing information Inventec, such as the Internet Assigned Numbers Authority (IANA) code "0019a9h". After the recovery procedure ends, a one-character response message is generated to indicate that the recovery program was successful or failed. The above character lengths, instruction codes and message codes are merely illustrative and are not intended to limit the invention. Other suitable character lengths, instruction codes and message codes are also within the scope of the present invention.

綜上所述,本揭示內容得以經由上述實施例,透過基本輸入輸出系統或使用者介面裝置發送單一命令即可完成恢復系統內基板管理控制模組的使用者識別碼設定值的功能,並且藉由設置偵錯訊息以避免恢復命令受到錯誤調用而導致系統使用者自行定義的使用者識別碼失效的情況發生。因此,本揭示內容可透過調用單一指令的方式達成執行恢復使用者識別碼設定值所需的多個指令的功能。因此,簡化指令調用的操作,並且同時提高效率與安全性。 In summary, the present disclosure can complete the function of restoring the user identification code setting value of the substrate management control module in the system by sending a single command through the basic input/output system or the user interface device. The setting of the debug message prevents the recovery command from being erroneously invoked and the user ID defined by the system user is invalidated. Therefore, the present disclosure can achieve the function of executing a plurality of instructions required to restore the user identification code set value by calling a single instruction. Therefore, the operation of the instruction call is simplified, and at the same time, efficiency and security are improved.

雖然本揭示內容已以實施方式揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本揭示內容之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視申請專利範圍所界定者為準。 Although the present disclosure has been disclosed in the above embodiments, it is not intended to limit the invention, and the present invention may be modified and retouched without departing from the spirit and scope of the present disclosure. The scope of protection is subject to the definition of the scope of patent application.

100‧‧‧設定值恢復系統 100‧‧‧Set value recovery system

110‧‧‧操作控制模組 110‧‧‧Operation Control Module

112‧‧‧基本輸入輸出系統單元 112‧‧‧Basic input and output system unit

114‧‧‧使用者介面裝置 114‧‧‧User interface device

120‧‧‧基板管理控制模組 120‧‧‧Base management control module

122‧‧‧應用程式介面單元 122‧‧‧Application Interface Unit

124‧‧‧訊息處置器單元 124‧‧‧Message Processor Unit

126‧‧‧初始化指令儲存單元 126‧‧‧Initial command storage unit

222‧‧‧偵測判斷次單元 222‧‧‧Detection and judgment subunit

224‧‧‧標記次單元 224‧‧‧ mark subunit

226‧‧‧執行次單元 226‧‧‧ execution subunit

Claims (11)

一種設定值恢復系統,用以將複數個用戶之設定值恢復為出廠用戶預設值,包含:一操作控制模組,發送一第一設定值恢復指令;以及一基板管理控制模組,電性耦接該操作控制模組,該基板管理控制模組包含:一應用程式介面(Application Programming Interface,API)單元,該應用程式介面單元用以接收該第一設定值恢復指令;一初始化指令儲存單元,預先儲存一初始化指令集,該初始化指令集包含一用戶名稱初始化指令、一密碼初始化指令以及一權限初始化指令;以及一訊息處置器(Message handler)單元,該訊息處置器單元用以定義並初始化一變數為一第一值;當判斷接收到該應用程式介面單元傳送之該第一設定值恢復指令為一有效指令時,設定該變數為一第二值;當偵測到該變數為該第二值時,該訊息處置器單元調用該初始化指令儲存單元之該初始化指令集,分別將至少一用戶名稱、至少一密碼與至少一權限恢復為一對應預設值。 A set value recovery system for restoring a set value of a plurality of users to a preset value of a factory user, comprising: an operation control module, transmitting a first set value recovery command; and a substrate management control module, electrical The baseboard management control module includes: an application programming interface (API) unit, the application interface unit is configured to receive the first set value recovery instruction; and an initialization instruction storage unit Pre-storing an initialization instruction set, the initialization instruction set includes a user name initialization instruction, a password initialization instruction, and a permission initialization instruction; and a message handler unit for defining and initializing a variable is a first value; when it is determined that the first set value recovery command transmitted by the application interface unit is a valid command, the variable is set to a second value; when the variable is detected as the first When the value is binary, the message handler unit calls the initialization instruction set of the initialization instruction storage unit Recovering at least one user name, at least one password, and at least one permission to a corresponding preset value. 如請求項1所述之設定值恢復系統,其中該操作控制模組包含: 一基本輸入輸出系統(Basic Input/Output System,BIOS)單元;以及一使用者介面(User Interface,UI)裝置,該第一設定值恢復指令由該基本輸入輸出系統單元或該使用者介面裝置發出。 The set value recovery system of claim 1, wherein the operation control module comprises: a basic input/output system (BIOS) unit; and a user interface (UI) device, the first set value recovery command is sent by the basic input/output system unit or the user interface device . 如請求項1所述之設定值恢復系統,其中該些用戶包含至少一自定義用戶以及至少一預設用戶。 The set value recovery system of claim 1, wherein the users comprise at least one custom user and at least one preset user. 如請求項3所述之設定值恢復系統,其中該初始化指令儲存單元更包含一刪除指令集,該刪除指令集用以刪除該至少一自定義用戶。 The set value recovery system of claim 3, wherein the initialization instruction storage unit further comprises a deletion instruction set, the deletion instruction set is used to delete the at least one custom user. 如請求項1所述之設定值恢復系統,其中該訊息處置器單元包含:一偵測判斷次單元,用以輪詢偵測接收該應用程式介面單元傳送之該第一設定值恢復指令,並判斷該第一設定值恢復指令是否有效;當判斷該第一設定值恢復指令有效時,輸出一第二設定值恢復指令;當判斷該第一設定值恢復指令無效時,攔截該第一設定值恢復指令,並產生一第一回應訊息;以及一標記次單元,用以定義並初始化該變數為該第一值,並接收該第二設定值恢復指令,當接收到該第二設定值恢復指令時,設定該變數為該第二值。 The set value recovery system of claim 1, wherein the message handler unit comprises: a detection and determination sub-unit for polling and detecting the first set value recovery instruction transmitted by the application interface unit, and Determining whether the first set value recovery command is valid; when determining that the first set value recovery command is valid, outputting a second set value recovery command; and when determining that the first set value recovery command is invalid, intercepting the first set value Recovering the instruction and generating a first response message; and a marking subunit for defining and initializing the variable to the first value, and receiving the second set value recovery instruction, when receiving the second set value recovery instruction When the time is set, the variable is set to the second value. 如請求項5所述之設定值恢復系統,其中該訊息處置器單元更包含:一執行次單元,用以偵測該標記次單元之該變數,以及當偵測到該變數為該第二值時,該執行次單元調用該初始化指令儲存單元之該用戶名稱初始化指令、該密碼初始化指令及該權限初始化指令,分別將該至少一用戶名稱、該至少一密碼與該至少一權限恢復為該對應預設值,並產生一第二回應訊息。 The set value recovery system of claim 5, wherein the message handler unit further comprises: an execution subunit for detecting the variable of the marked subunit, and detecting the variable as the second value And executing, by the execution subunit, the user name initialization instruction, the password initialization instruction, and the permission initialization instruction of the initialization instruction storage unit, respectively recovering the at least one user name, the at least one password, and the at least one authority to the corresponding The preset value and a second response message is generated. 如請求項6所述之設定值恢復系統,其中一使用者介面裝置從該基板管理控制模組接收該第一回應訊息及該第二回應訊息,並顯示該第一回應訊息及該第二回應訊息。 The set value recovery system of claim 6, wherein a user interface device receives the first response message and the second response message from the baseboard management control module, and displays the first response message and the second response message. 如請求項5所述之設定值恢復系統,其中該偵測判斷次單元將接收到的該第一設定值恢復指令與預先儲存於該基板管理控制模組的一標準指令進行比對;若比對一致,則判斷該第一設定值恢復指令有效;若比對不一致,則判斷該第一設定值恢復指令無效。 The set value recovery system of claim 5, wherein the detection determining sub-unit compares the received first set value recovery command with a standard command pre-stored in the baseboard management control module; If the pair is consistent, it is determined that the first set value recovery command is valid; if the comparison is inconsistent, it is determined that the first set value recovery command is invalid. 如請求項5所述之設定值恢復系統,其中該第一回應訊息為該第一設定值恢復指令執行失敗訊息。 The set value recovery system of claim 5, wherein the first response message is the first set value recovery instruction execution failure message. 如請求項6所述之設定值恢復系統,其中該第二回應訊息為該第一設定值恢復指令執行成功訊息。 The set value recovery system of claim 6, wherein the second response message is the first set value recovery instruction execution success message. 如請求項2所述之設定值恢復系統,其中該基本輸入輸出系統單元發出的該第一設定值恢復指令為一系統嵌入指令,該使用者介面裝置發出的該第一設定值恢復指令為一用戶輸入指令。 The set value recovery system of claim 2, wherein the first set value recovery command sent by the basic input/output system unit is a system embedded command, and the first set value recovery command sent by the user interface device is one The user enters an instruction.
TW104126812A 2015-08-18 2015-08-18 Setting restoring system TWI551977B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW104126812A TWI551977B (en) 2015-08-18 2015-08-18 Setting restoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW104126812A TWI551977B (en) 2015-08-18 2015-08-18 Setting restoring system

Publications (2)

Publication Number Publication Date
TWI551977B true TWI551977B (en) 2016-10-01
TW201709017A TW201709017A (en) 2017-03-01

Family

ID=57848110

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104126812A TWI551977B (en) 2015-08-18 2015-08-18 Setting restoring system

Country Status (1)

Country Link
TW (1) TWI551977B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI709036B (en) * 2019-10-03 2020-11-01 神雲科技股份有限公司 Method of recovering the bios configuration parameter and server system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1387192A (en) * 2001-05-22 2002-12-25 梁国恩 Device and method for protection of data record on storage medium
TW201222238A (en) * 2010-11-26 2012-06-01 Hon Hai Prec Ind Co Ltd System and method for performing a backup and recovery of system data

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1387192A (en) * 2001-05-22 2002-12-25 梁国恩 Device and method for protection of data record on storage medium
TW201222238A (en) * 2010-11-26 2012-06-01 Hon Hai Prec Ind Co Ltd System and method for performing a backup and recovery of system data

Also Published As

Publication number Publication date
TW201709017A (en) 2017-03-01

Similar Documents

Publication Publication Date Title
KR101066779B1 (en) Secure booting a computing device
US10162964B2 (en) System and method for protection of memory pages using a hypervisor
US8291480B2 (en) Trusting an unverified code image in a computing device
US10599419B2 (en) Secure firmware updates using virtual machines to validate firmware packages
WO2018090818A1 (en) Version check method, apparatus and terminal device
KR102490490B1 (en) Method and device for magnetic disk encryption protection
WO2022028057A1 (en) Tpm-based apparatus and method for multi-layer protection of server asset information
CN110069266A (en) Application upgrade method, apparatus, computer equipment and storage medium
CN105138419B (en) Setting value recovery system
US10942750B2 (en) System and method to securely load non-UEFI based file format as OEM based UEFI custom capsule format in UEFI loader
US8250263B2 (en) Apparatus and method for securing data of USB devices
US10289510B1 (en) Intelligent platform management interface functional fuzzer
TWI551977B (en) Setting restoring system
US20230359741A1 (en) Trusted boot method and apparatus, electronic device, and readable storage medium
US8732690B1 (en) Computing device configured for installing an application
WO2020233044A1 (en) Plug-in verification method and device, and server and computer-readable storage medium
US20200342109A1 (en) Baseboard management controller to convey data
CN110781517B (en) Method for realizing data interaction by BIOS and BMC communication
US20060038787A1 (en) Processing system and method for detecting hotkey activation
US20200244461A1 (en) Data Processing Method and Apparatus
CN107451490B (en) TrustZone-based security authentication method, device, system and storage medium
EP4042306A1 (en) Secure installation of baseboard management controller firmware via a physical interface
WO2020000741A1 (en) Rootkit measurement method, apparatus, and server
US20190147177A1 (en) System and method for activating a data entry mechanism for an application based on security requirements
US20120324438A1 (en) Methods and systems for generating read-only operating systems