[go: up one dir, main page]

CN102819474B - Test method and device for system operation - Google Patents

Test method and device for system operation Download PDF

Info

Publication number
CN102819474B
CN102819474B CN201210266326.XA CN201210266326A CN102819474B CN 102819474 B CN102819474 B CN 102819474B CN 201210266326 A CN201210266326 A CN 201210266326A CN 102819474 B CN102819474 B CN 102819474B
Authority
CN
China
Prior art keywords
management controller
baseboard management
information
time
power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210266326.XA
Other languages
Chinese (zh)
Other versions
CN102819474A (en
Inventor
栗志强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dawning Information Industry Beijing Co Ltd
Dawning Information Industry Co Ltd
Original Assignee
Dawning Information Industry Beijing 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 Dawning Information Industry Beijing Co Ltd filed Critical Dawning Information Industry Beijing Co Ltd
Priority to CN201210266326.XA priority Critical patent/CN102819474B/en
Publication of CN102819474A publication Critical patent/CN102819474A/en
Application granted granted Critical
Publication of CN102819474B publication Critical patent/CN102819474B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a test method and device for system operation. The test method is based on a substrate management controller and comprises the following steps: a command data package from an intelligent platform management interface is received by the substrate management controller, wherein the command data package comprises operation information used for showing an appointed operation needing to be executed and time information for executing the appointed operation; and the executing time of the appointed operation is determined by the substrate management controller according to the time information, and the appointed operation is executed when the appointed time is up. According to the method and the device disclosed by the invention, the command data package which is from the intelligent platform management interface and comprises the operation information used for showing the appointed operation needing to be executed and the time information for executing the appointed operation is received by the substrate management controller, the executing time of the appointed operation is determined by the substrate management controller according to the time information, and the appointed operation is executed when the appointed time is up, so that the simple, efficient and rapid automatic operation of different systems can be realized.

Description

The method of testing of Dynamic System and device
Technical field
The present invention relates to computer realm, particularly, relate to a kind of method of testing and device of Dynamic System.
Background technology
Switching on and shutting down test is in mainboard pressure test modal one, is the simplest, directly perceived, effective a kind of means of test macro startup power on self detection (Power On Self Test is called for short POST) stability.
Current mainboard for the method for testing of this project is:
First, utilize real-time timepiece chip (Real-Time Clock, be called for short RTC) automatic arousal function, this function needs Basic Input or Output System (BIOS) (Basic Input Output System, be called for short BIOS) support, first need to configure in the page at BIOS to carry out the setting of RTC arousal function; Then utilize upper layer software (applications) to adjust the time in CMOS (a piece on mainboard read-write RAM chip) and wake up in systems in which and control setting.
The second, WOL (Wake On LAN) (Wakeup on Line, referred to as WoL), carries out switching on and shutting down test by WOL (Wake On LAN).This function adopts host-client (Host-Client) pattern.For the main frame (Host) needing test, a client (Client) is needed to be connected with this main frame by netting twine, after main frame shutdown, host media access control (MediaAccess Control is called for short MAC Address) is passed through by host wake-up by client.
But, RTC is utilized automatically to wake following defect up: first to need to configure in the page at BIOS to carry out the setting of RTC arousal function, to single board configuration not what problem, but test for blade server, or in factory's batch testing, to need manpower, man-hour this function of configure, very loaded down with trivial details.Secondly utilize upper layer software (applications) to adjust the time in CMOS and wake up in systems in which and control setting, this upper layer software (applications) also has limitation, needs to develop for different system platforms.
Further, calling function of network also has following defect: need an independent client to carry out wake operation to tested main frame.Client needs to know host MAC address, to the host wake-up of this MAC Address, if to multiple blade server, or plant produced test, manual operation is comparatively strong, does not possess unmanned condition.When carrying out aging pressure test, do not possess the condition of automation mechanized operation.
Can not be applicable to for system testing in correlation technique the problem that multiple platform and test process are complicated, efficiency is low, manual operation load is large, not yet propose effective solution at present.
Summary of the invention
The problem that multiple platform and test process are complicated, efficiency is low, manual operation load is large can not be applicable to for system testing in correlation technique, the present invention proposes a kind of method of testing and device of Dynamic System, can to realize in different systems system simply, efficiently, automatic operation fast.
Technical scheme of the present invention is achieved in that
According to an aspect of the present invention, provide a kind of method of testing of Dynamic System, this method of testing is based on baseboard management controller, and this method of testing comprises:
Baseboard management controller receives the command packet from IPMI, carries for representing the operation information of the assigned operation that needs carry out and performing the temporal information of this assigned operation in command packet;
Baseboard management controller determines according to temporal information the time performing assigned operation, and performs assigned operation when at the appointed time reaching.
Wherein, order in the command packet that IPMI sends comprises enable mark further, and, after baseboard management controller receives command packet, first judge whether enable mark is configured to open, when judged result is for being, baseboard management controller determines the time performing assigned operation.
If enable mark is configured to close, then process termination.
Further, command packet comprises:
First operation information and very first time information, wherein, the first operation information is power-on command, and very first time information is the stand-by period performing power-on operation; And/or
Second operation information and the second temporal information, wherein, the second operation information is shutdown command, and the second temporal information is the stand-by period performing power-off operation.
In addition, if the system at baseboard management controller place is in off-mode, then baseboard management controller starts timing, and when timing time arrives the stand-by period performing power-on operation, carries out power-on operation according to the first operation information to the system at baseboard management controller place.
If the system at baseboard management controller place is in open state, then baseboard management controller starts timing, and when timing time arrives the stand-by period performing power-off operation, according to the second operation information, power-off operation is carried out to the system at baseboard management controller place.
Further, when command packet comprises the first operation information, very first time information, the second operation information and the second temporal information, baseboard management controller performs following process in a circulating manner:
If the system at baseboard management controller place is in off-mode, then baseboard management controller starts timing, and when timing time arrives the stand-by period performing power-on operation, according to the first operation information, power-on operation is carried out to the system at baseboard management controller place;
If the system at baseboard management controller place is in open state, then baseboard management controller starts timing, and when timing time arrives the stand-by period performing power-off operation, according to the second operation information, power-off operation is carried out to the system at baseboard management controller place.
And temporal information represents the moment performing assigned operation, and, if when baseboard management controller determines that the moment arrives according to system clock, then perform assigned operation at current time.
According to an aspect of the present invention, additionally provide a kind of proving installation of Dynamic System, this proving installation is based on baseboard management controller, and this proving installation comprises:
Receiver module, receives the command packet from IPMI for baseboard management controller, carries for representing the operation information of the assigned operation that needs carry out and performing the temporal information of this assigned operation in command packet;
Determination module, determines according to temporal information the time performing assigned operation for baseboard management controller, and performs assigned operation when at the appointed time reaching.
Wherein, this command packet comprises:
First operation information and very first time information, wherein, the first operation information is power-on command, and very first time information is the stand-by period performing power-on operation; And/or second operation information and the second temporal information, wherein, the second operation information is shutdown command, and the second temporal information is the stand-by period performing power-off operation;
Or temporal information represents the moment performing assigned operation, and, if determination module is when according to system clock, baseboard management controller determines that the moment arrives, then perform assigned operation at current time.
The present invention receives carrying the operation information for representing the assigned operation that needs carry out and performing the command packet of temporal information of this assigned operation from IPMI by baseboard management controller, determine according to temporal information the time performing assigned operation by baseboard management controller, and perform assigned operation when at the appointed time reaching, can to realize in different systems system simply, efficiently, automatic operation fast.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of the method for testing of Dynamic System according to the embodiment of the present invention;
Fig. 2 is the idiographic flow of the method for testing of Dynamic System according to the embodiment of the present invention;
Fig. 3 is the block diagram of the proving installation of Dynamic System according to the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain, all belongs to the scope of protection of the invention.
According to embodiments of the invention, provide a kind of method of testing of Dynamic System, this method of testing is based on baseboard management controller (Baseboard management Controller is called for short BMC).
As shown in Figure 1, comprise according to the method for testing of the Dynamic System of the embodiment of the present invention:
Step S101, baseboard management controller receives from IPMI (IntelligentPlatform Management Interface, be called for short IPMI) command packet, carry for representing the operation information of the assigned operation that needs carry out and performing the temporal information of this assigned operation in command packet;
Step S103, baseboard management controller determines according to temporal information the time performing assigned operation, and performs assigned operation when at the appointed time reaching.
Wherein, the order in the command packet that IPMI sends comprises enable mark further, and this enable mark being opened for controlling baseboard management controller, being closed automatic arousal function.Further, after baseboard management controller receives command packet, first judge whether enable mark is configured to open, when judged result is for being, baseboard management controller determines the time performing assigned operation.
If enable mark is configured to close, then process termination.
Further, command packet comprises:
First operation information and very first time information, wherein, the first operation information is power-on command, and very first time information is the stand-by period performing power-on operation, and this booting wait time waits for how long starting shooting after controlling shutdown again; And/or
Second operation information and the second temporal information, wherein, the second operation information is shutdown command, and the second temporal information is the stand-by period performing power-off operation, and this shutdown stand-by period waits for how long shutting down after controlling start again.
In addition, if the system at baseboard management controller place is in off-mode, then baseboard management controller starts timing, and when timing time arrives the stand-by period performing power-on operation, carries out power-on operation according to the first operation information to the system at baseboard management controller place.
If the system at baseboard management controller place is in open state, then baseboard management controller starts timing, and when timing time arrives the stand-by period performing power-off operation, according to the second operation information, power-off operation is carried out to the system at baseboard management controller place.
Further, when command packet comprises the first operation information, very first time information, the second operation information and the second temporal information, baseboard management controller performs following process in a circulating manner:
If the system at baseboard management controller place is in off-mode, then baseboard management controller starts timing, and when timing time arrives the stand-by period performing power-on operation, according to the first operation information, power-on operation is carried out to the system at baseboard management controller place;
If the system at baseboard management controller place is in open state, then baseboard management controller starts timing, and when timing time arrives the stand-by period performing power-off operation, according to the second operation information, power-off operation is carried out to the system at baseboard management controller place.
And temporal information represents the moment performing assigned operation, and, if when baseboard management controller determines that the moment arrives according to system clock, then perform assigned operation at current time.
The present invention is the IPMI management interface utilizing BMC on server master board to follow.
Such as, automatic on/off test of computer flow process of the present invention is as follows:
Step (1), under system boot state, the instrument utilizing standard to send IPMI order sends command packet, such as: enabler flags=open, booting wait time=10 seconds, shut down 30 seconds stand-by period;
Step (2), BMC checks that whether enabler flags is for opening after receiving the packet that step (1) sends, if open, checks the shutdown stand-by period, after the shutdown stand-by period, (30 seconds) send shutdown command, system closedown;
Step (3), after system closedown, BMC checks the booting wait time, then booting wait time (10 seconds) BMC startup later boot program, system boot;
Step (4), in robotization switching on and shutting down test process, circulation step (1) is to the process of step (3).
As shown in Figure 2, according to the idiographic flow of the method for testing of the Dynamic System of the embodiment of the present invention be:
First, under the state of system boot, send command packet by IPMI, this command packet comprises three conditions: enable mark, booting wait time and shutdown stand-by period.
Secondly, judge enable mark by BMC, be designated shutdown command if enable, then system shutdown switch machine test.When enable be designated open order time, BMC carries out judging and waiting for the unused time.When the unused time of command packet setting arrives, BMC calls shutdown command, system closedown.
Finally, after system closedown, BMC carries out judging and waiting for the on time.When the on time of command packet setting arrives, BMC calls power-on command, system boot.
When system is in open state again, again receives the command packet that sent by IPMI and judge, back and forth automatically performing above operation.
In addition, in the present invention, the stand-by period of shutting down in the definition of IPMI packet can remove, or realizes the process of wait by external software, and BMC shutdown process can be realized by external software, script.
According to embodiments of the invention, additionally provide a kind of proving installation of Dynamic System, this proving installation is based on baseboard management controller.
As shown in Figure 3, comprise according to the proving installation of the Dynamic System of the embodiment of the present invention:
Receiver module 31, receives the command packet from IPMI for baseboard management controller, carries for representing the operation information of the assigned operation that needs carry out and performing the temporal information of this assigned operation in command packet;
Determination module 32, determines according to temporal information the time performing assigned operation for baseboard management controller, and performs assigned operation when at the appointed time reaching.
Wherein, this command packet comprises:
First operation information and very first time information, wherein, the first operation information is power-on command, and very first time information is the stand-by period performing power-on operation; And/or second operation information and the second temporal information, wherein, the second operation information is shutdown command, and the second temporal information is the stand-by period performing power-off operation;
Or temporal information represents the moment performing assigned operation, and, if determination module 32 is when according to system clock, baseboard management controller determines that the moment arrives, then perform assigned operation at current time.
In sum, by means of technique scheme of the present invention, carrying the operation information for representing the assigned operation that needs carry out and performing the command packet of temporal information of this assigned operation from IPMI is received by baseboard management controller, determine according to temporal information the time performing assigned operation by baseboard management controller, and perform assigned operation when at the appointed time reaching.The IPMI IPMI that the present invention adopts industry to generally acknowledge, realizes platform of the present invention, only needs a line script command, can realize switching on and shutting down pressure test at different system (DOS, Windows, Linux), simple, efficient.In the present invention, the definition of IPMI order data packet format; The definition of IPMI command format; To the parsing of order after BMC just receives orders; The processes such as the realization of BMC wait start, shutdown process are the key points of the technical program.And, based on realizing, mainboard of the present invention carries out switching on and shutting down test, the existing standard I PMI order transmission instrument being applicable to each system platform (DOS, Windows, Linux) of industry can be utilized, without system constraint, without the need to the software that development and maintenance is again new, can be used for unmanned automatic test.For many mass tests of plant produced line mainboard quantity, can manpower, man-hour needed for optimal inspection.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a method of testing for Dynamic System, is characterized in that, described method of testing is based on baseboard management controller, and described method of testing comprises:
Described baseboard management controller receives the command packet from IPMI, carries for representing the operation information of the assigned operation that needs carry out and performing the temporal information of this assigned operation in described command packet;
Described baseboard management controller determines according to described temporal information the time performing assigned operation, and performs described assigned operation when at the appointed time reaching.
2. method of testing according to claim 1, it is characterized in that, order in the command packet that described IPMI sends comprises enable mark further, and, after described baseboard management controller receives described command packet, first judge whether described enable mark is configured to open, when judged result is for being, described baseboard management controller determines the time performing described assigned operation.
3. method of testing according to claim 2, is characterized in that, if described enable mark is configured to close, then processes termination.
4. method of testing according to claim 1, is characterized in that, described command packet comprises:
First operation information and very first time information, wherein, described first operation information is power-on command, and described very first time information is the stand-by period performing power-on operation; And/or
Second operation information and the second temporal information, wherein, described second operation information is shutdown command, and described second temporal information is the stand-by period performing power-off operation.
5. method of testing according to claim 4, it is characterized in that, if the system at described baseboard management controller place is in off-mode, then described baseboard management controller starts timing, and when timing time arrives the stand-by period of described execution power-on operation, carry out power-on operation according to the system of described first operation information to described baseboard management controller place.
6. method of testing according to claim 4, it is characterized in that, if the system at described baseboard management controller place is in open state, then described baseboard management controller starts timing, and when timing time arrives the stand-by period of described execution power-off operation, carry out power-off operation according to the system of described second operation information to described baseboard management controller place.
7. method of testing according to claim 4, it is characterized in that, when described command packet comprises the first operation information, very first time information, the second operation information and the second temporal information, described baseboard management controller performs following process in a circulating manner:
If the system at described baseboard management controller place is in off-mode, then described baseboard management controller starts timing, and when timing time arrives the stand-by period of described execution power-on operation, carry out power-on operation according to the system of described first operation information to described baseboard management controller place;
If the system at described baseboard management controller place is in open state, then described baseboard management controller starts timing, and when timing time arrives the stand-by period of described execution power-off operation, carry out power-off operation according to the system of described second operation information to described baseboard management controller place.
8. method of testing according to claim 1, it is characterized in that, described temporal information represents the moment performing assigned operation, and, if when described baseboard management controller determines that the described moment arrives according to system clock, then perform described assigned operation at current time.
9. a proving installation for Dynamic System, is characterized in that, described proving installation is based on baseboard management controller, and described proving installation comprises:
Receiver module, receives the command packet from IPMI for described baseboard management controller, carries for representing the operation information of the assigned operation that needs carry out and performing the temporal information of this assigned operation in described command packet;
Determination module, determines according to described temporal information the time performing assigned operation for described baseboard management controller, and performs described assigned operation when at the appointed time reaching.
10. proving installation according to claim 9, is characterized in that, described command packet comprises:
First operation information and very first time information, wherein, described first operation information is power-on command, and described very first time information is the stand-by period performing power-on operation; And/or second operation information and the second temporal information, wherein, described second operation information is shutdown command, and described second temporal information is the stand-by period performing power-off operation;
Or described temporal information represents the moment performing assigned operation, and, if when described baseboard management controller determines that the described moment arrives according to system clock, then perform described assigned operation at current time.
CN201210266326.XA 2012-07-27 2012-07-27 Test method and device for system operation Active CN102819474B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210266326.XA CN102819474B (en) 2012-07-27 2012-07-27 Test method and device for system operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210266326.XA CN102819474B (en) 2012-07-27 2012-07-27 Test method and device for system operation

Publications (2)

Publication Number Publication Date
CN102819474A CN102819474A (en) 2012-12-12
CN102819474B true CN102819474B (en) 2015-04-01

Family

ID=47303598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210266326.XA Active CN102819474B (en) 2012-07-27 2012-07-27 Test method and device for system operation

Country Status (1)

Country Link
CN (1) CN102819474B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104375910A (en) * 2014-11-24 2015-02-25 浪潮电子信息产业股份有限公司 Automatic power-on and power-off test method
CN104750525A (en) * 2015-03-25 2015-07-01 浪潮集团有限公司 Control method for turning on and turning off server in timed mode
CN104853187B (en) * 2015-05-20 2017-04-26 百度在线网络技术(北京)有限公司 Method for testing electronic equipment starting performance and device and system thereof
CN109165047B (en) * 2018-09-03 2021-10-12 英业达科技有限公司 Method for maintaining correct time of graphics processor mainboard

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5383192A (en) * 1992-12-23 1995-01-17 Intel Corporation Minimizing the likelihood of slip between the instant a candidate for a break event is generated and the instant a microprocessor is instructed to perform a break, without missing breakpoints
CN1149735A (en) * 1994-05-25 1997-05-14 西门子公司 Service personal computer of modular structure

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5383192A (en) * 1992-12-23 1995-01-17 Intel Corporation Minimizing the likelihood of slip between the instant a candidate for a break event is generated and the instant a microprocessor is instructed to perform a break, without missing breakpoints
CN1149735A (en) * 1994-05-25 1997-05-14 西门子公司 Service personal computer of modular structure

Also Published As

Publication number Publication date
CN102819474A (en) 2012-12-12

Similar Documents

Publication Publication Date Title
TWI495297B (en) Process, computer readable media, and system for device power management using network connections
CN102609356B (en) Terminal product driver loading stability testing method
CN102819474B (en) Test method and device for system operation
CN104899120A (en) Server stability testing method based on BMC (baseboard management controller) startup and shutdown functions
CN103686147B (en) A kind of method of testing and device of cloning video monitoring emulation terminal
CN106055440A (en) Testing method and system for realizing abnormal power failure of server through BMC
CN105389242A (en) Method for achieving batch acquisition of server information of whole cabinet
CN104049702A (en) Single chip microcomputer-based CPU (Central Processing Unit) reset control system, method and device
CN109683964A (en) Bios software debugging control program, system and server
CN106547592A (en) A kind of method for designing for realizing Novel cloud service device power supply software online updating
CN111367743A (en) Method and system for diagnosing power failure of server in cycle restart test process
CN101877640A (en) Server power control system
CN103593274A (en) Method for performing dynamic startup and shutdown to save power consumption according to computer cluster resource using conditions
CN104270430A (en) A server remote scheduling method suitable for cloud computing
CN108234172B (en) Physical resource automatic deployment system for cloud computing
CN104734904A (en) Automatic detection method and system of by-pass equipment
CN105404569A (en) Method for testing remote Power Reset of server
CN109582505B (en) BIOS option default value recovery system, method and device
CN107870840B (en) IPMI-based server multi-test instruction automatic execution method
CN109656213B (en) Man-machine interface system with power-loss protection mechanism and distributed control system
CN111090474B (en) Low-power-consumption-based BIOS option configuration method and system
CN111782280A (en) Automatic test method and system for operating system switch based on server BMC
CN103049342A (en) Access method of boot information
CN116932297A (en) CPU performance/watt ratio test method, system, terminal and storage medium
CN109697104A (en) A kind of cloud classroom resources management method based on course

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100193 Beijing, Haidian District, northeast Wang West Road, building 8, No. 36

Applicant after: Dawning Information Industry (Beijing) Co.,Ltd.

Address before: 100193 Shuguang building, Zhongguancun Software Park, Haidian District, Beijing

Applicant before: Dawning Information Industry (Beijing) Co.,Ltd.

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CB03 Change of inventor or designer information

Inventor after: Calendar Army

Inventor after: Li Zhiqiang

Inventor before: Li Zhiqiang

COR Change of bibliographic data
TR01 Transfer of patent right

Effective date of registration: 20220727

Address after: 100089 building 36, courtyard 8, Dongbeiwang West Road, Haidian District, Beijing

Patentee after: Dawning Information Industry (Beijing) Co.,Ltd.

Patentee after: DAWNING INFORMATION INDUSTRY Co.,Ltd.

Address before: 100193 No. 36 Building, No. 8 Hospital, Wangxi Road, Haidian District, Beijing

Patentee before: Dawning Information Industry (Beijing) Co.,Ltd.

TR01 Transfer of patent right